// opcion menu superior
var opcion = ' '


//onLoad=init()
function init(){
	
	//incializar capas
	DynLayerInit()//inicializar var movimiento	
	//movimiento lado Izquierdo pantalla
	//ladoIzquierdoPantalla()
	
	
}




//mostrar opcion menu superior
function mostrar(obj, nom, x1, x2)
{
	//solo si no se repite opcion
	if ( nom != opcion)
	{
		//si no hay ninguno en movimiento
		if ((estrenos.glideActive != true) && (video.glideActive != true) && (sales.glideActive != true) && (anillos.glideActive != true) && (prensa.glideActive != true))
		{
			
			// esconder menu opcion anterior
			switch(opcion)
			{
				case 'estrenos': esconder( estrenos, 'estrenos')
										break;
				case 'video': esconder( video, 'video' )	
										break;
				case 'sales': esconder( sales, 'sales' )
										break;
				case 'anillos': esconder( anillos, 'anillos' )
										break;
				case 'prensa': esconder( prensa, 'prensa')
			}
	
			//guardar ultima opcion
			opcion = nom
	
			//mostrar
			obj.moveTo(800,null)
			obj.show()
			obj.glideTo("slow","fast", x1, 33, 5, 50, nom + '.glideTo("fast","slow",' + x2 + ' ,33,15,50)'  )
		}//end if glideActive
	}// end if
}


//oculatar opcion menu superior
function esconder(obj, nom)
{
		obj.glideTo("slow","fast", 800, 33, 5, 50, nom+'.hide()')	
}



/**********************************************************************************************/








