$(function() {

	$('.search_submit').hover(	function () {$(this).toggleClass('search_submitH');},	function () {$(this).toggleClass('search_submitH');});
	
	if(!$.browser.msie){
		$('.borderT1, .borderT1main, .borderT1cat, .borderT1images, .borderT1images2').corner('8px');
		$('.borderT2, .borderT2main, .borderT2cat, .borderT2images, .borderT2images2, .block_bg, .slider_img, .Index_categorys_block, .IndexProductOfCategory, .RepatedProductOfCategory, .Cart_RepatedProductOfCategory, .commentsNdateBG, .HorizantalMenuUldiv a, ul.HorizantalMenuUl li ul, .HorizantalMenuUlBorder, .button_small, .button_small input').corner('5px');
		$('.HorizantalMenu').corner('tr tl,5px');
		$('.navigation b, .navigation a, .Filter_Price_Range, .filter_informProd').corner('3px');
		$('.filter_loading').corner('13px');
	}
	
	
		$('.HorizantalMenuUl li').hover( 
			function () {
				$(".HorizantalMenuUlconer", this).removeClass("hideconer");
				$(".HorizantalMenuUlBorder:first", this).removeClass("hide");
				$("a:first", this).addClass("hoverUrl");
			}, 
			function () {
				$(".HorizantalMenuUlconer", this).addClass("hideconer");
				$(".HorizantalMenuUlBorder:first", this).addClass("hide");
				$("a:first", this).removeClass("hoverUrl");
			}
		);
		
		
		
		
		
		
		$('.add2cart_button').hover(function () {$(this).addClass("add2cart_button_hover");	}, 	function () {$(this).removeClass("add2cart_button_hover");});	
		$('.add2cart_button').mouseup(function(){
			$(this).removeClass("add2cart_button_active");
		}).mousedown(function(){
			$(this).addClass("add2cart_button_active");
		}).mouseover(function(){
			$(this).removeClass("add2cart_button_active");
		});		
			
			
		$('.add2notiv_button').hover(function () {$(this).addClass("add2notiv_button_hover");	}, 	function () {$(this).removeClass("add2notiv_button_hover");});	
		$('.add2notiv_button').mouseup(function(){
			$(this).removeClass("add2notiv_button_active");
		}).mousedown(function(){
			$(this).addClass("add2notiv_button_active");
		}).mouseover(function(){
			$(this).removeClass("add2notiv_button_active");
		});		
		
		
		
		$('.fastOrder').hover( 	function () {$(this).addClass("fastOrder_hover");}, function () {$(this).removeClass("fastOrder_hover");})
		$('.fastOrder').mouseup(function(){
			$(this).removeClass("fastOrder_active");
		}).mousedown(function(){
			$(this).addClass("fastOrder_active");
		}).mouseover(function(){
			$(this).removeClass("fastOrder_active");
		});
		
		
		
		$('.button_small').hover(function () {$(this).addClass("button_small_hover");	}, 	function () {$(this).removeClass("button_small_hover");});	
		$('.button_small').mouseup(function(){
			$(this).removeClass("button_small_active");
			$("input", this).removeClass("button_small_active");
		}).mousedown(function(){
			$(this).addClass("button_small_active");
			$("input", this).addClass("button_small_active");
		});
		
		
		
		
		
		$('.slider_prev').hover(function () {$(this).addClass("slider_prev_hover");	}, 	function () {$(this).removeClass("slider_prev_hover");});	
		$('.slider_next').hover(function () {$(this).addClass("slider_next_hover");	}, 	function () {$(this).removeClass("slider_next_hover");});	
		$('.del_icon').hover(function () {$(this).addClass("del_icon_hover");	}, 	function () {$(this).removeClass("del_icon_hover");});	
		$('.icon_eye').hover(function () {$(this).addClass("icon_eye_hover");	}, 	function () {$(this).removeClass("icon_eye_hover");});	
		$('.icon_news').hover(function () {$(this).addClass("icon_news_hover");	}, 	function () {$(this).removeClass("icon_news_hover");});	
		$('.icon_rss').hover(function () {$(this).addClass("icon_rss_hover");	}, 	function () {$(this).removeClass("icon_rss_hover");});	
		$('.icon_plus').hover(function () {$(this).addClass("icon_plus_hover");	}, 	function () {$(this).removeClass("icon_plus_hover");});	


	
		$('.slider_prev').mouseup(function(){
			$(this).removeClass("slider_prev_active");
		}).mousedown(function(){
			$(this).addClass("slider_prev_active");
		});
		$('.slider_next').mouseup(function(){
			$(this).removeClass("slider_next_active");
		}).mousedown(function(){
			$(this).addClass("slider_next_active");
		});
		$('.del_icon').mouseup(function(){
			$(this).removeClass("del_icon_active");
		}).mousedown(function(){
			$(this).addClass("del_icon_active");
		});
		$('.icon_eye').mouseup(function(){
			$(this).removeClass("icon_eye_active");
		}).mousedown(function(){
			$(this).addClass("icon_eye_active");
		});
		$('.icon_news').mouseup(function(){
			$(this).removeClass("icon_news_active");
		}).mousedown(function(){
			$(this).addClass("icon_news_active");
		});
		$('.icon_rss').mouseup(function(){
			$(this).removeClass("icon_rss_active");
		}).mousedown(function(){
			$(this).addClass("icon_rss_active");
		});
		$('.icon_plus').mouseup(function(){
			$(this).removeClass("icon_plus_active");
		}).mousedown(function(){
			$(this).addClass("icon_plus_active");
		});
		
})

		function Filter_checkbox(label){
				Checked = $("input:checkbox:first", label).attr("checked");
				if(Checked == true){
					$("a:first", label).removeClass("Filter_checkbox_DivChecked");
					$("input:checkbox:first", label).attr("checked",false);
				}else{
					$("a:first", label).addClass("Filter_checkbox_DivChecked");
					$("input:checkbox:first", label).attr("checked",true);
				}

			return false;
		}

