
		$(document).ready(function () {
			//Anything Slider
 			$('#slider1').anythingSlider({
	 			resizeContents: false,
	 			autoPlayLocked:true,
	 			resumeDelay:5000,
	 			delay: 5000
	 			
 			});
 			//End Anything Slider
 			
 			//Cyclelite Slideshow
		  $('#slideshow1').cycle({
	        speed: 2000,
	        timeout: 8000
	    });
		    
		  $('#slideshow2').cycle({
	        speed: 2000,
	        timeout: 8000
	    });
	    
	    $('#slideshow3').cycle({
	        delay: 5000,
	        speed: 1000,
	    });
	    
	    function onBefore() {
	        $('#title').html(this.alt);
	    }
	    
	    $('#slideshow4').cycle({
	        fx: 'custom',
	        cssBefore: { top: 232 },
	        animIn:  { top: 0 },
	        animOut: { top: -232 }
	    });
	    //End Cyclelite Slideshow
	    
	    $(".youtube").click(function() {
				$.fancybox({
					'padding'		: 0,
					'autoScale'		: false,
					'transitionIn'	: 'none',
					'transitionOut'	: 'none',
					'title'			: this.title,
					'width'		: 680,
					'height'		: 495,
					'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
					'type'			: 'swf',
					'swf'			: {
				   	 'wmode'		: 'transparent',
						'allowfullscreen'	: 'true'
					}
				});
				return false;
			});
		});	
