﻿function setPageSize(){setTimeout("setPageSizeForce(false);",1)}function resizePage(){BizElement.Element.main1.setStyle({height:""});BizElement.Element.main2.setStyle({height:""});BizElement.initializeForce();setPageSizeForce(true)}function checkPageResizable(){setPageSize();Event.observe(window,"resize",setPageSize,false)}function setPageSizeForce(a){if(a||BizElement.checkPageSize()){BizElement.resizeElement(BizElement.Element.content,BizElement.Size.contentHeight);BizElement.resizeElement(BizElement.Element.leftborder,BizElement.Size.contentHeight);BizElement.resizeElement(BizElement.Element.rightborder,BizElement.Size.contentHeight);BizElement.resizeElement(BizElement.Element.contentLine,BizElement.Size.lineHeight);BizElement.resizeElement(BizElement.Element.main1,BizElement.Size.mainHeight);BizElement.resizeElement(BizElement.Element.main2,BizElement.Size.mainHeight);BizElement.resizable.height.each(function(c){var b=$(c.key);if(b.style.height!=(BizElement.Size.mainHeight-c.value+"px")){b.setStyle({height:BizElement.Size.mainHeight-c.value+"px"})}});BizElement.resizable.width.each(function(d){var b=$(d.key);var c=BizElement.getViewPort().width;b.setStyle({width:(c<d.value)?d.value+"px":c+"px"})})}}var layerBackCount=0;function layerOn(f,d,k,a,h,q,b,j){var g=b?b:"layer";var l=g+"frame";if($(g)){layerOff(g)}var o=$("layers");var p=new Element("div",{id:g,"class":"layer"});var m=new Element("iframe",{id:l,frameBorder:"0","class":"layerframe"});if(j){m.setAttribute("scrolling",j)}p.insert(m);o.insert(p);var r;var n;var c;var i;if(!q){layerbackOn(0.25)}if(a&&h){r=a+"px";c="0px";n=h+"px";i="0px"}else{var e=(typeof BizElement==undefined)?(BizElement.viewport.height||BizElement.getViewPort().height)>d:document.viewport.getHeight()>d;r=(e)?"50%":"20px";n="50%";c=(e)?0-Math.floor(d/2)+"px":"0px";i=0-Math.floor(f/2)+"px"}f+="px";d+="px";p.setStyle({top:r,left:n,width:f,height:d,marginTop:c,marginLeft:i,display:"block",zIndex:2000});m.setStyle({width:f,height:d});m.setAttribute("src",k)}function layerOff(a){var b=a?a:"layer";if($(b)){$(b).remove()}layerbackOff()}function layerbackOn(b){var a=(typeof BizElement==undefined)?BizElement.viewport.height:document.viewport.getHeight();if(!a){a=BizElement.getViewPort().height}new Effect.Appear("layerback",{duration:0,from:b,to:b});$("layerback").setStyle({height:a+"px",display:"block",zIndex:1000,backgroundColor:"#000000"});layerBackCount++}function layerbackOff(){if(layerBackCount==1){$("layerback").setStyle({height:"0px",display:"none",zIndex:-1,backgroundColor:"#E2E2E2"})}if(layerBackCount>0){layerBackCount--}}function layerResize(k,e,j){var b=$("layer");var h=$("layerframe");var g=b.getWidth()+k;var c=b.getHeight()+e;var i;var d;var f;var a;if(!j){i="50%";d="50%";f=0-Math.floor(c/2)+"px";a=0-Math.floor(g/2)+"px"}g+="px";c+="px";b.setStyle({top:i,left:d,width:g,height:c,marginTop:f,marginLeft:a});h.setStyle({width:g,height:c})}function redirectMenu(a){try{location.href=a}catch(b){}}function loadingLayerOn(a,c){var b="../layout/layer/loading.aspx";if(a){b+="?work="+encodeURIComponent(a)}if(c){b+="&cancel="+encodeURIComponent(c)}layerOn(272,120,b,false,false,false,"loading")}function loadingLayerOff(){parent.layerOff("loading")}function setTooltip(c){for(var a in c){try{if(c[a].targetid){document.getElementById(c[a].targetid).setAttribute("title",c[a].title)}}catch(b){}}}var PopManager={open:function(d,i){switch(d){case"GUIDE":var f=window.open("http://www.bizhard.com/Guide/Default.aspx","FlashGuide","location=0,status=0,scrollbars=0,resizable=0,width=902,height=625,top=20,left=20");f.focus();break;case"HELP":var e=window.open((!i)?"http://www.bizhard.com/Manual/Startup/Join.aspx":i,"Guide","location=0,status=0,scrollbars=0,resizable=0,width=902,height=625,top=20,left=20");e.focus();break;case"BILL":layerOn(904,552,"/Bill/Default.aspx",null,null,false,"Bill","no");break;case"CALC":layerOn(904,512,"/Bill/Default.aspx?mode=calc",null,null,false,"Bill","no");break;case"CONSULTING":layerOn(574,645,"/Center/Pop/ConsultingList.aspx",null,null,false,"ConsultingList");return false;case"PACKAGE":location.href="http://advert.estsoft.com/?event=200910231012555";break;case"EXPLORER":location.href="http://advert.estsoft.com/?event=200807311616948";break;case"MESSENGER":location.href="http://advert.estsoft.com/?event=200807311450939";break;case"WID":location.href="http://advert.estsoft.com/?event=200905113610240";break;case"ACTIVEX":location.href="http://advert.estsoft.com/?event=200901161482524";break;case"MOBILE":location.href="http://advert.estsoft.com/?event=200911112051281";break;case"ANDROID":location.href="http://www.bizhard.com/Center/News/Notice_Read.aspx?Nid=225";break;case"IPHONE":var b=window.open("http://itunes.apple.com/kr/app/id381659600?mt=8","IPHONE");b.focus();break;case"ALYAC":SlideMenu.create("btn_alyac","MENU_ALYAC");SlideMenu.toggle("btn_alyac");break;case"ALYAC32":location.href="http://advert.estsoft.com/?event=201004261509974";break;case"ALYAC64":location.href="http://advert.estsoft.com/?event=201004266218977";break;case"COMPARERATES":layerOn(624,417,"/Center/Pop/CompareRates.aspx",null,null,false,"CompareRates");return false;case"USERATES":layerOn(574,904,"/Center/Pop/UseRates.aspx",null,null,false,"UseRates");return false;case"BIZHARDJP":layerOn(449,406,"/Center/Pop/CultureCheck.aspx",null,null,false,"BizHardJP");return false;case"RECOMMEND":layerOn(524,488,"/Center/Pop/Recommendation.aspx",null,null,false,"Recommendation");return false;case"RECOMMENDPREVIEW":var b=window.open("/Center/Pop/RecommenderMailPreview.aspx","RecommendPreview");b.focus();return false;case"SUGGEST":layerOn(732,285,"/User/Pop/pop_suggest.aspx",null,null,false,"Suggest");break;case"MAILUS":var b=window.open("/User/Support/MailUs.aspx","mailus","width=652,height=545");b.focus();break;case"EMAILSUPPORT":var b=window.open("/Center/Support/EmailSupport.aspx","emailsupport");b.focus();break;case"SMS":var b=window.open("/SMS/","SMS","width=532,height=562");b.focus();break;case"TAXNOTICE":var b=window.open("/Center/News/TaxAccountNotice.aspx","TaxNotice","width=500,height=628");b.focus();break;case"CONTACTUS":if(i=="False"||!i){SlideMenu.create("btn_manualinstall","MENU_CONTACTUS");SlideMenu.toggle("btn_manualinstall")}else{PopManager.open("EMAILSUPPORT")}break;case"CONTACTUSMENU":var c="slidemenucustom";if(!$(c)){var a=document.createElement("div");a.id=c;a.className="slidemenu";a.style.display="none";a.style.top="0px";a.style.left="0px";a.style.marginLeft="70px";a.style.marginTop="-28px";document.body.appendChild(a)}if(i=="False"||!i){SlideMenu.init(c);SlideMenu.create("btn_manualinstallmenu","MENU_CONTACTUSMENU");SlideMenu.toggle("btn_manualinstallmenu")}else{PopManager.open("EMAILSUPPORT")}break}}};function LoadFlash(d,e,c,a,b){if(!b){b="opaque"}document.write('<object id="'+d+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+location.protocol.toLowerCase()+'//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+c+'" height="'+a+'" align="middle">');document.write('<param name="allowScriptAccess" value="sameDomain" />');document.write('<param name="allowFullScreen" value="false" />');document.write('<param name="wmode" value="'+b+'" />');document.write('<param name="movie" value="'+e+'" />');document.write('<param name="quality" value="high" />');document.write('<param name="bgcolor" value="#ffffff" />');document.write('<embed id="'+d+'" src="'+e+'" wmode="'+b+'" quality="high" bgcolor="#ffffff" width="'+c+'" height="'+a+'" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write("</object>")};
