// JavaScript Document
$(document).ready(function(){
	$(".steeringWheels#Home").click(function () {
		window.location="/index.html";
	  });
	$(".steeringWheels#Gallery").click(function () {
		window.location="/cart/gallery.html";
	  });
	$(".steeringWheels#About").click(function () {
		window.location="http://www.wheelsoftime.com/aboutpage.html";
	  });
	$(".steeringWheels#Links").click(function () {
		window.location="http://www.wheelsoftime.com/linkspage.html";
	  });
	$(".steeringWheels#Contact").click(function () {
		window.location="http://www.wheelsoftime.com/contactpage.html";
	  });
	
	/* This is basic - uses default settings 
	
	$("a#single_image").fancybox();
	
	*/
	
	/* Using custom settings */
	
	$("a.ProductInline").fancybox({
		'hideOnContentClick': true
	});
	
	$(".HomepagePopupLink").fancybox({
		'hideOnContentClick': true
	});
		
	/* Apply fancybox to multiple items */	
	$("a.ProductGroup").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});	
	
//	$(".productItem")
//		.css("opacity","0.8")
//		.hover(function(){
//			$(this).css("opacity","1");
//		}, function() {
//			$(this).css("opacity","0.8");
//	});
	
	$("#allcat").click(function(){
	   $(".productItem").slideDown();
	   $("#catpicker a").removeClass("current");
	   $(this).addClass("current");
	   return false;
	});
		
	$("#catpickerddl").change(function() {
		var Value = $("#catpickerddl").val();
		$("#" + Value).click();							   
	});
	
	$(".filter").click(function(){
		var thisFilter = $(this).attr("id");
		$(".productItem").slideUp();
		$("."+ thisFilter).slideDown();
		$("#catpicker a").removeClass("current");
		$(this).addClass("current");
		return false;
	});
});
