	function changeVR(video) {
	
		$('.playlist li a').removeClass('videoActive');
		$('.playlist li a#pitem'+video).addClass('videoActive');
		
		$('#firstplayer').remove();
		$('#player').media({ 
			preferMeta:    1,         // true if markup metadata takes precedence over options object 
  	 		autoplay:      0,         // normalized cross-player setting 
  	  		bgColor:       '#000000', // background color 
		    width:     450, 
		    height:    300, 
		    src:       '/media/vr/'+ video +'.mov', 
		    attrs:     { width:  '450',  height:  '300'},  // object/embed attrs 
		    params:    { width:  '450',  height:  '300'}, // object params/embed attrs 
		});		
	}
	function changeVP(video) {
		$('.playlist li a').removeClass('videoActive');
		$('.playlist li a#pitem'+video).addClass('videoActive');
	
	}
	
$(function() {$('ul.thumbs li a[title]').qtip({
 content: {
         text: false // Use each elements title attribute
      },
	   position: {
      corner: {
         target: 'topMiddle',
         tooltip: 'topMiddle'
       },
       adjust: { x: 0, y: -40 } 
       },
	   show: 'mouseover',
	   hide: 'mouseout',
	   style: { 
	      border: {
	         width: 3,
	         radius: 2,
	         color: '#555'
	      },
	      textAlign: 'center',
	      tip: 'bottomMiddle'
		}
	});
	
});