// JavaScript Document
/*	Variable global para la transicion*/
	var tiempo_cambio = 3000;
	var indice_cambio = 0;
	var timer;
	var myGallery;
	

	function inicializar_timer()
	{
		var tiempo = 40000;
		/*jQuery('.h2_principal').css({opacity: 0}).css({visibility: "visible"});
		jQuery('.h2_principal').animate({opacity: 100},tiempo);*/
		
		jQuery('.h2_principal').css("width","0");
		jQuery('.h2_principal').animate({"width":"920px"});
		
		/*jQuery('#menu').css("width","0");
		jQuery('#menu').animate({"width":"980px"});*/
		
		/*jQuery('#menu').css({opacity: 0}).css({visibility: "visible"});
		jQuery('#menu').animate({opacity: 100},tiempo);*/
		//jQuery('.h2_principal').css({opacity: 0, visibility: "visible"}).animate({opacity: 100},"slow");
		
		timer = setInterval("actualizar_detalle()", tiempo_cambio);
		
		function startGallery() {
				myGallery = new gallery($('myGallery'), {
					timed: true,
					showCarousel: false,
					useReMooz: false,
					embedLinks: false,
					manualData: global_imagesArray,
					linkSelector: "a.open"
				});
			}
		
		if (global_carrusel == true)
		{
			startGallery();
		}
		
		//jQuery('.h2_principal').css("visibility","visible");	
		

	}
	
	function actualizar_detalle()
	{		
		clearInterval(timer);
		jQuery('#container_cargador').css("visibility","hidden");			
	}

