\n'); DetectUnityVersionActiveX(); } if(version) { pluginInfo.setVersion("shockwave", version); } pluginInfo.setVersion("flash", CheckFlashInstalled()) if(!installedUnityVersion) { var uInfo = DetectUnityVersion(); installedUnityVersion = uInfo.vU; } if(installedUnityVersion) { pluginInfo.setVersion("unity", installedUnityVersion); } function fixHeight() { if(bV.OS != "iOS") { var fInfo = getFrameInfo(self); doExpandWin(fInfo.offsetHeight); } } function adjustGP(h) { var gp = document.getElementById("glasspane"); gp.style.height = h + "px"; simpleTrace("adjustGP()",h); } function expandWin(delta) { var h = 680; if(delta > 0) h += delta; doExpandWin(h); } function doExpandWin(h) { var f_bpm = typeof(f_bpmodule.frameElement)!="undefined"?f_bpmodule.frameElement:f_bpmodule; f_bpm.style.height = (h - 18) + "px"; adjustGP(h); } function getFrameInfo(win) { doc = win.document; var myWidth = 0, myHeight = 0; if(typeof( win.innerWidth ) == 'number' ) { //Non-IE myWidth = win.innerWidth; myHeight = win.innerHeight; } else if( doc.documentElement && ( doc.documentElement.clientWidth || doc.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode' myWidth = doc.documentElement.clientWidth; myHeight = doc.documentElement.clientHeight; } else if( doc.body && ( doc.body.clientWidth || doc.body.clientHeight ) ) { //IE 4 compatible myWidth = doc.body.clientWidth; myHeight = doc.body.clientHeight; } return {offsetWidth:myWidth, offsetHeight:myHeight}; } var fIdx=0; var lastFIdx=-1; var modNames = new Array("controller_ruic","applicationmenu_top_menu_top","applicationmenu_bottom_menu_bottom","controller_duic"); function initApp(fIdx) { var f = null; if(fIdx == 2) fIdx = 3; if(fIdx > -1 && fIdx < modNames.length) { f = eval(topPath + "." + frameIdx[modNames[fIdx]].path); if(f && f.location.href.indexOf("about:blank") > -1) { switch(fIdx) { case 0: var url = '/icc_euro/ui/pva/controller/uic_res.jsp;jsessionid=3D9B29E6690D97432AD230437B354953.icc_euro?LANG=cc&RT=1337326654313&flashInstalled=' + pluginInfo.isInstalled("flash") + '&shockwaveInstalled=' + pluginInfo.isInstalled("shockwave"); url += '&vShW=' + pluginInfo.shockwave.version + '&vFl=' + pluginInfo.flash.version + '&unityInstalled=' + pluginInfo.isInstalled("unity") + '&vUnity=' + pluginInfo.unity.version; i3d_update_necessary = i3d_update_necessary && pluginInfo.isInstalled("shockwave"); url += "&BV=" + bV.version + "&BOS=" + bV.OS + "&BORG=" + bV.org + "&BF=" + bV.family + "&BADR=" + bV.addressCap; f.location.href = url; fixHeight(); if(bV.OS != "iOS") { var fInt = document.createElement("IFRAME"); fInt.id="f_interior3d"; fInt.className = "interior3d_level_3"; fInt.name="f_interior3d"; fInt.src="/icc_euro/ui/pva/empty.html"; fInt.scrolling="no"; document.body.appendChild(fInt); } simpleTrace("initApp()", "Shockwave: " + (pluginInfo.isInstalled("shockwave")? "": "Wrong version - ") + pluginInfo.getVersion("shockwave")); simpleTrace("initApp()", "Flash: " + (pluginInfo.isInstalled("flash")? "": "Wrong version - ") + pluginInfo.getVersion("flash")); simpleTrace("initApp()", "Unity: " + (pluginInfo.isInstalled("unity")? "": "Wrong version - ") + pluginInfo.getVersion("unity")); break; case 1: var url ="/icc_euro/ui/pva/application/application_menu.jsp;jsessionid=3D9B29E6690D97432AD230437B354953.icc_euro?&MENUIDENT=top&RT=" + new Date().getTime(); f.location.href = url; break; case 2: var url ="/icc_euro/ui/pva/application/application_menu.jsp;jsessionid=3D9B29E6690D97432AD230437B354953.icc_euro?&MENUIDENT=bottom&RT=" + new Date().getTime(); f.location.href = url; break; case 3: f.location.href = '/icc_euro/init.do;jsessionid=3D9B29E6690D97432AD230437B354953.icc_euro?RT=1337326654313SESSION=3D9B29E6690D97432AD230437B354953.icc_euro'; fIdx = -1; break; } lastFIdx = fIdx; } } else if(fIdx==-1 && lastFIdx > -1) { initApp(lastFIdx+1); } } //-->