\n'); } } function externalInterface_DoFSCommand(command, args) { // var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; // var externalInterfaceObj = isInternetExplorer ? document.all.externalInterface : document.externalInterface; if (command == "cntentdisp") { ibkDisplay(args); } else if (command == "cntentclose") { ibkClose(args); } } var ibkwidth=940; var ibkheight=500; var ibkmargin=0; var ibkleft=155; var ibktop=164; function ibkDisplay(args){ var ibkdspclw; //client width var ibkdspclh; //client height var offsw; //offset x var offsh; //offset y var br; //browser :ns/ie/op var scrollH; var id2='ibkdisp'; var objdisp=document.all && document.all(id2) || document.getElementById && document.getElementById(id2); if(objdisp!=undefined){ // alert("already"); } else{ var div2 = document.createElement( 'DIV' ); div2.setAttribute('id','ibkdisp'); document.getElementsByTagName('body')[0].appendChild( div2 ); } //init br=ibkBowserchk(); ibkdspclw = getWidth(); ibkdspclh = getHeight(); offsw = getOffsetX(); offsh = getOffsetY(); if (window.innerHeight && window.scrollMaxY) { scrollH = ibkdspclh + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight) { scrollH = document.body.scrollHeight; } else { scrollH = document.body.offsetHeight; } var id2='ibkdisp'; var objdisp=document.all && document.all(id2) || document.getElementById && document.getElementById(id2); objdisp.style.top = ibktop+"px";//(ibkdspclh - (ibkheight+ibkmargin))/2+offsh+"px"; // objdisp.style.left = ibkleft+"px";//(ibkdspclw - (ibkwidth+ibkmargin))/2+"px"; var buf=(ibkdspclw - (ibkwidth+ibkmargin))/2; if (br=="ns"){ buf=buf-1; } if (buf<33){ buf=33; } objdisp.style.left = buf+"px"; objdisp.style.width = ibkwidth+"px";//ibkwidth+ibkmargin+"px"; objdisp.style.height = ibkheight+"px";//ibkheight+ibkmargin+"px"; objdisp.style.display = "block"; var iframeobj = ''; objdisp.style.opacity=0; objdisp.style.filter="alpha(opacity=0)"; document.getElementById('ibkdisp').innerHTML=iframeobj; setTimeout("dispsub()" , 100 ); if (br !="ie") { addEventListener("scroll", ikbPosset, false); } else { window.attachEvent("onscroll", ikbPosset); } if (br !="ie") { addEventListener("resize", ikbPosset, false); } else { window.attachEvent("onresize", ikbPosset); } } var cnt=0; function dispsub(){ var id2='ibkdisp'; var objdisp=document.all && document.all(id2) || document.getElementById && document.getElementById(id2); if (objdisp!=undefined){ objdisp.style.opacity=cnt; objdisp.style.filter="alpha(opacity="+cnt*10+")"; cnt=cnt+0.2; } if(cnt<1){ setTimeout("dispsub()" , 10 ); } else{ objdisp.style.opacity=1; objdisp.style.filter="alpha(opacity=100)"; objdisp.style.filter=""; cnt=0; } } function ibkClose(){ var br; //init br=ibkBowserchk(); var id2='ibkdisp'; var objdisp=document.all && document.all(id2) || document.getElementById && document.getElementById(id2); if (objdisp!=undefined){ objdisp.style.display = "none"; document.getElementById('ibkdisp').innerHTML=''; document.body.removeChild( objdisp ); if (br !="ie") { removeEventListener("scroll", ikbPosset, false); } else { window.detachEvent("onscroll", ikbPosset); } if (br !="ie") { removeEventListener("resize", ikbPosset, false); } else { window.detachEvent("onresize", ikbPosset); } } } function ikbPosset() { var ibkdspclw; //client width var ibkdspclh; //client height var offsw; //offset x var offsh; //offset y var br; //init br=ibkBowserchk(); ibkdspclw = getWidth(); ibkdspclh = getHeight(); offsw = getOffsetX(); offsh = getOffsetY(); // var objwall = document.getElementById('ibkwall'); var objdisp = document.getElementById('ibkdisp'); objdisp.style.top = ibktop+"px"; var buf=(ibkdspclw - (ibkwidth+ibkmargin))/2; if (buf<33){ buf=33; } objdisp.style.left = buf+"px"; } function ibkBowserchk(){ if(window.opera){ return "op"; } else if(document.all){ return "ie"; } else if(document.layers||document.getElementById){ return "ns"; } } function getWidth(){ if(window.opera){ return window.innerWidth; } else if(document.all){ var clw=document.documentElement.clientWidth; if(clw==0){ clw=document.body.clientWidth; } return (clw); } else if(document.layers||document.getElementById){ return window.innerWidth; } } function getHeight(){ if(window.opera){ return window.innerHeight; } else if(document.all){ var clh=document.documentElement.clientHeight; if(clh==0){ clh=document.body.clientHeight; } return (clh); } else if(document.layers||document.getElementById){ return window.innerHeight; } } function getOffsetX(){ if(window.opera){ return 0; } else if(document.all){ if (document.body.scrollLeft == 0){ return document.documentElement.scrollLeft; } else{ return document.body.scrollLeft; } } else if(document.layers||document.getElementById){ return pageXOffset; } } function getOffsetY(){ if(window.opera){ return window.pageYOffset; } else if(document.all){ if (document.body.scrollTop == 0){ return document.documentElement.scrollTop; } else{ return document.body.scrollTop; } } else if(document.layers||document.getElementById){ return pageYOffset; } }