$(function(){
	
	$('#search_query').focus(function(){
		if( $(this).val() == "search" )
			$(this).val('');
	}).blur(function(){
		if( $(this).val() == "" )
			$(this).val('search');
	});


	$('#SideCategoryList .SideCategoryListClassic ul li').each(function(){
	
	
		if( $(this).find('a').text() == "clothing" ){
			$(this).find('a').toggle(function(){
				$(this).parent().parent().next().hide().next().hide().next().hide().next().hide().next().hide();
				return false;
			}, function(){
				$(this).parent().parent().next().show().next().show().next().show().next().show().next().show();
				return false;
			});
		
			$(this).find('a').click();
		}
		else if( $(this).find('a').text() == "accessories" ){
			$(this).find('a').toggle(function(){
				$(this).parent().parent().next().hide().next().hide().next().hide();
				return false;
			}, function(){
				$(this).parent().parent().next().show().next().show().next().show();
				return false;
			});
		
			$(this).find('a').click();
		}
		else if( $(this).find('a').text() == "sale" ){
			$(this).find('a').toggle(function(){
				$(this).parent().parent().next().hide().next().hide().next().hide().next().hide().next().hide();
				return false;
			}, function(){
				$(this).parent().parent().next().show().next().show().next().show().next().show().next().show();
				return false;
			});
		
			$(this).find('a').click();
		}
	});
	


});
