	// SlideShow
		function slideSwitch() {
			var $active = $('#slideshow img.active');
		
			if ( $active.length == 0 ) $active = $('#slideshow img:last');
		
			var $next =  $active.next().length ? $active.next()
				: $('#slideshow img:first');
		
			$active.addClass('last-active');
		
			$next.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 800, function() {
					$active.removeClass('active last-active');
				});
		}
		
		$(function() {
			setInterval( "slideSwitch()", 3000 );
		});
		

jQuery(document).ready(function(){
	
	$(".fancybox").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'width'			: 500,
		'height'		: 450
	});
	
	// Lightbox
	$(function() {
		$(".lightbox").lightbox();
	});
	
	//// Hide/Show Specifications
	//$("p.spec").addClass("switchOff").click(function() {
	//	if($(this).is(".switchOff")) {
	//		$(this).next().slideDown("slow", function() { 
	//			$(this).prev().removeClass("switchOff").addClass("switchOn");
	//		});
	//	} 
	//	if ($(this).is(".switchOn")) {
	//		$(this).next().slideUp("slow", function() { 
	//			$(this).prev().removeClass("switchOn").addClass("switchOff");
	//		});
	//	}
	//}).next().hide();
	
	$("#video").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'				: 'transparent',
			'allowfullscreen'	: 'true'
			}
		});
		return false;
	});	
	
});
