var moviola=null,efectos=new Array(),ciudades=["Berlin","Madrid","Riga","Barcelona","Bilbao","Palermo","Valencia","Mallorca"],destellosMovCiudades=new Hash(),tablaDestellosCiudades=new Hash({btBerlin:"contBerlin",btMadrid:"contMadrid",btRiga:"contRiga",btBarcelona:"contBarcelona",btBilbao:"contBilbao",btPalermo:"contPalermo",btValencia:"contValencia",btMallorca:"contMallorca"});function fixLayouts(){if(Browser.Engine.trident5==true){$("moviola").setStyle("height","96%");$$(".colInfo").setStyle("width","19.5%")}if(Browser.Engine.webkit==true){$("moviola").setStyle("height","96%");$$(".colInfo").setStyle("height","95%")}}window.addEvent("domready",function(){fixLayouts();function A(B){B.stop();moviolaCiudades.centrar(this.get("href").split("#")[1])}$$(".btCiudad").addEvent("click",A);moviolaCiudades=new GestorMoviolas.Moviola("contInfo",{barrasScroll:true,duracion:700});destellosMovCiudades.set("colInfoBerlin",new GestorDestellos.Destello("contBerlin")).set("colInfoMadrid",new GestorDestellos.Destello("contMadrid")).set("colInfoRiga",new GestorDestellos.Destello("contRiga")).set("colInfoBarcelona",new GestorDestellos.Destello("contBarcelona")).set("colInfoBilbao",new GestorDestellos.Destello("contBilbao")).set("colInfoPalermo",new GestorDestellos.Destello("contPalermo")).set("colInfoValencia",new GestorDestellos.Destello("contValencia")).set("colInfoMallorca",new GestorDestellos.Destello("contMallorca"));moviolaCiudades.addEvent("centrado",function(B){destellosMovCiudades[B].destellear()})});function centrarCiudad(A){nomCiudad=this.id.substr(2);obDestino=$$("#colInfo"+nomCiudad);if(obDestino.length>0){moviola.toElement(obDestino[0])}};
