//JK Popup Window Script (version 3.0)- By JavaScript Kit (http://www.javascriptkit.com)
//Visit JavaScriptKit.com for free JavaScripts
//This notice must stay intact for legal use

function openpopup(popurl){
var winpops=window.open(popurl,"","width=750,height=600,location,status,scrollbars,resizable")
}

//ETicketing FADE IN BUTTON
		
			/*	$(".TriggerEffect1").hover(function(e){
				$("#eTicketing").ImageStop(true,true);
			$("#eTicketing").ImageSwitch({	Type:"FadeIn", 
										NewImage:"GUI/images/e_ticketingbutton_on.jpg",
										EffectOriginal: false, Speed: 100});
			e.preventDefault();
		},function(e){
		$("#eTicketing").ImageStop(true,true);
			$("#eTicketing").ImageSwitch({	 Type:"FadeIn", 
										NewImage:"GUI/images/e_ticketingbutton.jpg", 
										EffectOriginal: false, speed: 100});
													
			e.preventDefault();			
		});
			*/ 
		

//MOVIE CONTEST FADE IN BUTTON
		
				$(".TriggerEffect").hover(function(e){
			$("#Contest").ImageStop(true,true);
			$("#Contest").ImageSwitch({	Type:"FadeIn", 
										NewImage:"GUI/images/thumb_ticket_hover.jpg",
										EffectOriginal: false, Speed: 300});
			e.preventDefault();
		},function(e){
			$("#Contest").ImageStop(true,true);
			$("#Contest").ImageSwitch({	 Type:"FadeIn", 
										NewImage:"GUI/images/special_ticket.jpg", 
										EffectOriginal: false, speed: 300});
													
			e.preventDefault();			
		});

//WINNERS FADE IN BUTTON
	
	
	
		$(".TriggerEffect2").hover(function(e){
			$("#Winner").ImageStop(true,true);
			$("#Winner").ImageSwitch({	Type:"FadeIn", 
										NewImage:"GUI/images/special_winners_hover.jpg",
										EffectOriginal: false, Speed: 300});
			e.preventDefault();
		},function(e){
			$("#Winner").ImageStop(true,true);
			$("#Winner").ImageSwitch({	 Type:"FadeIn", 
										NewImage:"GUI/images/special_winners.jpg", 
										EffectOriginal: false, speed: 300});
													
			e.preventDefault();			
		});

//ECARD FADE IN BUTTON
	
	
		$(".TriggerEffect3").hover(function(e){
			$("#Ecard").ImageStop(true,true);
			$("#Ecard").ImageSwitch({	Type:"FadeIn", 
										NewImage:"GUI/images/special_ecard_hover.jpg",
										EffectOriginal: false, Speed: 300});
			e.preventDefault();
		},function(e){
			$("#Ecard").ImageStop(true,true);
			$("#Ecard").ImageSwitch({	 Type:"FadeIn", 
										NewImage:"GUI/images/special_ecard.jpg", 
										EffectOriginal: false, speed: 300});
													
			e.preventDefault();			
		});


// NEXT ATTRACTION BANNER
$(function() {
	
    $('#slideshow').cycle({
	
        speed:       1000,
        timeout:     8000,
        pager:      '#nav',
        pagerEvent: 'mouseover',
		pauseOnPagerHover: true
    });
});





// NOW SHOWING PANEL AND MAIN BANNER
$(function() {

    $('#slideshow2').cycle({
        fx:     'slideX',
        speed:  'medium',
        timeout: 15000,
        pager:  '#nav2',
		play:' true',
		
        pagerAnchorBuilder: function(idx, slide) {

		
		// return sel string for existing anchor

			return '#nav2 li:eq(' + (idx) + ') a';
       
	   
	

  
 }
    });

  /*  $('#direct').click(function() {
        $('#nav2 li:eq(2) a').triggerHandler('click');
         carousel.startAuto(0);  
		return false;
    });
  
  */
  

});

// NOW SHOWING SCROLLING PANEL
 
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
		
    });



};




jQuery(document).ready(function(idx) {
    jQuery('#nav2').jcarousel({
        auto: 44,
        wrap: 'last',
	
        initCallback: mycarousel_initCallback
    });





});








//SYNOPSIS CAPTION ANIMATION


$(document).ready(function(){

$(".cover", this).stop().animate({left:'435px'},{queue:false});

////////////////////////// OPEN/CLOSE SLIDING PANEL WHEN MOUSEOUT / HOVER

$('.caption').hover(function(){
	
	$(".cover", this).stop().animate({left:'130px'},{queue:false});	

}, function () {
     $(".cover", this).stop().animate({left:'435px'},{queue:false});	
    });



////////////////////////// OPEN SLIDING PANEL WHEN CLICK	

/*
$('.caption').bind('click', function(cover) {

$(".cover", this).stop().animate({left:'130px'},{queue:false});
	 

});*/


		

			});


//FIX PNG IMAGES FOR IE6 AND BELOW
    $(document).ready(function(){ 
        $(document).pngFix(); 
	
    }); 
	
	
	//Preloader to load main banner 	
	
	$(function () {

	$('.boxgrid').hide();
$('.caption').hide();


	
	});

	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
		var int = setInterval("doThis(i)",500);//500 is the fade in speed in milliseconds
	});

	function doThis() {
		var images = $('.boxgrid').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
		}

		
		$('.boxgrid:hidden').eq(0).fadeIn(500);
				$('.caption:hidden').eq(0).fadeIn(500);
					
					
		;
		
		i++;//add 1 to the count
	}