			$(document).ready(inicializarEventos);

			function inicializarEventos() {
				// inicia las transiciones 
				//$("#logo_sushihome").animate({"opacity": "+=1"}, 2000, function() { desplegar_caja_naranja(); desplegar_imagen_fondo1() });
				desplegar_caja_naranja(); 
				desplegar_imagen_fondo1();
				$(".opcion2").hover( function () { $("#submenu0").css("display", "none"); $("#submenu:hidden:first").fadeIn("slow") } );
				$('#submenu').mouseleave(function() { $("#submenu").css("display", "none") } );
				$(".opcion1").hover( function () { $("#submenu").css("display", "none"); $("#submenu0:hidden:first").fadeIn("slow") } );
				$('#submenu0').mouseleave(function() { $("#submenu0").css("display", "none") } );
			}
			
		
			function desplegar_imagen_fondo1() {
				$("#imagen_fondo1:hidden:first").fadeIn("fast");
			  $("#imagen_fondo1").animate({"margin-Left": "-=800"}, 2000, function() { desplegar_imagen_fondo2(); });
			}
			function desplegar_imagen_fondo2() {
			  $("#imagen_fondo2:hidden:first").fadeIn("fast");
			  $("#imagen_fondo2").animate({"margin-Left": "-=600"}, 2000, function() { desplegar_imagen_fondo3(); });
			}
			function desplegar_imagen_fondo3() {
			  $("#imagen_fondo3:hidden:first").fadeIn("fast");
			  $("#imagen_fondo3").animate({"margin-Left": "-=400"}, 2000, function() { desplegar_imagen_fondo4(); });
			}
			function desplegar_imagen_fondo4() {
			  $("#imagen_fondo4:hidden:first").fadeIn("fast");
			  $("#imagen_fondo4").animate({"margin-Left": "-=200"}, 2000, function() { desplegar_imagen_fondo5(); });
			}
			function desplegar_imagen_fondo5() {
			  $("#imagen_fondo5:hidden:first").fadeIn("fast");
			}


			function desplegar_caja_naranja() {
			  $("#caja_naranja").animate({"width": "+=286"}, 2000, function() { mover_caja_naranja(); });
			}
			function mover_caja_naranja() {
			  $("#caja_naranja").animate({"margin-Left": "+=686"}, 2000, function() { desplegar_caja_roja(); });
			}

			function desplegar_caja_roja() {
			  $("#caja_roja").animate({"width": "+=286"}, 2000, function() { mover_caja_roja(); });
			}
			function mover_caja_roja() {
			  $("#caja_roja").animate({"margin-Left": "+=400"}, 2000, function() { mostrar_sushinews(); desplegar_opcion1(); mostrar_sushi_xino(); });
			}

			function mostrar_sushinews() {
				$("#sushinews:hidden:first").fadeIn("slow");
				$("#sushinews_img:hidden:first").fadeIn("slow");
			}
			function desplegar_opcion1() {
			  $(".opcion1").animate({"height": "+=60"}, 200, function() { desplegar_opcion2() });
			}
			function desplegar_opcion2() {
			  $(".opcion2").animate({"height": "+=60"}, 200, function() { desplegar_opcion3() });
			}
			function desplegar_opcion3() {
			  $(".opcion3").animate({"height": "+=60"}, 200, function() { desplegar_opcion4() });
			}
			function desplegar_opcion4() {
			  $(".opcion4").animate({"height": "+=60"}, 200, function() { desplegar_opcion5() });
			}
			function desplegar_opcion5() {
			  $(".opcion5").animate({"height": "+=60"}, 200, function() { desplegar_opcion6() });
			}
			function desplegar_opcion6() {
			  $(".opcion6").animate({"height": "+=60"}, 200, function() {});
			}
			function mostrar_sushi_xino() {
				$("#sushi_xino:hidden:first").fadeIn("slow");
			}

			
			function salida(idpagina) {
				  $("#sushinews").fadeOut("slow");
					$("#sushinews_img").fadeOut("slow");
					$("#caja_roja").animate({"margin-Left": "-=203"}, 2000, function() { document.location.href='index.asp?ra_id='+idpagina; });
				  
			}

				
			

