$(document).ready(function()
						   {
	

	
	var titles = new Array();
	
	titles[1] = 'Guía de puericultura';
	titles[2] = 'La lista de los imprescindibles';
	titles[3] = 'Tu embarazo semana a <br>semana';
	titles[4] = 'Vuelta al trabajo4';
	titles[5] = 'Vuelta al trabajo5';
	
	

	
	var textos = new Array();
	
	textos[1] = '<a href="download/guia-pur.pdf" target="_blank"><img src="img/guiapuri.jpg" border="0" /></a>';
	textos[2] = '<img src="img/la-lista-foto-pq.jpg" align="left"> <span class="arial14marronbold">LA LISTA DE LOS IMPRESCINDIBLES</span><br><span class="arial14marron">Antes de que el gran día llegue no olvides tener todo preparado para su llegada. Hay muchas cosas que no te pueden faltar durante los primeros meses de vida.</span><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="#" class="toolpq">- Lista completa</a></td><td><a href="#" class="toolpq">- Para comer</a></td></tr><tr><td><a href="#" class="toolpq">- Para pasear</a></td><td<a href="#" class="toolpq">- Para viajar</a></td></tr><tr><td>&nbsp;</td><td>&nbsp;</td></tr></table>';
	textos[3] = 'Conoce al detalle tu evolución y la de tu bebé durante el embarazo.';
	textos[4] = 'Después de la baja maternal, se plantea la pregunta ¿con quién dejamos al niño?4';
	textos[5] = 'Después de la baja maternal, se plantea la pregunta ¿con quién dejamos al niño?5';
	
	
	//$("#modulo-superior-home-tooltip").hide();
	
	$(".th1").click(function()
	{
goDestacado(1);
	});
	
	
	$(".th2").click(function()
	{
goDestacado(2);
	});

	$(".th3").click(function()
	{
goDestacado(3);
	});

	$(".th4").click(function()
	{
goDestacado(4);
	});
	
	
	
	function goDestacado(n)
	{
		
		
		switch(n)
		{
			case 1:
	
				$(".th1").html('<img src="img/min-th-home-sup1-sel.gif" />');
				$(".th2").html('<img src="img/min-th-home-sup2.gif" />');
				$(".th3").html('<img src="img/min-th-home-sup3.gif" />');
				$(".th4").html('<img src="img/min-th-home-sup4.gif" />');
	  			$('#contenedore-destacados').animate({"left": "0px"}, "slow");
			break;
			case 2:
				$(".th1").html('<img src="img/min-th-home-sup1.gif" />');
				$(".th2").html('<img src="img/min-th-home-sup2-sel.gif" />');
				$(".th3").html('<img src="img/min-th-home-sup3.gif" />');
				$(".th4").html('<img src="img/min-th-home-sup4.gif" />');
	  				$('#contenedore-destacados').animate({"left": "-990px"}, "slow");
			break;
			case 3:
				$(".th1").html('<img src="img/min-th-home-sup1.gif" />');
				$(".th2").html('<img src="img/min-th-home-sup2.gif" />');
				$(".th3").html('<img src="img/min-th-home-sup3-sel.gif" />');
				$(".th4").html('<img src="img/min-th-home-sup4.gif" />');
	  			$('#contenedore-destacados').animate({"left": "-1980px"}, "slow");
			break;
			case 4:
				$(".th1").html('<img src="img/min-th-home-sup1.gif" />');
				$(".th2").html('<img src="img/min-th-home-sup2.gif" />');
				$(".th3").html('<img src="img/min-th-home-sup3.gif" />');
				$(".th4").html('<img src="img/min-th-home-sup4-sel.gif" />');
	  			$('#contenedore-destacados').animate({"left": "-2970px"}, "slow");
			break;

			
		}
		
		
	}
	
	var current = 0;
/*	
	function pasadestacado()
	{
		current++;
		if(current >3)
		{
			current = 0;
			goDestacado(current);
		}
		else
		{
			goDestacado(current);
		}
		
		
		
	}
*/	
	
	
	
	
	
  		 $("#accordionGiftLelo").msAccordion({defaultid:0});
   
   
		var flashvars = {};
		var params = { menu: "false" , wmode:"transparent"};
		var attributes = {};
 		//swfobject.embedSWF("assets/videoplayer.swf", "banner-flash", "300", "250", "10.0.0", "assets/expressInstall.swf",flashvars, params, attributes);
		
		
		jQuery('ul.sf-menu').superfish();
		
		
		$("#main-submenu").remove();
		
	/*	
		   setInterval(function() {
			pasadestacado();
		   }, 10000);
   */
	

});
