// JavaScript Document
//include("jquery-1.4.2.min.js");

$(document).ready(function(e){
						   
	$("a").click(function(e){
		e.preventDefault();
	})

/* INTRO ---------------------------------------------------------------*/

/*	if (window.history.length>1)
		$("#intro").css("display","none");
	else
	{
		$("#intro").css("visibility","visible");
		$("#intro img").fadeOut("fast");
		$("#intro img").fadeIn("fast");
	}
*/

	$("#esp").click(function(){
		$("#intro").fadeOut();		
	});

	$("#eng").click(function(){
		$("#intro").fadeOut();
		window.location='ingles/index.php';
	});

	$("#esp, #eng").mouseenter(function(e){
		$(this).css("color","#3dd");
	});

	$("#esp, #eng").mouseleave(function(e){
		$(this).css("color","#999");
	});
/*FIN INTRO ------------------------------------------------------------------*/


	$(".boton1").mouseover(function(e){
		$(this).css("color","#37f");
		$(this).children("li").children("a").css("color","#37f");
		$(this).css("background-color","#fff");						  
	});


	$(".boton1").mouseout(function(e){
		$(this).css("background-color","#F8F8F8");					
		$(this).children("li").children("a").css("color","#37386C");
		$(this).css("color","#37386C");
	});


	$(".boton1").click(function(e){
		window.location = ($(this).children("li").children("a").attr("href"));
	});



/* BARRA DE IDIOMAS -----------------------------------------------------*/
	$(".idioma p").mouseover(function(){
		$(this).css("color","#adf");
	});

	$(".idioma p").mouseout(function(){
		$(this).css("color","#ccc");
	});

/* ---------------------------------------------------------------------*/
	$(".loginclientes form").attr("action", "")
/* ----------------------------------------------------------------------*/

	$(".proyectos_realizados").click(function(){
		window.location = ($(this).parent("a").attr("href"));
	});
	
	$(".linklogosclientes").click(function(){
		window.open($(this).parent("a").attr("href"),'_blank');						  
	});

	$("#clientescol1, #clientescol2").children("li").children("a").toggleClass("linkclientes");

	$(".linkclientes").click(function(){
		window.open($(this).attr("href"),'_blank');						  
	});
	
	
/* BOTONES DE SERVICIOS ------------------------------------------------------------------------- */
		
	$("#botonservicios").bind({							  
		mouseover:function(){
			$(this).css("color","#68a");
			$(this).css("background","#eee");			
		},
		mouseout: function(){
			$(this).css("color","#069");			
			$(this).css("background","none");						
		}
	});
	
	$("#botonservicios #contenidoservicios li").bind({							  
		mouseover:function(){
			$(this).css("color","#fff");
			$(this).css("background","#9cf");			
		},
		mouseout: function(){
			$(this).css("color","#069");			
			$(this).css("background","none");						
		},

		click: function(e){
			window.location=$(this).children().attr("href");
		}

	});
	
	
	$("#botonservicios").click(function(){
		$("#botonservicios #contenidoservicios").slideToggle();
									   
	});
		

});