// Copyright (c) 2000-2005 Unidocs. All rights reserved.
function closeBook(){gb("Uni__SPageNo");parent.close();}function vg(){parent.blur();};function window.onload(){if(!re())closeBook();if(!rf())closeBook();oa();ob();};function vh(){gb("UniBookVolumeNo");gb("Uni__SPageNo");}function oa(){cz=parent.p_viewer.bookid.value;hy=cz;}function ob(){hideLayer(LoadingLayer);rg();rh();ri();if(fo>af)fo=1;if(fo==1){ky();jg=false;ej=0;jh(r);jh(v);co(0,PAGE_RIGHT);rj();openHeadCover();document.pageGoFrm.jumpno.value=1}else{ky();o=v;jg=false;ej=0;jh(r);jh(v);var hb=0;if(fo%2==0)hb=fo;else hb=fo-1;m=hb-1;document.pageGoFrm.jumpno.value=hb;z[PAGE_LEFT][o]=hb-1;z[PAGE_RIGHT][o]=hb;co(z[PAGE_LEFT][o],PAGE_LEFT);co(z[PAGE_RIGHT][o],PAGE_RIGHT);gq();if(fo==af){BGLayer.style.width=16*2}ae(RightBottomImg);ae(LeftBottomImg);ae(LeftTopImg);ae(RightTopImg);ae(LargeImageTag);ae(BGLayer_RightPage);ae(UpArrow);ae(DownArrow);ae(CenterSepTable);UpArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";DownArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";LeftArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";RightArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";LeftPageArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";RightPageArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";CenterSepImage_Left.style.filter="alpha(Opacity=0, FinishOpacity=50, Style=1, StartX=0, FinishX=120, StartY=0, FinishY=0)";CenterSepImage_Right.style.filter="alpha(Opacity=100, FinishOpacity=0, Style=1, StartX=0, FinishX=120, StartY=0, FinishY=0)";pageOpenAction();dq=false;ej=0;}document.onkeydown=hz;document.onmousemove=newPos;ab(document.getElementById("RightBottomImgLayer"));ab(document.getElementById("RightTopImgLayer"));}function rj(){gc();hc(-1);}function ji(obj,iwidth,icolor){obj.style.borderWidth=iwidth+"px 0px "+iwidth+"px 0px";obj.style.borderColor=icolor;obj.style.borderStyle="solid"}function rg(){document.body.scroll="no";webBookConfig=ea("../conf/config.xml");try{node=webBookConfig.selectSingleNode("Theme/Position");topMargin=parseInt(node.attributes.getNamedItem("top").text.trim());theme_x=parseInt(node.attributes.getNamedItem("left").text.trim());theme_y=parseInt(node.attributes.getNamedItem("top").text.trim());var rightVal=parseInt(node.attributes.getNamedItem("right").text.trim());var bottomVal=parseInt(node.attributes.getNamedItem("bottom").text.trim());theme_width=rightVal-theme_x;theme_height=bottomVal-theme_y;node=webBookConfig.selectSingleNode("Theme/TOC");toc_init_x=parseInt(node.attributes.getNamedItem("left").text.trim());toc_init_y=parseInt(node.attributes.getNamedItem("top").text.trim());node=webBookConfig.selectSingleNode("Theme/SRCH");srch_init_x=parseInt(node.attributes.getNamedItem("left").text.trim());srch_init_y=parseInt(node.attributes.getNamedItem("top").text.trim());node=webBookConfig.selectSingleNode("Theme/PRINT");print_init_x=parseInt(node.attributes.getNamedItem("left").text.trim());print_init_y=parseInt(node.attributes.getNamedItem("top").text.trim());node=webBookConfig.selectSingleNode("Theme/MINIMAP");miniMap_X=parseInt(node.attributes.getNamedItem("left").text.trim());miniMap_Y=parseInt(node.attributes.getNamedItem("top").text.trim());miniMap_Width=parseInt(node.attributes.getNamedItem("iwidth").text.trim());miniMap_Height=parseInt(node.attributes.getNamedItem("iheight").text.trim());miniMap_Color=node.attributes.getNamedItem("icolor").text.trim();miniMap_Border=parseInt(node.attributes.getNamedItem("iborder").text.trim());node=webBookConfig.selectSingleNode("Theme/ZOOMGLASS");if(node){oc=parseInt(node.attributes.getNamedItem("iwidth").text.trim());od=parseInt(node.attributes.getNamedItem("iheight").text.trim());ia=parseInt(node.attributes.getNamedItem("xDeg").text.trim());ib=parseInt(node.attributes.getNamedItem("yDeg").text.trim());GlassLayer.style.left=leftPageStartPos_x;GlassLayer.style.width=oc;GlassLayer.style.height=od}node=webBookConfig.selectSingleNode("Theme/BORDER");if(node){borderWidth=parseInt(node.attributes.getNamedItem("iwidth").text.trim());borderColor=node.attributes.getNamedItem("icolor").text.trim();}if(borderWidth>0){ji(LBBorder,borderWidth,borderColor);ji(LTBorder,borderWidth,borderColor);ji(RBBorder,borderWidth,borderColor);ji(RTBorder,borderWidth,borderColor);}node=webBookConfig.selectSingleNode("Theme/BOXAD");if(node){BANNER_AREA_WIDTH=parseInt(node.attributes.getNamedItem("iwidth").text.trim());BANNER_AREA_HEIGHT=parseInt(node.attributes.getNamedItem("iheight").text.trim());BANNER_WIDTH=parseInt(node.attributes.getNamedItem("bwidth").text.trim());BANNER_HEIGHT=parseInt(node.attributes.getNamedItem("bheight").text.trim());BANNER_GAP=parseInt(node.attributes.getNamedItem("bgap").text.trim());BANNER_DIRECTION=parseInt(node.attributes.getNamedItem("bdirect").text.trim());BANNER_RELATIVE=parseInt(node.attributes.getNamedItem("relative").text.trim());}node=webBookConfig.selectSingleNode("Theme/BOXADARROW");if(node){BANNER_ARROW_TSIZE=parseInt(node.attributes.getNamedItem("isize").text.trim());BANNER_ARROW_WIDTH=parseInt(node.attributes.getNamedItem("imgWidth").text.trim());BANNER_ARROW_HEIGHT=parseInt(node.attributes.getNamedItem("imgHeight").text.trim());}node=webBookConfig.selectSingleNode("Theme/SIGNAD");if(node){oe=parseInt(node.attributes.getNamedItem("wGap").text.trim());of=parseInt(node.attributes.getNamedItem("yGap").text.trim());}node=webBookConfig.selectSingleNode("Theme/ENLARGEMENT");var en_dir_type=0;if(node){EN_FULLDRAW=parseInt(node.attributes.getNamedItem("fulldraw").text.trim());en_dir_type=parseInt(node.attributes.getNamedItem("dtype").text.trim());}if(EN_FULLDRAW){ic=(screen.width-8);ie=(screen.height-27);}else{ic=(1024-8);ie=(768-27);}node=webBookConfig.selectSingleNode("Theme/MESSAGE");if(node){fc=parseInt(node.attributes.getNamedItem("useAlert").text.trim());MESSAGE_TIME=parseInt(node.attributes.getNamedItem("dtime").text.trim());}node=webBookConfig.selectSingleNode("Theme/SRCHTYPE");if(node){srchExact=parseInt(node.attributes.getNamedItem("kexact").text.trim());srchPattern=parseInt(node.attributes.getNamedItem("kpattern").text.trim());}if((document.body.clientWidth>1024||document.body.clientHeight>768)&&!EN_FULLDRAW){alert("The theme only works with 1024 X 768 screen size");closeBook();}if(EN_FULLDRAW&&(document.body.clientWidth>1024||document.body.clientHeight>768)){var kz=screen.width-1024;var la=screen.height-768;theme_width+=kz;theme_height+=la;switch(en_dir_type){case 0:miniMap_X+=kz;break;case 1:miniMap_Y+=la;break;case 2:miniMap_X+=kz;miniMap_Y+=la;break}}if(typeof GlassLayer!="undefined")GlassLayer.style.top=theme_y+Math.ceil(theme_height/2)-miniMap_Height/2}catch(e){alert(hy+" theme file has errors..");alert(e.description);closeBook();return}webBookConfig=ea("../../../library/"+cz+"/conf/config.xml");try{if(webBookConfig.getElementsByTagName("WebBook/BookTitle")[0])og=webBookConfig.getElementsByTagName("WebBook/BookTitle")[0].text.trim();if(webBookConfig.getElementsByTagName("WebBook/BookLogo")[0]){lb=webBookConfig.getElementsByTagName("WebBook/BookLogo")[0].text.trim();if(lb!=''&&logoImg)logoImg.src="../../../library/"+cz+"/logo/"+lb;else hideLayer(LogoLayer);}if(webBookConfig.getElementsByTagName("WebBook/CharSet")[0])aj=webBookConfig.getElementsByTagName("WebBook/CharSet")[0].text.toLowerCase().trim();if(webBookConfig.getElementsByTagName("WebBook/BoardLink")[0])boardLinkUrl=webBookConfig.getElementsByTagName("WebBook/BoardLink")[0].text.toLowerCase().trim();var useMiniMap_temp="false";if(webBookConfig.getElementsByTagName("WebBook/UseMiniMap")[0])useMiniMap_temp=webBookConfig.getElementsByTagName("WebBook/UseMiniMap")[0].text.toLowerCase().trim();if(useMiniMap_temp=='true')useMiniMap=true;if(webBookConfig.getElementsByTagName("WebBook/ExtraSize")[0]){node=webBookConfig.selectSingleNode("WebBook/ExtraSize");if(node.attributes.getNamedItem("zoomrate").text.trim()!=''){jj=parseFloat(node.attributes.getNamedItem("zoomrate").text.trim());fp=true;oh=parseInt(node.attributes.getNamedItem("iwidth").text.trim());oi=parseInt(node.attributes.getNamedItem("iheight").text.trim());node=webBookConfig.selectSingleNode("WebBook/ExtraNormal");extraNormalWidth=parseInt(node.attributes.getNamedItem("iwidth").text.trim());extraNormalHeight=parseInt(node.attributes.getNamedItem("iheight").text.trim());node=webBookConfig.selectSingleNode("WebBook/ExtraLarge");extraLargeWidth=parseInt(node.attributes.getNamedItem("iwidth").text.trim());extraLargeHeight=parseInt(node.attributes.getNamedItem("iheight").text.trim());}}if(screen.width>=oh&&screen.height>=oi)fq=true;fd="../../../library/"+cz+"/";if(fq&&fp&&EN_FULLDRAW){g=extraNormalWidth;u=extraNormalHeight}else{node=webBookConfig.selectSingleNode("WebBook/NormalSize");g=parseInt(node.attributes.getNamedItem("iwidth").text.trim());u=parseInt(node.attributes.getNamedItem("iheight").text.trim());}if(webBookConfig.getElementsByTagName("WebBook/ZoomRate")[0])ac=parseFloat(webBookConfig.getElementsByTagName("WebBook/ZoomRate")[0].text.toLowerCase().trim());if(fq&&fp&&EN_FULLDRAW){ai=extraNormalWidth*jj;ao=extraNormalHeight*jj;ac=jj}else{node=webBookConfig.selectSingleNode("WebBook/LargeSize");ai=g*ac;ao=u*ac}gr=ai%an;gs=ao%cs;gt=Math.ceil(ai/an);ig=Math.ceil(ao/cs);node=webBookConfig.selectSingleNode("WebBook/SmallSize");rk=parseInt(node.attributes.getNamedItem("iwidth").text.trim());rl=parseInt(node.attributes.getNamedItem("iheight").text.trim());node=webBookConfig.selectSingleNode("WebBook/PageNo");hd=parseInt(node.attributes.getNamedItem("spn").text.trim());cp=parseInt(node.attributes.getNamedItem("epn").text.trim());af=cp+hd+1;if(webBookConfig.getElementsByTagName("WebBook/BGSound")[0])hx=webBookConfig.getElementsByTagName("WebBook/BGSound")[0].text.trim();kw="audio/"+hx;var bookOverSound;if(webBookConfig.getElementsByTagName("WebBook/BookOverSound")[0])bookOverSound=webBookConfig.getElementsByTagName("WebBook/BookOverSound")[0].text.toLowerCase().trim();if(bookOverSound=="true")kx=true;var bgText;if(webBookConfig.getElementsByTagName("WebBook/BGColor")[0])bgText=webBookConfig.getElementsByTagName("WebBook/BGColor")[0].text.trim();if(bgText==''||bgText=='#'){document.bgColor='D8D8D8'}else document.bgColor=bgText;var seqType=webBookConfig.getElementsByTagName("WebBook/SeqType")[0].text.trim();var fr='';var jk;var vi;var nodeList;for(i=0;i<cp;i++){fr=''+(i+1);switch(fr.length){case 1:fr="000"+fr;break;case 2:fr="00"+fr;break;case 3:fr="0"+fr;break}imagePageList[i]=fr;++rm}if(webBookConfig.getElementsByTagName("WebBook/UseTOC")[0])rn=webBookConfig.getElementsByTagName("WebBook/UseTOC")[0].text.toLowerCase().trim();if(webBookConfig.getElementsByTagName("WebBook/UseFoldBar")[0]){if(webBookConfig.getElementsByTagName("WebBook/UseFoldBar")[0].text.toLowerCase().trim()=='true')gu=true;else gu=false}if(webBookConfig.getElementsByTagName("WebBook/LinkColorSet/HighLight")[0]){node=webBookConfig.selectSingleNode("WebBook/LinkColorSet/HighLight");highlightColor=node.attributes.getNamedItem("dcolor").text.trim();highlightOpa=node.attributes.getNamedItem("opa").text}if(webBookConfig.getElementsByTagName("WebBook/LinkColorSet/URL")[0]){node=webBookConfig.selectSingleNode("WebBook/LinkColorSet/URL");urlColor=node.attributes.getNamedItem("dcolor").text.trim();urlOpa=node.attributes.getNamedItem("opa").text.trim();}if(webBookConfig.getElementsByTagName("WebBook/LinkColorSet/Mail")[0]){node=webBookConfig.selectSingleNode("WebBook/LinkColorSet/Mail");mailColor=node.attributes.getNamedItem("dcolor").text.trim();mailOpa=node.attributes.getNamedItem("opa").text.trim();}if(webBookConfig.getElementsByTagName("WebBook/LinkColorSet/PageLink")[0]){node=webBookConfig.selectSingleNode("WebBook/LinkColorSet/PageLink");pagelinkColor=node.attributes.getNamedItem("dcolor").text.trim();pagelinkOpa=node.attributes.getNamedItem("opa").text.trim();}if(webBookConfig.getElementsByTagName("WebBook/OpenPageNo")[0]){fo=parseInt(webBookConfig.getElementsByTagName("WebBook/OpenPageNo")[0].text.trim());}if(lc("Uni__SPageNo")&&ih(lc("Uni__SPageNo"))){fo=parseInt(lc("Uni__SPageNo"));}if(webBookConfig.getElementsByTagName("WebBook/ThemeBG")[0]){ld=webBookConfig.getElementsByTagName("WebBook/ThemeBG")[0].text.trim();}if(webBookConfig.getElementsByTagName("WebBook/LocalPlay")[0]){if(webBookConfig.getElementsByTagName("WebBook/LocalPlay")[0].text.toLowerCase().trim()=='true')localPlayMode=true;else localPlayMode=false}}catch(e){alert(hy+" file has errors..");closeBook();return}try{ro("../../../library/"+cz+"/conf/toc.xml");}catch(e){}try{if(fq&&fp&&EN_FULLDRAW)var linkInfoXML=ea("../../../library/"+cz+"/conf/ext_lnk.xml");else var linkInfoXML=ea("../../../library/"+cz+"/conf/lnk.xml");var le=linkInfoXML.selectNodes("LinkAnnotInfo/LinkInfo");if(le){var gd;var jl;var fs;var jm;var jn;var lf;var lg;var gv;for(i=0;i<le.length;i++){gd=le.item(i);fs=gd.attributes.getNamedItem("linktype").text.toLowerCase().trim();jl=parseInt(gd.attributes.getNamedItem("page").text.trim());jm=parseInt(gd.attributes.getNamedItem("left").text.trim());jn=parseInt(gd.attributes.getNamedItem("top").text.trim());lf=(parseInt(gd.attributes.getNamedItem("right").text.trim())-jm);lg=(parseInt(gd.attributes.getNamedItem("bottom").text.trim())-jn);gv=gd.attributes.getNamedItem("dest").text.trim();if(fs=='mov'&&localPlayMode){str5=location.href;str6=str5.search("theme");str7=str5.substring(0,str6);gv=str7 +"library/"+ cz + "/logo/" +gv;}if(fs=='swf')gv="../../../library/"+cz+"/logo/"+gv;var lh=f[jl];if(lh){var cu=new oj();if(fs=='mov')cu.linktype=4;else if(fs=='swf')cu.linktype=3;else if(fs=='url')cu.linktype=2;else cu.linktype=1;cu.left=jm;cu.top=jn;cu.width=lf;cu.height=lg;cu.dest=gv;lh.attrs[lh.attrs.length]=cu}else{var linkInfoObj=new LinkInfo();linkInfoObj.pageno=jl;var cu=new oj();if(fs=='mov')cu.linktype=4;else if(fs=='swf')cu.linktype=3;else if(fs=='url')cu.linktype=2;else cu.linktype=1;cu.left=jm;cu.top=jn;cu.width=lf;cu.height=lg;cu.dest=gv;linkInfoObj.attrs[0]=cu;f[jl]=linkInfoObj}}}}catch(e){alert('lnk.xml'+BookMsgList[aj]["FILE_ERROR"]);closeBook();}try{var ok=ea("../conf/mmf_config.xml");var swfConf=ok.selectSingleNode("Config/SWF");var movConf=ok.selectSingleNode("Config/MOV");if(swfConf){ii=swfConf.text.trim();}if(movConf){ij=movConf.text.trim();}}catch(e){alert('mmf_config.xml'+BookMsgList[aj]["FILE_ERROR"]);closeBook();}LeftBottomImgIdx=new jsGraphics("LeftBottomImgLayer");LeftTopImgIdx=new jsGraphics("LeftTopImgLayer");RightBottomImgIdx=new jsGraphics("RightBottomImgLayer");RightTopImgIdx=new jsGraphics("RightTopImgLayer");try{var adInfoXML=ea("../../../library/"+cz+"/conf/ad.xml");var lineAd=adInfoXML.selectSingleNode("Advertisement/lineAd");if(lineAd){var lineAdColor;var ol;var adObj;var adContents;var adURL;var om;lineAdColor=lineAd.attributes.getNamedItem("defcolor").text;ol=parseInt(lineAd.attributes.getNamedItem("speed").text);var lineAdList=adInfoXML.selectNodes("Advertisement/lineAd/adInfo");if(lineAdList){for(i=0;i<lineAdList.length;i++){adObj=lineAdList.item(i);adContents=adObj.getElementsByTagName("contents")[0].text;adURL=adObj.getElementsByTagName("url")[0].text;om='<FONT color="'+lineAdColor+'" size="2" face="µ¸¿ò"> <a href="javascript:openLinkWindow(\''+adURL+'\')"; onmouseover="javascript:scroller.stop();" onmouseout="javascript:scroller.start()" style="color:yellow;text-decoration:none;">'+adContents+'</a> </FONT>&nbsp;&nbsp;&nbsp;';li.innerHTML+=om}li.scrollAmount=ol;li.scrolldelay=60;li.start();}}var boxAd=adInfoXML.selectSingleNode("Advertisement/boxAd");if(boxAd){var adObj;var adContents;var adURL;var adList_WIDTH=adList.clientWidth;var adList_HEIGHT=adList.clientHeight;var boxAdList=adInfoXML.selectNodes("Advertisement/boxAd/adInfo");if(boxAdList){BannerADLayer.style.top=adList.offsetTop;var boxAdCnt=boxAdList.length;var he=0;BannerADLayer.style.top=adList.offsetTop;BannerADLayer.style.left=adList.offsetLeft;BannerADLayer.style.width=adList_WIDTH;BannerADLayer.style.height=adList_HEIGHT;if(!BANNER_RELATIVE){if(!BANNER_DIRECTION)he=Math.floor(BANNER_AREA_HEIGHT/(BANNER_HEIGHT+BANNER_GAP));else he=Math.floor(BANNER_AREA_WIDTH/(BANNER_WIDTH+BANNER_GAP));}else{if(!BANNER_DIRECTION)he=Math.floor(adList_HEIGHT/(BANNER_HEIGHT+BANNER_GAP));else he=Math.floor(adList_WIDTH/(BANNER_WIDTH+BANNER_GAP));}if(boxAdCnt>he){if(!BANNER_DIRECTION){BannerADLayer.style.top=adList.offsetTop+BANNER_ARROW_TSIZE;BannerADLayer.style.height=adList_HEIGHT-BANNER_ARROW_TSIZE*2;adList.innerHTML+="<table height='100%'><tr><td height='"+BANNER_ARROW_TSIZE+"' bgcolor='#FFFFFF'><img src='../../../library/"+cz+"/logo/¿µ¹®·Î°í111.gif' onclick='javascript:moveToDirect()'; width="+BANNER_ARROW_WIDTH+" height="+BANNER_ARROW_HEIGHT+" style=\"cursor:hand\">&nbsp;</td></tr><tr><td>&nbsp;</td></tr><tr><td height='"+BANNER_ARROW_TSIZE+"'  bgcolor='#FFFFFF'><img src='../../../library/"+cz+"/logo/¿µ¹®·Î°í111.gif' onclick='javascript:moveToReverse()'; width="+BANNER_ARROW_WIDTH+" height="+BANNER_ARROW_HEIGHT+" style=\"cursor:hand\">&nbsp;</td></tr></table>"}else{BannerADLayer.style.left=adList.offsetLeft+BANNER_ARROW_TSIZE+5;BannerADLayer.style.width=adList_WIDTH-(BANNER_ARROW_TSIZE+5)*2;adList.innerHTML+="<table width='100%'><tr><td width='"+BANNER_ARROW_TSIZE+"' bgcolor='#FFFFFF'><img src='../../../library/"+cz+"/logo/¿µ¹®·Î°í111.gif' onclick='javascript:moveToDirect()'; width="+BANNER_ARROW_WIDTH+" height="+BANNER_ARROW_HEIGHT+" style=\"cursor:hand\"></td><td>&nbsp;</td><td width='"+BANNER_ARROW_TSIZE+"'  bgcolor='#FFFFFF'><img src='../../../library/"+cz+"/logo/¿µ¹®·Î°í111.gif' onclick='javascript:moveToReverse()'; width="+BANNER_ARROW_WIDTH+" height="+BANNER_ARROW_HEIGHT+" style=\"cursor:hand\"></td></tr></table>"}}var bannerDiv=document.createElement("DIV");if(!BANNER_DIRECTION)on(bannerDiv,adList_WIDTH,(BANNER_HEIGHT+BANNER_GAP)*boxAdCnt);else on(bannerDiv,(BANNER_WIDTH+BANNER_GAP)*boxAdCnt,adList_HEIGHT);BannerADLayer.appendChild(bannerDiv);if(!BANNER_DIRECTION)bannerDiv.innerHTML+="<table id='adTBL' width=\""+BANNER_AREA_WIDTH+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">";else{bannerDiv.innerHTML+="<table id='adTBL' width=\""+BANNER_AREA_WIDTH+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">";bannerDiv.innerHTML+="<tr>"}for(i=0;i<boxAdCnt;i++){adObj=boxAdList.item(i);adContents=adObj.getElementsByTagName("contents")[0].text;adURL=adObj.getElementsByTagName("url")[0].text;if(!BANNER_DIRECTION){bannerDiv.innerHTML+="<tr><td height='"+(BANNER_HEIGHT+BANNER_GAP)+"' width='"+BANNER_WIDTH+"' bgcolor='#FFFFFF'>&nbsp;<img src='../../../library/"+cz+"/logo/"+adContents+"' onclick='javascript:openLinkWindow(\""+adURL+"\")'; width="+BANNER_WIDTH+" height="+BANNER_HEIGHT+" style=\"cursor:hand\">&nbsp;</td></tr><br>"}else{bannerDiv.innerHTML+="<td height='"+(BANNER_HEIGHT)+"' width='"+(BANNER_WIDTH+BANNER_GAP)+"' bgcolor='#FFFFFF' ><img src='../../../library/"+cz+"/logo/"+adContents+"' onclick='javascript:openLinkWindow(\""+adURL+"\")'; width="+BANNER_WIDTH+" height="+BANNER_HEIGHT+" style=\"cursor:hand\" ></td>"}}if(!BANNER_DIRECTION)bannerDiv.innerHTML+="</tr>";bannerDiv.innerHTML+="</table>";bannerDiv.innerHTML+="</DIV>";if(boxAdCnt>he){var lj;var lk;if(!BANNER_DIRECTION){lj=parseInt(BannerADLayer.style.height);lk=(boxAdCnt)*(BANNER_HEIGHT+BANNER_GAP)-BANNER_GAP}else{lj=parseInt(BannerADLayer.style.width);lk=(boxAdCnt)*(BANNER_WIDTH+BANNER_GAP)-BANNER_GAP}BANNER_MOVE_SIZE=(lj-lk);startBannerMove();}}}var signAd=adInfoXML.selectSingleNode("Advertisement/signAd");if(signAd){var adObj;var adContents;var adURL;signAdScrSpeed=signAd.attributes.getNamedItem("signAdScrSpeed").text;signAdWTime=signAd.attributes.getNamedItem("signAdWTime").text;var signAdList=adInfoXML.selectNodes("Advertisement/signAd/adInfo");if(signAdList){for(i=0;i<signAdList.length;i++){adObj=signAdList.item(i);adContents=adObj.getElementsByTagName("contents")[0].text;adURL=adObj.getElementsByTagName("url")[0].text;signAdMesgs[i]=adContents;signAdMesgsURL[i]=adURL}SignAdMain.style.left=parseInt(signAdArea.offsetLeft)+oe;SignAdMain.style.top=parseInt(signAdArea.offsetTop)+of;SignAdMain.style.width=parseInt(signAdArea.clientWidth);SignAdMain.style.height=parseInt(signAdArea.clientHeight);signAd_1.innerHTML="<table align=center cellpadding=0 cellspacing=0 width=110><tr><td><font color=red>+ Àü±¤ÆÇ ±¤°í¾È³» +</font><br>Àü±¤ÆÇ ±¤°í´Â ¿©·¯ºÐÀÇ »ç¾÷¿¡ µµ¿òÀÌ µÉ°ÍÀÔ´Ï´Ù. </td></tr></table>";signAd_2.innerHTML="<table align=center cellpadding=0 cellspacing=0 width=110><tr><td><font color=red>+ Àü±¤ÆÇ ÇùÂù +</font><br>ÇùÂù»ç »çÀÌÆ®: bzone.ezpdf.co.kr, www.pdfonline.co.kr </td></tr></table>";ab(SignAdMain);rp();}}var eventAd=adInfoXML.selectSingleNode("Advertisement/eventAd");if(eventAd){var adObj;var adContents;var adURL;var eventAdListNode=adInfoXML.selectNodes("Advertisement/eventAd/adInfo");if(eventAdListNode){var hf;for(i=0;i<eventAdListNode.length;i++){adObj=eventAdListNode.item(i);hf=new EventAdAttr();hf.width=adObj.attributes.getNamedItem("iwidth").text;hf.height=adObj.attributes.getNamedItem("iheight").text;hf.contents=adObj.getElementsByTagName("contents")[0].text;hf.pageno=adObj.getElementsByTagName("pageno")[0].text;oo[oo.length]=hf}}}}catch(e){alert(e.description);alert("±¤°í ¼³Á¤ ÆÄÀÏ¿¡ ¿À·ù°¡ Á¸ÀçÇÕ´Ï´Ù.");closeBook();}}function getSourceDocInfo(){var webBookConfig=ea("../../../library/"+parent.p_viewer.bookid.value+"/conf/config.xml");try{if(webBookConfig.getElementsByTagName("WebBook/SourceDoc")[0])glbSourceDoc=webBookConfig.getElementsByTagName("WebBook/SourceDoc")[0].text.trim();}catch(e){alert("config file has errors..");closeBook();return}}function LinkInfo(){this.pageno=0;this.attrs=new Array();}function rq(){this.pageno=0;this.left=0;this.top=0;this.width=0;this.height=0}function oj(){this.linktype=0;this.left=0;this.top=0;this.width=0;this.height=0;this.dest=""}function EventAdAttr(){this.pageno=0;this.contents=0;this.width=0;this.height=0}function rh(){offscreenBuffering=true;var barSize=16;LeftBar.style.height=u-barSize+2*borderWidth;RightBar.style.height=u-barSize+2*borderWidth;LeftBottomImg.style.width=g;LeftBottomImg.style.height=u;LeftTopImg.style.width=g;LeftTopImg.style.height=u;RightBottomImg.style.width=g;RightBottomImg.style.height=u;RightTopImg.style.width=g;RightTopImg.style.height=u;CenterSepImage_Left.style.height=u+2*borderWidth;CenterSepImage_Right.style.height=u+2*borderWidth;LeftBottom.width=g;LeftBottom.height=u;RightBottom.width=g;RightBottom.height=u;LeftTop.width=g;LeftTop.height=u;RightTop.width=g;RightTop.height=u;movingPixelSize=parseInt(g/5);TocInfoLayer.style.left=toc_init_x;TocInfoLayer.style.top=toc_init_y;SrchLayer.style.left=srch_init_x;SrchLayer.style.top=srch_init_y;PrintLayer.style.left=print_init_x;PrintLayer.style.top=print_init_y;chechBoxSel.imgWhich[0].checked=true;if(glbSourceDoc!=''){chechBoxSel.printStart.readOnly=true;chechBoxSel.printEnd.readOnly=true;chechBoxSel.printStart.style.backgroundColor="#e8e8e8";chechBoxSel.printEnd.style.backgroundColor="#e8e8e8"}MiniMapLayer.style.left=miniMap_X;MiniMapLayer.style.top=miniMap_Y;MiniMapLayer.style.width=miniMap_Width;MiniMapLayer.style.height=miniMap_Height;MapRectTable.borderColor=miniMap_Color;MapRectTable.border=miniMap_Border;if(EN_FULLDRAW)ek=Math.abs(Math.ceil((theme_width*miniMap_Width)/(g*ac)));else ek=Math.abs(Math.ceil((g*2*miniMap_Width)/(g*ac)));if(ek>miniMap_Width)ek=miniMap_Width;er=Math.abs(Math.ceil((theme_height*miniMap_Height)/(u*ac)));if(er>miniMap_Height)er=miniMap_Height}function ri(){largeImgLayerPos_Y=topMargin;aq=topMargin;parent.document.title=og;if(total_pageCnt)total_pageCnt.innerHTML="/"+cp;leftPageStartPos_x=theme_x+Math.ceil((theme_width-(g*2))/2);largeImgLayerPos_X=leftPageStartPos_x;rightPageStartPos_x=leftPageStartPos_x+g;rr=theme_x+Math.ceil(theme_width/2);rs=theme_y+Math.ceil(theme_height/2);if(EN_FULLDRAW)ge=Math.ceil(theme_width/2);else ge=Math.ceil(g);es=Math.ceil(theme_height/2);if(kx)rd();if(ld!='')ThemeBody.background="../../common/bgskin/"+ld;m=-1;var fe=new Array(2);fe[r]=-1;fe[v]=1;z[PAGE_LEFT]=fe;var fe=new Array(2);fe[r]=0;fe[v]=2;z[PAGE_RIGHT]=fe;LeftBottomImgLayer.style.zIndex=5;RightBottomImgLayer.style.zIndex=4;LeftTopImgLayer.style.zIndex=3;RightTopImgLayer.style.zIndex=2;largeSizeImageLayerID=document.all['LargeImgLayer'];for(i=0;i<7;i++){bookMarkInfo[i]=new BookMarkAttr();var bookmarkDiv=document.createElement("DIV");rt(bookmarkDiv,i);document.body.appendChild(bookmarkDiv);}bookMarkLeft_X=leftPageStartPos_x-25;bookMarkRight_X=rightPageStartPos_x+g-75;bookMark_Y=aq+Math.ceil((theme_height-u)/2)+16;}function rt(target,idx){var bookMarkBgColor;switch(idx){case 0:bookMarkBgColor="#FF0000";break;case 1:bookMarkBgColor="#FF7E00";break;case 2:bookMarkBgColor="#FFEA00";break;case 3:bookMarkBgColor="#74C600";break;case 4:bookMarkBgColor="#00A9FF";break;case 5:bookMarkBgColor="#0000B7";break;case 6:bookMarkBgColor="#660066";break}with(target){id="BookMark_"+idx;with(style){cursor="hand";position="absolute";visibility="hidden";overflow="hidden";left=0;top=0;width=100;height=25;zIndex=10;backgroundColor=bookMarkBgColor}try{onclick=moveToBookMark}catch(ex){}}return target}function BookMarkAttr(){this.pageno="";this.side=PAGE_LEFT}function vj(){var fe=new Array(2);fe[0]=0;fe[1]=0;al[pageno]=imagePage}function vk(){}function vl(){MM_swapImage("search","","../image/common/left_search_bu_en_over.gif",1);}function on(target,iwidth,iheight){with(target){id="InnerBanner";with(style){cursor="hand";position="absolute";overflow="hidden";visibility="visible";left=0;top=0;width=iwidth;height=iheight;zIndex=2}}return target}