// Copyright (c) 2000-2007 Unidocs. All rights reserved. function v(obj){eval(obj).style.visibility="visible"}function hideLayer(obj){eval(obj).style.visibility="hidden"}function ae(obj){eval(obj).style.display=""}function hideTag(obj){eval(obj).style.display="none"}function openToc(){v(document.getElementById("TocInfoLayer"));}function closeToc(){hideLayer(document.getElementById("TocInfoLayer"));}function openSrch(){v(document.getElementById("srchTbl"));v(document.getElementById("SrchLayer"));document.keywordFrm.keyword.focus();}function closeSrch(){hideLayer(document.getElementById("srchTbl"));hideLayer(document.getElementById("SrchLayer"));}function openPlusMenu(){if(document.getElementById("PlusMenuLayer"))v(document.getElementById("PlusMenuLayer"));else return}function closePlusMenu(){if(document.getElementById("PlusMenuLayer"))hideLayer(document.getElementById("PlusMenuLayer"));}function openGlassWindow(){if(co)return;if(kn){pu();if(typeof GlassLayer!="undefined")hideLayer(document.getElementById("GlassLayer"));kn=false}else{var leftMost;var rightMost;if(ce){if(g==-1){leftMost=(leftPageStartPos_x+Math.floor(f)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2));rightMost=leftPageStartPos_x+Math.floor(f*2)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}else if(g+1==ah){leftMost=(leftPageStartPos_x-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2));rightMost=leftPageStartPos_x+Math.floor(f)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}}else{leftMost=(leftPageStartPos_x+Math.floor(f/2)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2));rightMost=leftPageStartPos_x+Math.floor(f/2)+f+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}if(g==-1||g+1==ah){LargeGlassImgSrc1.src=dm('medium',g+1);LargeGlassImgSrc2.src="";LargeGlassImgSrc1.width=f*u;if(leftMost>parseInt(document.getElementById("GlassLayer").style.left)||(rightMost<(parseInt(document.getElementById("GlassLayer").style.left)+parseInt(document.getElementById("GlassLayer").style.width)))){document.getElementById("GlassLayer").style.left=leftMost+Math.ceil(f/2);LargeGlassImgSrc1.style.left=-Math.ceil((f/2*u)-parseInt(document.getElementById("GlassLayer").style.width)/2);}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x+f/2)-parseInt(document.getElementById("GlassLayer").style.left)-parseInt(document.getElementById("GlassLayer").style.width)/2)*u)+parseInt(document.getElementById("GlassLayer").style.width)/2}LargeGlassImgSrc1.style.top=Math.ceil(((as+(theme_height-ac)/2-parseInt(document.getElementById("GlassLayer").style.height)/2)-parseInt(document.getElementById("GlassLayer").style.top))*u)+parseInt(document.getElementById("GlassLayer").style.height)/2;pv(1,cp(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}else{leftMost=(leftPageStartPos_x-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2));rightMost=leftPageStartPos_x+(f*2)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);LargeGlassImgSrc1.src=dm('medium',g);LargeGlassImgSrc2.src=dm('medium',g+1);LargeGlassImgSrc1.width=f*u;LargeGlassImgSrc2.width=f*u;if(leftMost>parseInt(document.getElementById("GlassLayer").style.left)||(rightMost<(parseInt(document.getElementById("GlassLayer").style.left)+parseInt(document.getElementById("GlassLayer").style.width)))){document.getElementById("GlassLayer").style.left=leftMost+f;LargeGlassImgSrc1.style.left=-Math.ceil((f*u)-parseInt(document.getElementById("GlassLayer").style.width)/2);LargeGlassImgSrc2.style.left=cp(LargeGlassImgSrc1);}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x)-parseInt(document.getElementById("GlassLayer").style.left)-parseInt(document.getElementById("GlassLayer").style.width)/2)*u)+parseInt(document.getElementById("GlassLayer").style.width)/2;LargeGlassImgSrc2.style.left=cp(LargeGlassImgSrc1);}LargeGlassImgSrc1.style.top=Math.ceil(((as+(theme_height-ac)/2-parseInt(document.getElementById("GlassLayer").style.height)/2)-parseInt(document.getElementById("GlassLayer").style.top))*u)+parseInt(document.getElementById("GlassLayer").style.height)/2;LargeGlassImgSrc2.style.top=da(LargeGlassImgSrc1);pv(2,cp(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}if(typeof GlassLayer!="undefined")v(document.getElementById("GlassLayer"));kn=true;}}function closeGlassWindow(){pu();if(typeof GlassLayer!="undefined")hideLayer(document.getElementById("GlassLayer"));kn=false}function openPrint(){if(g==-1&&printWhich==1||g+1==ah&&printWhich==2)viewSrc.src="common/blank.gif";else if(g==-1)viewSrc.src=dm('medium',g+1);else viewSrc.src=dm('medium',g);v(document.getElementById("PrintLayer"));}function closePrint(){if(glbSourceDoc!=''){chechBoxSel.printStart.readOnly=true;chechBoxSel.printEnd.readOnly=true;chechBoxSel.printStart.style.backgroundColor="#e8e8e8";chechBoxSel.printEnd.style.backgroundColor="#e8e8e8";chechBoxSel.printStart.value="";chechBoxSel.printEnd.value=""}chechBoxSel.imgWhich[0].checked=true;if(g==-1&&printWhich==1||g+1==ah&&printWhich==2)viewSrc.src="common/blank.gif";else if(g==-1)viewSrc.src=dm('medium',g+1);else viewSrc.src=dm('medium',g);printWhich=1;viewSrc.style.width=150;viewSrc.style.height=150;viewSrc2.style.width=0;viewSrc2.style.height=0;hideLayer(document.getElementById("PrintLayer"));}var pw;var py;mouseDowned_toc=false;var pz;var qa;mouseDowned_srch=false;var qb;var qc;mouseDowned_plusMenu=false;var qd;var qe;mouseDowned_print=false;var hq;var gv;mouseDowned_map=false;var qf;var qg;mouseDowned_mapImg=false;io=leftPageStartPos_x;ip=as+Math.ceil((theme_height-ac)/2)-uc;mouseDowned_glass=false;function toc_onmousedown(){pw=window.event.clientX-cp(document.getElementById("TocInfoLayer"));py=window.event.clientY-da(document.getElementById("TocInfoLayer"));mouseDowned_toc=true;tocImg.style.cursor="move";folderTree.style.overflow="hidden";closeHelpIcon();}function toc_onmouseup(){mouseDowned_toc=false;tocImg.style.cursor="hand";folderTree.style.overflow="auto"}function toc_onmouseout(){}function toc_onmousemove(){if(!mouseDowned_toc){return}if(window.event.clientX>=0&&window.event.clientY>=0){document.getElementById("TocInfoLayer").style.left=window.event.clientX-pw;document.getElementById("TocInfoLayer").style.top=window.event.clientY-py}}var qh;var qi;function mapImg_onmousedown(){qf=window.event.clientX-cp(document.getElementById("MiniMapLayer"));qg=window.event.clientY-da(document.getElementById("MiniMapLayer"));qh=cp(document.getElementById("MiniMapLayer"))-cp(document.getElementById("MiniMapRectLayer"));qi=da(document.getElementById("MiniMapLayer"))-da(document.getElementById("MiniMapRectLayer"));mouseDowned_mapImg=true;MiniMapSrc.style.cursor="move";closeHelpIcon();}function mapImg_onmouseup(){mouseDowned_mapImg=false;MiniMapSrc.style.cursor="hand";openHelpIcon();}function mapImg_onmouseout(){mouseDowned_mapImg=false;MiniMapSrc.style.cursor="hand";openHelpIcon();}function mapImg_onmousemove(){if(!mouseDowned_mapImg){return}if(window.event.clientX>=0&&window.event.clientY>=0){document.getElementById("MiniMapLayer").style.left=window.event.clientX-qf;document.getElementById("MiniMapLayer").style.top=window.event.clientY-qg;document.getElementById("MiniMapRectLayer").style.left=cp(document.getElementById("MiniMapLayer"))-qh;document.getElementById("MiniMapRectLayer").style.top=da(document.getElementById("MiniMapLayer"))-qi}}function srch_onmousedown(){pz=window.event.clientX-cp(document.getElementById("SrchLayer"));qa=window.event.clientY-da(document.getElementById("SrchLayer"));mouseDowned_srch=true;srchImg.style.cursor="move";document.getElementById("srchTbl").style.overflow="hidden";closeHelpIcon();}function srch_onmouseup(){mouseDowned_srch=false;srchImg.style.cursor="hand";document.getElementById("srchTbl").style.overflow="auto"}function srch_onmousemove(){if(!mouseDowned_srch){return}if(window.event.clientX>=0&&window.event.clientY>=0){document.getElementById("SrchLayer").style.left=window.event.clientX-pz;document.getElementById("SrchLayer").style.top=window.event.clientY-qa}}function plusMenu_onmousedown(){if(document.getElementById("PlusMenuLayer")){qb=window.event.clientX-cp(document.getElementById("PlusMenuLayer"));qc=window.event.clientY-da(document.getElementById("PlusMenuLayer"));mouseDowned_plusMenu=true;plusMenuImg.style.cursor="move";closeHelpIcon();}}function plusMenu_onmouseup(){if(document.getElementById("PlusMenuLayer")){mouseDowned_plusMenu=false;plusMenuImg.style.cursor="hand"}}function plusMenu_onmousemove(){if(!mouseDowned_plusMenu){return}if(document.getElementById("PlusMenuLayer")){if(window.event.clientX>=0&&window.event.clientY>=0){document.getElementById("PlusMenuLayer").style.left=window.event.clientX-qb;document.getElementById("PlusMenuLayer").style.top=window.event.clientY-qc}}}function print_onmousedown(){qd=window.event.clientX-cp(document.getElementById("PrintLayer"));qe=window.event.clientY-da(document.getElementById("PrintLayer"));mouseDowned_print=true;printImg.style.cursor="move";closeHelpIcon();}function print_onmouseup(){mouseDowned_print=false;printImg.style.cursor="hand"}function print_onmouseout(){}function print_onmousemove(){if(!mouseDowned_print){return}if(window.event.clientX>=0&&window.event.clientY>=0){document.getElementById("PrintLayer").style.left=window.event.clientX-qd+"px";document.getElementById("PrintLayer").style.top=window.event.clientY-qe+"px"}}function map_onmousedown(){if(parseInt(document.getElementById("MiniMapRectLayer").style.left)(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width-ey)){document.getElementById("MiniMapRectLayer").style.left=parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width-ey}if(parseInt(document.getElementById("MiniMapRectLayer").style.top)>(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fd)){document.getElementById("MiniMapRectLayer").style.top=parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fd}hq=window.event.clientX-cp(document.getElementById("MiniMapRectLayer"));gv=window.event.clientY-da(document.getElementById("MiniMapRectLayer"));mouseDowned_map=true;document.onmousemove=map_onmousemove;iq=cp(document.getElementById("MiniMapRectLayer"));jm=da(document.getElementById("MiniMapRectLayer"));hideLayer(document.getElementById("NMouseLayer"));hideTag(NMouseImgTD);closeHelpIcon();}function map_onmouseup(){mouseDowned_map=false;document.onmousemove=null}var iq;var jm;function map_onmousemove(){if(!mouseDowned_map)return;var mt=false;if(EN_FULLDRAW){if(theme_width<=ak)mt=true}else mt=true;if(mt){if(window.event.clientX-hq>=parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Border*2&&window.event.clientX-hq<=(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width-ey)){document.getElementById("MiniMapRectLayer").style.left=window.event.clientX-hq+"px";var largeMove_X=Math.ceil(((cp(document.getElementById("MiniMapRectLayer"))-iq)*ak)/(miniMap_Width));moveLargeImage(largeMove_X,0);iq=cp(document.getElementById("MiniMapRectLayer"));}else if(window.event.clientX-hq(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width-ey)){document.getElementById("MiniMapRectLayer").style.left=(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Border*2+miniMap_Width-ey)+"px";var largeMove_X=Math.ceil((((parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width)-(window.event.clientX-hq))*ak)/(miniMap_Width));moveLargeImage(largeMove_X,0);iq=cp(document.getElementById("MiniMapRectLayer"));}}if(window.event.clientY-gv>=parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Border*2&&window.event.clientY-gv<=(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fd)){document.getElementById("MiniMapRectLayer").style.top=window.event.clientY-gv+"px";var largeMove_Y=Math.ceil(((da(document.getElementById("MiniMapRectLayer"))-jm)*aq)/(miniMap_Height));moveLargeImage(0,largeMove_Y);jm=da(document.getElementById("MiniMapRectLayer"));}else if(window.event.clientY-gv(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fd)){document.getElementById("MiniMapRectLayer").style.top=(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Border*2+miniMap_Height-fd)+"px";var largeMove_Y=Math.ceil((((parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height)-(window.event.clientY-gv))*aq)/(miniMap_Height));moveLargeImage(0,largeMove_Y);jm=da(document.getElementById("MiniMapRectLayer"));}}var xh;var xi;function glass_onmousedown(){var leftMost;var rightMost;var topMost;var bottomMost;if(g==-1||g+1==ah){if(ce){if(g==-1){leftMost=leftPageStartPos_x+Math.floor(f)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f*2)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}else if(g+1==ah){leftMost=leftPageStartPos_x-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}}else{leftMost=leftPageStartPos_x+Math.floor(f/2)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f/2)+f+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}}else{leftMost=leftPageStartPos_x-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftMost+f*2}if(parseInt(document.getElementById("GlassLayer").style.left)rightMost){document.getElementById("GlassLayer").style.left=rightMost}if(parseInt(document.getElementById("GlassLayer").style.top)>bottomMost){document.getElementById("GlassLayer").style.top=bottomMost}io=window.event.clientX-cp(document.getElementById("GlassLayer"));ip=window.event.clientY-da(document.getElementById("GlassLayer"));mouseDowned_glass=true;moveGlassImage();}function glass_onmouseup(){mouseDowned_glass=false}function glass_onmousemove(){if(!mouseDowned_glass){return}var leftMost;var rightMost;if(g==-1||g+1==ah){if(ce){if(g==-1){leftMost=leftPageStartPos_x+Math.floor(f)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f*2)-parseInt(document.getElementById("GlassLayer").style.width)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}else if(g+1==ah){leftMost=leftPageStartPos_x-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f)-parseInt(document.getElementById("GlassLayer").style.width)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}}else{leftMost=leftPageStartPos_x+Math.floor(f/2)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f/2+f)-parseInt(document.getElementById("GlassLayer").style.width)+Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);}}else{leftMost=leftPageStartPos_x-Math.ceil(parseInt(document.getElementById("GlassLayer").style.width)/2);rightMost=leftMost+f*2}if(window.event.clientX-io>=leftMost&&window.event.clientX-io<=rightMost){document.getElementById("GlassLayer").style.left=window.event.clientX-io+"px";}else if(window.event.clientX-iorightMost){document.getElementById("GlassLayer").style.left=rightMost+"px";}var topInit=as+Math.ceil((theme_height-ac)/2)-Math.ceil(parseInt(document.getElementById("GlassLayer").style.height)/2);var topMax=topInit+ac;if(window.event.clientY-ip>=topInit&&window.event.clientY-ip<=topMax){document.getElementById("GlassLayer").style.top=window.event.clientY-ip+"px";}else if(window.event.clientY-iptopMax){document.getElementById("GlassLayer").style.top=topMax+"px";}moveGlassImage();}function xj(){return false}function cp(mu){return parseInt(mu.currentStyle.left);}function da(mu){return parseInt(mu.currentStyle.top);}function iv(){if(ce){document.getElementById("BGLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("BGLayer").style.width=f*2+15*2;document.getElementById("BGLayer").style.left=leftPageStartPos_x-16;document.getElementById("CenterSeparatorLayer").style.left=rightPageStartPos_x-24;document.getElementById("CenterSeparatorLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("UpArrowLayer").style.left=rightPageStartPos_x-28;document.getElementById("UpArrowLayer").style.top=10+largeImgLayerPos_Y;document.getElementById("DownArrowLayer").style.left=rightPageStartPos_x-28;document.getElementById("DownArrowLayer").style.top=as+theme_height-44-10;document.getElementById("LeftPageArrowLayer").style.left=leftPageStartPos_x+10;document.getElementById("LeftPageArrowLayer").style.top=10+largeImgLayerPos_Y;document.getElementById("RightPageArrowLayer").style.left=rightPageStartPos_x+f-10-56;document.getElementById("RightPageArrowLayer").style.top=largeImgLayerPos_Y+theme_height-58-10;if(EN_FULLDRAW){if(theme_width<=ak){document.getElementById("LeftPageArrowLayer").style.left=theme_x+10;document.getElementById("RightPageArrowLayer").style.left=theme_x+theme_width-10-44;document.getElementById("LeftArrowLayer").style.left=theme_x+10;document.getElementById("RightArrowLayer").style.left=theme_x+theme_width-10-44}else{document.getElementById("LeftPageArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+10;document.getElementById("RightPageArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+f*u-10-44;document.getElementById("LeftArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+10;;document.getElementById("RightArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+f*u-10-44}}}else{hideLayer(document.getElementById("LeftBottomImgLayer"));hideLayer(document.getElementById("LeftTopImgLayer"));document.getElementById("BGLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("BGLayer").style.left=leftPageStartPos_x+Math.ceil(f/2);document.getElementById("BGLayer").style.left=leftPageStartPos_x+Math.ceil(f*3/2);moveToCenterPos(document.getElementById("LeftBottomImgLayer"));moveToCenterPos(document.getElementById("LeftTopImgLayer"));moveToCenterPos(document.getElementById("RightBottomImgLayer"));moveToCenterPos(document.getElementById("RightTopImgLayer"));document.getElementById("CenterSeparatorLayer").style.left=rightPageStartPos_x-24;document.getElementById("CenterSeparatorLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("UpArrowLayer").style.left=rightPageStartPos_x-28;document.getElementById("UpArrowLayer").style.top=10+largeImgLayerPos_Y;document.getElementById("DownArrowLayer").style.left=rightPageStartPos_x-28;document.getElementById("DownArrowLayer").style.top=as+theme_height-44-10;document.getElementById("LeftPageArrowLayer").style.left=leftPageStartPos_x+10;document.getElementById("LeftPageArrowLayer").style.top=10+largeImgLayerPos_Y;document.getElementById("RightPageArrowLayer").style.left=rightPageStartPos_x+f-10-56;document.getElementById("RightPageArrowLayer").style.top=largeImgLayerPos_Y+theme_height-58-10;if(EN_FULLDRAW){if(theme_width<=ak){document.getElementById("LeftPageArrowLayer").style.left=theme_x+10;document.getElementById("RightPageArrowLayer").style.left=theme_x+theme_width-10-44;document.getElementById("LeftArrowLayer").style.left=theme_x+10;document.getElementById("RightArrowLayer").style.left=theme_x+theme_width-10-44}else{document.getElementById("LeftPageArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+10;document.getElementById("RightPageArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+f*u-10-44;document.getElementById("LeftArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+10;;document.getElementById("RightArrowLayer").style.left=theme_x+Math.floor((theme_width-f*u)/2)+f*u-10-44}}document.getElementById("BGLayer").style.width=16*2}}function moveToCenterPos(obj){var imgObj=eval(obj);imgObj.style.left=leftPageStartPos_x+f/2;imgObj.style.top=as+Math.ceil((theme_height-ac)/2);imgObj.style.width=f;imgObj.style.height=ac}function gl(){ae(BGLayer_LeftPage);ae(BGLayer_RightPage);document.getElementById("BGLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("BGLayer").style.left=leftPageStartPos_x-16;document.getElementById("BGLayer").style.width=f*2+16*2;document.getElementById("LeftBottomImgLayer").style.left=leftPageStartPos_x;document.getElementById("LeftTopImgLayer").style.left=leftPageStartPos_x;document.getElementById("RightBottomImgLayer").style.left=rightPageStartPos_x;document.getElementById("RightTopImgLayer").style.left=rightPageStartPos_x;document.getElementById("LeftBottomImgLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("LeftTopImgLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("RightBottomImgLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("RightTopImgLayer").style.top=as+Math.ceil((theme_height-ac)/2);}function openHeadCover(){if(ek>0){hideLayer(document.getElementById("CenterSeparatorLayer"));v(document.getElementById("RightBottomImgLayer"));ae(RightBottomImg);ae(LeftBottomImg);ae(LeftTopImg);ae(RightTopImg);ae(LargeImageTag);ae(BGLayer_RightPage);ae(UpArrow);ae(DownArrow);ae(CenterSepTable);hideTag(BGLayer_LeftPage);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)";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)";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)";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)";m=ag;dt=false;ek=0;v(document.getElementById("RightTopImgLayer"));v(document.getElementById("RightBottomImgLayer"));}else{setTimeout('openHeadCover()',1);}}function toClear(which){if(which==PAGE_LEFT)LeftPageArrow.style.filter="alpha(Opacity=100, FinishOpacity=100,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";else RightPageArrow.style.filter="alpha(Opacity=100, FinishOpacity=100,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)"}function toDark(which){if(which==PAGE_LEFT)LeftPageArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)";else RightPageArrow.style.filter="alpha(Opacity=60, FinishOpacity=60,Style=1, StartX=0, FinishX=55, StartY=55, FinishY=55)"}function uh(){if(ce){document.getElementById("BGLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("BGLayer").style.left=leftPageStartPos_x-16;v(document.getElementById("LeftBottomImgLayer"));v(document.getElementById("LeftTopImgLayer"));v(document.getElementById("RightBottomImgLayer"));v(document.getElementById("RightTopImgLayer"));v(document.getElementById("CenterSeparatorLayer"));v(document.getElementById("CenterSeparatorLayer"));ae(BGLayer_RightPage);ae(BGLayer_LeftPage);}else{hideLayer(document.getElementById("RightBottomImgLayer"));hideLayer(document.getElementById("RightTopImgLayer"));document.getElementById("BGLayer").style.top=as+Math.ceil((theme_height-ac)/2);document.getElementById("BGLayer").style.left=leftPageStartPos_x+Math.ceil(f/2)-16;moveToCenterPos(document.getElementById("LeftBottomImgLayer"));moveToCenterPos(document.getElementById("LeftTopImgLayer"));moveToCenterPos(document.getElementById("RightBottomImgLayer"));moveToCenterPos(document.getElementById("RightTopImgLayer"));document.getElementById("BGLayer").style.width=16*2}}function pu(){var obj=null;try{var cz=eval("LargeGlassDiv");for(i=0;i0){ct=0;cu=Math.ceil((parseInt(document.getElementById("GlassLayer").style.height)-moveY)/db);}else{ct=Math.floor((-moveY)/db);cu=Math.ceil((parseInt(document.getElementById("GlassLayer").style.height)-moveY)/db);}if(gw==1){pageno=g+2;if(g+1==ah)pageno=g+1;if(moveX>0){at=0;aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}else{at=Math.floor((-moveX)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(pageno,j,i)){ap=document.createElement("IMG");fu(PAGE_LEFT,ap,j,i,moveX,moveY,pageno);cc.appendChild(ap);}}}}else if(gw==2){if(-moveX+parseInt(document.getElementById("GlassLayer").style.width)<=ak){if(moveX>0){at=0;aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}else{at=Math.floor((-moveX)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+1,j,i)){ap=document.createElement("IMG");fu(PAGE_LEFT,ap,j,i,moveX,moveY,g+1);cc.appendChild(ap);}}}}else if(-moveX>ak){at=Math.floor((-moveX-ak)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX-ak)/ar);for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+2,j,i)){ap=document.createElement("IMG");fu(PAGE_RIGHT,ap,j,i,moveX,moveY,g+2);cc.appendChild(ap);}}}}else if((-moveX+parseInt(document.getElementById("GlassLayer").style.width)>ak)&&-moveX<=ak){at=Math.floor((-moveX)/ar);aw=hl;for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+1,j,i)){ap=document.createElement("IMG");fu(PAGE_LEFT,ap,j,i,moveX,moveY,g+1);cc.appendChild(ap);}}}at=Math.floor((-moveX+parseInt(document.getElementById("GlassLayer").style.width)-ak)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX-ak)/ar);for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+2,j,i)){ap=document.createElement("IMG");fu(PAGE_RIGHT,ap,j,i,moveX,moveY,g+2);cc.appendChild(ap);}}}}}}function fu(which,ao,ay,az,moveSize_X,moveSize_Y,pageno){var pageStr=''+pageno;var eh='';switch(pageStr.length){case 1:pageStr="000"+pageStr;break;case 2:pageStr="00"+pageStr;break;case 3:pageStr="0"+pageStr;break}var di=''+az;switch(di.length){case 1:di="00"+di;break;case 2:di="0"+di;break}var dj=''+ay;switch(dj.length){case 1:dj="00"+dj;break;case 2:dj="0"+dj;break}pageStr=hg+'_'+pageStr+'_'+di+'_'+dj;if(ga&&fz&&EN_FULLDRAW)eh=fm+'ext_large/'+gd(pageStr).toUpperCase()+'.jpg';else eh=fm+'large/'+gd(pageStr).toUpperCase()+'.jpg';var ei=0;var ej=0;if(ay==hl-1&&hj!=0)ei=hj;else ei=ar;if(az==iz-1&&hk!=0)ej=hk;else ej=db;var et="largeGlass_"+pageno+"_"+ay+"_"+az;var qj=ar*ay;if(which==PAGE_RIGHT)qj+=ak;ao.src=eh;ao.id=et;ao.style.position="absolute";ao.style.overflow="hidden";ao.style.left=qj;ao.style.top=db*az;ao.style.width=ei;ao.style.height=ej;ao.style.alt="";ii[po++]=et}function ui(gw,target){var qk=ak;if(gw==2)qk=ak*2;target.id="LargeGlassDiv";target.style.cursor="hand";target.style.position="absolute";target.style.overflow="hidden";target.style.visibility="visible";target.style.left=0;target.style.top=0;target.style.width=qk;target.style.height=aq;target.style.zIndex=300;return target}function ft(pageno,ay,az){var et="largeGlass_"+pageno+"_"+ay+"_"+az;for(k=0;k0){ct=0;cu=Math.ceil((parseInt(document.getElementById("GlassLayer").style.height)-moveY)/db);}else{ct=Math.floor((-moveY)/db);cu=Math.ceil((parseInt(document.getElementById("GlassLayer").style.height)-moveY)/db);}if(gw==1){pageno=g+2;if(g+1==ah)pageno=g+1;if(moveX>0){at=0;aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}else{at=Math.floor((-moveX)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(pageno,j,i)){ap=document.createElement("IMG");fu(PAGE_LEFT,ap,j,i,moveX,moveY,pageno);cc.appendChild(ap);}}}}else if(gw==2){if(-moveX+parseInt(document.getElementById("GlassLayer").style.width)<=ak){if(moveX>0){at=0;aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}else{at=Math.floor((-moveX)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX)/ar);}for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+1,j,i)){ap=document.createElement("IMG");fu(PAGE_LEFT,ap,j,i,moveX,moveY,g+1);cc.appendChild(ap);}}}}else if(-moveX>ak){at=Math.floor((-moveX-ak)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX-ak)/ar);for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+2,j,i)){ap=document.createElement("IMG");fu(PAGE_RIGHT,ap,j,i,moveX,moveY,g+2);cc.appendChild(ap);}}}}else if((-moveX+parseInt(document.getElementById("GlassLayer").style.width)>ak)&&-moveX<=ak){at=Math.floor((-moveX)/ar);aw=hl;for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+1,j,i)){ap=document.createElement("IMG");fu(PAGE_LEFT,ap,j,i,moveX,moveY,g+1);cc.appendChild(ap);}}}at=Math.floor((-moveX+parseInt(document.getElementById("GlassLayer").style.width)-ak)/ar);aw=Math.ceil((parseInt(document.getElementById("GlassLayer").style.width)-moveX-ak)/ar);for(i=ct;i<=cu-1;i++){for(j=at;j<=aw-1;j++){if(!ft(g+2,j,i)){ap=document.createElement("IMG");fu(PAGE_RIGHT,ap,j,i,moveX,moveY,g+2);cc.appendChild(ap);}}}}}}function diminishGlassWindow(){if(enlargeCount>0){document.getElementById("GlassLayer").style.left=cp(document.getElementById("GlassLayer"))+(ZG_DEGX/2);document.getElementById("GlassLayer").style.top=da(document.getElementById("GlassLayer"))+(ZG_DEGY/2);document.getElementById("GlassLayer").style.width=parseInt(document.getElementById("GlassLayer").style.width)-ZG_DEGX;document.getElementById("GlassLayer").style.height=parseInt(document.getElementById("GlassLayer").style.height)-ZG_DEGY;GlassTBL.style.width=parseInt(document.getElementById("GlassLayer").style.width);GlassTBL.style.height=parseInt(document.getElementById("GlassLayer").style.height);InnerGlassTBL.style.height=parseInt(GlassTBL.style.height)-40;moveGlassImage();enlargeCount--}}function enlargeGlassWindow(){if(enlargeCount<5){document.getElementById("GlassLayer").style.left=cp(document.getElementById("GlassLayer"))-(ZG_DEGX/2);document.getElementById("GlassLayer").style.top=da(document.getElementById("GlassLayer"))-(ZG_DEGY/2);document.getElementById("GlassLayer").style.width=parseInt(document.getElementById("GlassLayer").style.width)+ZG_DEGX;document.getElementById("GlassLayer").style.height=parseInt(document.getElementById("GlassLayer").style.height)+ZG_DEGY;GlassTBL.style.width=parseInt(document.getElementById("GlassLayer").style.width);GlassTBL.style.height=parseInt(document.getElementById("GlassLayer").style.height);InnerGlassTBL.style.height=parseInt(GlassTBL.style.height)-40;moveGlassImage();enlargeCount++}}function signAdMove1(mv){tdiv=eval(mv);if(tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=signAdNum){tdiv.style.pixelTop=0;setTimeout("signAdMove1(tdiv)",signAdScrSpeed);setTimeout("signAdMove2(signAd_2)",signAdScrSpeed);return}if(tdiv.style.pixelTop>=tdiv.offsetHeight*-1){tdiv.style.pixelTop-=signAdNum;setTimeout("signAdMove1(tdiv)",signAdWTime);}else{tdiv.style.pixelTop=mj;if(signAdMesgs.length>0){tdiv.innerHTML=signAdMesgs[fs];kp=fs}if(fs==signAdMesgs.length-1){fs=0}else{fs++}}}function signAdMove2(mv){tdiv2=eval(mv);if(tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=signAdNum){tdiv2.style.pixelTop=0;setTimeout("signAdMove2(tdiv2)",signAdScrSpeed);setTimeout("signAdMove1(signAd_1)",signAdScrSpeed);return}if(tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){tdiv2.style.pixelTop-=signAdNum;setTimeout("signAdMove2(signAd_2)",signAdWTime);}else{tdiv2.style.pixelTop=mj;if(signAdMesgs.length>0){tdiv2.innerHTML=signAdMesgs[fs];kp=fs;pp=true}if(fs==signAdMesgs.length-1){fs=0}else{fs++}}}function xk(){signAdNum=0}function mouseout_event(){signAdNum=1}function startscroll(){signAdNum=1;signAdMove1(signAd_1);signAd_2.style.top=mj;signAd_2.style.visibility='visible'}function xm(){if(pp){if(kp!=0){openLinkWindow(signAdMesgsURL[kp-1]);}else{openLinkWindow(signAdMesgsURL[signAdMesgs.length-1]);}}}var bannerDirect;var bannerReverse;function startBannerMove(){clearTimeout(bannerDirect);if(!BANNER_DIRECTION){if(parseInt(InnerBanner.style.top)==BANNER_MOVE_SIZE){bannerDirect=setTimeout("startBannerMove_reverse()",100);bannerMoveDirection=BANNER_REVERSE}else{InnerBanner.style.top=parseInt(InnerBanner.style.top)-1;bannerDirect=setTimeout("startBannerMove()",100);}}else{if(parseInt(InnerBanner.style.left)==BANNER_MOVE_SIZE){bannerDirect=setTimeout("startBannerMove_reverse()",100);bannerMoveDirection=BANNER_REVERSE}else{InnerBanner.style.left=parseInt(InnerBanner.style.left)-1;bannerDirect=setTimeout("startBannerMove()",100);}}}function startBannerMove_reverse(){clearTimeout(bannerReverse);if(!BANNER_DIRECTION){if(parseInt(InnerBanner.style.top)==0){bannerReverse=setTimeout("startBannerMove()",100);bannerMoveDirection=BANNER_DIRECT}else{InnerBanner.style.top=parseInt(InnerBanner.style.top)+1;bannerReverse=setTimeout("startBannerMove_reverse()",100);}}else{if(parseInt(InnerBanner.style.left)==0){bannerReverse=setTimeout("startBannerMove()",100);bannerMoveDirection=BANNER_DIRECT}else{bannerReverse=setTimeout("startBannerMove_reverse()",100);InnerBanner.style.left=parseInt(InnerBanner.style.left)+1}}}function moveToDirect(){if(bannerMoveDirection!=BANNER_DIRECT){clearTimeout(bannerReverse);bannerDirect=setTimeout("startBannerMove()",100);bannerMoveDirection=BANNER_DIRECT}}function moveToReverse(){if(bannerMoveDirection!=BANNER_REVERSE){clearTimeout(bannerDirect);bannerReverse=setTimeout("startBannerMove_reverse()",100);bannerMoveDirection=BANNER_REVERSE}}function eu(uj){waitMesg.innerHTML=uj;document.getElementById("PdfWaitingLayer").style.left=Math.ceil((theme_width-300)/2);document.getElementById("PdfWaitingLayer").style.top=Math.ceil((theme_y+theme_height-60)/2);document.getElementById("PdfWaitingLayer").style.display="";v(document.getElementById("PdfWaitingLayer"));mw=0;mx=setTimeout("stillMessaging()",100);}mw=0;var mx;function stillMessaging(){mw+=100;if(mw>MESSAGE_TIME){hideLayer(document.getElementById("PdfWaitingLayer"));clearTimeout(mx);}mx=setTimeout("stillMessaging()",100);}