\n'); DetectUnityVersionActiveX(); } if(version) { pluginInfo.setVersion("shockwave", version); } pluginInfo.setVersion("flash", CheckFlashInstalled()) var uInfo = DetectUnityVersion(); installedUnityVersion = uInfo.vU; if(installedUnityVersion) { pluginInfo.setVersion("unity", installedUnityVersion); } function getScreenResolution() { if(screen) return screen.width + "x" + screen.height; else return null; } function resetScr(event) { } function fixHeight() { var fInfo = getFrameInfo(self); doExpandWin(fInfo.offsetHeight); } function adjustGP(h) { var gp = document.getElementById("glasspane"); gp.style.height = h + "px"; } function expandWin(delta) { var h = 680; if(delta > 0) h += delta; doExpandWin(h); } function doExpandWin(h) { var f_bpm = document.getElementById("f_bpmodule"); f_bpm.style.height = (h - f_bpm.offsetTop) + "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_pcna/ui/pva/controller/uic_res.jsp;jsessionid=5ACA8078ADA772D24CFCEC2B80857224.icc_pcna?LANG=ca&RT=' + new Date().getTime() +'&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"); var scrRes = getScreenResolution(); if(scrRes) url += "&sRes=" + scrRes; f.location.href = url; path = f; fixHeight(); var fInt = document.createElement("IFRAME"); fInt.id="f_interior3d"; fInt.className = "interior3d_level_3"; fInt.name="f_interior3d"; fInt.src="/icc_pcna/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_pcna/ui/pva/application/application_menu.jsp;jsessionid=5ACA8078ADA772D24CFCEC2B80857224.icc_pcna?&MENUIDENT=top&RT=" + new Date().getTime(); f.location.href = url; break; case 2: var url ="/icc_pcna/ui/pva/application/application_menu.jsp;jsessionid=5ACA8078ADA772D24CFCEC2B80857224.icc_pcna?&MENUIDENT=bottom&RT=" + new Date().getTime(); f.location.href = url; break; case 3: f.location.href = '/icc_pcna/init.do;jsessionid=5ACA8078ADA772D24CFCEC2B80857224.icc_pcna?SESSION=5ACA8078ADA772D24CFCEC2B80857224.icc_pcna&RT=' + new Date().getTime(); fIdx = -1; break; } lastFIdx = fIdx; } } else if(fIdx==-1 && lastFIdx > -1) { initApp(lastFIdx+1); } } //-->