var baseJS=getBaseJS();var lang=location.href.substr(location.href.indexOf("/viamichelin/")+13,3);if(typeof(_lang)!="undefined")baseJS+=_lang;else baseJS+=lang;function loadJSEPath(){document.write("<"+"script src='../../jse/version.js?rnd="+(new Date()).getTime()+"'><"+"/script>");};function loadDynHP(){document.write("<"+"script src='"+JSEPath+"hme/dynHomePageV8.js'><"+"/script>");};function loadHP(){document.write("<"+"script src='"+JSEPath+"hme/homePageV8.3.js'><"+"/script>");};function loadJSE(){JSEIFramedPath=JSEPath;JSEPath=JSEPath.replace("../..",baseJS);document.write("<"+"script src='"+JSEPath+"JSE/JSE.js'><"+"/script>");};function loadAdlink(){document.write("<"+"script src='"+JSEPath+"hme/AdlinkhmeV8.js'><"+"/script>");};function getBaseJS(){var strHost=location.hostname;var strPort="";if(location.port!="")strPort=":"+location.port;if((strHost.indexOf("viamichelin")!=-1)&&(strHost.indexOf("test")==-1))return "http://js.viamichelin.com/viamichelin/";else return "http://"+strHost+strPort+"/viamichelin/";}
