// Video Player Rotate
$j(document).ready(function(){
      var myVids = new Array(); 
      myVids[0] = '<a id="vidbig" href="http://www.youtube.com/watch?v=VIPYcFpLPps&hd=1" title="Farewell Flight - Out For Blood (Official Video)"></a>';
      myVids[1] = '<a id="vidbig" href="http://www.youtube.com/watch?v=p0nAvtOrHUE&hd=1" title="Summer Forgets Me - Deas Vail (Official Video)"></a>'; 
            
      var myRandom = Math.floor(Math.random()*myVids.length); 
      $j('#video').html(myVids[myRandom]);
   });

// Fanxybox Modal Splash.php
/*		$j(document).ready(function() {
			$j("#modal_splash").fancybox({
				'frameWidth'		: '780',
				'overlayColor'		: '#000',
				'autoDimensions'	: 'false',
				'centerOnScroll'	: 'true',
			});
			$j("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		});
		*/


// Fancybox Video Premiere
$j(document).ready(function() {

	$j("a#vidbig").click(function() {
		$j.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'overlayColor'  : '#000',
			'overlayOpacity': '0.8',
			'title'			: this.title,
			'width'			: 840,
			'height'		: 497,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'				: 'transparent',
			'allowfullscreen'	: 'true',
			'centerOnScroll'    : 'true',
			}
		});

		return false;
	});
	// Remove dashes to go live
	$j("a#vidbig").trigger('click');
	
});


