// JavaScript Document
$(document).ready(function(){
						   
	if ($(".RIGHT_T_BTN_T").siblings(".RIGHT_T_BTN_I").css("display") == "block") {
		$(".RIGHT_T_BTN_T").css({"background-image":"url(images/rightsubt.png)"});
	}
	
	if ($(".RIGHT_T_BTN_T").siblings(".RIGHT_T_BTN_I").css("display") == "block") {
		$(".RIGHT_T_BTN_T").css({"background-image":"url(images/rightsubt.png)"});
	}

	$(".TOOLS").hover(function() {
		$(this).find(".TOOL_BOX").css({"display":"block"});
		$(this).find(".TOOL_BOX1").css({"display":"block"});
	} ,function() {
		$(this).find(".TOOL_BOX").css({"display":"none"});
		$(this).find(".TOOL_BOX1").css({"display":"none"});
	});
	
	$(".FAQSHOW").click(function() {
		$(this).next(".FAQHIDE").toggle("normal");							 
	});
	$(".FAQHIDE").click(function() {
		$(this).toggle("normal");							 
	});
	
	$(".PPR1").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();
	});
	$(".PPR2").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR3").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR4").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR5").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR6").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR7").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR8").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPR9").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	
	$(".PPRB1").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();
	});
	$(".PPRB2").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB3").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB4").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB5").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB6").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB7").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB8").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	$(".PPRB9").hover(function() {							  
		$(this).find(".PERBOX").show();
	},function() {
		$(this).find(".PERBOX").hide();;
	});
	/*
	$(".SUBCLICKER").click(function() {		
		if ($(this).siblings(".RIGHT_T_BTN_I").css("display") == 'block') {			
			$(this).siblings(".RIGHT_T_BTN_I").hide("normal");
			
			if ($(this).parent().is(".RIGHT_BUTTON_TOP")) {
				
				$(this).css({"background-image":"url(images/menu_top.png)"});
				
			} else if ($(this).parent().is(".RIGHT_BUTTON_MIDDEL")) {
				
				$(this).css({"background-image":"url(images/menu_center.png)"});
				
			} else {
				
				$(this).css({"background-image":"url(images/menu_bottom.png)"});
				
			}
		} else {
			
			if ($(this).parent().is(".RIGHT_BUTTON_TOP")) {
				
				$(this).css({"background-image":"url(images/rightsubt.png)"});
				
			} else if ($(this).parent().is(".RIGHT_BUTTON_MIDDEL")) {
				
				$(this).css({"background-image":"url(images/rightsubm.png)"});
				
			} else {
				
				$(this).css({"background-image":"url(images/rightsubt.png)"});
				
			}
										 
			$(this).siblings(".RIGHT_T_BTN_I").show("normal");
			
		}
	});
	*/
	
	$(".PIMGS").hover(function() {
			var image_s = $(this).find("img").attr("src");
			image_b = $(".PRODUCTS_BIG").find("img").attr("src");
			$(".PRODUCTS_BIG").find("img").attr("src",image_s);			
	}, function() {
			image_b = $(".PRODUCTS_BIG").find("img").attr("src");
			$(".PRODUCTS_BIG").find("img").attr("src",image_b);	
	});
	
	$(".PIMGS").click(function() {
		var image = $(this).find("img").attr("src");
		$(".PRODUCTS_BIG").find("img").attr("src",image);	
	});
	/*
	$(".CART_CLICK").click(function() {
		
		$(this).siblings(".CART_BOX").slideToggle("normal");
		
	});
	*/
	$(".CART").hover(function() {
		
		$(this).find(".CART_BOX").slideToggle("normal");
		
	},function() {
		
		$(this).find(".CART_BOX").slideToggle("normal");
		
	});
	
	$("#basket_shop").submit(function(){
		if ($('#agree:checked').val()!=='on'){
			$(".AGREE").css('padding','5px').css('color','red').css('font-weight','bold');
			return false;
		}
	});
	
});
