var x;
x=$(document);
x.ready(inicializarEventos);


function inicializarEventos()
{




 //// para los menus mostrar y sus medidas



//$("#bt2").mouseover(function(){						 
//							   $(".botones").css("background-image","url(imgs/bx.png)");
//							   $(".botones").css("background-repeat","no-repeat");
//	                           $(".botones").css("color","#183883");
//							   
//							   $("#bt2").css("background-image","url(imgs/bx2.png)");
//							   $("#bt2").css("background-repeat","no-repeat");
//	                           $("#bt2").css("color","#000");
//	                      							   
//							   $("#lt2").css("width","400px");
//							   $("#lt2").css("height","270px");
//							   $("#lt2").css("background-image","url(imgs/lita1.png)");
//							   $("#lt2").css("left","216px");
//							   $("#lt2").show("slow");
//                               $("#lt1").hide(1);$("#lt3").hide(1);$("#lt4").hide(1);$("#lt5").hide(1);$("#lt6").hide(1);$("#lt7").hide(1);				                              })

$("#bt3").mouseover(function(){
							   
							   $(".botones").css("background-image","url(imgs/bx.png)");
							   $(".botones").css("background-repeat","no-repeat");
	                           $(".botones").css("color","#183883");
							   
							   $("#bt3").css("background-image","url(imgs/bx2.png)");
							   $("#bt3").css("background-repeat","no-repeat");
	                           $("#bt3").css("color","#000");
							   
							   $("#lt3").css("width","480px");
							   $("#lt3").css("height","320px");

							   
							   $("#lt3").css("background-image","url(imgs/lita2.png)");
							  
							   $("#lt3").css("left","324px");
							   $("#lt3").show();
							   


 							   $("#lt1").hide(1);$("#lt2").hide(1);$("#lt4").hide(1);$("#lt5").hide(1);$("#lt6").hide(1);$("#lt7").hide(1);																										
							  })

$("#bt4").mouseover(function(){
							 
							   $(".botones").css("background-image","url(imgs/bx.png)");
							   $(".botones").css("background-repeat","no-repeat");
	                           $(".botones").css("color","#183883");
							 
							   $("#bt4").css("background-image","url(imgs/bx2.png)");
							   $("#bt4").css("background-repeat","no-repeat");
	                           $("#bt4").css("color","#000");
							 
							   $("#lt4").css("width","480px");
							   $("#lt4").css("height","320px"); 
							   $("#lt4").css("background-image","url(imgs/lita2.png)");
							   $("#lt4").css("left","410px");
							   $("#lt4").show();
							   $("#lt1").hide(1);$("#lt2").hide(1);$("#lt3").hide(1);$("#lt5").hide(1);$("#lt6").hide(1);$("#lt7").hide(1);																											
							  })

$("#bt5").mouseover(function(){
							 
							   $(".botones").css("background-image","url(imgs/bx.png)");
							   $(".botones").css("background-repeat","no-repeat");
	                           $(".botones").css("color","#183883");
							 
							   $("#bt5").css("background-image","url(imgs/bx2.png)");
							   $("#bt5").css("background-repeat","no-repeat");
	                           $("#bt5").css("color","#000");
							 
							   $("#lt5").css("width","480px");
							   $("#lt5").css("height","320px");
							   $("#lt5").css("background-image","url(imgs/lita2.png)");
							   $("#lt5").css("left","480px");
							   $("#lt5").show();
							   $("#lt1").hide(1);$("#lt2").hide(1);$("#lt3").hide(1);$("#lt4").hide(1);$("#lt6").hide(1);$("#lt7").hide(1);																					
							  })

//$("#bt7").mouseover(function(){
//							 
//							   $(".botones").css("background-image","url(imgs/bx.png)");
//							   $(".botones").css("background-repeat","no-repeat");
//	                           $(".botones").css("color","#183883");
//							 
//							   $("#bt7").css("background-image","url(imgs/bx2.png)");
//							   $("#bt7").css("background-repeat","no-repeat");
//	                           $("#bt7").css("color","#000");
//							 
//							   $("#lt7").css("width","400px");
//							   $("#lt7").css("height","270px");
//							   $("#lt7").css("background-image","url(imgs/lita1.png)");
//							   $("#lt7").css("left","636px");
//							   $("#lt7").show("slow");
//							   $("#lt1").hide(1);$("#lt2").hide(1);$("#lt3").hide(1);$("#lt4").hide(1);$("#lt5").hide(1);$("#lt6").hide(1);																									
//							  })
  


$("#encabezado").mouseover(function(){$("#lt2").hide(1);
							   $("#bt2").css("background-image","url(imgs/bx.png)");
							   $("#bt2").css("background-repeat","no-repeat");
	                           $("#bt2").css("color","#183883");
											 })
$("#encabezado").mouseover(function(){$("#lt3").hide(1);
							   $("#bt3").css("background-image","url(imgs/bx.png)");
							   $("#bt3").css("background-repeat","no-repeat");
	                           $("#bt3").css("color","#183883");			 
											 })

$("#encabezado").mouseover(function(){$("#lt4").hide(1);
							   $("#bt4").css("background-image","url(imgs/bx.png)");			 
							   $("#bt4").css("background-repeat","no-repeat");
	                           $("#bt4").css("color","#183883");
											 })

$("#encabezado").mouseover(function(){$("#lt5").hide(1);
							  $("#bt5").css("background-image","url(imgs/bx.png)");
							  $("#bt5").css("background-repeat","no-repeat");
	                          $("#bt5").css("color","#183883");			 
											 })
$("#encabezado").mouseover(function(){$("#lt7").hide(1);
							   $("#bt7").css("background-image","url(imgs/bx.png)");
							   $("#bt7").css("background-repeat","no-repeat");
	                           $("#bt7").css("color","#183883");			 
											 })







$("#mioframe").mouseover(function(){$("#lt2").hide(0);
							   $("#bt2").css("background-image","url(imgs/bx.png)");
							   $("#bt2").css("background-repeat","no-repeat");
	                           $("#bt2").css("color","#183883");
											 })
$("#mioframe").mouseover(function(){$("#lt3").hide(1);
							   $("#bt3").css("background-image","url(imgs/bx.png)");
							   $("#bt3").css("background-repeat","no-repeat");
	                           $("#bt3").css("color","#183883");			 
											 })

$("#mioframe").mouseover(function(){$("#lt4").hide(1);
							   $("#bt4").css("background-image","url(imgs/bx.png)");			 
							   $("#bt4").css("background-repeat","no-repeat");
	                           $("#bt4").css("color","#183883");
											 })

$("#mioframe").mouseover(function(){$("#lt5").hide(1);
							  $("#bt5").css("background-image","url(imgs/bx.png)");
							  $("#bt5").css("background-repeat","no-repeat");
	                          $("#bt5").css("color","#183883");			 
											 })
$("#mioframe").mouseover(function(){$("#lt7").hide(1);
							   $("#bt7").css("background-image","url(imgs/bx.png)");
							   $("#bt7").css("background-repeat","no-repeat");
	                           $("#bt7").css("color","#183883");			 
											 })


        /////////////////EVNTOS DEL MENU NAVEGACIONN
		$("#bt1").click(function(){
								 window.open("index.php","_self");
								 })
		
		$("#bt7").click(function(){
								 window.open("plantillas/select_dependientes.php","mioframe");
								 })
		$("#port1").click(function(){
								 window.open("http://www.d9salon.com");
								 })
		$("#port2").click(function(){
								 window.open("http://www.sergemet.com");
								 })
		$("#port3").click(function(){
								 window.open("http://www.marfaperu.com/");
								 })
		$("#port4").click(function(){
								 window.open("http://www.maloko.com.pe/");
								 })
		
		$("#vermas").click(function(){
								 window.open("plantillas/select_dependientes.php","mioframe");
		 })
		
        $("#cgmh").click(function(){
								 window.open("http://www.cgmholdingbussines.com");
		})
		
		$("#pack1").click(function(){
								 window.open("promo1.html","mioframe");
		})
		$("#pack2").click(function(){
								 window.open("promo2.html","mioframe");
		})
				
	    $("#pack3").click(function(){
								 window.open("promo3.html","mioframe");
		})
		$("#pack4").click(function(){
								 window.open("promo.html","mioframe");
		})
		
		/////////////////////// Servicios Web  ////////
		$("#serv1").click(function(){
								 window.open("servicios/disenoweb.html","mioframe");
		})
		$("#serv2").click(function(){
								 window.open("servicios/traduweb.html","mioframe");
		})
		$("#serv3").click(function(){
								 window.open("servicios/rediweb.html","mioframe");
		})
		$("#serv4").click(function(){
								 window.open("servicios/actuaweb.html","mioframe");
		})
		$("#serv5").click(function(){
								 window.open("servicios/posiweb.html","mioframe");
		})
		$("#serv6").click(function(){
								 window.open("servicios/soporweb.html","mioframe");
		})

}
