//ICMap, Copyright 2006, clifford L. Collins, Collins Software, all rights reserved, http://collinssoftware.com, not for distribution or resale, use License is required: icclient var r1c1,r1c2,r1c3; var r2c1,r2c2,r2c3; var r3c1,r3c2,r3c3; var br1c1,br1c2,br1c3; var br2c1,br2c2,br2c3; var br3c1,br3c2,br3c3; var fr1c1,fr1c2,fr1c3; var fr2c1,fr2c2,fr2c3; var fr3c1,fr3c2,fr3c3; var hr1c1,hr1c2,hr1c3; var hr2c1,hr2c2,hr2c3; var hr3c1,hr3c2,hr3c3; var imgr1c1,imgr1c2,imgr1c3; var imgr2c1,imgr2c2,imgr2c3; var imgr3c1,imgr3c2,imgr3c3; var isNav=(navigator.appName=='Netscape'); function ic$Client(world,viewHeight,viewWidth) { this.view=new Object(); this.view.height=viewHeight; this.view.width=viewWidth; this.view.cx=this.view.width/2; this.view.cy=this.view.height/2; this.view.buf=new Object(); this.view.buf.rows=1; this.view.buf.cols=1; this.view.buf.col=1; this.view.buf.row=1; this.view.id='icClient'; this.view.left=$8; this.view.right=$9; this.view.top=$10; this.view.bottom=$11; this.view.bx=$6; this.view.by=$7; this.view.xToScreen=$4; this.view.yToScreen=$5; this.view.screenToX=$0; this.view.screenToY=$3; this.view.world=world; this.world=world; this.basemap=world.basemap; this.fixedLevel=false; this.mouseMove=$66; this.mouseDown=$64; this.mouseUp=$65; this.loadAllHotspot=$37; this.loadImageMapAll=$30; this.getImageMap=$31; this.getImageMapFILE=$31FILE; this.getImageMapHTTP=$31HTTP; this.goXY=$35; this.setImageMap=$27; this.setColor=$34; this.loadAllBasemap=$39; this.loadAllBackground=$38; this.getHotspotImage=$53; this.getBackgroundImage=$51; this.getForegroundImage=$52; this.loadAllForeground=$36; this.goLevel=$40; this.imgName=$41; this.hotspotName=$44; this.draw=$50; this.getBackgroundObject=$55; this.getForegroundObject=$56; this.getImage=$63; this.clearImageMap=$29; this.backgroundName=$42; this.foregroundName=$43; this.mapName=$45; this.newTopRows=$46; this.newBottomRows=$47; this.newLeftColumns=$48; this.newRightColumns=$49; this.getHotspotObject=$57; this.loadHotspot=$22; this.clearBackgroundAll=$58; this.clearForegroundAll=$59; this.clearHotspotAll=$60; this.clearBasemapAll=$61; this.drawBasemap=$24; this.drawForeground=$25; this.drawBackground=$26; this.drawHotspot=$23; this.setForegroundFilter=$14; this.setBackgroundFilter=$16; this.setBasemapFilter=$17; this.setHotspotFilter=$15; this.foregroundFilter=$18; this.backgroundFilter=$20; this.hotspotFilter=$19; this.basemapFilter=$21; this.setTransparent=$54; this.basemapZIndex=$28; this.getX=$67; this.getY=$68; this.root=$12; this.ext=$13; this.setGrid=$62; this.beginPrint=$1; this.endPrint=$2; this.x1=0; this.y1=0; this.x2=0; this.y2=0; this.view.buf.rows=3; this.view.buf.cols=3; this.abort=false; this.isLoading=false; this.loadMap=new Array(9); this.loadObj=new Array(9); r1c1=getObject('oR1C1'); r1c2=getObject('oR1C2'); r1c3=getObject('oR1C3'); r2c1=getObject('oR2C1'); r2c2=getObject('oR2C2'); r2c3=getObject('oR2C3'); r3c1=getObject('oR3C1'); r3c2=getObject('oR3C2'); r3c3=getObject('oR3C3'); imgr1c1=getObject('iR1C1'); imgr1c2=getObject('iR1C2'); imgr1c3=getObject('iR1C3'); imgr2c1=getObject('iR2C1'); imgr2c2=getObject('iR2C2'); imgr2c3=getObject('iR2C3'); imgr3c1=getObject('iR3C1'); imgr3c2=getObject('iR3C2'); imgr3c3=getObject('iR3C3'); } function $0(sx) { var rx,xorg; xorg=this.cx-(this.width/2); rx=(sx+xorg)+((this.buf.col-1)*this.world.width); rx=(rx*this.world.upp)+this.world.xmin; return rx; } function $1() { } function $2() { } function $3(sy) { var ry,yorg; yorg=this.cy-(this.height/2); ry=(sy+yorg)+((this.buf.row-1)*this.world.height); ry=this.world.ymax-(ry*this.world.upp); return ry; } function $4(x) { var tx,xorg; xorg=this.cx-Math.round(this.width/2); sx=Math.round((x-this.world.xmin)/this.world.upp); sx=sx-((this.buf.col-1)*this.world.width); sx=sx-xorg; return sx; } function $5(y) { var ty,yorg; yorg=this.cy-Math.round(this.height/2); sy=Math.round((this.world.ymax-y)/this.world.upp); sy=sy-((this.buf.row-1)*this.world.height); sy=sy-yorg; return sy; } function $6() { var tx; tx=this.cx+((this.buf.col-1)*this.world.width); return tx; } function $7() { var ty; ty=this.cy+((this.buf.row-1)*this.world.height); return ty; } function $8(x) { var tx; tx=Math.round(x-(this.width/2)); return tx; } function $9(x) { var tx; tx=Math.round(x+(this.width/2)); return tx; } function $10(y) { var ty; ty=Math.round(y-(this.height/2)); return ty; } function $11(y) { var ty; ty=Math.round(y+(this.height/2)); return ty; } function $12(index) { var name; if(index <0)return(this.world.root+'unknown/'); name=this.world.layers[index].root+this.world.layers[index].feature+'/'; return name; } function $13(index) { var name; if(index <0)return('.gif'); name=this.world.layers[index].ext; return name; } function $14() { var obj; this.foregroundFilter(imgr1c1); this.foregroundFilter(imgr1c2); this.foregroundFilter(imgr1c3); this.foregroundFilter(imgr2c3); this.foregroundFilter(imgr2c1); this.foregroundFilter(imgr2c2); this.foregroundFilter(imgr3c3); this.foregroundFilter(imgr3c1); this.foregroundFilter(imgr3c2); return true; } function $15() { var obj; this.hotspotFilter(imgr1c1); this.hotspotFilter(imgr1c2); this.hotspotFilter(imgr1c3); this.hotspotFilter(imgr2c3); this.hotspotFilter(imgr2c1); this.hotspotFilter(imgr2c2); this.hotspotFilter(imgr3c3); this.hotspotFilter(imgr3c1); this.hotspotFilter(imgr3c2); return true; } function $16() { var obj; this.backgroundFilter(imgr1c1); this.backgroundFilter(imgr1c2); this.backgroundFilter(imgr1c3); this.backgroundFilter(imgr2c3); this.backgroundFilter(imgr2c1); this.backgroundFilter(imgr2c2); this.backgroundFilter(imgr3c3); this.backgroundFilter(imgr3c1); this.backgroundFilter(imgr3c2); return true; } function $17() { var obj; this.basemapFilter(imgr1c1); this.basemapFilter(imgr1c2); this.basemapFilter(imgr1c3); this.basemapFilter(imgr2c3); this.basemapFilter(imgr2c1); this.basemapFilter(imgr2c2); this.basemapFilter(imgr3c3); this.basemapFilter(imgr3c1); this.basemapFilter(imgr3c2); return true; } function $18(parent_img) { var obj; obj=this.getForegroundObject(parent_img); obj.style.filter=this.world.foreground.filter; } function $19(parent_img) { var obj; obj=this.getHotspotObject(parent_img); obj.style.filter=this.world.hotspot.filter; } function $20(parent_img) { var obj; obj=this.getBackgroundObject(parent_img); obj.style.filter=this.world.background.filter; } function $21(parent_img) { var obj; obj=parent_img; obj.style.filter=this.world.basemap.filter; } function $22() { this.loadImageMapAll() } function $23() { this.loadAllHotspot(); this.loadImageMapAll() } function $24() { this.loadAllBasemap(); } function $25() { this.loadAllForeground(); } function $26() { this.loadAllBackground(); } function $27(index,parent_img,mapname) { var name; var list; var img; if(! this.world.isHot())return false; img=getObject('f'+parent_img.id); name=img.useMap; list=name.split("#"); if(list.length==1)name=list[0]; if(list.length==2)name=list[1]; name="m"+name.substr(1); this.imageMap=document.getElementById(name); this.imageMap.innerHTML=''; this.loadObj[index]=this.imageMap; this.loadMap[index]=mapname; } function $28(z) { r1c1.style.zIndex=z; r1c2.style.zIndex=z; r1c3.style.zIndex=z; r2c1.style.zIndex=z; r2c2.style.zIndex=z; r2c3.style.zIndex=z; r3c1.style.zIndex=z; r3c2.style.zIndex=z; r3c3.style.zIndex=z; } function $29() { mR1C1.innerHTML=""; mR1C2.innerHTML=""; mR1C3.innerHTML=""; mR2C1.innerHTML=""; mR2C2.innerHTML=""; mR2C3.innerHTML=""; mR3C1.innerHTML=""; mR3C2.innerHTML=""; mR3C3.innerHTML=""; } function $30() { this.clearImageMap(); if(! this.world.isHot())return; this.setImageMap(0,imgr1c1,this.mapName(this.view.buf.row+0,this.view.buf.col+0)); this.setImageMap(1,imgr1c2,this.mapName(this.view.buf.row+0,this.view.buf.col+1)); this.setImageMap(2,imgr1c3,this.mapName(this.view.buf.row+0,this.view.buf.col+2)); this.setImageMap(3,imgr2c1,this.mapName(this.view.buf.row+1,this.view.buf.col+0)); this.setImageMap(4,imgr2c2,this.mapName(this.view.buf.row+1,this.view.buf.col+1)); this.setImageMap(5,imgr2c3,this.mapName(this.view.buf.row+1,this.view.buf.col+2)); this.setImageMap(6,imgr3c1,this.mapName(this.view.buf.row+2,this.view.buf.col+0)); this.setImageMap(7,imgr3c2,this.mapName(this.view.buf.row+2,this.view.buf.col+1)); this.setImageMap(8,imgr3c3,this.mapName(this.view.buf.row+2,this.view.buf.col+2)); this.getImageMap(9); } function $31(count) { var list; if(! this.world.isHot())return; list=this.world.layers[this.world.hotspot.index].root.split("file://"); if(list.length >1){ this.getImageMapFILE(count)} else{ this.getImageMapHTTP(count)} return true; } function $31FILE(count) { var text; var i; var fname; var root; var list; list=this.world.layers[this.world.hotspot.index].root.split("file://"); root=list[1]; root=root+this.world.layers[this.world.hotspot.index].feature+'/'; if(root=='')return; for(i=0; i this.world.width*this.view.buf.cols)this.view.cx=Math.round(this.world.width*this.view.buf.cols/2) if(this.view.cy >this.world.height*this.view.buf.rows)this.view.cy=Math.round(this.world.height*this.view.buf.rows/2) this.loadAllBasemap(); this.loadAllBackground(); this.loadAllForeground(); this.loadAllHotspot(); this.loadImageMapAll(); } function $36() { if(! this.world.foreground.hide()) { this.getForegroundImage(imgr1c1,this.foregroundName(this.view.buf.row+0,this.view.buf.col+0)); this.getForegroundImage(imgr1c2,this.foregroundName(this.view.buf.row+0,this.view.buf.col+1)); this.getForegroundImage(imgr1c3,this.foregroundName(this.view.buf.row+0,this.view.buf.col+2)); this.getForegroundImage(imgr2c1,this.foregroundName(this.view.buf.row+1,this.view.buf.col+0)); this.getForegroundImage(imgr2c2,this.foregroundName(this.view.buf.row+1,this.view.buf.col+1)); this.getForegroundImage(imgr2c3,this.foregroundName(this.view.buf.row+1,this.view.buf.col+2)); this.getForegroundImage(imgr3c1,this.foregroundName(this.view.buf.row+2,this.view.buf.col+0)); this.getForegroundImage(imgr3c2,this.foregroundName(this.view.buf.row+2,this.view.buf.col+1)); this.getForegroundImage(imgr3c3,this.foregroundName(this.view.buf.row+2,this.view.buf.col+2)); this.foregroundFilter(imgr1c1); this.foregroundFilter(imgr1c2); this.foregroundFilter(imgr1c3); this.foregroundFilter(imgr2c3); this.foregroundFilter(imgr2c1); this.foregroundFilter(imgr2c2); this.foregroundFilter(imgr3c3); this.foregroundFilter(imgr3c1); this.foregroundFilter(imgr3c2); } else{ this.clearForegroundAll()} } function $37() { if(! this.world.hotspot.hide()) { this.getHotspotImage(imgr1c1,this.hotspotName(this.view.buf.row+0,this.view.buf.col+0)); this.getHotspotImage(imgr1c2,this.hotspotName(this.view.buf.row+0,this.view.buf.col+1)); this.getHotspotImage(imgr1c3,this.hotspotName(this.view.buf.row+0,this.view.buf.col+2)); this.getHotspotImage(imgr2c1,this.hotspotName(this.view.buf.row+1,this.view.buf.col+0)); this.getHotspotImage(imgr2c2,this.hotspotName(this.view.buf.row+1,this.view.buf.col+1)); this.getHotspotImage(imgr2c3,this.hotspotName(this.view.buf.row+1,this.view.buf.col+2)); this.getHotspotImage(imgr3c1,this.hotspotName(this.view.buf.row+2,this.view.buf.col+0)); this.getHotspotImage(imgr3c2,this.hotspotName(this.view.buf.row+2,this.view.buf.col+1)); this.getHotspotImage(imgr3c3,this.hotspotName(this.view.buf.row+2,this.view.buf.col+2)); } else{ this.clearHotspotAll()} } function $38() { if(! this.world.background.hide()) { this.getBackgroundImage(imgr1c1,this.backgroundName(this.view.buf.row+0,this.view.buf.col+0)); this.getBackgroundImage(imgr1c2,this.backgroundName(this.view.buf.row+0,this.view.buf.col+1)); this.getBackgroundImage(imgr1c3,this.backgroundName(this.view.buf.row+0,this.view.buf.col+2)); this.getBackgroundImage(imgr2c1,this.backgroundName(this.view.buf.row+1,this.view.buf.col+0)); this.getBackgroundImage(imgr2c2,this.backgroundName(this.view.buf.row+1,this.view.buf.col+1)); this.getBackgroundImage(imgr2c3,this.backgroundName(this.view.buf.row+1,this.view.buf.col+2)); this.getBackgroundImage(imgr3c1,this.backgroundName(this.view.buf.row+2,this.view.buf.col+0)); this.getBackgroundImage(imgr3c2,this.backgroundName(this.view.buf.row+2,this.view.buf.col+1)); this.getBackgroundImage(imgr3c3,this.backgroundName(this.view.buf.row+2,this.view.buf.col+2)); } else{ this.clearBackgroundAll()} } function $39() { if(! this.world.basemap.hide()) { this.getImage(imgr1c1,this.imgName(this.view.buf.row+0,this.view.buf.col+0),ZBasemap); this.getImage(imgr1c2,this.imgName(this.view.buf.row+0,this.view.buf.col+1),ZBasemap); this.getImage(imgr1c3,this.imgName(this.view.buf.row+0,this.view.buf.col+2),ZBasemap); this.getImage(imgr2c1,this.imgName(this.view.buf.row+1,this.view.buf.col+0),ZBasemap); this.getImage(imgr2c2,this.imgName(this.view.buf.row+1,this.view.buf.col+1),ZBasemap); this.getImage(imgr2c3,this.imgName(this.view.buf.row+1,this.view.buf.col+2),ZBasemap); this.getImage(imgr3c1,this.imgName(this.view.buf.row+2,this.view.buf.col+0),ZBasemap); this.getImage(imgr3c2,this.imgName(this.view.buf.row+2,this.view.buf.col+1),ZBasemap); this.getImage(imgr3c3,this.imgName(this.view.buf.row+2,this.view.buf.col+2),ZBasemap); } else{ this.clearBasemapAll()} } function $40(lev) { return; } function $41(r,c) { var name; name=this.world.root+'blank.gif' if(this.world.basemap.hide())return(name); if(this.world.level <0)return(name); if(this.world.level >this.world.levels)return(name); if(r <1)return(name); if(c <1)return(name); if(r >this.world.rows)return(name); if(c >this.world.cols)return(name); name=this.root(this.world.basemap.index)+'l'+this.world.level+'/r'+r+'/c'+c+this.ext(this.world.basemap.index); return(name); } function $42(r,c) { var name; name=this.world.root+'blank.gif' if(this.world.background.hide())return(name); if(this.world.level <0)return(name); if(this.world.level >this.world.levels)return(name); if(r <1)return(name); if(c <1)return(name); if(r >this.world.rows)return(name); if(c >this.world.cols)return(name); name=this.root(this.world.background.index)+'l'+this.world.level+'/r'+r+'/c'+c+this.ext(this.world.background.index); return name; } function $43(r,c) { var name; name=this.world.root+'blank.gif' if(this.world.foreground.hide())return(name); if(this.world.level <0)return(name); if(this.world.level >this.world.levels)return(name); if(r <1)return(name); if(c <1)return(name); if(r >this.world.rows)return(name); if(c >this.world.cols)return(name); name=this.root(this.world.foreground.index)+'l'+this.world.level+'/r'+r+'/c'+c+this.ext(this.world.foreground.index) return name; } function $44(r,c) { var name; name=this.world.root+'blank.gif' if(this.world.hotspot.hideGraphics)return(name); if(this.world.hotspot.hide())return(name); if(this.world.level <0)return(name); if(this.world.level >this.world.levels)return(name); if(r <1)return(name); if(c <1)return(name); if(r >this.world.rows)return(name); if(c >this.world.cols)return(name); name=this.root(this.world.hotspot.index)+'l'+this.world.level+'/r'+r+'/c'+c+this.ext(this.world.hotspot.index) return name; } function $45(r,c) { var name; if(this.world.hotspot.hide())return(""); if(this.world.level <0)return(""); if(this.world.level >this.world.levels)return(""); if(r <1)return(""); if(c <1)return(""); if(r >this.world.rows)return(""); if(c >this.world.cols)return(""); name='l'+this.world.level+'/r'+r+'/c'+c+'.txt' return name; } function $46(y) { var ty,c1,c2,c3; if(this.view.top(y)>0)return y; if(this.view.buf.row <=1)return(this.view.height/2); c1=r3c1; c2=r3c2; c3=r3c3; r3c1=r2c1; r3c2=r2c2; r3c3=r2c3; r2c1=r1c1; r2c2=r1c2; r2c3=r1c3; r1c1=c1; r1c2=c2; r1c3=c3; c1=imgr3c1; c2=imgr3c2; c3=imgr3c3; imgr3c1=imgr2c1; imgr3c2=imgr2c2; imgr3c3=imgr2c3; imgr2c1=imgr1c1; imgr2c2=imgr1c2; imgr2c3=imgr1c3; imgr1c1=c1; imgr1c2=c2; imgr1c3=c3; this.view.buf.row=this.view.buf.row-1; ty=y+this.world.height; if(! this.world.basemap.hide()) { this.getImage(imgr1c1,this.imgName(this.view.buf.row,this.view.buf.col+0),ZBasemap); this.getImage(imgr1c2,this.imgName(this.view.buf.row,this.view.buf.col+1),ZBasemap); this.getImage(imgr1c3,this.imgName(this.view.buf.row,this.view.buf.col+2),ZBasemap); } if(! this.world.background.hide()) { this.getBackgroundImage(imgr1c1,this.backgroundName(this.view.buf.row+0,this.view.buf.col+0)); this.getBackgroundImage(imgr1c2,this.backgroundName(this.view.buf.row+0,this.view.buf.col+1)); this.getBackgroundImage(imgr1c3,this.backgroundName(this.view.buf.row+0,this.view.buf.col+2)); } if(! this.world.foreground.hide()) { this.getForegroundImage(imgr1c1,this.foregroundName(this.view.buf.row+0,this.view.buf.col+0)); this.getForegroundImage(imgr1c2,this.foregroundName(this.view.buf.row+0,this.view.buf.col+1)); this.getForegroundImage(imgr1c3,this.foregroundName(this.view.buf.row+0,this.view.buf.col+2)); } if(! this.world.hotspot.hide()) { this.getHotspotImage(imgr1c1,this.hotspotName(this.view.buf.row+0,this.view.buf.col+0)); this.getHotspotImage(imgr1c2,this.hotspotName(this.view.buf.row+0,this.view.buf.col+1)); this.getHotspotImage(imgr1c3,this.hotspotName(this.view.buf.row+0,this.view.buf.col+2)); this.setImageMap(0,imgr1c1,this.mapName(this.view.buf.row+0,this.view.buf.col+0)); this.setImageMap(1,imgr1c2,this.mapName(this.view.buf.row+0,this.view.buf.col+1)); this.setImageMap(2,imgr1c3,this.mapName(this.view.buf.row+0,this.view.buf.col+2)); this.getImageMap(3); } return ty; } function $47(y) { var ty,c1,c2,c3; if(this.view.bottom(y)<(this.world.height*this.view.buf.rows))return(y); if((this.view.buf.row+2)>=this.world.rows)return((this.world.height*this.view.buf.rows)-(this.view.height/2)); c1=r1c1; c2=r1c2; c3=r1c3; r1c1=r2c1; r1c2=r2c2; r1c3=r2c3; r2c1=r3c1; r2c2=r3c2; r2c3=r3c3; r3c1=c1; r3c2=c2; r3c3=c3; c1=imgr1c1; c2=imgr1c2; c3=imgr1c3; imgr1c1=imgr2c1; imgr1c2=imgr2c2; imgr1c3=imgr2c3; imgr2c1=imgr3c1; imgr2c2=imgr3c2; imgr2c3=imgr3c3; imgr3c1=c1; imgr3c2=c2; imgr3c3=c3; this.view.buf.row=this.view.buf.row+1; ty=y-this.world.height; if(! this.world.basemap.hide()) { this.getImage(imgr3c1,this.imgName(this.view.buf.row+2,this.view.buf.col+0),ZBasemap); this.getImage(imgr3c2,this.imgName(this.view.buf.row+2,this.view.buf.col+1),ZBasemap); this.getImage(imgr3c3,this.imgName(this.view.buf.row+2,this.view.buf.col+2),ZBasemap); } if(! this.world.background.hide()) { this.getBackgroundImage(imgr3c1,this.backgroundName(this.view.buf.row+2,this.view.buf.col+0)); this.getBackgroundImage(imgr3c2,this.backgroundName(this.view.buf.row+2,this.view.buf.col+1)); this.getBackgroundImage(imgr3c3,this.backgroundName(this.view.buf.row+2,this.view.buf.col+2)); } if(! this.world.foreground.hide()) { this.getForegroundImage(imgr3c1,this.foregroundName(this.view.buf.row+2,this.view.buf.col+0)); this.getForegroundImage(imgr3c2,this.foregroundName(this.view.buf.row+2,this.view.buf.col+1)); this.getForegroundImage(imgr3c3,this.foregroundName(this.view.buf.row+2,this.view.buf.col+2)); } if(! this.world.hotspot.hide()) { this.getHotspotImage(imgr3c1,this.hotspotName(this.view.buf.row+2,this.view.buf.col+0)); this.getHotspotImage(imgr3c2,this.hotspotName(this.view.buf.row+2,this.view.buf.col+1)); this.getHotspotImage(imgr3c3,this.hotspotName(this.view.buf.row+2,this.view.buf.col+2)); this.setImageMap(0,imgr3c1,this.mapName(this.view.buf.row+2,this.view.buf.col+0)); this.setImageMap(1,imgr3c2,this.mapName(this.view.buf.row+2,this.view.buf.col+1)); this.setImageMap(2,imgr3c3,this.mapName(this.view.buf.row+2,this.view.buf.col+2)); this.getImageMap(3); } return ty; } function $48(x) { var tx,r1,r2,r3; if(this.view.left(x)>0)return x; if(this.view.buf.col <=1)return(this.view.width/2); r1=r1c3; r2=r2c3; r3=r3c3; r1c3=r1c2; r2c3=r2c2; r3c3=r3c2; r1c2=r1c1; r2c2=r2c1; r3c2=r3c1; r1c1=r1; r2c1=r2; r3c1=r3; r1=imgr1c3; r2=imgr2c3; r3=imgr3c3; imgr1c3=imgr1c2; imgr2c3=imgr2c2; imgr3c3=imgr3c2; imgr1c2=imgr1c1; imgr2c2=imgr2c1; imgr3c2=imgr3c1; imgr1c1=r1; imgr2c1=r2; imgr3c1=r3; this.view.buf.col=this.view.buf.col-1; tx=x+this.world.width; if(! this.world.basemap.hide()) { this.getImage(imgr1c1,this.imgName(this.view.buf.row+0,this.view.buf.col),ZBasemap); this.getImage(imgr2c1,this.imgName(this.view.buf.row+1,this.view.buf.col),ZBasemap); this.getImage(imgr3c1,this.imgName(this.view.buf.row+2,this.view.buf.col),ZBasemap); } if(! this.world.background.hide()) { this.getBackgroundImage(imgr1c1,this.backgroundName(this.view.buf.row+0,this.view.buf.col+0)); this.getBackgroundImage(imgr2c1,this.backgroundName(this.view.buf.row+1,this.view.buf.col+0)); this.getBackgroundImage(imgr3c1,this.backgroundName(this.view.buf.row+2,this.view.buf.col+0)); } if(! this.world.foreground.hide()) { this.getForegroundImage(imgr1c1,this.foregroundName(this.view.buf.row+0,this.view.buf.col+0)); this.getForegroundImage(imgr2c1,this.foregroundName(this.view.buf.row+1,this.view.buf.col+0)); this.getForegroundImage(imgr3c1,this.foregroundName(this.view.buf.row+2,this.view.buf.col+0)); } if(! this.world.hotspot.hide()) { this.getHotspotImage(imgr1c1,this.hotspotName(this.view.buf.row+0,this.view.buf.col+0)); this.getHotspotImage(imgr2c1,this.hotspotName(this.view.buf.row+1,this.view.buf.col+0)); this.getHotspotImage(imgr3c1,this.hotspotName(this.view.buf.row+2,this.view.buf.col+0)); this.setImageMap(0,imgr1c1,this.mapName(this.view.buf.row+0,this.view.buf.col+0)); this.setImageMap(1,imgr2c1,this.mapName(this.view.buf.row+1,this.view.buf.col+0)); this.setImageMap(2,imgr3c1,this.mapName(this.view.buf.row+2,this.view.buf.col+0)); this.getImageMap(3); } return tx; } function $49(x) { var tx,r1,r2,r3; if(this.view.right(x)<(this.world.width*this.view.buf.cols))return x; if((this.view.buf.col+2)>=this.world.cols)return((this.world.width*this.view.buf.rows)-(this.view.width/2)); r1=r1c1; r2=r2c1; r3=r3c1; r1c1=r1c2; r2c1=r2c2; r3c1=r3c2; r1c2=r1c3; r2c2=r2c3; r3c2=r3c3; r1c3=r1; r2c3=r2; r3c3=r3; r1=imgr1c1; r2=imgr2c1; r3=imgr3c1; imgr1c1=imgr1c2; imgr2c1=imgr2c2; imgr3c1=imgr3c2; imgr1c2=imgr1c3; imgr2c2=imgr2c3; imgr3c2=imgr3c3; imgr1c3=r1; imgr2c3=r2; imgr3c3=r3; this.view.buf.col=this.view.buf.col+1; tx=x-this.world.width; if(! this.world.basemap.hide()) { this.getImage(imgr1c3,this.imgName(this.view.buf.row+0,this.view.buf.col+2),ZBasemap); this.getImage(imgr2c3,this.imgName(this.view.buf.row+1,this.view.buf.col+2),ZBasemap); this.getImage(imgr3c3,this.imgName(this.view.buf.row+2,this.view.buf.col+2),ZBasemap); } if(! this.world.background.hide()) { this.getBackgroundImage(imgr1c3,this.backgroundName(this.view.buf.row+0,this.view.buf.col+2)); this.getBackgroundImage(imgr2c3,this.backgroundName(this.view.buf.row+1,this.view.buf.col+2)); this.getBackgroundImage(imgr3c3,this.backgroundName(this.view.buf.row+2,this.view.buf.col+2)); } if(! this.world.foreground.hide()) { this.getForegroundImage(imgr1c3,this.foregroundName(this.view.buf.row+0,this.view.buf.col+2)); this.getForegroundImage(imgr2c3,this.foregroundName(this.view.buf.row+1,this.view.buf.col+2)); this.getForegroundImage(imgr3c3,this.foregroundName(this.view.buf.row+2,this.view.buf.col+2)); } if(! this.world.hotspot.hide()) { this.getHotspotImage(imgr1c3,this.hotspotName(this.view.buf.row+0,this.view.buf.col+2)); this.getHotspotImage(imgr2c3,this.hotspotName(this.view.buf.row+1,this.view.buf.col+2)); this.getHotspotImage(imgr3c3,this.hotspotName(this.view.buf.row+2,this.view.buf.col+2)); this.setImageMap(0,imgr1c3,this.mapName(this.view.buf.row+0,this.view.buf.col+2)); this.setImageMap(1,imgr2c3,this.mapName(this.view.buf.row+1,this.view.buf.col+2)); this.setImageMap(2,imgr3c3,this.mapName(this.view.buf.row+2,this.view.buf.col+2)); this.getImageMap(3); } return tx; } function $50() { var xmin,ymin; var x1,x2,x3; window.status='x: '+getX()+' y: '+getY(); document.body.innerHtml=""; xmin=-this.view.left(this.view.cx); ymin=-this.view.top(this.view.cy); x1=xmin; x2=x1+this.world.width; x3=x2+this.world.width; br1c1=this.getBackgroundObject(r1c1); br1c2=this.getBackgroundObject(r1c2); br1c3=this.getBackgroundObject(r1c3); br2c1=this.getBackgroundObject(r2c1); br2c2=this.getBackgroundObject(r2c2); br2c3=this.getBackgroundObject(r2c3); br3c1=this.getBackgroundObject(r3c1); br3c2=this.getBackgroundObject(r3c2); br3c3=this.getBackgroundObject(r3c3); fr1c1=this.getForegroundObject(r1c1); fr1c2=this.getForegroundObject(r1c2); fr1c3=this.getForegroundObject(r1c3); fr2c1=this.getForegroundObject(r2c1); fr2c2=this.getForegroundObject(r2c2); fr2c3=this.getForegroundObject(r2c3); fr3c1=this.getForegroundObject(r3c1); fr3c2=this.getForegroundObject(r3c2); fr3c3=this.getForegroundObject(r3c3); hr1c1=this.getHotspotObject(r1c1); hr1c2=this.getHotspotObject(r1c2); hr1c3=this.getHotspotObject(r1c3); hr2c1=this.getHotspotObject(r2c1); hr2c2=this.getHotspotObject(r2c2); hr2c3=this.getHotspotObject(r2c3); hr3c1=this.getHotspotObject(r3c1); hr3c2=this.getHotspotObject(r3c2); hr3c3=this.getHotspotObject(r3c3); posImage(r1c1,x1,ymin,ZBasemap); posImage(r1c2,x2,ymin,ZBasemap); posImage(r1c3,x3,ymin,ZBasemap); posImage(br1c1,x1,ymin,ZBackground); posImage(br1c2,x2,ymin,ZBackground); posImage(br1c3,x3,ymin,ZBackground); posImage(fr1c1,x1,ymin,ZForeground); posImage(fr1c2,x2,ymin,ZForeground); posImage(fr1c3,x3,ymin,ZForeground); posImage(hr1c1,x1,ymin,ZHotspot); posImage(hr1c2,x2,ymin,ZHotspot); posImage(hr1c3,x3,ymin,ZHotspot); ymin=ymin+this.world.height; posImage(r2c1,x1,ymin,ZBasemap); posImage(r2c2,x2,ymin,ZBasemap); posImage(r2c3,x3,ymin,ZBasemap); posImage(br2c1,x1,ymin,ZBackground); posImage(br2c2,x2,ymin,ZBackground); posImage(br2c3,x3,ymin,ZBackground); posImage(fr2c1,x1,ymin,ZForeground); posImage(fr2c2,x2,ymin,ZForeground); posImage(fr2c3,x3,ymin,ZForeground); posImage(hr2c1,x1,ymin,ZHotspot); posImage(hr2c2,x2,ymin,ZHotspot); posImage(hr2c3,x3,ymin,ZHotspot); ymin=ymin+this.world.height; posImage(r3c1,x1,ymin,ZBasemap); posImage(r3c2,x2,ymin,ZBasemap); posImage(r3c3,x3,ymin,ZBasemap); posImage(br3c1,x1,ymin,ZBackground); posImage(br3c2,x2,ymin,ZBackground); posImage(br3c3,x3,ymin,ZBackground); posImage(fr3c1,x1,ymin,ZForeground); posImage(fr3c2,x2,ymin,ZForeground); posImage(fr3c3,x3,ymin,ZForeground); posImage(hr3c1,x1,ymin,ZHotspot); posImage(hr3c2,x2,ymin,ZHotspot); posImage(hr3c3,x3,ymin,ZHotspot); marker.draw(); } function $51(parent_img,name) { var obj; obj=this.getBackgroundObject(parent_img); this.getImage(obj,name,ZBackground); } function $52(parent_img,name) { var img; img=this.getForegroundObject(parent_img); this.getImage(img,name,ZForeground); img.style.Filter=this.world.foreground.filter; } function $53(parent_img,name) { var img; img=this.getHotspotObject(parent_img); this.getImage(img,name,ZHotspot); img.style.filter=this.world.hotspot.filter; } function $54() { var i,n,p; n=this.world.transparentOverlays.length; this.world.foregroundFilter=''; this.world.foregroundPercent=100; for(i=0; i