
jQuery(function(){

	jQuery("#header_menu_category li").hover(function() {	
		jQuery('.submenu:first',this).css('display','block');
		var width = jQuery(this).width();
	}, function() {	
		jQuery('.submenu:first',this).css('display','none');
	});

	
	 jQuery('.focus').focus(function() {
        if(jQuery(this).val() == jQuery(this).attr('defaultValue')) {
	        jQuery(this).val('');
        }
    })
    .blur(function() {
        if(jQuery(this).val().length == 0) {
	        jQuery(this).val(jQuery(this).attr('defaultValue'));
        }
    });

	jQuery(".submenu li").hover(
		function(){
			jQuery(this).addClass("ativo");
		}, 
		function() {	
			jQuery(this).removeClass("ativo");
		}
	);
	
	
    jQuery(".barra_paginacao li:nth-child(3)").addClass("fst");
    
    jQuery("#topfive li:last-child").addClass("last");
    
	 jQuery("#header_menu_category li:last-child").addClass("last");
	
	jQuery(".submenu").each(function(){
		jQuery(this).find("li:odd").addClass('odd');
		jQuery(this).find("li:even").addClass('even');
		
		var iInit = jQuery(this).find("li").length;
		var iAnt = jQuery(this).find("li").length;
		
		
		jQuery(this).find("li").each(function(i){
			
			if(iAnt <= iInit) {
				jQuery(this).css("position","relative");
				jQuery(this).css("z-index", --iAnt);
			}
				
		});
		
		});
		
		


});


