tou=new Array();auto=new Array();news=new Array();adverSite="ad.es.doubleclick.net";advertPage="viamichelin.es";actForm="map";_FwkRoot="/vmw2";cV="esp";function showHPAddress(country,add,cp,city,np){_obj=np;_country=country;_add=add;_cp=cp;_city=city;showHPAddressLayer();};function showHPAddressLayer(){if(typeof(cf)=="undefined"){zA.dI("moduleLoaded",window,"showHPAddressLayer",true);zA.lc(_FwkRoot+"/fwk/ihm/PopingLayerObject.js");}else{if(typeof(AddressesFromMyMichelinLayer)=="undefined"){zA.dI("moduleLoaded",window,"showHPAddressLayer",true);zA.lc("../../js/cmn/AddressesFromMyMichelinLayerObject.js");zA.oW="";}else{dp=new AddressesFromMyMichelinLayer("layer_addressMyMichelin",_obj,300,new Array(),document.body,document.getElementsByName(_add)[0],document.getElementsByName(_cp)[0],document.getElementsByName(_city)[0],document.getElementsByName(_country)[0]);dp.show();}}};function subj(im,titre,sj){this.im=im;this.titre=titre;this.sj=sj;};uo=false;function rotate(){if(!uo){var touRnd=parseInt(Math.random()*tou.length);var autoRnd=parseInt(Math.random()*auto.length);for(var i=0;i<touRnd;i++)tou.push(tou.shift());for(var i=0;i<autoRnd;i++)auto.push(auto.shift());uo=true;}else{tou.push(tou.shift());auto.push(auto.shift());}for(var i=0;i<2;i++){document.getElementById("tou"+(i+1)).innerHTML="<a href='"+tou[i].sj+"'><img src='"+tou[i].im+"' style='float:left'/></a><a href='"+tou[i].sj+"'>"+tou[i].titre+"</a>";document.getElementById("auto"+(i+1)).innerHTML="<a href='"+auto[i].sj+"'><img src='"+auto[i].im+"' style='float:left'/></a><a href='"+auto[i].sj+"'>"+auto[i].titre+"</a>";}setTimeout("rotate()",5000);};function writer(n,t){wg=news[n].titre.substring(0,t);document.getElementById("newsDiv").innerHTML=wg;if(news[n].sj!=""){document.getElementById("newsDiv").style.cursor="pointer";document.getElementById("newsDiv").urlToGo=news[n].sj;document.getElementById("newsDiv").onclick=function(){location.href=this.urlToGo;};document.getElementById("newsDiv").onmouseover=function(){this.style.textDecoration="underline";};document.getElementById("newsDiv").onmouseout=function(){this.style.textDecoration="none";};}else{document.getElementById("newsDiv").style.textDecoration="none";document.getElementById("newsDiv").style.cursor="default";document.getElementById("newsDiv").urlToGo="";document.getElementById("newsDiv").onclick=function(){};document.getElementById("newsDiv").onmouseover=function(){};document.getElementById("newsDiv").onmouseout=function(){};}if(wg.length<news[n].titre.length)setTimeout("writer("+n+","+(t+1)+")",50);else{news.push(news.shift());setTimeout("writer(0,1)",1000);}};function addToFavorite(){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel("ViaMichelin : guias turisticas, mapas carreteras, callejero","http://www.viamichelin.es/viamichelin/esp/tpl/hme/MaHomePage.htm","");}if(document.all)window.external.AddFavorite("http://www.viamichelin.es/viamichelin/esp/tpl/hme/MaHomePage.htm","ViaMichelin : guias turisticas, mapas carreteras, callejero");};function testAll(frm){if(frm!=""){el=document.forms["vmFrm"].elements;if(frm=="iti"){el=document.forms["vmFrm1"].elements;if(testAddressZipAndCity(el["strStartAddress"],el["strStartCity"],el["strStartCP"],"vmFrm1","Introduzca un campo como mínimo para afinar su búsqueda.")){if(testAddressZipAndCity(el["strDestAddress"],el["strDestCity"],el["strDestCP"],"vmFrm1","Introduzca un campo como mínimo para afinar su búsqueda."))return true;else return false;}else return false;}if(frm=="map"){if(el["BP"])if(el["BP"].checked)document.forms["vmFrm"].action="../../dyn/controller/mapHomePage";if(testAddressZipAndCity(el["strAddress"],el["strLocation"],el["strCP"],"vmFrm","Introduzca un campo como mínimo para afinar su búsqueda."))return true;else return false;}}};function testAddressZipAndCity(address,city,zip,frm,msg){if(address.value==""&&city.value==""&&zip.value==""){alert(msg);address.focus();return false;}else return true};function testFill(o){if(o.value==''){o.value=initialValues[o.name];o.style.fontWeight="normal";o.style.color="#7F7FB2";}else if(o.value!=initialValues[o.name]){o.style.fontWeight="bold";o.style.color="#000066";}};function MM_openBrWindow(rx){newWin=window.open(rx,'Selections','width=330,height=305,screenX=100,screenY=100,scrollbars=auto,status=no,resizable=yes,left=100, top=100,alwaysRaised=yes');};function initCountries(o,frm){if(document.forms[frm].elements[o]){o=document.forms[frm].elements[o];o.options[0]=new Option('Albania','1025337');o.options[1]=new Option('Alemania','240');o.options[2]=new Option('Andorra','856');o.options[3]=new Option('Austria','106');o.options[4]=new Option('Belarús','1794');o.options[5]=new Option('Bélgica','311');o.options[6]=new Option('Bosnia y Herzegovina','1025343');o.options[7]=new Option('Bulgaria','1025340');o.options[8]=new Option('Canadá','1145795');o.options[9]=new Option('Checa, República','1694');o.options[10]=new Option('Croacia','1752');o.options[11]=new Option('Dinamarca','1473');o.options[12]=new Option('Eslovaquia','1697');o.options[13]=new Option('Eslovenia','1746');o.options[14]=new Option('España','844');o.options[14].selected=true;o.options[15]=new Option('Estados Unidos','1145799');o.options[16]=new Option('Estonia','1860861');o.options[17]=new Option('Europa','EUR');o.options[18]=new Option('Finlandia','1792');o.options[19]=new Option('Francia','1424');o.options[20]=new Option('Grecia','1945835');o.options[21]=new Option('Hungría','1741');o.options[22]=new Option('Irlanda','919');o.options[23]=new Option('Italia','612');o.options[24]=new Option('Letonia','1851089');o.options[25]=new Option('Liechtenstein','108');o.options[26]=new Option('Lituania','1851066');o.options[27]=new Option('Luxemburgo','247');o.options[28]=new Option('Macedonia','1025334');o.options[29]=new Option('Moldova','1025352');o.options[30]=new Option('Mónaco','852');o.options[31]=new Option('Noruega','1574');o.options[32]=new Option('Países Bajos','285');o.options[33]=new Option('Polonia','1743');o.options[34]=new Option('Portugal','669');o.options[35]=new Option('Reino Unido','1138');o.options[36]=new Option('Rumania','1025349');o.options[37]=new Option('Rusia','1851058');o.options[38]=new Option('San Marino','318');o.options[39]=new Option('Serbia y Montenegro','1025346');o.options[40]=new Option('Suecia','1507');o.options[41]=new Option('Suiza','185');o.options[42]=new Option('Turquía','2059154');o.options[43]=new Option('Ucrania','1749');o.options[44]=new Option('Vaticano','2066810');}};function jumpTo(id){top.parent.location.href=document.getElementById(id).href;};function _getPNG(vI,src,width,height,style){if((document.all)&&(navigator.userAgent.indexOf("MSIE")!=-1)){var we="<img src='"+vI+"' style=\""+"width:"+width+"px; height:"+height+"px;"+style+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src=\'"+src+"\', sizingMethod='scale');\"/>";return we;}else return "<img src='"+src+"' "+((style!="")?"style='"+style+"'":"")+"/>";};var _menus=new Array();_menus["menuLeftCorner"]=new Image();_menus["menuLeftCorner"].src="../../img/cmn/menuLeftCorner.gif";_menus["menuLeftCornerON"]=new Image();_menus["menuLeftCornerON"].src="../../img/cmn/menuLeftCornerON.gif";_menus["menuRightCorner"]=new Image();_menus["menuRightCorner"].src="../../img/cmn/menuRightCorner.gif";_menus["menuRightCornerON"]=new Image();_menus["menuRightCornerON"].src="../../img/cmn/menuRightCornerON.gif";function showSubMenu(id,np){clearTimeout(_menuTimer);_clearMenus();document.getElementById(id).style.top=findPos(np)[1]+np.offsetHeight;document.getElementById(id).style.display="";if((id!="subTou")&&(id!="subAuto"))document.getElementById(id).style.left=findPos(np)[0]+np.offsetWidth-document.getElementById(id).offsetWidth+((id=="subNav")?2:0);else document.getElementById(id).style.left=findPos(np)[0]+(np.offsetWidth/2)-(document.getElementById(id).offsetWidth/2);_isOver=id;};var _menuTimer=null;function hideSubMenu(){clearTimeout(_menuTimer);_menuTimer=setTimeout("_clearMenus();",500);};function findPos(np){if(np.offsetParent){for(var or=0,os=0;np.offsetParent;np=np.offsetParent){or+=np.offsetLeft;os+=np.offsetTop;}return[or,os];}else{return[np.x,np.y];}};function _clearMenus(){document.getElementById("subTou").style.display="none";document.getElementById("subAuto").style.display="none";document.getElementById("subNav").style.display="none";};function _menu(np,vQ,imId,im){np.className=((np.className=="menuon")?"":"menuon");if(vQ)document.getElementById(vQ).className=((np.className=="menuon")?"menuon":"");if(imId)document.getElementById(imId).src=_menus[im+(((np.className=="menuon")?"ON":""))].src;};function autoCountry(element,value){i=0;while(i<element.options.length){if(element.options[i].value==value){element.selectedIndex=i;i=element.options.length;}i++;}};function statsLoader(){};if(document.all)attachEvent("onload",statsLoader);else window.addEventListener("load",statsLoader,false);function ifResize(){};function readCookie(){}