var moviola=null,efectos=new Array(),ciudades=["Berlin","Madrid","Riga","Barcelona","Rotterdam","Palermo","Valencia"],destellosMovCiudades=new Hash(),tablaDestellosCiudades=new Hash({btBerlin:"contBerlin",btMadrid:"contMadrid",btRiga:"contRiga",btBarcelona:"contBarcelona",btRotterdam:"contRotterdam",btPalermo:"contPalermo",btValencia:"contValencia"});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("colInfoRotterdam",new GestorDestellos.Destello("contRotterdam")).set("colInfoPalermo",new GestorDestellos.Destello("contPalermo")).set("colInfoValencia",new GestorDestellos.Destello("contValencia"));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])}};