//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=$6;
this.view.right=$7;
this.view.top=$8;
this.view.bottom=$9;
this.view.bx=$4;
this.view.by=$5;
this.view.xToScreen=$2;
this.view.yToScreen=$3;
this.view.screenToX=$0;
this.view.screenToY=$1;
this.view.world=world;
this.world=world;
this.fixedForeground=false;
this.fixedForeground=false;
this.fixedBackground=false;
this.fixedHotspot=false;
this.fixedBasemap=false;
this.fixedLevel=false;
this.mouseMove=$62;
this.mouseDown=$60;
this.mouseUp=$61;
this.toggleimageMap=$10;
this.setForegroundFilter=$11;
this.setHotspotFilter=$12;
this.foregroundFilter=$13;
this.hotspotFilter=$14;
this.toggleBasemap=$15;
this.toggleHotspot=$17;
this.loadAllHotspot=$31;
this.loadImageMapAll=$24;
this.getImageMap=$25;
this.getImageMapFILE=$25FILE;
this.getImageMapHTTP=$25HTTP;
this.goXY=$29;
this.setImageMap=$21;
this.setColor=$28;
this.loadAllBasemap=$33;
this.loadAllBackground=$32;
this.getHotspotImage=$47;
this.getBackgroundImage=$45;
this.getForegroundImage=$46;
this.setForegroundName=$20;
this.setHotspotName=$19;
this.loadAllForeground=$30;
this.goLevel=$34;
this.imgName=$35;
this.hotspotName=$38;
this.draw=$44;
this.getBackgroundObject=$49;
this.getForegroundObject=$50;
this.clearBackgroundAll=$52;
this.getImage=$59;
this.clearImageMap=$23;
this.backgroundName=$36;
this.foregroundName=$37;
this.mapName=$39;
this.newTopRows=$40;
this.newBottomRows=$41;
this.newLeftColumns=$42;
this.newRightColumns=$43;
this.getHotspotObject=$51;
this.clearForegroundAll=$53;
this.clearHotspotAll=$54;
this.clearBasemapAll=$55;
this.setBackgroundName=$56;
this.setHotspot=$58;
this.hotspots=$16;
this.setTransparent=$48;
this.basemapZIndex=$22;
this.getX=$63;
this.getY=$64;
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(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 $2(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 $3(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 $4()
{
var tx;
tx=this.cx+((this.buf.col-1)*this.world.width);
return tx;
}
function $5()
{
var ty;
ty=this.cy+((this.buf.row-1)*this.world.height);
return ty;
}
function $6(x)
{
var tx;
tx=Math.round(x-(this.width/2));
return tx;
}
function $7(x)
{
var tx;
tx=Math.round(x+(this.width/2));
return tx;
}
function $8(y)
{
var ty;
ty=Math.round(y-(this.height/2));
return ty;
}
function $9(y)
{
var ty;
ty=Math.round(y+(this.height/2));
return ty;
}
function $10(checked)
{
if(checked)
{
if(this.world.isMapOn)return;
this.world.isMapOn=true;
this.loadImageMapAll()
}
else
{
this.world.isMapOn=false;
this.clearImageMap();
}
}
function $11()
{
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 $12()
{
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 $13(parent_img)
{
var obj;
obj=this.getForegroundObject(parent_img);
obj.style.filter=this.world.foregroundFilter;
}
function $14(parent_img)
{
var obj;
obj=this.getHotspotObject(parent_img);
obj.style.filter=this.world.hotspotFilter;
}
function $15(checked)
{
if(this.fixedBasemap)return;
if(checked)
{
if(this.world.isBasemapOn)return;
this.world.isBasemapOn=true;
this.loadAllBasemap();
}
else
{
if(! this.world.isBasemapOn)return;
this.world.isBasemapOn=false;
this.clearBasemapAll();
}
}
function $16(on)
{
if(on)
{
this.world.isHotspotOn=true;
this.loadImageMapAll()
}
else
{
this.world.isHotspotOn=false;
this.clearImageMap();
}
}
function $17(checked,hyperlinks)
{
if(this.fixedHotspot)return;
if(checked)
{
if(this.world.isHotspotOn)return;
this.world.isHotspotOn=true;
this.world.isMapOn=hyperlinks;
this.loadAllHotspot();
this.loadImageMapAll()
}
else
{
if(! this.world.isHotspotOn)return;
this.world.isHotspotOn=false;
this.world.isMapOn=false;
this.loadAllHotspot();
this.clearImageMap();
}
}
function $17_old(checked,hyperlinks)
{
if(checked)
{
if(this.world.isHotspotOn)return;
this.world.isHotspotOn=true;
this.loadAllHotspot();
}
else
{
if(! this.world.isHotspotOn)return;
this.world.isHotstopOn=false;
this.loadAllHotspot();
}
}
function $19(name)
{
if(this.fixedHotspot)return;
this.world.hotspot=name.toLowerCase();
this.world.isHotspotOn=true;
if(this.world.hotspot=='')this.world.isHotspotOn=false;
this.loadAllHotspot();
this.loadImageMapAll()
}
function $20(name)
{
if(this.fixedForeground)return;
this.world.foreground=name.toLowerCase();
this.world.isForegroundOn=false;
if(this.world.foreground !='')this.world.isForegroundOn=true;
this.loadAllForeground();
}
function $21(index,parent_img,mapname)
{
var name;
var list;
var img;
if(! this.world.isMap)return false;
if(! this.world.isMapOn)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 $22(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 $23()
{
mR1C1.innerHTML="";
mR1C2.innerHTML="";
mR1C3.innerHTML="";
mR2C1.innerHTML="";
mR2C2.innerHTML="";
mR2C3.innerHTML="";
mR3C1.innerHTML="";
mR3C2.innerHTML="";
mR3C3.innerHTML="";
}
function $24()
{
if(! this.world.isMapOn)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 $25(count)
{
if(! this.world.isMap)return false;
if(! this.world.isMapOn)return false;
if(this.world.isMapFile){ this.getImageMapFILE(count)}
else{ this.getImageMapHTTP(count)}
}
function $25FILE(count)
{
var text;
var i;
var fname;
var root;
var list;
list=this.world.root.split("file://");
root=list[1];
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 $30()
{
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);
}
function $31()
{
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));
}
function $32()
{
if(this.world.isBackgroundOn)
{
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));
}
}
function $33()
{
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);
}
function $34(lev)
{
return;
}
function $35(r,c)
{
var name;
name=this.world.root+'blank.gif'
if(! this.world.isBasemapOn)return(name);
if(this.world.level <0)return(this.world.root+'blank.gif');
if(this.world.level >this.world.levels)return(this.world.root+'blank.gif');
if(r <1)return(this.world.root+'blank.gif');
if(c <1)return(this.world.root+'blank.gif');
if(r >this.world.rows)return(this.world.root+'blank.gif');
if(c >this.world.cols)return(this.world.root+'blank.gif');
name=this.world.root+this.world.feature+'/l'+this.world.level+'/r'+r+'/c'+c+'.gif'
return name;
}
function $36(r,c)
{
var name;
if(! this.world.isBackgroundOn)return(this.world.root+'blank.gif');
if(this.world.level <0)return(this.world.root+'blank.gif');
if(this.world.level >this.world.levels)return(this.world.root+'blank.gif');
if(r <1)return(this.world.root+'blank.gif');
if(c <1)return(this.world.root+'blank.gif');
if(r >this.world.rows)return(this.world.root+'blank.gif');
if(c >this.world.cols)return(this.world.root+'blank.gif');
name=this.world.root+this.world.background+'/l'+this.world.level+'/r'+r+'/c'+c+'.gif'
return name;
}
function $37(r,c)
{
var name;
if(! this.world.isForegroundOn)return(this.world.root+'blank.gif');
if(this.world.level <0)return(this.world.root+'blank.gif');
if(this.world.level >this.world.levels)return(this.world.root+'blank.gif');
if(r <1)return(this.world.root+'blank.gif');
if(c <1)return(this.world.root+'blank.gif');
if(r >this.world.rows)return(this.world.root+'blank.gif');
if(c >this.world.cols)return(this.world.root+'blank.gif');
name=this.world.root+this.world.foreground+'/l'+this.world.level+'/r'+r+'/c'+c+'.gif'
return name;
}
function $38(r,c)
{
var name;
if(! this.world.isHotspotOn)return(this.world.root+'blank.gif');
if(this.world.level <0)return(this.world.root+'blank.gif');
if(this.world.level >this.world.levels)return(this.world.root+'blank.gif');
if(r <1)return(this.world.root+'blank.gif');
if(c <1)return(this.world.root+'blank.gif');
if(r >this.world.rows)return(this.world.root+'blank.gif');
if(c >this.world.cols)return(this.world.root+'blank.gif');
name=this.world.root+this.world.hotspot+'/l'+this.world.level+'/r'+r+'/c'+c+'.gif'
return name;
}
function $39(r,c)
{
var name;
if(! this.world.isHotspotOn)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=this.world.hotspot+'/l'+this.world.level+'/r'+r+'/c'+c+'.txt'
return name;
}
function $40(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;
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.isBackgroundOn)
{
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.isForegroundOn)
{
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.isHotspotOn)
{
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 $41(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;
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.isBackgroundOn)
{
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.isForegroundOn)
{
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.isHotspotOn)
{
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 $42(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;
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.isBackgroundOn)
{
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.isForegroundOn)
{
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.isHotspotOn)
{
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 $43(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;
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.isBackgroundOn)
{
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.isForegroundOn)
{
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.isHotspotOn)
{
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 $44()
{
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 $45(parent_img,name)
{
var obj;
obj=this.getBackgroundObject(parent_img);
this.getImage(obj,name,ZBackground);
}
function $46(parent_img,name)
{
var img;
img=this.getForegroundObject(parent_img);
this.getImage(img,name,ZForeground);
img.style.Filter=this.world.foregroundFilter;
}
function $47(parent_img,name)
{
var img;
img=this.getHotspotObject(parent_img);
this.getImage(img,name,ZHotspot);
}
function $48()
{
var i,n,p;
n=this.world.transparentOverlays.length;
this.world.foregroundFilter='';
this.world.foregroundPercent=100;
for(i=0; i