// JavaScript Document



jQuery(document).ready(function(){
							
	jQuery("dt span").click(function(){
					
		if(jQuery(this).attr('class')=='expand'){	
			jQuery(this).attr('class','collapse');
			jQuery(this).parent().next('dd').slideDown(1000);
		}
		else if(jQuery(this).attr('class')=='collapse'){	
			jQuery(this).attr('class','expand');
			jQuery(this).parent().next('dd').slideUp(1000);

		}
	});
	jQuery(".navigation ul.links li a.top-link-checkout").click(function(){
				var numProducts = jQuery(".navigation ul.links li a.top-link-cart").html();
				numProducts = numProducts.split(" ");
				totalProducts = parseInt(numProducts[2].substr(1,numProducts[2].length));
										 	
			if(totalProducts < 6){	
				alert('You must have atleast 6 items in your cart to proceed');
				return false;
			}
	});
	
	jQuery(".rating-box").parent().css("border","none");
	fixLeftMenuTop();
});

function fixLeftMenuTop(){	
	
	if(jQuery(".col-left .block-layered-nav .block-title").size()==0){
		jQuery('.col-left .block-layered-nav').css("margin-top",0+"px");
	}
}
