// Copyright (c) 2000-2005 Unidocs. All rights reserved.
function ab(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(){ab(TocInfoLayer);}function closeToc(){hideLayer(TocInfoLayer);}function openSrch(){ab(srchTbl);ab(SrchLayer);document.keywordFrm.keyword.focus();}function closeSrch(){hideLayer(srchTbl);hideLayer(SrchLayer);}function openGlassWindow(){if(ci)return;if(jz){pq();if(typeof GlassLayer!="undefined")hideLayer(GlassLayer);jz=false}else{var leftMost=(leftPageStartPos_x+Math.floor(g/2)-Math.ceil(parseInt(GlassLayer.style.width)/2));var rightMost=leftPageStartPos_x+Math.floor(g/2)+g+Math.ceil(parseInt(GlassLayer.style.width)/2);if(m==-1||m+1==af){LargeGlassImgSrc1.src=da('medium',m+1);LargeGlassImgSrc2.src="";LargeGlassImgSrc1.width=g*ac;if(leftMost>parseInt(GlassLayer.style.left)||(rightMost<(parseInt(GlassLayer.style.left)+parseInt(GlassLayer.style.width)))){GlassLayer.style.left=leftMost+Math.ceil(g/2);LargeGlassImgSrc1.style.left=-Math.ceil((g/2*ac)-parseInt(GlassLayer.style.width)/2);}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x+g/2)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ac)+parseInt(GlassLayer.style.width)/2}LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-u)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ac)+parseInt(GlassLayer.style.height)/2;ps(1,cn(LargeGlassImgSrc1),ct(LargeGlassImgSrc1));}else{leftMost=(leftPageStartPos_x-Math.ceil(parseInt(GlassLayer.style.width)/2));rightMost=leftPageStartPos_x+(g*2)+Math.ceil(parseInt(GlassLayer.style.width)/2);LargeGlassImgSrc1.src=da('medium',m);LargeGlassImgSrc2.src=da('medium',m+1);LargeGlassImgSrc1.width=g*ac;LargeGlassImgSrc2.width=g*ac;if(leftMost>parseInt(GlassLayer.style.left)||(rightMost<(parseInt(GlassLayer.style.left)+parseInt(GlassLayer.style.width)))){GlassLayer.style.left=leftMost+g;LargeGlassImgSrc1.style.left=-Math.ceil((g*ac)-parseInt(GlassLayer.style.width)/2);LargeGlassImgSrc2.style.left=cn(LargeGlassImgSrc1);}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ac)+parseInt(GlassLayer.style.width)/2;LargeGlassImgSrc2.style.left=cn(LargeGlassImgSrc1);}LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-u)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ac)+parseInt(GlassLayer.style.height)/2;LargeGlassImgSrc2.style.top=ct(LargeGlassImgSrc1);ps(2,cn(LargeGlassImgSrc1),ct(LargeGlassImgSrc1));}if(typeof GlassLayer!="undefined")ab(GlassLayer);jz=true;}}function closeGlassWindow(){pq();if(typeof GlassLayer!="undefined")hideLayer(GlassLayer);jz=false}function openPrint(){if(m==-1)viewSrc.src=da('medium',m+1);else viewSrc.src=da('medium',m);ab(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=da('medium',m+1);else viewSrc.src=da('medium',m);viewSrc.style.width=150;viewSrc.style.height=150;viewSrc2.style.width=0;viewSrc2.style.height=0;hideLayer(PrintLayer);}var pt;var pu;mouseDowned_toc=false;var pv;var pw;mouseDowned_srch=false;var py;var pz;mouseDowned_print=false;var gy;var gg;mouseDowned_map=false;var qa;var qb;mouseDowned_mapImg=false;hr=leftPageStartPos_x;hs=aq+Math.ceil((theme_height-u)/2)-th;mouseDowned_glass=false;function toc_onmousedown(){pt=window.event.clientX-cn(TocInfoLayer);pu=window.event.clientY-ct(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){TocInfoLayer.style.left=window.event.clientX-pt;TocInfoLayer.style.top=window.event.clientY-pu}}var qc;var qd;function mapImg_onmousedown(){qa=window.event.clientX-cn(MiniMapLayer);qb=window.event.clientY-ct(MiniMapLayer);qc=cn(MiniMapLayer)-cn(MiniMapRectLayer);qd=ct(MiniMapLayer)-ct(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){MiniMapLayer.style.left=window.event.clientX-qa;MiniMapLayer.style.top=window.event.clientY-qb;MiniMapRectLayer.style.left=cn(MiniMapLayer)-qc;MiniMapRectLayer.style.top=ct(MiniMapLayer)-qd}}function srch_onmousedown(){pv=window.event.clientX-cn(SrchLayer);pw=window.event.clientY-ct(SrchLayer);mouseDowned_srch=true;srchImg.style.cursor="move";srchTbl.style.overflow="hidden";closeHelpIcon();}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-pv;SrchLayer.style.top=window.event.clientY-pw}}function print_onmousedown(){py=window.event.clientX-cn(PrintLayer);pz=window.event.clientY-ct(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){PrintLayer.style.left=window.event.clientX-py+"px";PrintLayer.style.top=window.event.clientY-pz+"px"}}function map_onmousedown(){if(parseInt(MiniMapRectLayer.style.left)<parseInt(MiniMapLayer.style.left)){MiniMapRectLayer.style.left=parseInt(MiniMapLayer.style.left);}if(parseInt(MiniMapRectLayer.style.top)<parseInt(MiniMapLayer.style.top)){MiniMapRectLayer.style.top=parseInt(MiniMapLayer.style.top);}if(parseInt(MiniMapRectLayer.style.left)>(parseInt(MiniMapLayer.style.left)+miniMap_Width-ek)){MiniMapRectLayer.style.left=parseInt(MiniMapLayer.style.left)+miniMap_Width-ek}if(parseInt(MiniMapRectLayer.style.top)>(parseInt(MiniMapLayer.style.top)+miniMap_Height-er)){MiniMapRectLayer.style.top=parseInt(MiniMapLayer.style.top)+miniMap_Height-er}gy=window.event.clientX-cn(MiniMapRectLayer);gg=window.event.clientY-ct(MiniMapRectLayer);mouseDowned_map=true;document.onmousemove=map_onmousemove;ht=cn(MiniMapRectLayer);iw=ct(MiniMapRectLayer);hideLayer(NMouseLayer);hideTag(NMouseImgTD);closeHelpIcon();}function map_onmouseup(){mouseDowned_map=false;document.onmousemove=null}var ht;var iw;function map_onmousemove(){if(!mouseDowned_map)return;var mi=false;if(EN_FULLDRAW){if(theme_width<=ai)mi=true}else mi=true;if(mi){if(window.event.clientX-gy>=parseInt(MiniMapLayer.style.left)+miniMap_Border*2&&window.event.clientX-gy<=(parseInt(MiniMapLayer.style.left)+miniMap_Width-ek)){MiniMapRectLayer.style.left=window.event.clientX-gy+"px";var largeMove_X=Math.ceil(((cn(MiniMapRectLayer)-ht)*ai)/(miniMap_Width));moveLargeImage(largeMove_X,0);ht=cn(MiniMapRectLayer);}else if(window.event.clientX-gy<parseInt(MiniMapLayer.style.left)+miniMap_Border*2){MiniMapRectLayer.style.left=(parseInt(MiniMapLayer.style.left)+miniMap_Border*2)+"px";var largeMove_X=Math.ceil(((cn(MiniMapRectLayer)-ht)*ai)/(miniMap_Width));moveLargeImage(largeMove_X,0);ht=cn(MiniMapRectLayer);}else if(window.event.clientX-gy>(parseInt(MiniMapLayer.style.left)+miniMap_Width-ek)){MiniMapRectLayer.style.left=(parseInt(MiniMapLayer.style.left)+miniMap_Border*2+miniMap_Width-ek)+"px";var largeMove_X=Math.ceil((((parseInt(MiniMapLayer.style.left)+miniMap_Width)-(window.event.clientX-gy))*ai)/(miniMap_Width));moveLargeImage(largeMove_X,0);ht=cn(MiniMapRectLayer);}}if(window.event.clientY-gg>=parseInt(MiniMapLayer.style.top)+miniMap_Border*2&&window.event.clientY-gg<=(parseInt(MiniMapLayer.style.top)+miniMap_Height-er)){MiniMapRectLayer.style.top=window.event.clientY-gg+"px";var largeMove_Y=Math.ceil(((ct(MiniMapRectLayer)-iw)*ao)/(miniMap_Height));moveLargeImage(0,largeMove_Y);iw=ct(MiniMapRectLayer);}else if(window.event.clientY-gg<parseInt(MiniMapLayer.style.top)+miniMap_Border*2){MiniMapRectLayer.style.top=(parseInt(MiniMapLayer.style.top)+miniMap_Border*2)+"px";var largeMove_Y=Math.ceil(((window.event.clientY-gg)-(miniMap_Y+miniMap_Border*2))*ao/(miniMap_Height));moveLargeImage(0,largeMove_Y);iw=ct(MiniMapRectLayer);}else if(window.event.clientY-gg>(parseInt(MiniMapLayer.style.top)+miniMap_Height-er)){MiniMapRectLayer.style.top=(parseInt(MiniMapLayer.style.top)+miniMap_Border*2+miniMap_Height-er)+"px";var largeMove_Y=Math.ceil((((parseInt(MiniMapLayer.style.top)+miniMap_Height)-(window.event.clientY-gg))*ao)/(miniMap_Height));moveLargeImage(0,largeMove_Y);iw=ct(MiniMapRectLayer);}}var wn;var wo;function glass_onmousedown(){var leftMost;var rightMost;var topMost;var bottomMost;if(m==-1||m+1==af){leftMost=leftPageStartPos_x+Math.floor(g/2)-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftPageStartPos_x+Math.floor(g/2)+g+Math.ceil(parseInt(GlassLayer.style.width)/2);}else{leftMost=leftPageStartPos_x-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftMost+g*2}if(parseInt(GlassLayer.style.left)<leftMost){GlassLayer.style.left=leftMost+Math.ceil((rightMost-leftMost)/2);}topMost=aq+Math.ceil((theme_height-u)/2-Math.ceil(parseInt(GlassLayer.style.height)/2));bottomMost=(aq+Math.ceil((theme_height-u)/2)+u-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}hr=window.event.clientX-cn(GlassLayer);hs=window.event.clientY-ct(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(g/2)-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftPageStartPos_x+Math.floor(g/2+g)-parseInt(GlassLayer.style.width)+Math.ceil(parseInt(GlassLayer.style.width)/2);}else{leftMost=leftPageStartPos_x-Math.ceil(parseInt(GlassLayer.style.width)/2);rightMost=leftMost+g*2}if(window.event.clientX-hr>=leftMost&&window.event.clientX-hr<=rightMost){GlassLayer.style.left=window.event.clientX-hr+"px";}else if(window.event.clientX-hr<leftMost){GlassLayer.style.left=leftMost+"px";}else if(window.event.clientX-hr>rightMost){GlassLayer.style.left=rightMost+"px";}var topInit=aq+Math.ceil((theme_height-u)/2)-Math.ceil(parseInt(GlassLayer.style.height)/2);var topMax=topInit+u;if(window.event.clientY-hs>=topInit&&window.event.clientY-hs<=topMax){GlassLayer.style.top=window.event.clientY-hs+"px";}else if(window.event.clientY-hs<topInit){GlassLayer.style.top=topInit+"px";}else if(window.event.clientY-hs>topMax){GlassLayer.style.top=topMax+"px";}moveGlassImage();}function wp(){return false}function cn(mj){return parseInt(mj.currentStyle.left);}function ct(mj){return parseInt(mj.currentStyle.top);}function ky(){hideLayer(LeftBottomImgLayer);hideLayer(LeftTopImgLayer);BGLayer.style.top=aq+Math.ceil((theme_height-u)/2);BGLayer.style.left=leftPageStartPos_x+Math.ceil(g/2);BGLayer.style.left=leftPageStartPos_x+Math.ceil(g*3/2);moveToCenterPos(LeftBottomImgLayer);moveToCenterPos(LeftTopImgLayer);moveToCenterPos(RightBottomImgLayer);moveToCenterPos(RightTopImgLayer);CenterSeparatorLayer.style.left=rightPageStartPos_x-24;CenterSeparatorLayer.style.top=aq+Math.ceil((theme_height-u)/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+g-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-g*ac)/2)+10;RightPageArrowLayer.style.left=theme_x+Math.floor((theme_width-g*ac)/2)+g*ac-10-44;LeftArrowLayer.style.left=theme_x+Math.floor((theme_width-g*ac)/2)+10;;RightArrowLayer.style.left=theme_x+Math.floor((theme_width-g*ac)/2)+g*ac-10-44}}BGLayer.style.width=16*2}function moveToCenterPos(obj){var imgObj=eval(obj);imgObj.style.left=leftPageStartPos_x+g/2;imgObj.style.top=aq+Math.ceil((theme_height-u)/2);imgObj.style.width=g;imgObj.style.height=u}function gq(){ae(BGLayer_LeftPage);ae(BGLayer_RightPage);BGLayer.style.top=aq+Math.ceil((theme_height-u)/2);BGLayer.style.left=leftPageStartPos_x-16;BGLayer.style.width=g*2+16*2;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-u)/2);LeftTopImgLayer.style.top=aq+Math.ceil((theme_height-u)/2);RightBottomImgLayer.style.top=aq+Math.ceil((theme_height-u)/2);RightTopImgLayer.style.top=aq+Math.ceil((theme_height-u)/2);}function openHeadCover(){if(ej>0){hideLayer(CenterSeparatorLayer);ab(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)";o=v;dq=false;ej=0;ab(document.getElementById("RightTopImgLayer"));ab(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 tl(){hideLayer(RightBottomImgLayer);hideLayer(RightTopImgLayer);BGLayer.style.top=aq+Math.ceil((theme_height-u)/2);BGLayer.style.left=leftPageStartPos_x+Math.ceil(g/2)-16;moveToCenterPos(LeftBottomImgLayer);moveToCenterPos(LeftTopImgLayer);moveToCenterPos(RightBottomImgLayer);moveToCenterPos(RightTopImgLayer);BGLayer.style.width=16*2}function pq(){var obj=null;try{var ds=eval("LargeGlassDiv");for(i=0;i<ho.length;i++){obj=eval(ho[i]);if(obj==null)continue;ds.removeChild(obj);}hideLayer(ds);GlassLayer.removeChild(ds);ds=null}catch(jw){}}function ps(gh,moveX,moveY){var ap=0;var as=0;var cl=0;var cm=0;var az=document.createElement("DIV");tm(gh,az);GlassLayer.appendChild(az);az.style.left=moveX;az.style.top=moveY;ho=new Array();pl=0;var am;if(moveY>0){cl=0;cm=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cs);}else{cl=Math.floor((-moveY)/cs);cm=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cs);}if(gh==1){pageno=m+2;if(m+1==af)pageno=m+1;if(moveX>0){ap=0;as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}else{ap=Math.floor((-moveX)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(pageno,j,i)){am=document.createElement("IMG");fl(PAGE_LEFT,am,j,i,moveX,moveY,pageno);az.appendChild(am);}}}}else if(gh==2){if(-moveX+parseInt(GlassLayer.style.width)<=ai){if(moveX>0){ap=0;as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}else{ap=Math.floor((-moveX)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+1,j,i)){am=document.createElement("IMG");fl(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}}else if(-moveX>ai){ap=Math.floor((-moveX-ai)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/an);for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+2,j,i)){am=document.createElement("IMG");fl(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)/an);as=gt;for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+1,j,i)){am=document.createElement("IMG");fl(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}ap=Math.floor((-moveX+parseInt(GlassLayer.style.width)-ai)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/an);for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+2,j,i)){am=document.createElement("IMG");fl(PAGE_RIGHT,am,j,i,moveX,moveY,m+2);az.appendChild(am);}}}}}}function fl(which,gx,ax,ay,moveSize_X,moveSize_Y,pageno){var pageStr=''+pageno;var dt='';switch(pageStr.length){case 1:pageStr="000"+pageStr;break;case 2:pageStr="00"+pageStr;break;case 3:pageStr="0"+pageStr;break}var db=''+ay;switch(db.length){case 1:db="00"+db;break;case 2:db="0"+db;break}var dc=''+ax;switch(dc.length){case 1:dc="00"+dc;break;case 2:dc="0"+dc;break}pageStr+='_'+db+'_'+dc;if(fq&&fp&&EN_FULLDRAW)dt=fd+'ext_large/'+fu(pageStr).toUpperCase()+'.jpg';else dt=fd+'large/'+fu(pageStr).toUpperCase()+'.jpg';var du=0;var dv=0;if(ax==gt-1&&gr!=0)du=gr;else du=an;if(ay==ig-1&&gs!=0)dv=gs;else dv=cs;var eh="largeGlass_"+pageno+"_"+ax+"_"+ay;var qe=an*ax;if(which==PAGE_RIGHT)qe+=ai;with(gx){src=dt;id=eh;with(style){position="absolute";overflow="hidden";left=qe;top=cs*ay;width=du;height=dv;alt=""}}ho[pl++]=eh}function tm(gh,target){var qf=ai;if(gh==2)qf=ai*2;with(target){id="LargeGlassDiv";with(style){cursor="hand";position="absolute";overflow="hidden";visibility="visible";left=0;top=0;width=qf;height=ao;zIndex=300}}return target}function fk(pageno,ax,ay){var eh="largeGlass_"+pageno+"_"+ax+"_"+ay;for(k=0;k<ho.length;k++){if(ho[k]==eh){return true}}return false}function moveGlassImage(){if(m==-1||m+1==af){LargeGlassImgSrc1.style.left=(((leftPageStartPos_x+g/2)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ac)+parseInt(GlassLayer.style.width)/2;LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-u)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ac)+parseInt(GlassLayer.style.height)/2;qg(1,cn(LargeGlassImgSrc1),ct(LargeGlassImgSrc1));}else{LargeGlassImgSrc1.style.left=(((leftPageStartPos_x)-parseInt(GlassLayer.style.left)-parseInt(GlassLayer.style.width)/2)*ac)+parseInt(GlassLayer.style.width)/2;LargeGlassImgSrc2.style.left=cn(LargeGlassImgSrc1);LargeGlassImgSrc1.style.top=Math.ceil(((aq+(theme_height-u)/2-parseInt(GlassLayer.style.height)/2)-parseInt(GlassLayer.style.top))*ac)+parseInt(GlassLayer.style.height)/2;LargeGlassImgSrc2.style.top=ct(LargeGlassImgSrc1);qg(2,cn(LargeGlassImgSrc1),ct(LargeGlassImgSrc1));}}function qg(gh,moveX,moveY){var ap=0;var as=0;var cl=0;var cm=0;var az=eval("LargeGlassDiv");if(!az)return;az.style.left=moveX;az.style.top=moveY;var am;if(moveY>0){cl=0;cm=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cs);}else{cl=Math.floor((-moveY)/cs);cm=Math.ceil((parseInt(GlassLayer.style.height)-moveY)/cs);}if(gh==1){pageno=m+2;if(m+1==af)pageno=m+1;if(moveX>0){ap=0;as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}else{ap=Math.floor((-moveX)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(pageno,j,i)){am=document.createElement("IMG");fl(PAGE_LEFT,am,j,i,moveX,moveY,pageno);az.appendChild(am);}}}}else if(gh==2){if(-moveX+parseInt(GlassLayer.style.width)<=ai){if(moveX>0){ap=0;as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}else{ap=Math.floor((-moveX)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX)/an);}for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+1,j,i)){am=document.createElement("IMG");fl(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}}else if(-moveX>ai){ap=Math.floor((-moveX-ai)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/an);for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+2,j,i)){am=document.createElement("IMG");fl(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)/an);as=gt;for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+1,j,i)){am=document.createElement("IMG");fl(PAGE_LEFT,am,j,i,moveX,moveY,m+1);az.appendChild(am);}}}ap=Math.floor((-moveX+parseInt(GlassLayer.style.width)-ai)/an);as=Math.ceil((parseInt(GlassLayer.style.width)-moveX-ai)/an);for(i=cl;i<=cm-1;i++){for(j=ap;j<=as-1;j++){if(!fk(m+2,j,i)){am=document.createElement("IMG");fl(PAGE_RIGHT,am,j,i,moveX,moveY,m+2);az.appendChild(am);}}}}}}function diminishGlassWindow(){if(enlargeCount>0){GlassLayer.style.left=cn(GlassLayer)+(ia/2);GlassLayer.style.top=ct(GlassLayer)+(ib/2);GlassLayer.style.width=parseInt(GlassLayer.style.width)-ia;GlassLayer.style.height=parseInt(GlassLayer.style.height)-ib;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=cn(GlassLayer)-(ia/2);GlassLayer.style.top=ct(GlassLayer)-(ib/2);GlassLayer.style.width=parseInt(GlassLayer.style.width)+ia;GlassLayer.style.height=parseInt(GlassLayer.style.height)+ib;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(mk){tdiv=eval(mk);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=lz;if(signAdMesgs.length>0){tdiv.innerHTML=signAdMesgs[fj];ka=fj}if(fj==signAdMesgs.length-1){fj=0}else{fj++}}}function signAdMove2(mk){tdiv2=eval(mk);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=lz;if(signAdMesgs.length>0){tdiv2.innerHTML=signAdMesgs[fj];ka=fj;pm=true}if(fj==signAdMesgs.length-1){fj=0}else{fj++}}}function wq(){signAdNum=0}function mouseout_event(){signAdNum=1}function rp(){signAdNum=1;signAdMove1(signAd_1);signAd_2.style.top=lz;signAd_2.style.visibility='visible'}function adCalls(){if(pm){if(ka!=0){openLinkWindow(signAdMesgsURL[ka-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 ez(tn){waitMesg.innerHTML=tn;PdfWaitingLayer.style.left=Math.ceil((theme_width-300)/2);PdfWaitingLayer.style.top=Math.ceil((theme_y+theme_height-60)/2);PdfWaitingLayer.style.display="";ab(PdfWaitingLayer);ml=0;mm=setTimeout("stillMessaging()",100);}ml=0;var mm;function stillMessaging(){ml+=100;if(ml>MESSAGE_TIME){hideLayer(PdfWaitingLayer);clearTimeout(mm);}mm=setTimeout("stillMessaging()",100);}