// JavaScript Document
$(document).ready(function (){ 
		$("#menu a").mouseover(function (){
			$("#menu").css("background-position", "0px");							 
			$(this).fadeTo(250, 0);	
				
		});
		$("#menu a").mouseout(function (){
			$(this).fadeTo(120, 1);			
		});

		$("#menuproductos").mouseover(function()
		{
			
			var zIndexNumber = 1000;  
			$('DIV').each(function(index) {
				//alert(index + ': ' + $(this).html());
				$(this).css("zIndex",zIndexNumber);
				$(this).show();
				zIndexNumber -= 10;  
			  });
		});
		$("#menuproductos").mouseout(function()
		{
			$("#menusubproductos",this).hide();
		});


		$("#secos").css("cursor","pointer");
		$("#secos").click(function()
		{
			location.href='productos-pedigree.html?int=1';
		});

		$("#humedos").css("cursor","pointer");
		$("#humedos").click(function()
		{
			location.href='productos-humedos.html?int=1';
		});

		if(location.href.indexOf("int")>-1)
		{
			
			$("#menusubproductos",this).hide();
		}
		else
		{
			var zIndexNumber = 1000;  
			$('DIV').each(function(index) {
				//alert(index + ': ' + $(this).html());
				$(this).css("zIndex",zIndexNumber);
				$(this).show();
				zIndexNumber -= 10;  
			  });
		}
	});