// Copyright (c) 2000-2005 Unidocs. All rights reserved.
function ac(ak){eval(ak).style.visibility="visible"}function hideLayer(ak){eval(ak).style.visibility="hidden"}function ah(ak){eval(ak).style.display=""}function hideTag(ak){eval(ak).style.display="none"}function openToc(){ac(TocInfoLayer);}function closeToc(){hideLayer(TocInfoLayer);}function openSrch(){ac(srchTbl);ac(SrchLayer);}function closeSrch(){hideLayer(srchTbl);hideLayer(SrchLayer);}function openGlassWindow(){if(ch)return;if(je){oj();if(typeof GlassLayer!="undefined")hideLayer(GlassLayer);je=false}else{var leftMost=(leftPageStartPos_x+Math.floor(f/2)-Math.ceil(parseInt(GlassLayer.style.width)/2));var rightMost=leftPageStartPos_x+Math.floor(f/2)+f+Math.ceil(parseInt(GlassLayer.style.width)/2);if(m==-1||m+1==af){LargeGlassImgSrc1.src=cr('medium',m+1);LargeGlassImgSrc2.src="";LargeGlassImgSrc1.width=f*ab;if(leftMost>parseInt(GlassLayer.style.left)||(rightMost<(parseInt(GlassLayer.style.left)+parseInt(GlassLayer.style.width)))){GlassLayer.style.left=leftMost+Math.ceil(f/2);LargeGlassImgSrc1.style.left=-Math.ceil((f/2*ab)-parseInt(GlassLayer.style.width)/2);}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x+f/2)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ab)+parseInt(GlassLayer.style.width)/2}LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-z)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ab)+parseInt(GlassLayer.style.height)/2;ok(1,cu(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}else{leftMost=(leftPageStartPos_x-Math.ceil(parseInt(GlassLayer.style.width)/2));rightMost=leftPageStartPos_x+(f*2)+Math.ceil(parseInt(GlassLayer.style.width)/2);LargeGlassImgSrc1.src=cr('medium',m);LargeGlassImgSrc2.src=cr('medium',m+1);LargeGlassImgSrc1.width=f*ab;LargeGlassImgSrc2.width=f*ab;if(leftMost>parseInt(GlassLayer.style.left)||(rightMost<(parseInt(GlassLayer.style.left)+parseInt(GlassLayer.style.width)))){GlassLayer.style.left=leftMost+f;LargeGlassImgSrc1.style.left=-Math.ceil((f*ab)-parseInt(GlassLayer.style.width)/2);LargeGlassImgSrc2.style.left=cu(LargeGlassImgSrc1);}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ab)+parseInt(GlassLayer.style.width)/2;LargeGlassImgSrc2.style.left=cu(LargeGlassImgSrc1);}LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-z)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ab)+parseInt(GlassLayer.style.height)/2;LargeGlassImgSrc2.style.top=da(LargeGlassImgSrc1);ok(2,cu(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}if(typeof GlassLayer!="undefined")ac(GlassLayer);je=true;}}function closeGlassWindow(){oj();if(typeof GlassLayer!="undefined")hideLayer(GlassLayer);je=false}function openPrint(){if(m==-1)viewSrc.src=cr('medium',m+1);else viewSrc.src=cr('medium',m);ac(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(m==-1)viewSrc.src=cr('medium',m+1);else viewSrc.src=cr('medium',m);viewSrc.style.width=150;viewSrc.style.height=150;viewSrc2.style.width=0;viewSrc2.style.height=0;hideLayer(PrintLayer);}var ol;var om;mouseDowned_toc=false;var on;var oo;mouseDowned_srch=false;var op;var oq;mouseDowned_print=false;var gh;var fr;mouseDowned_map=false;hc=leftPageStartPos_x;hd=aq+Math.ceil((theme_height-z)/2)-ru;mouseDowned_glass=false;function toc_onmousedown(){ol=window.event.clientX-cu(TocInfoLayer);om=window.event.clientY-da(TocInfoLayer);mouseDowned_toc=true;tocImg.style.cursor="move";folderTree.style.overflow="hidden"}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){TocInfoLayer.style.left=window.event.clientX-ol;TocInfoLayer.style.top=window.event.clientY-om}}function srch_onmousedown(){on=window.event.clientX-cu(SrchLayer);oo=window.event.clientY-da(SrchLayer);mouseDowned_srch=true;srchImg.style.cursor="move";srchTbl.style.overflow="hidden"}function srch_onmouseup(){mouseDowned_srch=false;srchImg.style.cursor="hand";srchTbl.style.overflow="auto"}function srch_onmousemove(){if(!mouseDowned_srch){return}if(window.event.clientX>=0&&window.event.clientY>=0){SrchLayer.style.left=window.event.clientX-on;SrchLayer.style.top=window.event.clientY-oo}}function print_onmousedown(){op=window.event.clientX-cu(PrintLayer);oq=window.event.clientY-da(PrintLayer);mouseDowned_print=true;printImg.style.cursor="move"}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){PrintLayer.style.left=window.event.clientX-op+"px";PrintLayer.style.top=window.event.clientY-oq+"px"}}function map_onmousedown(){if(parseInt(MiniMapRectLayer.style.left)<miniMap_X){MiniMapRectLayer.style.left=miniMap_X}if(parseInt(MiniMapRectLayer.style.top)<miniMap_Y){MiniMapRectLayer.style.top=miniMap_Y}if(parseInt(MiniMapRectLayer.style.left)>(miniMap_X+miniMap_Width-ef)){MiniMapRectLayer.style.left=miniMap_X+miniMap_Width-ef}if(parseInt(MiniMapRectLayer.style.top)>(miniMap_Y+miniMap_Height-ej)){MiniMapRectLayer.style.top=miniMap_Y+miniMap_Height-ej}gh=window.event.clientX-cu(MiniMapRectLayer);fr=window.event.clientY-da(MiniMapRectLayer);mouseDowned_map=true;document.onmousemove=map_onmousemove;he=cu(MiniMapRectLayer);ie=da(MiniMapRectLayer);hideLayer(NMouseLayer);hideTag(NMouseImgTD);}function map_onmouseup(){mouseDowned_map=false;document.onmousemove=null}var he;var ie;function map_onmousemove(){if(!mouseDowned_map)return;var lj=false;if(EN_FULLDRAW){if(theme_width<=ai)lj=true}else lj=true;if(lj){if(window.event.clientX-gh>=miniMap_X+miniMap_Border*2&&window.event.clientX-gh<=(miniMap_X+miniMap_Width-ef)){MiniMapRectLayer.style.left=window.event.clientX-gh+"px";var largeMove_X=Math.ceil(((cu(MiniMapRectLayer)-he)*ai)/(miniMap_Width));moveLargeImage(largeMove_X,0);he=cu(MiniMapRectLayer);}else if(window.event.clientX-gh<miniMap_X+miniMap_Border*2){MiniMapRectLayer.style.left=(miniMap_X+miniMap_Border*2)+"px";var largeMove_X=Math.ceil(((cu(MiniMapRectLayer)-he)*ai)/(miniMap_Width));moveLargeImage(largeMove_X,0);he=cu(MiniMapRectLayer);}else if(window.event.clientX-gh>(miniMap_X+miniMap_Width-ef)){MiniMapRectLayer.style.left=(miniMap_X+miniMap_Border*2+miniMap_Width-ef)+"px";var largeMove_X=Math.ceil((((miniMap_X+miniMap_Width)-(window.event.clientX-gh))*ai)/(miniMap_Width));moveLargeImage(largeMove_X,0);he=cu(MiniMapRectLayer);}}if(window.event.clientY-fr>=miniMap_Y+miniMap_Border*2&&window.event.clientY-fr<=(miniMap_Y+miniMap_Height-ej)){MiniMapRectLayer.style.top=window.event.clientY-fr+"px";var largeMove_Y=Math.ceil(((da(MiniMapRectLayer)-ie)*at)/(miniMap_Height));moveLargeImage(0,largeMove_Y);ie=da(MiniMapRectLayer);}else if(window.event.clientY-fr<miniMap_Y+miniMap_Border*2){MiniMapRectLayer.style.top=(miniMap_Y+miniMap_Border*2)+"px";var largeMove_Y=Math.ceil(((window.event.clientY-fr)-(miniMap_Y+miniMap_Border*2))*at/(miniMap_Height));moveLargeImage(0,largeMove_Y);ie=da(MiniMapRectLayer);}else if(window.event.clientY-fr>(miniMap_Y+miniMap_Height-ej)){MiniMapRectLayer.style.top=(miniMap_Y+miniMap_Border*2+miniMap_Height-ej)+"px";var largeMove_Y=Math.ceil((((miniMap_Y+miniMap_Height)-(window.event.clientY-fr))*at)/(miniMap_Height));moveLargeImage(0,largeMove_Y);ie=da(MiniMapRectLayer);}}var uw;var ux;function glass_onmousedown(){var leftMost;var rightMost;var topMost;var bottomMost;if(m==-1||m+1==af){leftMost=leftPageStartPos_x+Math.floor(f/2)-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f/2)+f+Math.ceil(parseInt(GlassLayer.style.width)/2);}else{leftMost=leftPageStartPos_x-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftMost+f*2}if(parseInt(GlassLayer.style.left)<leftMost){GlassLayer.style.left=leftMost+Math.ceil((rightMost-leftMost)/2);}topMost=aq+Math.ceil((theme_height-z)/2-Math.ceil(parseInt(GlassLayer.style.height)/2));bottomMost=(aq+Math.ceil((theme_height-z)/2)+z-Math.ceil(parseInt(GlassLayer.style.height)/2));if(parseInt(GlassLayer.style.top)<topMost){GlassLayer.style.top=topMost}if(parseInt(GlassLayer.style.left)>rightMost){GlassLayer.style.left=rightMost}if(parseInt(GlassLayer.style.top)>bottomMost){GlassLayer.style.top=bottomMost}hc=window.event.clientX-cu(GlassLayer);hd=window.event.clientY-da(GlassLayer);mouseDowned_glass=true;moveGlassImage();}function glass_onmouseup(){mouseDowned_glass=false}function glass_onmousemove(){if(!mouseDowned_glass){return}var leftMost;var rightMost;if(m==-1||m+1==af){leftMost=leftPageStartPos_x+Math.floor(f/2)-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftPageStartPos_x+Math.floor(f/2+f)-parseInt(GlassLayer.style.width)+Math.ceil(parseInt(GlassLayer.style.width)/2);}else{leftMost=leftPageStartPos_x-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftMost+f*2}if(window.event.clientX-hc>=leftMost&&window.event.clientX-hc<=rightMost){GlassLayer.style.left=window.event.clientX-hc+"px";}else if(window.event.clientX-hc<leftMost){GlassLayer.style.left=leftMost+"px";}else if(window.event.clientX-hc>rightMost){GlassLayer.style.left=rightMost+"px";}var topInit=aq+Math.ceil((theme_height-z)/2)-Math.ceil(parseInt(GlassLayer.style.height)/2);var topMax=topInit+z;if(window.event.clientY-hd>=topInit&&window.event.clientY-hd<=topMax){GlassLayer.style.top=window.event.clientY-hd+"px";}else if(window.event.clientY-hd<topInit){GlassLayer.style.top=topInit+"px";}else if(window.event.clientY-hd>topMax){GlassLayer.style.top=topMax+"px";}moveGlassImage();}function uy(){return false}function cu(lk){return parseInt(lk.currentStyle.left);}function da(lk){return parseInt(lk.currentStyle.top);}function jw(){hideLayer(LeftBottomImgLayer);hideLayer(LeftTopImgLayer);BGLayer.style.top=aq+Math.ceil((theme_height-z)/2);BGLayer.style.left=leftPageStartPos_x+Math.ceil(f/2);BGLayer.style.width=f*2+16*2;BGLayer.style.left=(Math.ceil((hl-f)/2)+f);BGLayer.style.left=leftPageStartPos_x+Math.ceil(f*3/2);moveToCenterPos(LeftBottomImgLayer);moveToCenterPos(LeftTopImgLayer);moveToCenterPos(RightBottomImgLayer);moveToCenterPos(RightTopImgLayer);CenterSeparatorLayer.style.left=rightPageStartPos_x-24;CenterSeparatorLayer.style.top=aq+Math.ceil((theme_height-z)/2);UpArrowLayer.style.left=rightPageStartPos_x-28;UpArrowLayer.style.top=10+largeImgLayerPos_Y;DownArrowLayer.style.left=rightPageStartPos_x-28;DownArrowLayer.style.top=aq+theme_height-44-10;LeftPageArrowLayer.style.left=leftPageStartPos_x+10;LeftPageArrowLayer.style.top=10+largeImgLayerPos_Y;RightPageArrowLayer.style.left=rightPageStartPos_x+f-10-56;RightPageArrowLayer.style.top=largeImgLayerPos_Y+theme_height-58-10;if(EN_FULLDRAW){if(theme_width<=ai){LeftPageArrowLayer.style.left=theme_x+10;RightPageArrowLayer.style.left=theme_x+theme_width-10-44;LeftArrowLayer.style.left=theme_x+10;RightArrowLayer.style.left=theme_x+theme_width-10-44}else{LeftPageArrowLayer.style.left=theme_x+Math.floor((theme_width-f*ab)/2)+10;RightPageArrowLayer.style.left=theme_x+Math.floor((theme_width-f*ab)/2)+f*ab-10-44;LeftArrowLayer.style.left=theme_x+Math.floor((theme_width-f*ab)/2)+10;;RightArrowLayer.style.left=theme_x+Math.floor((theme_width-f*ab)/2)+f*ab-10-44}}}function moveToCenterPos(ak){var imgObj=eval(ak);imgObj.style.left=leftPageStartPos_x+f/2;imgObj.style.top=aq+Math.ceil((theme_height-z)/2);imgObj.style.width=f;imgObj.style.height=z}function fz(){ah(BGLayer_LeftPage);ah(BGLayer_RightPage);BGLayer.style.top=aq+Math.ceil((theme_height-z)/2);BGLayer.style.left=leftPageStartPos_x-16;LeftBottomImgLayer.style.left=leftPageStartPos_x;LeftTopImgLayer.style.left=leftPageStartPos_x;RightBottomImgLayer.style.left=rightPageStartPos_x;RightTopImgLayer.style.left=rightPageStartPos_x;LeftBottomImgLayer.style.top=aq+Math.ceil((theme_height-z)/2);LeftTopImgLayer.style.top=aq+Math.ceil((theme_height-z)/2);RightBottomImgLayer.style.top=aq+Math.ceil((theme_height-z)/2);RightTopImgLayer.style.top=aq+Math.ceil((theme_height-z)/2);}function openHeadCover(){if(ec>0){hideLayer(CenterSeparatorLayer);ac(RightBottomImgLayer);ah(RightBottomImg);ah(LeftBottomImg);ah(LeftTopImg);ah(RightTopImg);ah(LargeImageTag);ah(BGLayer_RightPage);ah(UpArrow);ah(DownArrow);ah(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)";o=u;dl=false;ec=0}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 ry(){hideLayer(RightBottomImgLayer);hideLayer(RightTopImgLayer);BGLayer.style.top=aq+Math.ceil((theme_height-z)/2);BGLayer.style.left=leftPageStartPos_x+Math.ceil(f/2)-16;BGLayer.style.width=f*2+16*2;moveToCenterPos(LeftBottomImgLayer);moveToCenterPos(LeftTopImgLayer);moveToCenterPos(RightBottomImgLayer);moveToCenterPos(RightTopImgLayer);}function oj(){var ak=null;try{var dn=eval("LargeGlassDiv");for(i=0;i<gz.length;i++){ak=eval(gz[i]);if(ak==null)continue;dn.removeChild(ak);}hideLayer(dn);GlassLayer.removeChild(dn);dn=null}catch(jb){}}function ok(fs,moveX,moveY){var ap=0;var ar=0;var ck=0;var cl=0;var az=document.createElement("DIV");rz(fs,az);GlassLayer.appendChild(az);az.style.left=moveX;az.style.top=moveY;gz=new Array();oe=0;var am;if(moveY>0){ck=0;cl=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cp);}else{ck=Math.floor((-moveY)/cp);cl=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cp);}if(fs==1){pageno=m+2;if(m+1==af)pageno=m+1;if(moveX>0){ap=0;ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}else{ap=Math.floor((-moveX)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(pageno,j,i)){am=document.createElement("IMG");fc(PAGE_LEFT,am,j,i,moveX,moveY,pageno);az.appendChild(am);}}}}else if(fs==2){if(-moveX+parseInt(GlassLayer.style.width)<=ai){if(moveX>0){ap=0;ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}else{ap=Math.floor((-moveX)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+1,j,i)){am=document.createElement("IMG");fc(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}}else if(-moveX>ai){ap=Math.floor((-moveX-ai)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/ao);for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+2,j,i)){am=document.createElement("IMG");fc(PAGE_RIGHT,am,j,i,moveX,moveY,m+2);az.appendChild(am);}}}}else if((-moveX+parseInt(GlassLayer.style.width)>ai)&&-moveX<=ai){ap=Math.floor((-moveX)/ao);ar=gc;for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+1,j,i)){am=document.createElement("IMG");fc(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}ap=Math.floor((-moveX+parseInt(GlassLayer.style.width)-ai)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/ao);for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+2,j,i)){am=document.createElement("IMG");fc(PAGE_RIGHT,am,j,i,moveX,moveY,m+2);az.appendChild(am);}}}}}}function fc(which,gg,ax,ay,moveSize_X,moveSize_Y,pageno){var pageStr=''+pageno;var ei='';switch(pageStr.length){case 1:pageStr="000"+pageStr;break;case 2:pageStr="00"+pageStr;break;case 3:pageStr="0"+pageStr;break}var cs=''+ay;switch(cs.length){case 1:cs="00"+cs;break;case 2:cs="0"+cs;break}var ct=''+ax;switch(ct.length){case 1:ct="00"+ct;break;case 2:ct="0"+ct;break}pageStr+='_'+cs+'_'+ct;ei=gm+'large/'+hz(pageStr).toUpperCase()+'.jpg';var dp=0;var dq=0;if(ax==gc-1&&ga!=0)dp=ga;else dp=ao;if(ay==ho-1&&gb!=0)dq=gb;else dq=cp;var eb="largeGlass_"+pageno+"_"+ax+"_"+ay;var or=ao*ax;if(which==PAGE_RIGHT)or+=ai;with(gg){src=ei;id=eb;with(style){position="absolute";overflow="hidden";left=or;top=cp*ay;width=dp;height=dq;alt=""}}gz[oe++]=eb}function rz(fs,target){var os=ai;if(fs==2)os=ai*2;with(target){id="LargeGlassDiv";with(style){cursor="hand";position="absolute";overflow="hidden";visibility="visible";left=0;top=0;width=os;height=at;zIndex=300}}return target}function fb(pageno,ax,ay){var eb="largeGlass_"+pageno+"_"+ax+"_"+ay;for(k=0;k<gz.length;k++){if(gz[k]==eb){return true}}return false}function moveGlassImage(){if(m==-1||m+1==af){LargeGlassImgSrc1.style.left=(((leftPageStartPos_x+f/2)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ab)+parseInt(GlassLayer.style.width)/2;LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-z)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ab)+parseInt(GlassLayer.style.height)/2;ot(1,cu(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ab)+parseInt(GlassLayer.style.width)/2;LargeGlassImgSrc2.style.left=cu(LargeGlassImgSrc1);LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-z)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ab)+parseInt(GlassLayer.style.height)/2;LargeGlassImgSrc2.style.top=da(LargeGlassImgSrc1);ot(2,cu(LargeGlassImgSrc1),da(LargeGlassImgSrc1));}}function ot(fs,moveX,moveY){var ap=0;var ar=0;var ck=0;var cl=0;var az=eval("LargeGlassDiv");if(!az)return;az.style.left=moveX;az.style.top=moveY;var am;if(moveY>0){ck=0;cl=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cp);}else{ck=Math.floor((-moveY)/cp);cl=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cp);}if(fs==1){pageno=m+2;if(m+1==af)pageno=m+1;if(moveX>0){ap=0;ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}else{ap=Math.floor((-moveX)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(pageno,j,i)){am=document.createElement("IMG");fc(PAGE_LEFT,am,j,i,moveX,moveY,pageno);az.appendChild(am);}}}}else if(fs==2){if(-moveX+parseInt(GlassLayer.style.width)<=ai){if(moveX>0){ap=0;ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}else{ap=Math.floor((-moveX)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/ao);}for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+1,j,i)){am=document.createElement("IMG");fc(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}}else if(-moveX>ai){ap=Math.floor((-moveX-ai)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/ao);for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+2,j,i)){am=document.createElement("IMG");fc(PAGE_RIGHT,am,j,i,moveX,moveY,m+2);az.appendChild(am);}}}}else if((-moveX+parseInt(GlassLayer.style.width)>ai)&&-moveX<=ai){ap=Math.floor((-moveX)/ao);ar=gc;for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+1,j,i)){am=document.createElement("IMG");fc(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}ap=Math.floor((-moveX+parseInt(GlassLayer.style.width)-ai)/ao);ar=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/ao);for(i=ck;i<=cl-1;i++){for(j=ap;j<=ar-1;j++){if(!fb(m+2,j,i)){am=document.createElement("IMG");fc(PAGE_RIGHT,am,j,i,moveX,moveY,m+2);az.appendChild(am);}}}}}}function diminishGlassWindow(){if(enlargeCount>0){GlassLayer.style.left=cu(GlassLayer)+(hm/2);GlassLayer.style.top=da(GlassLayer)+(hn/2);GlassLayer.style.width=parseInt(GlassLayer.style.width)-hm;GlassLayer.style.height=parseInt(GlassLayer.style.height)-hn;GlassTBL.style.width=parseInt(GlassLayer.style.width);GlassTBL.style.height=parseInt(GlassLayer.style.height);InnerGlassTBL.style.height=parseInt(GlassTBL.style.height)-40;moveGlassImage();enlargeCount--}}function enlargeGlassWindow(){if(enlargeCount<5){GlassLayer.style.left=cu(GlassLayer)-(hm/2);GlassLayer.style.top=da(GlassLayer)-(hn/2);GlassLayer.style.width=parseInt(GlassLayer.style.width)+hm;GlassLayer.style.height=parseInt(GlassLayer.style.height)+hn;GlassTBL.style.width=parseInt(GlassLayer.style.width);GlassTBL.style.height=parseInt(GlassLayer.style.height);InnerGlassTBL.style.height=parseInt(GlassTBL.style.height)-40;moveGlassImage();enlargeCount++}}function signAdMove1(ll){tdiv=eval(ll);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=la;if(signAdMesgs.length>0){tdiv.innerHTML=signAdMesgs[fa];jf=fa}if(fa==signAdMesgs.length-1){fa=0}else{fa++}}}function signAdMove2(ll){tdiv2=eval(ll);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=la;if(signAdMesgs.length>0){tdiv2.innerHTML=signAdMesgs[fa];jf=fa;of=true}if(fa==signAdMesgs.length-1){fa=0}else{fa++}}}function uz(){signAdNum=0}function mouseout_event(){signAdNum=1}function qe(){signAdNum=1;signAdMove1(signAd_1);signAd_2.style.top=la;signAd_2.style.visibility='visible'}function adCalls(){if(of){if(jf!=0){openLinkWindow(signAdMesgsURL[jf-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}}