var Action,CataInfo,ServerInfo,ScreenInfo,PageInfo,MenuInfo,FileInfo,SkinInfo,UnifyInfo,MoveInfo;var SearchInfo,SoundInfo,LinkInfo,PrintInfo,TouchInfo,SpacerInfo,GuideInfo,WinInfo,BBwInfo,CustomInfo;var winRect,cataRect,desRect,smRect,btmenuY;var cataBoxData={currIndex:-1,expCode:[],expData:[],linkCate:[],expView:[],arCataTitle:[],arCataDir:[]};var ConnectMan={currDir:'',currIdx:0};var DataMan={cataboxData:-1,arLinkData:[],arSoundData:[],arCoordData:[],arPicData:[],dobufDim:false};var PermitMan={aniSvg:false};var DebugMan={strTitle:''};var ParaMan;var ScreenMan={};var BookInfo={arTitle:[],arSearch:[],arCont:[]};function set_action(b1,b2){Action={mainState:'normal',prevState:[],drawCondition:-2,aniLocking:false,wheelLocking:false,resizeLocking:false,loadto:0,loaded:0,mouseDragClip:undefined,togetherEnlarge:false,downKind:'',mouseDragged:false,mouseDownBlock:false,mouseDowned:false,showAltText:b1,showLinkText:b2,touchStartTime:0,touchEndTime:0,arWheelClip:[],wheelSeq:0,wheelNum:0,wheelEnded:false,doubleClickTime:300};if(CataInfo.incview==="m")Action.showLinkText=false;Action.set_mainState=function(s){Action.prevState.push(Action.mainState);Action.mainState=s;} Action.restoreState=function(){var s=Action.prevState.pop();Action.mainState=s;} Action.set_togetherEnlarge=function(){Action.togetherEnlarge=(PageInfo.blank_imageSet(PageInfo.currentPage)==true)?false:true;} Action.do_mouseDown=function(s,e){Action.mouseDowned=true;if(Action.mainState==="slide"){Action.mainState="stop";Action.mouseDownBlock=true;} if(combopopSvg!=undefined){ComboObj.mouseDownRoot(e);Action.mouseDownBlock=true;}} Action.do_touchStart=function(s,e){Action.mouseDowned=true;if(Action.mainState==="slide"){Action.mainState="stop";Action.mouseDownBlock=true;} } Action.do_mouseMove=function(s,e){if(Action.downKind==="newin"){NewinObj.do_mousemove(e);} else if(MenuInfo.menuAutoHide===true){if(AniObj.mmTimer)return;if(e.clientYdesRect.bottom){if(AniObj.lwY===0)do_lowerAnimate('show');} else{if(AniObj.lwY===-ScreenInfo.bottomSwapDist)do_lowerAnimate('hide');}}}} if(combopop2Svg!=undefined){Combo2Obj.do_mouseOut(e);}} Action.do_mouseDrag=function(e){if(Action.mouseDragClip!=undefined)return Action.mouseDragClip.do_mouseDrag(e);return false;} Action.do_mouseUp=function(s,e){if(Action.mouseDragClip!=undefined){Action.mouseDragClip.do_mouseUp(e);Action.mouseDragClip=undefined;Action.mouseDragged=false;return;} Action.downKind="";Action.mouseDowned=false;Action.mouseDragged=false;if(Action.mouseDownBlock===true){setTimeout(function(){Action.mouseDownBlock=false},100);}} Action.do_touchEnd=function(s,e){if(Action.mouseDragClip!=undefined){Action.mouseDragClip.do_touchEnd();Action.mouseDragClip=undefined;Action.mouseDragged=false;return;} Action.downKind="";Action.mouseDowned=false;Action.mouseDragged=false;if(Action.mouseDownBlock===true){setTimeout(function(){Action.mouseDownBlock=false},100);}} Action.do_mouseWheel=function(s,e){if(Action.aniLocking===true||Action.wheelLocking===true)return;if(Action.drawCondition===0||Action.drawCondition===-1){Action.wheelSeq++;if(Action.wheelSeq===1){Action.wheelNum=Action.wheelSeq;setTimeout(function(){Action.do_mouseWheel2(e)},300);}} else{EncObj.do_mouseWheel(e);}} Action.do_mouseWheel2=function(e){var alen=Action.arWheelClip.length;if(alen===0)return;for(var i=0;iScreenInfo.smImageOriWidth||ScreenInfo.smImageHeight>ScreenInfo.smImageOriHeight))){ScreenInfo.smImageWidth=ScreenInfo.smImageOriWidth;ScreenInfo.smImageWidthHalf=ScreenInfo.smImageWidth/2;ScreenInfo.smImageHeight=ScreenInfo.smImageOriHeight;ScreenInfo.smImageHeightHalf=ScreenInfo.smImageHeight/2;ScreenInfo.ratioBS=ScreenInfo.bigImageWidth/ScreenInfo.smImageWidth;}}} function set_cataRect(n1,n2,n3,n4,n5,n6,n7,n8){if(MenuInfo.soundMenuHide===true)n8=0;if(MenuInfo.menuAutoHide===true){ScreenInfo.topSwapDist=(SkinInfo.mmtype==="bottom")?-100:n2;ScreenInfo.bottomSwapDist=n8;n2=0;n4=0;} winRect=new Rectangle(0,0,stageWidth,stageHeight);cataRect=new Rectangle(n1,n2,stageWidth-n1-n3,stageHeight-n2-n4);desRect=new Rectangle(n1+n5,n2+n6,stageWidth-n1-n3-n5-n7,stageHeight-n2-n4-n6-n8);ScreenInfo.syncRealHappen=true;if(ScreenInfo.syncImgToWin==="Y")set_syncProperty(false,false);else if(ScreenInfo.syncImgToWin==="S")set_syncProperty(false,true);var py=desRect.centerPt.y-Math.floor(ScreenInfo.smImageHeightHalf);if(py(stageWidth-n1-n3)){tw=ScreenInfo.smImageOriWidth+n1+n3+ScreenInfo.syncMargin*2;} if(ScreenInfo.smImageHeight>(stageHeight-n2-n4)){th=ScreenInfo.smImageHeight+n2+n4+ScreenInfo.syncMargin*2;} winRect=new Rectangle(0,0,tw,th);cataRect=new Rectangle(n1,n2,tw-n1-n3,th-n2-n4);desRect=new Rectangle(n1+n5,n2+n6,tw-n1-n3-n5-n7,th-n2-n4-n6-n8);var py;if(ScreenInfo.m_alignVert==="top")py=n2+ScreenInfo.syncMargin;else if(ScreenInfo.m_alignVert==="center")py=desRect.centerPt.y-Math.floor(ScreenInfo.smImageHeightHalf);else if(ScreenInfo.m_alignVert==="bottom")py=cataRect.bottom-ScreenInfo.smImageHeight-ScreenInfo.syncMargin;if(pyth){ScreenInfo.smImageWidth=Math.floor(th*ScreenInfo.ratioWH);ScreenInfo.smImageHeight=th;} else{ScreenInfo.smImageWidth=tw;ScreenInfo.smImageHeight=Math.floor(tw/ScreenInfo.ratioWH);}} if(whenbigger===true){if(ScreenInfo.smImageWidth>ScreenInfo.smImageOriWidth&&ScreenInfo.smImageHeight>ScreenInfo.smImageOriHeight){ScreenInfo.smImageWidth=ScreenInfo.smImageOriWidth;ScreenInfo.smImageHeight=ScreenInfo.smImageOriHeight;}} ScreenInfo.smImageWidthHalf=ScreenInfo.smImageWidth*0.5;ScreenInfo.smImageHeightHalf=ScreenInfo.smImageHeight*0.5;ScreenInfo.ratioBS=ScreenInfo.bigImageWidth/ScreenInfo.smImageWidth;} function set_pageinfo(s1,s2,n3,n4,n5,n6,s7,s8,s9){PageInfo={cateCode:s1,origDir:s2,cataDir:s2,basicDir:'',cateName:s8,firstPage:n3,lastPage:0,prevPage:0,currentPage:0,cataPages:n4,oriStartPage:n5,startPage:n5,showStartPage:n6,previewPage:[],pageshowKind:s7};if(n3===0&&(ScreenInfo.onesmc===true||SkinInfo.smc==="008"))PageInfo.firstPage=1;if(ScreenInfo.onesmc===true)PageInfo.lastPage=PageInfo.cataPages;else PageInfo.lastPage=((PageInfo.firstPage+PageInfo.cataPages)%2===0)?PageInfo.cataPages+1:PageInfo.cataPages;if(PageInfo.startPagePageInfo.cataPages)PageInfo.startPage=((PageInfo.firstPage+PageInfo.cataPages)%2===0)?PageInfo.cataPages:PageInfo.cataPages-1;else PageInfo.startPage=((PageInfo.firstPage+PageInfo.startPage)%2===0||ScreenInfo.onesmc===true)?PageInfo.startPage:PageInfo.startPage-1;PageInfo.currentPage=PageInfo.startPage;if(CataInfo.memberType==="P"&&s9!==""){var range=[];s9=s9.replace(/ /g,'');if(s9.indexOf(",")<0){if(s9.indexOf("-")<0)range.push("0-"+s9);else range.push(s9);} else range=s9.split(",");var str,pos,spage,epage;for(var i=0;i0)n=PageInfo.get_realFromShowPage(n);if(Action.drawCondition<=0||Action.togetherEnlarge==true){if(ScreenInfo.onesmc===true){if(n==PageInfo.currentPage)return true;else return false;} else{if(PageInfo.currentPage===n||(PageInfo.currentPage+1)===n)return true;}} if(Action.drawCondition===10&&PageInfo.currentPage===n)return true;if(Action.drawCondition===11&&(PageInfo.currentPage+1)===n)return true;return false;} PageInfo.is_firstPage=function(){if(PageInfo.currentPage==PageInfo.firstPage){if(Action.drawCondition<=0||Action.togetherEnlarge===true)return true;if(Action.drawCondition===10)return true;if(Action.drawCondition===11&&PageInfo.blank_image(PageInfo.currentPage)===0)return true;} return false;} PageInfo.is_lastPage=function(){if(ScreenInfo.onesmc===true&&PageInfo.currentPage===PageInfo.lastPage)return true;if(ScreenInfo.onesmc===false&&PageInfo.currentPage===(PageInfo.lastPage-1)){if(Action.drawCondition<=0||Action.togetherEnlarge===true)return true;if(Action.drawCondition===11)return true;if(Action.drawCondition===10&&PageInfo.blank_image(PageInfo.currentPage+1)===1)return true;} return false;} PageInfo.reset_pageNext=function(){PageInfo.prevPage=PageInfo.currentPage;if(PageInfo.is_lastPage()===true)PageInfo.currentPage=PageInfo.firstPage;else if(ScreenInfo.onesmc===true)PageInfo.currentPage+=1;else PageInfo.currentPage+=2;} PageInfo.reset_pagePrev=function(){PageInfo.prevPage=PageInfo.currentPage;if(PageInfo.is_firstPage()===true)PageInfo.currentPage=PageInfo.lastPage-1;else if(ScreenInfo.onesmc===true)PageInfo.currentPage-=1;else PageInfo.currentPage-=2;} PageInfo.restore_page=function(){PageInfo.currentPage=PageInfo.prevPage;} PageInfo.get_directPageNo=function(n){if(ScreenInfo.onesmc===true){if(n=PageInfo.cataPages)return PageInfo.cataPages;} else{if(n=PageInfo.lastPage)return(PageInfo.lastPage-1);else if(n%2!=PageInfo.firstPage)return(n-1);} return n;} PageInfo.get_pageshowString=function(page){if(ScreenInfo.onesmc===true)return PageInfo.get_pageFromShowkind(page);if(Action.drawCondition<=0||Action.togetherEnlarge===true){if(page===0)return PageInfo.get_pageFromShowkind(page+1);else if(page===PageInfo.cataPages)return PageInfo.get_pageFromShowkind(page);else return PageInfo.get_pageFromShowkind(page)+"-"+PageInfo.get_pageFromShowkind(page+1);} else{if(Action.drawCondition===10)return PageInfo.get_pageFromShowkind(page);else return PageInfo.get_pageFromShowkind(page+1);} return"";} PageInfo.get_pageFromShowkind=function(page){var showpage;if(PageInfo.showStartPage>0){showpage=PageInfo.get_showPageFromReal(page);if(showpage<1)return"";} else showpage=page;if(showpage>PageInfo.cataPages)showpage=PageInfo.cataPages;if(PageInfo.pageshowKind==="number")return""+showpage;return FileInfo.get_minusExtension(showpage,-1);} PageInfo.get_showPageFromReal=function(page){return(page-PageInfo.showStartPage+1);} PageInfo.get_realFromShowPage=function(page){if(PageInfo.showStartPage===0)return page;return(page+PageInfo.showStartPage-1);} PageInfo.get_showPage=function(page){var n=PageInfo.get_nshowPage(page);if(n<=0)return"";return""+n;} PageInfo.get_nshowPage=function(page){if(PageInfo.showStartPage===0)return page;var n=PageInfo.get_showPageFromReal(page);return n;} PageInfo.get_parentCode=function(code){if(code==="")code=PageInfo.cateCode;if(code.substr(2,8)==="00000000")return"0000000000";if(code.substr(4,6)==="000000")return code.substr(0,2)+"00000000";if(code.substr(6,4)==="0000")return code.substr(0,4)+"000000";if(code.substr(8,2)==="00")return code.substr(0,6)+"0000";return code.substr(0,8)+"00";} PageInfo.get_currentStep=function(code){if(code==="")code=PageInfo.cateCode;if(code.substr(2,8)==="00000000")return 0;if(code.substr(4,6)==="000000")return 1;if(code.substr(6,4)==="0000")return 2;if(code.substr(8,2)==="00")return 3;return 4;} PageInfo.reset_openingVarFromUnify=function(n){PageInfo.cataPages=n;if(ScreenInfo.onesmc===true)PageInfo.lastPage=PageInfo.cataPages;else PageInfo.lastPage=((PageInfo.firstPage+PageInfo.cataPages)%2===0)?PageInfo.cataPages+1:PageInfo.cataPages;PageInfo.startPage=PageInfo.oriStartPage;if(PageInfo.startPagePageInfo.cataPages)PageInfo.startPage=PageInfo.lastPage;else PageInfo.startPage=((PageInfo.firstPage+PageInfo.startPage)%2===0)?PageInfo.startPage:PageInfo.startPage-1;PageInfo.currentPage=PageInfo.startPage;} PageInfo.is_previewPage=function(pno){if(PageInfo.previewPage.indexOf(pno)!==-1)return true;return false;} PageInfo.get_nextPreviewPage=function(pno){for(var i=0;i=0;i--){if(PageInfo.previewPage[i]0&&UnifyInfo.arDir[idxn]==UnifyInfo.arDir[0])return(n-accuNo-1+UnifyInfo.arOutPage[idxn]);else return(n-accuNo);}} UnifyInfo.get_virtualNumber=function(n,idxn){if(idxn===-1)idxn=UnifyInfo.get_diridxFromPage(n);var accuNo=(idxn===0)?0:UnifyInfo.arPageAccuNo[idxn-1];return(n+accuNo);}} function set_fileinfo(b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,s11,s12,s13,s14,s15){FileInfo={idxFile:b1,searchFile:b2,mediaFile:b3,downFile:b4,scrollFile:b5,embedTag:'object',linkFile:[],flashFile:b7,picdataFile:[],pagesoundFile:[],coordFile:[],arFileName:[],arFileConf:[],s000FileName:s11,diskType:s12,seqFile:[],fileExt:get_fileExtension(s14),smReplaced:false,xmlExt:s15};FileInfo.linkFile[PageInfo.cataDir]=b6;FileInfo.picdataFile[PageInfo.cataDir]=b8;FileInfo.pagesoundFile[PageInfo.cataDir]=b9;FileInfo.coordFile[PageInfo.cataDir]=b10;FileInfo.seqFile[PageInfo.cataDir]=s13;if(s12==="CD")ServerInfo.progExt="html";FileInfo.cimgFilePath=function(page,prefix,sdir,catimg){if(page<0)return new Array("","",sdir);else if(page>PageInfo.cataPages)return new Array("","",sdir);if(sdir==="")sdir=PageInfo.cataDir;catimg=(catimg==="*")?"catImage"+CataInfo.catimage:"catImage"+catimg;var realno;var fname="";if(UnifyInfo.classUnify===true){var idxn=UnifyInfo.get_diridxFromPage(page);sdir=UnifyInfo.arDir[idxn];realno=UnifyInfo.get_realNumber(page,-1);if(idxn===0&&page===0)fname=FileInfo.s000FileName;else if(idxn===(UnifyInfo.dirLen-1)&&PageInfo.blank_image(page)===1)fname="blank";else if(FileInfo.seqFile[sdir]==="F"||FileInfo.seqFile[sdir]=="X"){if(FileInfo.arFileConf[sdir][realno-1].substr(0,1)==="2")fname="blank";else fname=FileInfo.arFileName[sdir][realno-1];} else{fname=FileInfo.get_catImageFileName("",realno);}} else{if(page===0)fname=FileInfo.s000FileName;else if(PageInfo.blank_image(page)===1)fname="blank";else{if(FileInfo.seqFile[sdir]==="F"||FileInfo.seqFile[sdir]==="X"){var aridx=page-1;var sconf=FileInfo.arFileConf[sdir][aridx];fname=FileInfo.arFileName[sdir][aridx];if(sconf==undefined||fname==undefined)fname="blank";else if(fname===""||page>FileInfo.arFileName[sdir].length)fname="blank";else if(sconf.substr(0,1)==="2")fname="blank";} else{fname=FileInfo.get_catImageFileName("",page);}}} if(fname===""||fname==="blank")return new Array("","",sdir);return new Array(FileInfo.frontPath("catImage")+"/"+catimg+"/"+sdir+"/"+prefix+fname,fname,sdir);} FileInfo.thumbFilePath=function(page,prefix,sdir,catimg){if(sdir==="")sdir=PageInfo.cataDir;if(catimg==="*")catimg=CataInfo.catimage;var fname="";if(UnifyInfo.classUnify===true){var idxn=UnifyInfo.get_diridxFromPage(page);sdir=UnifyInfo.arDir[idxn];var realno=UnifyInfo.get_realNumber(page,-1);if(idxn==0&&page==0)fname=FileInfo.s000FileName;else{if(FileInfo.seqFile[sdir]=="N")fname=FileInfo.get_catImageFileName(prefix,realno) else{if(FileInfo.arFileConf[sdir][realno-1].substr(0,1)==="2")fname="blank";else fname=prefix+FileInfo.arFileName[sdir][realno-1];}} if(fname==="blank"||fname==="")return new Array("","",sdir);return new Array(FileInfo.frontPath("catImage")+"/catImage"+catimg+"/"+sdir+"/"+fname,fname,sdir);} else{return FileInfo.cimgFilePath(page,prefix,sdir,catimg);}} FileInfo.get_catImageFileName=function(prefix,n){return prefix+digit3(n)+"."+FileInfo.fileExt;} FileInfo.frontPath=function(folder){var s=ServerInfo.get_frontPart(folder);if(s=="")return"";if(s.substr(-1)==="/")return s.substring(0,s.length-1);return s;} FileInfo.skinFilePath=function(fname){if(CataInfo.cataLanguage==="korean")return FileInfo.frontPath("skin")+"/skin/"+fname;if(FileInfo.langPath(fname)===true)return FileInfo.frontPath("skin")+"/skin/"+CataInfo.cataLanguage+"/"+fname;return FileInfo.frontPath("skin")+"/skin/"+fname;} FileInfo.skin5FilePath=function(fname){if(CataInfo.cataLanguage==="korean")return FileInfo.frontPath("skin5")+"/skin5/"+fname;if(FileInfo.langPath(fname)===true)return FileInfo.frontPath("skin5")+"/skin5/"+CataInfo.cataLanguage+"/"+fname;return FileInfo.frontPath("skin5")+"/skin5/"+fname;} FileInfo.catFilePath=function(fname,catimg){if(catimg==="*")return FileInfo.frontPath("catImage")+"/catImage"+CataInfo.catimage+"/"+fname;return FileInfo.frontPath("catImage")+"/catImage"+catimg+"/"+fname;} FileInfo.dirFilePath=function(fname,dir,catimg){if(dir==="")dir=PageInfo.cataDir;if(catimg==="*")catimg=CataInfo.catimage;return FileInfo.frontPath("catImage")+"/catImage"+catimg+"/"+dir+"/"+fname;} FileInfo.mediaFilePath=function(fname){return FileInfo.frontPath("media")+"/media/"+fname;} FileInfo.flashFilePath=function(fname){return FileInfo.frontPath("flash")+"/flash/"+fname;} FileInfo.soundFilePath=function(fname,dir,catimg){if(dir==="")dir=PageInfo.cataDir;if(catimg==="*")catimg=CataInfo.catimage;if(fname.substr(0,1)==="*")return FileInfo.mediaFilePath(fname.substr(1));return FileInfo.frontPath("catImage")+"/catImage"+catimg+"/"+dir+"/sound/"+fname;} FileInfo.movieFilePath=function(fname,dir,catimg){if(dir==="")dir=PageInfo.cataDir;if(catimg==="*")catimg=CataInfo.catimage;if(fname.substr(0,1)==="*")return FileInfo.mediaFilePath(fname.substr(1));return FileInfo.frontPath("catImage")+"/catImage"+catimg+"/"+dir+"/movie/"+fname;} FileInfo.imageFilePath=function(fname,dir,catimg){if(dir==="")dir=PageInfo.cataDir;if(catimg==="*")catimg=CataInfo.catimage;if(fname.substr(0,1)==="*")return FileInfo.mediaFilePath(fname.substr(1));return FileInfo.frontPath("catImage")+"/catImage"+catimg+"/"+dir+"/image/"+fname;} FileInfo.rootimageFilePath=function(fname){return FileInfo.frontPath("image")+"/image/"+fname;} FileInfo.langPath=function(fname){if(CataInfo.cataLangType==="self")return false;if(fname.substr(0,7)==="libdisp")return true;if(fname.substr(0,7)==="display")return true;if(fname.substr(0,5)==="print")return true;if(fname.substr(0,4)==="help")return true;if(fname.substr(0,4)==="mail")return true;return false;} FileInfo.get_minusExtension=function(page,idxn){var s;if(UnifyInfo.classUnify==true){if(idxn===-1)idxn=UnifyInfo.get_diridxFromPage(page);var sdir=UnifyInfo.arDir[idxn];if(FileInfo.seqFile[sdir]=="N")return"";var realno=UnifyInfo.get_realNumber(page,-1);s=FileInfo.arFileName[sdir][realno-1];} else{if(FileInfo.seqFile[PageInfo.cataDir]=="N")return"";s=FileInfo.arFileName[PageInfo.cataDir][page-1];} return remove_frtZero(get_minusExtension(s));} FileInfo.get_pageFromFilename=function(fname,sdir){if(UnifyInfo.classUnify===false||sdir!==""){var tdir=(sdir!=="")?sdir:PageInfo.cataDir;var k=1;var arr=FileInfo.arFileName[tdir];for(var i=0;i5&&rule.substr(0,5)==="[use]"){LinkInfo.set_useIndexPtr(sdir,rule.substr(5),na);} else{var k=LinkInfo.arLinkPoly.length;na.push(k);LinkInfo.arLinkPoly[k]=new Polygon();LinkInfo.arLinkPoly[k].set_coordinates(linestr[1],true);LinkInfo.arLinkExpl[k]=linestr[2];LinkInfo.arLinkRule[k]=linestr[3];}} return na;} LinkInfo.set_useIndexPtr=function(sdir,fname,na){if(LinkInfo.arExpDataPtr[sdir]==undefined||LinkInfo.arExpDataPtr[sdir][fname]==undefined)return;var k=LinkInfo.arLinkPoly.length;var sa=LinkInfo.arExpDataPtr[sdir][fname].split(";");var tstr,rule,nptr;var alen=sa.length;for(var i=0;i5&&rule.substr(0,5)==="[use]"){na.push(k);LinkInfo.arLinkPoly[k]=new Polygon();LinkInfo.arLinkPoly[k].set_coordinates(linestr[1],true);LinkInfo.arLinkExpl[k]=linestr[2];LinkInfo.arLinkRule[k]=linestr[3];k++;}}} LinkInfo.get_linkRuleFromPointer=function(n){if(LinkInfo.arLinkRule[n]==undefined)return"";return LinkInfo.arLinkRule[n];} LinkInfo.get_headnruleFromRule=function(s){var k=s.indexOf("]");if(k<0)return["",s];return[s.substr(0,k+1),s.substr(k+1)];} LinkInfo.bool_makeShape=function(linkunit){if(linkunit.head==="[ico]"||linkunit.head==="[nta]"||linkunit.head==="[lta]"||linkunit.head==="[tta]")return false;if(linkunit.head==="[swp]"||linkunit.head==="[swi]"||linkunit.head==="[sws]")return false;return true;}} function set_printinfo(s1){PrintInfo={partPrintMode:s1,partPrint:false,frPageNo:0,toPageNo:0,newinPage:false,newinObj:undefined,partX:0,partY:0,partWidth:0,partHeight:0};if(isIE()||isIE11())PrintInfo.newinPage=true;} function set_spacerinfo(){SpacerInfo={maxItems:10,storeWhere:'local',delWhenClick:false,arItem:[],arKind:[],cKey:'',arColor:["#FF0000","#FF8C00","#1E90FF","#9400D3","#FFD700","#00FA9A","#DAA520","#FF1493","#778899","#808000"]};SpacerInfo.cKey=CataInfo.cataDist+"_"+CataInfo.catimage+"_"+PageInfo.cataDir;SpacerInfo.add_item=function(pno,kn){if(SpacerInfo.arItem.indexOf(pno)!==-1)return;SpacerInfo.arItem.push(pno);SpacerInfo.arKind.push(kn);if(SpacerInfo.arItem.length>SpacerInfo.maxItems){SpacerInfo.arItem.shift();SpacerInfo.arKind.shift();} if(SpacerInfo.storeWhere==="local")SpacerInfo.store_toLocal();else if(SpacerInfo.storeWhere==="session")SpacerInfo.store_toSession();} SpacerInfo.remove_item=function(idx){if(SpacerInfo.arItem.length==0)return;SpacerInfo.arItem.splice(idx,1);SpacerInfo.arKind.splice(idx,1);if(SpacerInfo.storeWhere==="local")SpacerInfo.store_toLocal();else if(SpacerInfo.storeWhere==="session")SpacerInfo.store_toSession();} SpacerInfo.remove_itemValue=function(val){if(SpacerInfo.arItem.length==0)return;var idx=SpacerInfo.arItem.indexOf(val);if(idx!=-1)SpacerInfo.remove_item(idx);} SpacerInfo.store_toLocal=function(){if(SpacerInfo.arItem.length===0)localStorage.setItem("bmrk"+SpacerInfo.cKey,"");else localStorage.setItem("bmrk"+SpacerInfo.cKey,SpacerInfo.arItem.join(":"));} SpacerInfo.store_toSession=function(){if(SpacerInfo.arItem.length===0)sessionStorage.setItem("bmrk"+SpacerInfo.cKey,"");else sessionStorage.setItem("bmrk"+SpacerInfo.cKey,SpacerInfo.arItem.join(":"));} SpacerInfo.retrieve_item=function(){if(SpacerInfo.storeWhere==="local"){if(localStorage.getItem("bmrk"+SpacerInfo.cKey)){SpacerInfo.arItem=localStorage.getItem("bmrk"+SpacerInfo.cKey).split(":");}} else if(SpacerInfo.storeWhere==="session"){if(sessionStorage.getItem("bmrk"+SpacerInfo.cKey)){SpacerInfo.arItem=sessionStorage.getItem("bmrk"+SpacerInfo.cKey).split(":");}}} SpacerInfo.empty_items=function(){SpacerInfo.arItem=[];SpacerInfo.arKind=[];if(SpacerInfo.storeWhere==="local")SpacerInfo.store_toLocal();else if(SpacerInfo.storeWhere==="session")SpacerInfo.store_toSession();} BBwInfo={applyBBw:false,loc:'win'};BBwInfo.store_toLocal=function(prefix,pno,s){if(s==="")localStorage.removeItem(prefix+SpacerInfo.cKey+"_"+pno);else localStorage.setItem(prefix+SpacerInfo.cKey+"_"+pno,s);} BBwInfo.retrieve_item=function(prefix,pno){if(localStorage.getItem(prefix+SpacerInfo.cKey+"_"+pno))return localStorage.getItem(prefix+SpacerInfo.cKey+"_"+pno);return"";} BBwInfo.prepare_turnover=function(){BBwObj.prepare_turnover();} BBwInfo.finish_turnover=function(){BBwObj.finish_turnover();} BBwInfo.prepare_enlarge=function(){BBwObj.prepare_turnover();} BBwInfo.complete_downsize=function(){BBwObj.finish_turnover();}} function set_optioninfo(s1,s2,s3,s4){ParaMan={start:s1,cate:s2,eclang:s3};if(!s4||s4==="")return;var t;var ar=s4.split("&");for(var i=0;i0)return false;if(PermitMan.get_movingStatePerm()===false&&PermitMan.normalPerm(0)===false)return false;if(MoveInfo.enlargeClick===false)return false;if(Action.mouseDragClip!=undefined&&Action.mouseDragged===true)return false;return true;} PermitMan.get_openingPerm=function(){if(PermitMan.access_memberZone(PageInfo.currentPage,"opening","")===false)return false;return true;} PermitMan.get_movingStatePerm=function(){if(Action.mainState==="blackboard")return true;return false;}} function set_debugman(){DebugMan.notify_memberZone=function(n){memberzone(n);} DebugMan.traceLog=function(s,b){console.log(s);if(b==true){load_alert(s,true);}}} function set_connman(){ConnectMan.load_unifyData=function(){var pcode=PageInfo.get_parentCode("");var urlstr=FileInfo.catFilePath("category.txt","*");var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET",urlstr);if(xmlHttp.overrideMimeType)xmlHttp.overrideMimeType("text/plain; charset=utf-8");xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState!=4)return;if(xmlHttp.status==200){var restr=xmlHttp.responseText.replace(/^\s*|\s*$/g,'');var lines=restr.split("\n");var alen=lines.length;var pos,tstr;var tlinkFile,tpdataFile,tseqFile,apageno,tsoundFile,tsearchMethod;for(var i=0;i6&&tstr.substr(0,7)=="outpage"){linestr=tstr;break;}} var aaa=linestr.split("\t");var tOutPage=aaa[1].split("|");var tPageNo=aaa[4].split("|");var tFileseq=aaa[5].split("|");var tLinkfile=aaa[6].split("|");var tSoundfile=aaa[7].split("|");var tPdatafile=aaa[8].split("|");var tSearchMethod=aaa[9].split("|");var tOutDir=aaa[3].split("|");PageInfo.reset_openingVarFromUnify(parseInt(aaa[2]));var nOutPage=[];var alen=tPageNo.length;for(var i=0;i\s*/g,'>');restr=restr.replace(/\s*([\\s\\S]*?)<\\/page>","gi");var noRegex=new RegExp("(.*?)<\\/no>","m");var sizeRegex=new RegExp("(.*?)<\\/size>","m");var coordRegex=new RegExp("([\\s\\S]*?)<\\/coords>","m");var match,matchstr,noMatch,sizeMatch,coordMatch,cdMatch;var spage,ssise,stext,k=0;while((match=strRegex.exec(restr))!=null){matchstr=match[1];noMatch=noRegex.exec(matchstr);if(noMatch==null)continue;spage=noMatch[1];sizeMatch=sizeRegex.exec(matchstr);if(sizeMatch==null)continue;ssize=sizeMatch[1];coordMatch=coordRegex.exec(matchstr);if(coordMatch==null)continue;stext=coordMatch[1];if(spage==""||stext=="")continue;var n=parseInt(spage);SearchInfo.arSearchSize[sdir][n]=ssize;SearchInfo.arSearchCoords[sdir][n]=stext;} console.log("info.js : load_coordData() : "+urlstr+" : "+xmlHttp.readyState);} else{console.log("[Error] info.js : load_coordData() : "+urlstr+" : "+xmlHttp.status);} show_searchResult();} xmlHttp.send();} ConnectMan.load_descriptData=function(sdir){ConnectMan.currDir=sdir;DataMan.arPicData[sdir]=-1;var urlstr=FileInfo.dirFilePath("picdata.txt",sdir,"*");var xmlHttp=new XMLHttpRequest();xmlHttp.open("GET",urlstr);if(xmlHttp.overrideMimeType)xmlHttp.overrideMimeType("text/plain; charset=utf-8");xmlHttp.onreadystatechange=function(){DataMan.arPicData[sdir]=xmlHttp.readyState;if(xmlHttp.readyState!==4)return;if(xmlHttp.status===200){LinkInfo.arImgDescript[sdir]=new Array();var restr=xmlHttp.responseText.replace(/^\s*|\s*$/g,'');var lines=restr.split("\n");var alen=lines.length;var tstr,tcode,arstr;for(var i=0;i