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,b3){Action={mainState:'normal',prevState:[],drawCondition:-2,aniLocking:false,wheelLocking:false,resizeLocking:false,loadto:0,loaded:0,mouseDragClip:undefined,keyDownMenu:undefined,keyDownFunc:undefined,keyUpFunc: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,mouseTouch:b3};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){if(e.clientYScreenInfo.topSwapDist&&AniObj.mmY===-ScreenInfo.topSwapDist)do_menuAnimate('hide');} if(!AniObj.lwTimer&&MenuInfo.soundMenuHide===false){if(e.clientY>desRect.bottom&&AniObj.lwY===0)do_lowerAnimate('show');else if(e.clientY9)EncObj.do_keyDown(e);} Action.do_keyUp=function(s,e){if(Action.keyUpFunc!=undefined)Action.keyUpFunc(e);if(Action.drawCondition>9)EncObj.do_keyUp(e);}} function set_catainfo(c1,s2,b3,s4,s5,s6,s7,s8,s9,b10,b11,s12){CataInfo={cataVersion:'9.0.4',cataSerial:'',cataDist:'',cataLang:s12,cataLangType:'option',cataVariant:'standard',memberType:b11,skinTyp:'pack',licenseDomain:[],useProtocol:'http:',useDomain:'',usePort:'80',checkDomain:false,incview:s9,cdmake:b10,servType:c1,catimage:s2,openingAnimation:b3,cataCallMode:s4,cataCharset:s5,backType:s6,backColor:s7,backAlign:s8};CataInfo.get_cataCallModeFront=function(){var idx=CataInfo.cataCallMode.indexOf("_");if(idx==-1)return CataInfo.cataCallMode;return CataInfo.cataCallMode.substr(0,idx);} CataInfo.get_cataCallModeRear=function(){var idx=CataInfo.cataCallMode.indexOf("_");if(idx==-1)return"";return CataInfo.cataCallMode.substr(idx+1);} CataInfo.get_useSchemAuth=function(){var s=CataInfo.useProtocol+"//"+CataInfo.useDomain;if(CataInfo.usePort!=="80")s+=":"+CataInfo.usePort;return s;}} function set_serverinfo(s1,s2,s3,s4,s5,n6,s7,s8){ServerInfo={serverUrl:s1,progExt:s2,selfUrl:s3,memberID:s4,memberName:s5,loggedInfo:'',memberSignedIn:n6,applyCipher:false,cpKey:'aabbccddeeffgghh',cpScript:'',fileCipher:false,wasUrl:s8};ServerInfo.cpScript="cipherdata."+ServerInfo.progExt;if(s7==="Y"||s7==="F"){ServerInfo.applyCipher=true;if(s7==="F")ServerInfo.fileCipher=true;} ServerInfo.get_frontPart=function(folder,wawe){var url="";if(CataInfo.cataVariant=="MBLOG")url=ServerInfo.get_memberPart(folder);if(wawe==undefined){if(ServerInfo.serverUrl!="")url=ServerInfo.serverUrl+url;} else if(wawe=="was"){if(ServerInfo.wasUrl!="")url=ServerInfo.wasUrl+url;} return url;} ServerInfo.get_memberPart=function(folder){var url="";switch(folder){case"":case"catImage":case"flash":case"log":case"media":case"sound":case"image":url="home/"+ServerInfo.memberID;break;case"access":case"cdinfo":case"conf":case"include":case"manual":case"send":case"skin":case"skin5":default:url="";} return url;} ServerInfo.get_cataDoculink=function(docu,sdir,cimage,start,cate,callmode,eclang){var qstr=docu;qstr+=(sdir==undefined)?"?Dir="+PageInfo.cataDir:"?Dir="+sdir;qstr+=(cimage==undefined)?"&catimage="+CataInfo.catimage:"&catimage="+cimage;qstr+=(start==undefined)?"&start="+ParaMan.start:"&start="+start;qstr+=(cate==undefined)?"&cate="+ParaMan.cate:"&cate="+cate;qstr+=(callmode==undefined)?"&callmode="+CataInfo.cataCallMode:"&callmode="+callmode;qstr+=(eclang==undefined)?"&eclang="+ParaMan.eclang:"&eclang="+eclang;return FileInfo.frontPath("","was")+"/"+qstr;}} function set_skininfo(s1,s2,s3,s4,s5,s6,s8,s9,s10,s11,s12,s13,s14,b15,s16,s17){SkinInfo={mainmenu:s1,smc:s2,onsmimage:s3,combokind:s4,onbigimage:s5,nwclass:s6,cbpopskin:s8,spacerbtn:s9,dclass:s10,printkind:s11,helpmc:s12,smckind:s13,mmtype:s14,smcgallery:b15,indexmc:s16,smcenter:s17,nwsns:'014'};if(s2==="007"||s2==="008")CataInfo.openingAnimation=false;} function set_screeninfo(n1,n2,n3,n4,n5,b6,s7,n8,s9,n10,s11,s12,s13,b14){ScreenInfo={smImageOriWidth:n1,smImageOriHeight:n2,smImageWidth:n1,smImageHeight:n2,smImageWidthHalf:n1/2,smImageHeightHalf:n2/2,innerOriWidth:0,bigImageOriWidth:n3,bigImageOriHeight:n4,bigImageWidth:n3,bigImageHeight:n4,midImageWidth:n5,midImageHeight:0,displayState:'normal',onesmc:b6,blankColor:s9,bigImageRect:undefined,bigDragRect:undefined,codeWidth:10000,codeHeight:10000,logoTopMargin:n10,ratioWH:0,ratioBS:0,ratioBSO:0,ratioBCO:0,syncImgToWin:s7,syncMargin:n8,syncRealHappen:false,syncRef:'both',topSwapDist:0,bottomSwapDist:0,orientation:window.orientation,m_alignVert:s11,imgRender:s12,pchZoom:s13,smImageDiff:b14,syncAddWidth:0,syncAddHeight:0};if(ScreenInfo.midImageWidth!=0)ScreenInfo.midImageHeight=Math.floor(ScreenInfo.midImageWidth*ScreenInfo.bigImageOriHeight/ScreenInfo.bigImageOriWidth);ScreenInfo.ratioWH=ScreenInfo.smImageOriWidth/ScreenInfo.smImageOriHeight;ScreenInfo.ratioBSO=ScreenInfo.bigImageOriWidth/ScreenInfo.smImageOriWidth;ScreenInfo.ratioBS=ScreenInfo.bigImageWidth/ScreenInfo.smImageWidth;ScreenInfo.ratioBCO=1;if(CataInfo.incview==="m"){if(CataInfo.cdmake===true&&check_tablet()===false)ScreenInfo.onesmc=true;if(ScreenInfo.imgRender!=="I"||ScreenInfo.onesmc!==true)ScreenInfo.smImageDiff=false;} if(ScreenInfo.smImageDiff===true)DataMan.dobufDim=true;ScreenInfo.set_bigImageVar=function(w,h){ScreenInfo.bigImageWidth=w;ScreenInfo.bigImageHeight=h;ScreenInfo.ratioBS=ScreenInfo.bigImageWidth/ScreenInfo.smImageWidth;ScreenInfo.ratioBCO=ScreenInfo.bigImageWidth/ScreenInfo.bigImageOriWidth;GuideInfo.ratioGB=GuideInfo.width/ScreenInfo.bigImageWidth;} ScreenInfo.get_thumbQtyFromWidth=function(w,winpad,thumbWidth,imgspacing){if(w===0)w=cataRect.width;var k=Math.floor((w-winpad-thumbWidth)/(thumbWidth+imgspacing));return(k+1);} ScreenInfo.get_thumbQtyFromHeight=function(h,winpad,thumbHeight,imgspacing){if(h===0)h=cataRect.height;var k=Math.floor((h-winpad-thumbHeight)/(thumbHeight+imgspacing));return(k+1);} ScreenInfo.set_smRectDrag=function(ax,ay){if(ScreenInfo.onesmc===true)smRect=new Rectangle(ax,ay,ScreenInfo.smImageWidth,ScreenInfo.smImageHeight);else smRect=new Rectangle(ax,ay,ScreenInfo.smImageWidth*2,ScreenInfo.smImageHeight);} ScreenInfo.set_gallerySmProperty=function(w,h){ScreenInfo.smImageOriWidth=w;ScreenInfo.smImageOriHeight=h;ScreenInfo.bigImageOriWidth=w;ScreenInfo.bigImageOriHeight=h;ScreenInfo.bigImageWidth=w;ScreenInfo.bigImageHeight=h;if(ScreenInfo.syncImgToWin=="N"||(ScreenInfo.syncImgToWin=="S"&&(ScreenInfo.smImageWidth>ScreenInfo.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;var onlywidth=(ScreenInfo.syncRef==="width")?true:false;if(ScreenInfo.syncImgToWin==="Y")set_syncProperty(onlywidth,false);else if(ScreenInfo.syncImgToWin==="S")set_syncProperty(onlywidth,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.syncAddWidth;ScreenInfo.smImageHeight=Math.floor((tw-ScreenInfo.syncAddWidth)/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,s10,b11){PageInfo={cateCode:s1,origDir:s10,cataDir:s2,basicDir:'',cateName:s8,firstPage:n3,lastPage:0,prevPage:0,currentPage:0,cataPages:n4,remPage:b11,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:'iframe',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.cimg2FilePath=function(page,prefix,sdir,catimg){catimg=(catimg==="*")?"catImage"+CataInfo.catimage:"catImage"+catimg;var aaa=FileInfo.get_page2FromFilename(""+page,sdir);if(aaa[1]=="")return new Array("","",sdir);return new Array(FileInfo.frontPath("catImage")+"/"+catimg+"/"+aaa[0]+"/"+aaa[1],aaa[1],aaa[0]);} 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,wawe){var s=ServerInfo.get_frontPart(folder,wawe);if(s=="")return"";if(s.substr(-1)==="/")return s.substring(0,s.length-1);return s;} FileInfo.skinFilePath=function(fname){return FileInfo.frontPath("skin")+"/skin/"+fname;} FileInfo.skin5FilePath=function(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){if(FileInfo.check_outUrl(fname)===true)return fname;return FileInfo.frontPath("media")+"/media/"+fname;} FileInfo.flashFilePath=function(fname){if(FileInfo.check_outUrl(fname)===true)return fname;return FileInfo.frontPath("flash")+"/flash/"+fname;} FileInfo.soundFilePath=function(fname,dir,catimg){if(FileInfo.check_outUrl(fname)===true)return fname;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(FileInfo.check_outUrl(fname)===true)return fname;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(FileInfo.check_outUrl(fname)===true)return fname;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.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,caller:'',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);} DataMan.arCoordData[sdir]=xmlHttp.readyState;if(caller==="search")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