// JavaScript Document
// HOVER MENU EXPLORER 6
function ieHover()
{
	var nav = document.getElementById("menu");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++)
		{
			nodes[i].onmouseover = function() 
			{
				this.className += " hover";
			}
			nodes[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}

window.onload=ieHover;


$(document).ready(function(){	

//SLIDE DE LA HOME
	$("#slider").easySlider({
	auto: true, 
	continuous: true
 	});

//DESPLEGABLE DE LOS SERVICIOS SIDEBAR

	//$("dd:not(:first)").hide();
		$("div.servicios-boton h3").click(function(){
			$("div.servicios-boton h3").removeClass("active");
			$(this).toggleClass("active");
			$("div.servicios-list:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			return false;
		});


//ACORDEON HORIZONTAL SERVICIOS
    lastBlock = $("#box-1");
    maxWidth = 426;
    minWidth = 196;	

    $('#release-content ul li div').hover(
    function(){
    $(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
	$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
	lastBlock = this;
	});

//DESPLEGABLE UTILIDADES

	//$("dd:not(:first)").hide();
//		$("#utilidades-manuales").css("display","block");
//		$(".utilidades-boton h2").click(function(){
//			$(".utilidades-boton h2").removeClass("active");
//			$(this).toggleClass("active");
//			$(".utilidades-list:visible").slideUp("slow");
//			$(this).parent().next().slideDown("slow");
//			return false;
//		});
		
		$(".utilidades-boton h2").click(function(){
			$(".utilidades-boton h2").removeClass("active");
			$(this).toggleClass("active");
			$(".utilidades-list:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			return false;
		});

		
		$(".utilidades-sub-boton h3").click(function(){
			$(".utilidades-sub-boton h3").removeClass("active");
			$(this).toggleClass("active");
			$(".utilidades-sub-list:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			return false;
		});

});

