// 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(km){pt();if(typeof GlassLayer!="undefined")hideLayer(document.getElementById("GlassLayer"));km=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;pu(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);pu(2,cp(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}if(typeof GlassLayer!="undefined")v(document.getElementById("GlassLayer"));km=true;}}function closeGlassWindow(){pt();if(typeof GlassLayer!="undefined")hideLayer(document.getElementById("GlassLayer"));km=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 pv;var pw;mouseDowned_toc=false;var py;var pz;mouseDowned_srch=false;var qa;var qb;mouseDowned_plusMenu=false;var qc;var qd;mouseDowned_print=false;var hq;var gv;mouseDowned_map=false;var qe;var qf;mouseDowned_mapImg=false;io=leftPageStartPos_x;ip=as+Math.ceil((theme_height-ac)/2)-ub;mouseDowned_glass=false;function toc_onmousedown(){pv=window.event.clientX-cp(document.getElementById("TocInfoLayer"));pw=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-pv;document.getElementById("TocInfoLayer").style.top=window.event.clientY-pw}}var qg;var qh;function mapImg_onmousedown(){qe=window.event.clientX-cp(document.getElementById("MiniMapLayer"));qf=window.event.clientY-da(document.getElementById("MiniMapLayer"));qg=cp(document.getElementById("MiniMapLayer"))-cp(document.getElementById("MiniMapRectLayer"));qh=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-qe;document.getElementById("MiniMapLayer").style.top=window.event.clientY-qf;document.getElementById("MiniMapRectLayer").style.left=cp(document.getElementById("MiniMapLayer"))-qg;document.getElementById("MiniMapRectLayer").style.top=da(document.getElementById("MiniMapLayer"))-qh}}function srch_onmousedown(){py=window.event.clientX-cp(document.getElementById("SrchLayer"));pz=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-py;document.getElementById("SrchLayer").style.top=window.event.clientY-pz}}function plusMenu_onmousedown(){if(document.getElementById("PlusMenuLayer")){qa=window.event.clientX-cp(document.getElementById("PlusMenuLayer"));qb=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-qa;document.getElementById("PlusMenuLayer").style.top=window.event.clientY-qb}}}function print_onmousedown(){qc=window.event.clientX-cp(document.getElementById("PrintLayer"));qd=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-qc+"px";document.getElementById("PrintLayer").style.top=window.event.clientY-qd+"px"}}function map_onmousedown(){if(parseInt(document.getElementById("MiniMapRectLayer").style.left)<parseInt(document.getElementById("MiniMapLayer").style.left)){document.getElementById("MiniMapRectLayer").style.left=parseInt(document.getElementById("MiniMapLayer").style.left);}if(parseInt(document.getElementById("MiniMapRectLayer").style.top)<parseInt(document.getElementById("MiniMapLayer").style.top)){document.getElementById("MiniMapRectLayer").style.top=parseInt(document.getElementById("MiniMapLayer").style.top);}if(parseInt(document.getElementById("MiniMapRectLayer").style.left)>(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width-ew)){document.getElementById("MiniMapRectLayer").style.left=parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Width-ew}if(parseInt(document.getElementById("MiniMapRectLayer").style.top)>(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fb)){document.getElementById("MiniMapRectLayer").style.top=parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fb}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"));jl=da(document.getElementById("MiniMapRectLayer"));hideLayer(document.getElementById("NMouseLayer"));hideTag(NMouseImgTD);closeHelpIcon();}function map_onmouseup(){mouseDowned_map=false;document.onmousemove=null}var iq;var jl;function map_onmousemove(){if(!mouseDowned_map)return;var mr=false;if(EN_FULLDRAW){if(theme_width<=ak)mr=true}else mr=true;if(mr){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-ew)){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_Border*2){document.getElementById("MiniMapRectLayer").style.left=(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Border*2)+"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-ew)){document.getElementById("MiniMapRectLayer").style.left=(parseInt(document.getElementById("MiniMapLayer").style.left)+miniMap_Border*2+miniMap_Width-ew)+"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-fb)){document.getElementById("MiniMapRectLayer").style.top=window.event.clientY-gv+"px";var largeMove_Y=Math.ceil(((da(document.getElementById("MiniMapRectLayer"))-jl)*aq)/(miniMap_Height));moveLargeImage(0,largeMove_Y);jl=da(document.getElementById("MiniMapRectLayer"));}else if(window.event.clientY-gv<parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Border*2){document.getElementById("MiniMapRectLayer").style.top=(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Border*2)+"px";var largeMove_Y=Math.ceil(((window.event.clientY-gv)-(miniMap_Y+miniMap_Border*2))*aq/(miniMap_Height));moveLargeImage(0,largeMove_Y);jl=da(document.getElementById("MiniMapRectLayer"));}else if(window.event.clientY-gv>(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Height-fb)){document.getElementById("MiniMapRectLayer").style.top=(parseInt(document.getElementById("MiniMapLayer").style.top)+miniMap_Border*2+miniMap_Height-fb)+"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);jl=da(document.getElementById("MiniMapRectLayer"));}}var xg;var xh;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)<leftMost){document.getElementById("GlassLayer").style.left=leftMost+Math.ceil((rightMost-leftMost)/2);}topMost=as+Math.ceil((theme_height-ac)/2-Math.ceil(parseInt(document.getElementById("GlassLayer").style.height)/2));bottomMost=(as+Math.ceil((theme_height-ac)/2)+ac-Math.ceil(parseInt(document.getElementById("GlassLayer").style.height)/2));if(parseInt(document.getElementById("GlassLayer").style.top)<topMost){document.getElementById("GlassLayer").style.top=topMost}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-io<leftMost){document.getElementById("GlassLayer").style.left=leftMost+"px";}else if(window.event.clientX-io>rightMost){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-ip<topInit){document.getElementById("GlassLayer").style.top=topInit+"px";}else if(window.event.clientY-ip>topMax){document.getElementById("GlassLayer").style.top=topMax+"px";}moveGlassImage();}function xi(){return false}function cp(ms){return parseInt(ms.currentStyle.left);}function da(ms){return parseInt(ms.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(ej>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;ds=false;ej=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 ug(){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 pt(){var obj=null;try{var cz=eval("LargeGlassDiv");for(i=0;i<ii.length;i++){obj=eval(ii[i]);if(obj==null)continue;cz.removeChild(obj);}hideLayer(cz);document.getElementById("GlassLayer").removeChild(cz);cz=null}catch(kj){}}function pu(gw,moveX,moveY){var at=0;var aw=0;var ct=0;var cu=0;var cc=document.createElement("DIV");uh(gw,cc);document.getElementById("GlassLayer").appendChild(cc);cc.style.left=moveX;cc.style.top=moveY;ii=new Array();pn=0;var ap;if(moveY>0){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(!fs(pageno,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+1,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+2,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+1,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+2,j,i)){ap=document.createElement("IMG");ft(PAGE_RIGHT,ap,j,i,moveX,moveY,g+2);cc.appendChild(ap);}}}}}}function ft(which,ao,ay,az,moveSize_X,moveSize_Y,pageno){var pageStr=''+pageno;var eg='';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(fz&&fy&&EN_FULLDRAW)eg=fl+'ext_large/'+gc(pageStr).toUpperCase()+'.jpg';else eg=fl+'large/'+gc(pageStr).toUpperCase()+'.jpg';var eh=0;var ei=0;if(ay==hl-1&&hj!=0)eh=hj;else eh=ar;if(az==iz-1&&hk!=0)ei=hk;else ei=db;var es="largeGlass_"+pageno+"_"+ay+"_"+az;var qi=ar*ay;if(which==PAGE_RIGHT)qi+=ak;ao.src=eg;ao.id=es;ao.style.position="absolute";ao.style.overflow="hidden";ao.style.left=qi;ao.style.top=db*az;ao.style.width=eh;ao.style.height=ei;ao.style.alt="";ii[pn++]=es}function uh(gw,target){var qj=ak;if(gw==2)qj=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=qj;target.style.height=aq;target.style.zIndex=300;return target}function fs(pageno,ay,az){var es="largeGlass_"+pageno+"_"+ay+"_"+az;for(k=0;k<ii.length;k++){if(ii[k]==es){return true}}return false}function moveGlassImage(){if(g==-1||g+1==ah){if(ce){if(g==-1){LargeGlassImgSrc1.style.left=(((leftPageStartPos_x+f)-parseInt(document.getElementById("GlassLayer").style.left)-parseInt(document.getElementById("GlassLayer").style.width)/2)*u)+parseInt(document.getElementById("GlassLayer").style.width)/2}else if(g+1==ah){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}}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;qk(1,cp(LargeGlassImgSrc1),da(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);qk(2,cp(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}}function qk(gw,moveX,moveY){var at=0;var aw=0;var ct=0;var cu=0;var cc=eval("LargeGlassDiv");if(!cc)return;cc.style.left=moveX;cc.style.top=moveY;var ap;if(moveY>0){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(!fs(pageno,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+1,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+2,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+1,j,i)){ap=document.createElement("IMG");ft(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(!fs(g+2,j,i)){ap=document.createElement("IMG");ft(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(mt){tdiv=eval(mt);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=mh;if(signAdMesgs.length>0){tdiv.innerHTML=signAdMesgs[fr];kn=fr}if(fr==signAdMesgs.length-1){fr=0}else{fr++}}}function signAdMove2(mt){tdiv2=eval(mt);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=mh;if(signAdMesgs.length>0){tdiv2.innerHTML=signAdMesgs[fr];kn=fr;po=true}if(fr==signAdMesgs.length-1){fr=0}else{fr++}}}function xj(){signAdNum=0}function mouseout_event(){signAdNum=1}function startscroll(){signAdNum=1;signAdMove1(signAd_1);signAd_2.style.top=mh;signAd_2.style.visibility='visible'}function xk(){if(po){if(kn!=0){openLinkWindow(signAdMesgsURL[kn-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 et(ui){waitMesg.innerHTML=ui;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"));mu=0;mv=setTimeout("stillMessaging()",100);}mu=0;var mv;function stillMessaging(){mu+=100;if(mu>MESSAGE_TIME){hideLayer(document.getElementById("PdfWaitingLayer"));clearTimeout(mv);}mv=setTimeout("stillMessaging()",100);}