$(document).ready(function(){
	
	$(".main_nav ul.topnav li a").hover(function() {
		$(this).addClass("hover");
		$(this).parent().find("ul.children").show();
		$(this).parent().hover(function() {}, function(){
			$(this).parent().find("ul.children").hide();
			$(this).parent().find("a").removeClass("hover");
		});
	});
	
	/*
	$(".input_search input").focus(function() {
		$(this).removeClass("with_value");
		$(this).addClass("focus");
	});
	$(".input_search input").blur(function() {
		if($(this).val().length == 0) {
			$(this).attr("value","");
			$(this).removeClass("with_value");
			$(this).removeClass("focus");
		} else {
			$(this).removeClass("focus");
			$(this).addClass("with_value");
		}
	});
	*/
	
	$(".product").hover(function() {
		$(this).addClass("hover");
	}, function(){
		$(this).removeClass("hover");
	});
	
	$(".secondary").hover(function() {
		$(this).addClass("hover");
	}, function(){
		$(this).removeClass("hover");
	});
	
	$(".secondary .image img").hover(function() {
		$(this).addClass("hover");
	}, function(){
		$(this).removeClass("hover");
	});
	
	$(".category").hover(function() {
		$(this).addClass("hover");
	}, function(){
		$(this).removeClass("hover");
	});
	
	$(".category .image img").hover(function() {
		$(this).addClass("hover");
	}, function(){
		$(this).removeClass("hover");
	});
	
	$(".shopping .product").equalHeights(160,300);
	$(".first_section .secondary").equalHeights();
	$(".second_section .secondary").equalHeights();
	$(".third_section .secondary").equalHeights();
	$(".fourth_section .secondary").equalHeights();
	
	$("article.category").equalHeights();
	
	$(".input_email input").focus(function() {
		$(this).addClass("focus");
	});
	$(".input_email input").blur(function() {
		$(this).removeClass("focus");
	});
	
});
