// wogc functions

$(document).ready(function() {

$("#nojs").hide();


    $('.slideshow').cycle({	 fx: 'fade', speed: 2550, timeout: 6300});
	$('.slideshow2').cycle({fx: 'fade', speed: 2000, timeout: 9020});
	$('.slideshow3').cycle({fx: 'fade', speed: 2800, timeout: 8000});
	$('.slideshow4').cycle({fx: 'fade', speed: 1900, timeout: 9060});
	$('.slideshow5').cycle({fx: 'fade', speed: 2600, timeout: 7080});
	$('.slideshow6').cycle({fx: 'fade', speed: 2350, timeout: 6800});
	


$(function() {
   $('.three_columns').hover( function(){
    $(this).css('background-image','url(images/ccbgh.png)')//.animate({	opacity: 1,borderWidth: 5	}, 50 );
   },
   function(){    
	  $(this).css('background-image','url(images/ccbg.png)') //.animate({opacity: 1,borderWidth: 1	},100 );
   });
});

$(function() {
   $('.LinfoAf').hover( function(){
    $(this).css('background-image','url(images/AffiliateHov.png)')
   },
   function(){    
	  $(this).css('background-image','url(images/AffiliateNr.png)') 
   });
});

$(function() {
   $('.SeeNow').hover( function(){
         $(this).css('background-position', 'center left').animate({	opacity: .9,borderWidth: 1	},200 ); 
		 
   },
   function(){    
	  $(this).css('background-position', 'top left').animate({	opacity: 1,borderWidth: 1	},100 ); 
   });
});

$(function() {
   $('.SeeNow').mousedown( function(){
         $(this).css('background-position','bottom left').animate({	opacity: .99,borderWidth: 1	},200 ); 
			
		
   },
   function(){    
	  $(this).css('background-position','top left').animate({	opacity: 1,borderWidth: 1	},100 ); 
   });
});
$(function() {
   $('.SeeNow').mouseup( function(){
         $(this).css('background-position','center left').animate({	opacity: .9,borderWidth: 1	},500 ); 
   },
   function(){    
	  $(this).css('background-position','top left').animate({	opacity: 1,borderWidth: 1	},100 ); 
   });
});


$(function() {
   $('.BuyNow').hover( function(){
            $(this).css('background-position', 'center left').animate({	opacity: .99,borderWidth: 1	},200 ); 
   },
   function(){    
			$(this).css('background-position', 'top left').animate({	opacity: 1,borderWidth: 1	},100 ); 
   });
});

$(function() {
   $('.BuyNow').mousedown( function(){
         $(this).css('background-position','bottom left').animate({	opacity: .9,borderWidth: 1	},300 ); 
   },
   function(){    
	   $(this).css('background-position','top left').animate({	opacity: 1,borderWidth: 1	},100 ); 
   });
});
$(function() {
   $('.BuyNow').mouseup( function(){
        $(this).css('background-position','center left').animate({	opacity: .9,borderWidth: 1	},500 ); 
   },
   function(){    
	   $(this).css('background-position','top left').animate({	opacity: 1,borderWidth: 1	},100 ); 
   });
});



$(function() {
   $('.LRinfoP').hover( function(){
    $(this).css('background-image','url(images/PurchaseOptionsh.png)')
   },
   function(){    
	  $(this).css('background-image','url(images/PurchaseOptions.png)') 
   });
});
});



$(function(){	


var player = $f("player", "http://wingsovergrandcanyondvd.com/swf/flowplayer-3.1.5.swf",  {
		
	// use the first frame of the video as a "splash image"
	// we need at least this Flash version 
    version: [9, 115], 
 
    // older versions will see a custom message 
    onFail: function()  { 
        document.getElementById("info").innerHTML = 
            "You need the latest Flash version to see MP4 movies. " + 
            "Your version is " + this.getVersion() 
        ; },
	clip: {
		autoPlay: true,
		autoBuffering: true
	},
	
	// controlbar settings
	plugins:  {
		controls: {			
			
			// setup a background image
			background: 'url(images/vplrbg.png) repeat',
			
			// these buttons are visible
			all:true,
			scrubber:true,
			play:true,
			mute:true,
			
			// custom colors
			bufferColor: '#70523a',
			progressColor: '#6d4836',			
			buttonColor: '#6d4836',
			buttonOverColor: '#cf8f63',
			
			// tooltip background color (since 3.1.0)
			tooltipColor: '#6d4836',
			
			// custom height
			height: 30,
			
			// setup auto hide
			autoHide: 'always',			
			
			// a little more styling 			
			width: '98%', 
			bottom: 5,
			left: '50%',
			borderRadius: 15

			
		}
	}
});

$("a[rel='#custom1']").overlay({ 
	
		
        expose: {maskId: 'exposeMask'},
	     effect: 'apple', 
		
		
     	onLoad: function(event) { 
			$('.slideshow').cycle('pause'); 
			$('.slideshow2').cycle('pause');
			$('.slideshow3').cycle('pause');
			$('.slideshow4').cycle('pause');
			$('.slideshow5').cycle('pause');
			$('.slideshow6').cycle('pause');
		 	player.load();

	} ,
	
	onClose: function(event) { 
		 	player.unload();
			$('.slideshow').cycle('resume');
			$('.slideshow2').cycle('resume');
			$('.slideshow3').cycle('resume');
			$('.slideshow4').cycle('resume');
			$('.slideshow5').cycle('resume');
			$('.slideshow6').cycle('resume');


	}
      
}); 

});



$(function() { 
 
    // if the function argument is given to overlay, 
    // it is assumed to be the onBeforeLoad event listener 
			
    $("a[rel='#overlays']").overlay({ 
	


        expose: {maskId: 'exposeMask'},
	     effect: 'apple', 
	
        onBeforeLoad: function() { 
 
            // grab wrapper element inside content 
            var wrap = this.getContent().find(".contentWrap"); 
 
            // load the page specified in the trigger 
            wrap.load(this.getTrigger().attr("href")); 

        } ,
			onLoad: function(event) { 
			$('.slideshow').cycle('pause'); 
			$('.slideshow2').cycle('pause');
			$('.slideshow3').cycle('pause');
			$('.slideshow4').cycle('pause');
			$('.slideshow5').cycle('pause');
			$('.slideshow6').cycle('pause');
	} ,
	
	onClose: function(event) { 
			$('.slideshow').cycle('resume');
			$('.slideshow2').cycle('resume');
			$('.slideshow3').cycle('resume');
			$('.slideshow4').cycle('resume');
			$('.slideshow5').cycle('resume');
			$('.slideshow6').cycle('resume');
	}
       
     
    }); 
     
});

 $(document).bind("contextmenu",function(e){
        return false;
    });


