
function _f19(){}

_f19._f218=function(x0,x1,x2,x3,x4,x5,x6,x7,x8)
{
var x9=(x7-x1)*x5/(x3-x1)-x0._f200;
var x10=(x4-x8)*x6/(x4-x2)-x0._f201;
var x11=MVSdoGeometry.createPoint(x9,x10);
return x11.sdo_point;
}

_f19._f156=function(x12,x13,x14,x15,x16,x17,x18,x19,x20)
{
var x21=(x19-x13)*x17/(x15-x13)-x12._f200;
var x22=(x16-x20)*x18/(x16-x14)-x12._f201;
return [x21,x22];
}

_f19._f166=function(x23)
{
var x24=x23.style.left;
if(x24.indexOf("px")>0)
x24=x24.substring(0,x24.length-2);
return parseInt(""+x24);
}

_f19._f167=function(x25)
{
var x26=x25.style.top;
if(x26.indexOf("px")>0)
x26=x26.substring(0,x26.length-2);
return parseInt(""+x26);
}

_f19._f191=function(x27,x28,x29)
{
if(_f16._f39==2)
{
x27.style.pixelLeft=x28;
x27.style.pixelTop=x29;
}
else
 {
x27.style.left=_f19._f199(x28);
x27.style.top=_f19._f199(x29);
}
}

_f19._f518=function(x30,x31,x32,x33,x34,x35,x36)
{
x30.style.left=_f19._f199(x31);
x30.style.top=_f19._f199(x32);
x30.style.width=_f19._f199(x33);
x30.style.height=_f19._f199(x34);
x30.style.zIndex=x35;
x30.style.fontSize=_f19._f199(x36);
}

_f19._f516=function(x37)
{
x37.style.position="absolute";
_f19._f203(x37,"default");
x37.unselectable="on";
x37.onselectstart=_f19._f586;
x37.style.fontFamily="Arial, sans serif";
x37.style.MozUserSelect="none";
x37.align="left";
}

_f19._f586=function()
{
return false;
}

_f19._f203=function(x38,x39)
{
try
{
if(x39.indexOf(".")>-1)
{
x39="url(\""+x39+"\")"
}
x38.style.cursor=x39;
}
catch(_exception)
{
if(x39=="pointer")
{
_f19._f203(x38,"hand");
}
}
}

_f19._f38=function(x40)
{
var x41={"x":0,"y":0};
while(x40)
{
x41.x+=x40.offsetLeft;
x41.y+=x40.offsetTop;
x40=x40.offsetParent;
}
return x41;
}

function _f205(x0,x1,x2,x3,x4,x5)
{
var x6=document.createElement("img");
x6.src=x0;

if(x1&&x2)
{
x6.style.width=_f19._f199(x1);
x6.style.heigh=_f19._f199(x2);
x6.width=x1;
x6.height=x2;
}
if(x4||(x3||(x4==0||x3==0)))
{
x6.style.position="absolute";
x6.style.left=_f19._f199(x3);
x6.style.top=_f19._f199(x4);
}
if(x5||x5==0)
{
x6.style.zIndex=x5;
}
if(_f16._f43=="IF"){
x6.unselectable="on";
x6.onselectstart=_f19._f586;}
else{
x6.style.MozUserSelect="none";
}
if(_f16._f43=="IF")
{
x6.galleryImg="no"}
x6.style.border="0";
x6.style.padding="0";
x6.style.margin="0";
x6.oncontextmenu=_f19._f586;
return x6;
}

_f19._f587=function(x42,x43)
{
if(x43)
{
var x44=x42._f495(x43);
var x45=MVSdoGeometry.createPoint(x44.left,x44.top);
return x45.sdo_point;
}
else
 {
var x44=x42._f495(window.event);
var x45=MVSdoGeometry.createPoint(x44.left,x44.top);
return x45.sdo_point;
}
}

_f19.getMouseLocation=function(x46,x47)
{
var x48=_f19._f587(x46,x47);
var x49=x48.x-x46._f29()/2;
var x50=x49/x46._f26+x46._f142;
x49=x48.y-x46._f31()/2;
var x51=((-1.0)*x49)/x46._f27+x46._f144;
var x52=MVSdoGeometry.createPoint(x50,x51);
return x52;
}


_f19._f193=function(x53)
{
x53=(x53)?x53:((window.event)?event:null);
var x54=0;
var x55=0;
if(x53.pageX)
{
x54=x53.pageX;
x55=x53.pageY;
}
else if(x53.clientX)
{
x54=x53.clientX;
x55=x53.clientX;
}
return MVSdoGeometry.createPoint(x54,x55).sdo_point;
}


_f19._f588=0;

_f19._f589=function(x56)
{
var x57=document.createElement("div");
x57.style.zIndex=1000;
x57.style.width=200;
x57.style.backgroundColor="#ffffff";
x57.style.position="absolute";
x57.style.left=0;
x57.style.top=((_f19._f588++)*20)%550;
x57.innerHTML=x56;
document.body.appendChild(x57);
}

_f19.getXMLHttpRequest=function()
{
if(window.ActiveXObject)
{
var x58=null;

try
{
x58=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
x58=new ActiveXObject("Msxml2.XMLHTTP");
}
return x58;
}
else
 return new XMLHttpRequest();
}


_f19._f20=function(x59)
{
if(x59)
{
if(_f16._f43=="IF")
x59.cancelBubble=true;
else if(x59.stopPropagation)
x59.stopPropagation();

if(x59.preventDefault)
x59.preventDefault();
else
 x59.returnValue=false;
}
}

_f19._f199=function(x60)
{
return Math.round(x60)+"px";
}

_f19._f590=function(x61,x62)
{
var x63=0;
var x64=-1;
while((x64=x61.indexOf(x62,x64+1))!=-1)
{
x63++;
}
return x63;
}

_f19._f591=function(x65)
{
var x66=x65.indexOf('<');
if(x66==-1)
return "";
var x67=x65.indexOf(' ',x66+1);
if(x67==-1)
return "";
return '</'+_f19._f51(x65.substring(x66+1,x67))+'>';
}

_f19._f51=function(x68)
{
return x68.replace(/(^[\s]*)|([\s]*$)/g,"");
}

_f19._f592=function(x69,x70)
{
return x69.substring(0,x70.length)==x70;
}

_f19._f108=function(x71,x72)
{
return x71.substring(x71.length-x72.length,x71.length)==x72;
}

_f19._f593=function(x73,x74)
{
return x74+x73+_f19._f591(x74);
}

_f19._f202=function(x75,x76,x77)
{
var x78;
var x79=x75;
x78=x79.indexOf(x76);
while(x78>-1)
{
x79=x79.replace(x76,x77);
x78=x79.indexOf(x76);
}
return x79;
}

_f19._f570=function(x80)
{
if(x80.indexOf(".")>=0)
return x80.substring(0,x80.indexOf("."));
else
 return x80;
}

_f19._f208=function(x81)
{
if(x81.indexOf(".")>=0)
return x81.substring(x81.indexOf(".")+1,x81.length);
else
 return null;
}

_f19._f594=new Array();
_f19._f595=new Array();

_f19._f204=function(x82)
{
if(_f16._f43!="IF")
return;
var x83=_f19._f594.length;
if(x82._f596)
{
x83=(x82._f596);
}
else
 x82._f596=-1;

if((x82._f596)==-1&&(_f19._f595.length)>0)
x83=_f19._f595.pop();

x82._f596=x83;
_f19._f594[x83]=x82;
}

_f19.MVUnload=function()
{
if(typeof(_f19._f594)!="undefined"&&(_f19._f594!=null))
while(_f19._f594.length>0)
{
if(_f19._f594[_f19._f594.length-1]!=null)
{
_f19._f594[_f19._f594.length-1].onmouseover=null;
_f19._f594[_f19._f594.length-1].onmouseout=null;
_f19._f594[_f19._f594.length-1].onmousedown=null;
_f19._f594[_f19._f594.length-1].onmouseup=null;
_f19._f594[_f19._f594.length-1].oncontextmenu=null;
_f19._f594[_f19._f594.length-1]=null;
}
_f19._f594.pop();
}
}

window.onunload=function()
{
_f19.MVUnload();
}

_f19._f35=function(x84,x85)
{
if(_f16._f43!="IF")
{
return function()
{
return x85.apply(x84,arguments);
}
}
if(!(_f19._f597))
{
_f19._f597=new Array();
_f19._f598=new Array();
_f19._f599=new Array();
}

if(!(_f19._f600))
{
_f19._f600=new Array();
_f19._f601=new Array();
_f19._f602=new Array();
}

try
{
var x86=(_f19._f597.length);
if(x84._f596)
{
x86=(x84._f596);
}
else
 x84._f596=-1;

if((x84._f596)==-1&&(_f19._f599.length)>0)
x86=_f19._f599.pop();

_f19._f597[x86]=x84;
_f19._f597[x86]._f596=x86;

if(!(_f19._f598[x86]))
_f19._f598[x86]=new Array();

var x87=(_f19._f598[x86].length);
_f19._f598[x86][x87]=x85;

x84=null;
x85=null;

return function()
{
return _f19._f598[x86][x87].apply(_f19._f597[x86],arguments);
}
}
catch(e)
{
var x86=(_f19._f600.length);

if((_f19._f602.length)>0)
x86=_f19._f602.pop();

_f19._f600[x86]=x84;
_f19._f601[x86]=x85;

x84=null;
x85=null;

return function()
{
return _f19._f601[x86].apply(_f19._f600[x86],arguments);
}
}
}

_f19._f226=function(x88)
{
if(_f16._f43=="IF")
{
if(x88._f596)
{
var x89=(x88._f596);
for(var x90=(_f19._f598[x89].length);x90>0;--x90)
{
_f19._f598[x89][x90-1]=null;
_f19._f598[x89].pop();
}

_f19._f598[x89]=null;
x88._f596=null;
x88=null;
_f19._f597[x89]=null;
_f19._f599.push(x89);
}
}
}

_f19.gc=function()
{
if(_f16._f43=="IF"&&_f19._f600)
{
var x91=0;
if(_f19._f603)
x91=(_f19._f603);

if((_f19._f600.length)<x91)
return;

for(var x92=0;x92<(_f19._f600.length);++x92)
{
if((_f19._f600[x92])&&(_f19._f600[x92].readyState)&&(_f19._f600[x92].readyState)==4)
{
_f19._f600[x92]=null;
_f19._f601[x92]=null;
_f19._f602.push(x92);
}
}
}
}

_f19._f604=function(x93,x94)
{
if(_f16._f43!="IF")
return;

if(x93=="time")
{
if(_f19._f605)
{
clearInterval(_f19._f605);
_f19._f605=setInterval(_f19.gc,x94);
}
else
 _f19._f605=setInterval(_f19.gc,x94);
}

if(x93=="totalNum")
{
_f19._f603=x94;
}
}

_f19._f178=function(x95)
{
if(x95!=null)
{
x95.src=null;
delete x95;
}
}

_f19._f175=function(x96)
{
if(x96!=null)
{
if(_f16._f43=="IF")
{
if(x96.src)
{
x96.src=null;
}
if(x96.style.filter)
{
x96.style.filter=null;
}
if(x96._f596)
{
_f19._f595.push(x96._f596)
_f19._f594[x96._f596]=null;
}
}
else
 {
if(x96.src)
x96.src=null;
}
x96=null;
}
}

_f19._f331=function(x97)
{
if(_f16._f43=="NS")
{
x97.style.MozUserSelect="none";
}
else if(_f16._f43=="SF")
{
x97.style.KhtmlUserSelect="none";
}
else if(_f16._f43=="IF")
{
x97.unselectable="on";
}
else
 {
return false;
}
return true;
}

_f19._f606=function(x98)
{
if(_f16._f43=="NS")
{
x98.style.MozUserSelect="";
}
else if(_f16._f43=="SF")
{
x98.style.KhtmlUserSelect="";
}
else if(_f16._f43=="IF")
{
x98.unselectable="off";
}
else
 {
return false;
}
return true;
}

var MV=function(){};


function _f16(){}

_f16._f39=document.all?(document.getElementById?2:1):(document.layers?3:0);
_f16._f40=navigator.userAgent.toLowerCase();

var _f41;
var _f42;

_f16._f21=function(x0)
{
_f41=_f16._f40.indexOf(x0)+1;
_f42=x0;
return _f41;
}

if(_f16._f21('safari'))
_f16._f43="SF";
else if(_f16._f21('opera'))
_f16._f43="OS";
else if(_f16._f21('msie'))
_f16._f43="IF";
else if(!_f16._f21('compatible'))
{
_f16._f43="NS";
_f16._f44=_f16._f40.substring(8,11);}
else _f16._f43="unknown";

if(!_f16._f44)
_f16._f44=_f16._f40.substring(_f41+_f42.length,
_f41+_f42.length+3);
_f16._f45=new Array(30);
_f16._f46=function(x1,x2)
{
_f16._f45[x1]=x2;
}

_f16._f48=function(basemap)
{
if(basemap._f49==null||basemap._f50==null||_f19._f51(basemap._f50)=="")
{
basemap._f50="null";
_f16._f45[basemap._f50]=null;return;
}
var conStr=(basemap._f52==basemap.parent._f53)?"?":"&";
var _f54=basemap._f52+'/mcserver'+conStr+"xml_request=<?xml+version=\"1.0\"+standalone=\"yes\"?>"
+"<map_cache_admin_request><get_client_config+map_cache_names=\""+basemap._f50
+"\"+format=\"JSON\"/></map_cache_admin_request>";

var request=null;
try
{
request=_f19.getXMLHttpRequest();
request.open("GET",_f54,false);
request.send("");
}catch(e)
{
if(e.name)
alert("Error name: "+e.name+". Error message: "+e.message);
else
 alert(e);
}

if(request.status==200)
{
try
{
eval("var result="+request.responseText);
if(result.length==0)
{
MVi18n.processLocale("No such base map: "+basemap._f50+". Error: new MVBaseMap(...)");
_f16._f45[basemap._f50]=null;result=null;
return;
}
_f16._f45[basemap._f50]=result;
result=null;
}
catch(e)
{
alert("Cannot process the following response from FOI server:\n"+request.responseText);
return ;
}
}
else
 _f16._f45[basemap._f50]=null;request=null;
}

_f16._f55=180;
_f16._f56=100;

_f16._f57=5;
_f16._f58=90;

_f16._f59=15;
_f16._f60=8;

_f16._f61=13;
_f16._f62=13;

_f16._f63=13;
_f16._f64=13;

_f16._f65=13;
_f16._f66=13;

_f16._f67=600;
_f16._f68=600;
_f16._f69=30;
_f16._f70=16;
_f16._f71=600;
_f16._f72=1;
_f16._f73=1;
_f16._f74=600;
_f16._f75=1;
_f16._f76=10;

_f16._f77="Pan North East";
_f16._f78="Pan North";
_f16._f79="Pan NorthEast";
_f16._f80="Pan West";
_f16._f81="Pan East";
_f16._f82="Pan SouthWest";
_f16._f83="Pan South";
_f16._f84="Pan SouthEast";
_f16._f85="Home";
_f16._f86="Slider Bar";
_f16._f87="Drag To Zoom";
_f16._f88="Zoom In";
_f16._f89="Zoom Out";
_f16._f90="Scale at the center of the map";
_f16._f91="MapView baseURL is not set, please check";

_f16._f18=true;
_f16._f92="/mapviewer/fsmc/images/";

_f16._f93=0;
_f16._f94=null;
_f16._f95="pin.gif";
_f16._f96=48;
_f16._f97=71;
_f16.redlineIgnoreMove=5;
_f16.circleToolId=0;
_f16._f98=0;

_f16._f99=1000;

_f16._f100="km";
_f16._f101="mi";
_f16._f102="m";
_f16._f103="ft";
_f16._f104=null;

_f16._f105=function()
{
if(!_f16._f104)
{
_f16._f104="http://"+document.location.host+"/mapviewer/foi";
}
return _f16._f104;
}


function _f255(x0)
{
this._f256=x0;
this._f257=new _f258();
this._f259=this._f168();
this._f260=this._f169();
this._f261=this._f170();
this._f262=this._f171();
this._f263=this._f170()-this._f168();
this._f264=this._f171()-this._f169();
}


_f255.prototype.init=function()
{
this._f257._f265(_f16._f45[this._f256][0].zoomLevels.length);
}


_f255.prototype._f266=function()
{
return this._f256;
}


_f255.prototype._f267=function(x0)
{
return _f16._f45[x0][0].format;
}


_f255.prototype._f268=function()
{
return this._f257;
}


_f255.prototype._f269=function()
{
return this._f263;
}


_f255.prototype._f270=function()
{
return this._f264;
}


_f255.prototype._f168=function()
{
return _f16._f45[this._f256][0].coordSys.minX;
}


_f255.prototype._f169=function()
{
return _f16._f45[this._f256][0].coordSys.minY;
}


_f255.prototype._f170=function()
{
return _f16._f45[this._f256][0].coordSys.maxX;
}


_f255.prototype._f171=function()
{
return _f16._f45[this._f256][0].coordSys.maxY;
}


_f255.prototype._f271=function()
{
return _f16._f45[this._f256][0].mapCache;
}


_f255.prototype.getSrid=function()
{
return _f16._f45[this._f256][0].coordSys.srid;
}


_f255.prototype._f272=function()
{
return _f16._f45[this._f256][0].coordSys.type;
}


_f255.prototype._f273=function()
{
return _f16._f45[this._f256][0].coordSys.distConvFactor;
}


_f255.prototype._f274=function()
{
return _f16._f45[this._f256][0].zoomLevels.length;
}


_f255.prototype._f275=function(x1)
{
return _f16._f45[this._f256][0].zoomLevels[x1].tileWidth;
}


_f255.prototype._f276=function(x2)
{
return _f16._f45[this._f256][0].zoomLevels[x2].tileHeight;
}


_f255.prototype._f277=function(x3)
{
return _f16._f45[this._f256][0].zoomLevels[x3].tileImageWidth;
}


_f255.prototype._f278=function(x4)
{
return _f16._f45[this._f256][0].zoomLevels[x4].tileImageHeight;
}


_f255.prototype._f279=function(x5)
{
return _f16._f45[this._f256][0].zoomLevels[x5]._f280;
}


_f255.prototype._f281=function(x6,x7,x8,x9)
{
this._f259=x6;
this._f260=x7;
this._f261=x8;
this._f262=x9;
}


function _f258()
{
this._f282=0;
this._f283=0;
this._f280=new Array();
}


_f258.prototype._f265=function(x10){this._f282=x10;}


_f258.prototype._f284=function(x11){this._f283=x11;}


_f258.prototype._f285=function(){return this._f282;}


_f258.prototype._f286=function(){return this._f283;}


_f258.prototype._f287=function(){return this._f280;}


_f258.prototype._f288=function()
{
if(this._f282>parseInt(this._f283)+1)this._f283=parseInt(this._f283)+1;
return this._f283;
}


_f258.prototype._f289=function()
{
if(this._f283>0)this._f283=parseInt(this._f283)-1;
return this._f283;
}


_f258.prototype._f290=function(){this._f283=this._f282-1;return this._f283;}


_f258.prototype._f291=function(){this._f283=0;return this._f283;}

function _f323(x0,x1,x2,x3)
{
this._f329=Math.floor((x1-x0._f168())/x0._f275(x3));
this._f330=Math.floor((x2-x0._f169())/x0._f276(x3));
this._f318=x3;
this.minX=this._f329*x0._f275(x3)+x0._f168();
this.minY=this._f330*x0._f276(x3)+x0._f169();this._f324=x0._f275(x3);
this._f325=x0._f276(x3);}

_f323.prototype._f327=function(x0,x1)
{
this._f329=this._f329+x0;
this._f330=this._f330+x1;
}

function MVBaseMap(x0,x1)
{
if(x0==null||_f19._f51(x0)=="")
MVi18n.processLocale("Map cache name is not set, and please check it. Error: new MVBaseMap(...)");

this._f50=x0;

this._f49="";

this._f52="";
if(x1)
{
this._f49=x1;
this._f52=x1;
if(_f19._f108(x1,'/'))
{
this._f49=x1.substring(0,x1.length-1);
this._f52=x1.substring(0,x1.length-1);
}
}

this.parent="";

this._f292=false;

this.visible=true;

this._f293="PNG";

this.minVisibleLevel=null;

this.maxVisibleLevel=null;
}


MVBaseMap.prototype.getType=function()
{
return "MVBaseMap";
}


MVBaseMap.prototype.setTransparent=function(x0)
{
this._f292=x0;
}


MVBaseMap.prototype.setVisible=function(x1)
{
if(this.parent)
{
for(var x2=0;x2<this.parent._f294.length;x2++)
{
if(this.parent._f294[x2]._f295()==this._f49&&
this.parent._f294[x2]._f271()==this._f50)
{
this.parent._f294[x2].setVisible(x1);
this.visible=x1;
return;
}
}
}
else
 this.visible=x1;
}


MVBaseMap.prototype.isVisible=function()
{
return this.visible;
}


MVBaseMap.prototype.setVisibleZoomLevelRange=function(x3,x4)
{
this.minVisibleLevel=x3;
this.maxVisibleLevel=x4;
}

MVBaseMap.prototype._f271=function()
{
return this._f50;
}


function _f296(x0,x1)
{
this._f297=x0.msi;
this.visible=true;
this._f298;
this._f299;
this._f49="";
if(x1._f49)
{
this._f49=x1._f49;
}
else
 {
MVi18n.processLocale("MapView base URL is not set, please check.")
}

this.parent=x0;
this._f50=x1._f50;
this._f293=this.parent.msi._f267(this._f50);
this._f292=x1._f292;
this._f300;
this._f301;
this._f302;
this._f303;
this._f304;
this._f305;
this.tileWidth;
this.tileHeight;
this._f306=true;
this._f307=[];
this._f308=0;
this._f309=0;
this._f310;
this._f311;
this._f141;
this._f143;
this._f312=null;
this._f313=document.createElement("div");
this._f313.style.position="absolute";
this._f313.style.zIndex=99;
this.parent.div.appendChild(this._f313);
this._f314=_f16._f92+"transparent."+(_f16._f43=="IF"?"gif":"png");
this.visible=x1.isVisible();
this.minVisibleLevel=x1.minVisibleLevel;
this.maxVisibleLevel=x1.maxVisibleLevel;
}


_f296.prototype._f295=function()
{
return this._f49;
}


_f296.prototype._f271=function()
{
return this._f50;
}


_f296.prototype._f315=function()
{
return this._f313;
}


_f296.prototype.setVisible=function(x5)
{
this.visible=x5;
if(!this.visible)
this._f313.style.visibility="hidden";
else
 {
this._f313.style.visibility="visible";
if(this.parent._f117)
this._f316(this.parent._f29(),this.parent._f31(),this.parent._f142,this.parent._f144);
}
}


_f296.prototype.isVisible=function()
{
return this.visible;
}


_f296.prototype._f317=function(x6,x7)
{
return String(this._f49+"?request=gettile&format="+this._f293+"&zoomlevel="+this._f312._f318+"&mapcache="+this._f50+"&mx="+x6+"&my="+x7);
}


_f296.prototype._f316=function(x8,x9,x10,x11)
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f319)
{
this._f313.style.visibility="hidden";
return ;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f319)
{
this._f313.style.visibility="hidden";
return ;
}

if(this._f313.style.visibility=="hidden")
this._f313.style.visibility="visible";
this.tileWidth=this._f297._f277(this.parent._f319);
this.tileHeight=this._f297._f278(this.parent._f319);
this._f300=x10;this._f301=x11;
this._f298=Math.max(this.parent._f320,this.tileWidth*1);
this._f299=Math.max(this.parent._f321,this.tileHeight*1);
this._f310=x8;this._f311=x9;
this._f141=x10;this._f143=x11;
this._f304=Math.ceil((x8+this._f298*2)/this.tileWidth);
this._f305=Math.ceil((x9+this._f299*2)/this.tileHeight);
this._f308=0;this._f309=0;
this.origParLeft=this.parent._f200;this.origParTop=this.parent._f201;

this._f322();

var x12=Math.floor(this._f304/2);
var x13=Math.floor(this._f305/2);
this._f312=null;
this._f312=new _f323(this._f297,x10,x11,this.parent._f319);

this.parent._f26=this.tileWidth/this._f312._f324;this.parent._f27=this.tileHeight/this._f312._f325;var x14=this._f310/2.0-(x10-this._f312.minX)*this.parent._f26;
var x15=this._f311/2.0+(x11-this._f312.minY)*this.parent._f27-this.tileHeight;
this._f302=x14-x12*this.tileWidth-this.parent._f200;
this._f303=x15-x13*this.tileHeight-this.parent._f201;
_f19._f191(this._f313,this._f302,this._f303);

this._f326(x12,x13,
this.tileWidth,this.tileHeight,
x12*this.tileWidth,x13*this.tileHeight);

this._f312._f327(-1,1);
for(_f32=1;_f32<=Math.max(x12,x13);_f32++)
{
for(xx=x12-_f32,yy=x13-_f32;
xx<=x12+_f32;xx++)
{
if(!(xx<0||xx>=this._f304||yy<0||yy>=this._f305))
{
this._f326(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f312._f327(1,0);
}
this._f312._f327(-(_f32*2+1),-1);
for(xx=x12-_f32,yy=x13-_f32+1;
yy<=x13+_f32-1;yy++)
{
if(!(xx<0||xx>=this._f304||yy<0||yy>=this._f305))
{
this._f326(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f312._f327(0,-1);
}
for(xx=x12-_f32,yy=x13+_f32;
xx<=x12+_f32;xx++)
{
if(!(xx<0||xx>=this._f304||yy<0||yy>=this._f305))
{
this._f326(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f312._f327(1,0);
}
this._f312._f327(-1,1);

for(xx=x12+_f32,yy=x13+_f32-1;
yy>=x13-_f32+1;yy--)
{
if(!(xx<0||xx>=this._f304||yy<0||yy>=this._f305))
{
this._f326(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f312._f327(0,1);
}
this._f312._f327(-(_f32*2+1),1);
}
this._f312._f327(_f32,-(_f32));
}


_f296.prototype._f328=function()
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f319)
{
this._f313.style.visibility="hidden";
return;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f319)
{
this._f313.style.visibility="hidden";
return;
}

var x16=this.parent._f200-this.origParLeft+this._f308;
var x17=this.parent._f201-this.origParTop+this._f309;
var x18=0,x19=0;
x18=Math.round((x16)/this.tileWidth);
x19=Math.round((x17)/this.tileHeight);
if(x18==0&&x19==0)
return ;

var x20=Math.floor(this._f304/2);
var x21=Math.floor(this._f305/2);
var x22=this._f312._f329-x20;
var x23=this._f312._f330+x21;

var x24;
if(x18!=0)
{
for(x24=0;(x18>0?x24<x18:x24>x18);(x18>0?x24++:x24--))
{
var x25;
var x26;
if(x18>0)
x26=this._f308-(x24+1)*this.tileWidth;
else
 x26=this._f308+(this._f304-x24)*this.tileWidth;
if(x18>0)
{
x25=this._f307[this._f307.length-1];
this._f307.pop();
for(var x27=0;x27<x25.length;x27++)
{
if(_f16._f43=="IF"&&this._f292)
{
x25[x27].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f314+"', sizingMethod='image');";
}
else
 {
x25[x27].src=this._f314;
}
x25[x27].style.left=_f19._f199(x26);
if(x19==0||
(x19>0&&x27<x25.length-x19)||
(x19<0&&x27>=-x19))
{
if(_f16._f43=="IF"&&this._f292)
{
x25[x27].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this._f317(x22-x24-1,x23-x27)+
"', sizingMethod='image');";
}
else
 {
x25[x27].src=this._f317(x22-x24-1,x23-x27);
}
}}
this._f307.unshift(x25);
}
else
 {
x25=this._f307[0];
this._f307.shift();
for(var x27=0;x27<x25.length;x27++)
{
if(_f16._f43=="IF"&&this._f292)
{
x25[x27].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f314+"', sizingMethod='image');";
}
else
 {
x25[x27].src=this._f314;
}
x25[x27].style.left=_f19._f199(x26);
if(x19==0||
(x19>0&&x27<x25.length-x19)||
(x19<0&&x27>=-x19))
if(_f16._f43=="IF"&&this._f292)
{
x25[x27].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f317(x22+this._f304-x24,x23-x27)+"', sizingMethod='image');";
}
else
 {
x25[x27].src=this._f317(x22+this._f304-x24,x23-x27);
}
}
this._f307.push(x25);
}
}
}

if(x19!=0)
{
var x28;
for(x28=0;(x19>0?x28<x19:x28>x19);(x19>0?x28++:x28--))
{
var x29;
if(x19>0)
x29=this._f309-(x28+1)*this.tileHeight;
else
 x29=this._f309+(this._f305-x28)*this.tileHeight;

for(x24=0;x24<this._f307.length;x24++)
{
var x25=this._f307[x24];
var x30;
if(x19>0)
{
x30=x25[x25.length-1];
if(_f16._f43=="IF"&&this._f292)
{
x30.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f314+"', sizingMethod='image');";
}
else
 {
x30.src=this._f314;
}
x25.pop();
x25.unshift(x30);
x30.style.top=_f19._f199(x29);
if(_f16._f43=="IF"&&this._f292)
{
x30.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f317(x22-x18+x24,x23+x28+1)+"', sizingMethod='image');";
}
else
 {
x30.src=this._f317(x22-x18+x24,x23+x28+1);
}
}
else
 {
x30=x25[0];
if(_f16._f43=="IF"&&this._f292)
{
x30.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f314+"', sizingMethod='image');";
}
else
 {
x30.src=this._f314;
}
x25.shift();
x25.push(x30);
x30.style.top=_f19._f199(x29);
if(_f16._f43=="IF"&&this._f292)
{
x30.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f317(x22-x18+x24,x23-this._f305+x28)+"', sizingMethod='image');";
}
else
 {
x30.src=this._f317(x22-x18+x24,x23-this._f305+x28);
}
}
}
}
}

this._f308=this._f308-x18*this.tileWidth;
this._f309=this._f309-x19*this.tileHeight;
this._f312._f327(-x18,x19);
}


_f296.prototype._f326=function(x31,x32,x33,x34,x35,x36)
{
var x37=this._f307[x31][x32];
if(x37==null)
{
x37=(_f16._f43=="IF"&&this._f292)?
document.createElement('div'):document.createElement('img');
this._f313.appendChild(x37);
this._f307[x31][x32]=x37;
}

if(_f16._f43=="IF"&&this._f292)
{
x37.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f314+"', sizingMethod='image');";
}
else
 {
x37.src=this._f314;
}
if(_f16._f43=="IF"&&!this._f292)
{
x37.galleryImg="no"}

_f19._f331(x37);
x37.style.position="absolute";
x37.style.left=_f19._f199(x35);
x37.style.top=_f19._f199(x36);
x37.style.width=_f19._f199(x33);
x37.style.height=_f19._f199(x34);
var x38=this._f317(this._f312._f329,this._f312._f330);
if(_f16._f43=="IF"&&this._f292)
{
x37.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x38+"', sizingMethod='image');";
}
else
 {
x37.src=x38;
if(_f16._f43!='IF')
{
x37.onerror=function(x39)
{
x37.onerror=null;
x37.src=x38;
}
}
}
return x37;
}


_f296.prototype._f322=function()
{
while(this._f307.length>this._f304)
{
var x40=this._f307.pop();
while(x40.length>0)
{
if(_f16._f43=="IF"&&this._f292)
{
_f19._f175(x40.pop());
}
else
 {
var x41=x40.pop();
if(x41!=null)
{
this._f313.removeChild(x41);
x41.src=null;
delete x41;
}
}}}

for(var x42=0;x42<this._f304;x42++)
{
if(x42>=this._f307.length)
this._f307.push(new Array(this._f305));
else
 {
var x40=this._f307[x42];
while(x40.length>this._f305)
{
if(_f16._f43=="IF"&&this._f292)
{
_f19._f175(x40.pop());
}
else
 {
var x41=x40.pop();
if(x41!=null)
{
this._f313.removeChild(x41);
x41.src=null;
delete x41;
}
}}var x43;
for(x43=0;x43<x40.length;x43++)
{
if(x40[x43]!=null)
{
if(_f16._f43=="IF"&&this._f292)
{
x40[x43].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f314+"', sizingMethod='image');";
}
else
 {
x40[x43].src=this._f314;
}
}
}
while(x40.length<this._f305)
x40.push(null);
}
}
}


function MVThemeBasedFOI(x0,x1,x2)
{

this.name=x0;

this.parent="";

this._f107=x2;

this._f549=-1;

this._f440=100;

this._f125=true;

this.minX=0;

this.minY=0;

this.maxX=0;

this.maxY=0;

this._f145=null;

this._f550=null;

this._f121=null;

this._f122=null;

this._f123=null;

this._f124=null;

this._f551=null;

this._f548=null;

this._f453=2;

this._f454=2;

this._f115=true;

this._f220=true;

this._f116=true;

this._f552=null;

this._f553=null;

this._f554=null;

this._f555=null;

this._f556=null;

this._f458=-1;

this._f557=-1;

this._f442=false;

this._f558=new Array();
this._f559=null;

this._f457=true;

this.visible=true;

this._f128=true;
if(x1!=null)
{

this._f548=x1;
}
}

function ArrayParameter(x0,x1,x2)
{
this.array=x0;
this.elementType=x1;
this.sqlType=x2;
}


MVThemeBasedFOI.prototype.setLayoutCustomizer=function(x0)
{
this._f551=x0;
}


MVThemeBasedFOI.prototype.setQueryParameters=function()
{
this._f552="&paramnum="+arguments.length;
for(var x1=0;x1<arguments.length;x1++)
{
if(typeof arguments[x1]=="object")
this._f552+=this.setObjectQueryParameters(arguments[x1],x1+1);
else
 this._f552+="&param"+(x1+1)+"="+arguments[x1];
}
return this._f552;
}


MVThemeBasedFOI.prototype.setObjectQueryParameters=function(x2,x3)
{
if(x2.gtype!=undefined)
return "&param"+x3+"="+x2+"&paramtype"+x3+"=geometry";
else
 return "&param"+x3+"="+x2.array+"&paramtype"+x3+"="+x2.elementType+"&sqltype"+x3+"="+x2.sqlType;
}

MVThemeBasedFOI.prototype.getQueryParameters=function()
{
return this._f552;
}


MVThemeBasedFOI.prototype.setMinVisibleZoomLevel=function(x4)
{
this._f549=x4;
}


MVThemeBasedFOI.prototype.setMaxVisibleZoomLevel=function(x5)
{
this._f440=x5;
}


MVThemeBasedFOI.prototype.setBringToTopOnMouseOver=function(x6)
{
this._f125=x6;
}


MVThemeBasedFOI.prototype.setMaxWholeImageLevel=function(x7)
{
this._f458=x7;
}


MVThemeBasedFOI.prototype.setMinClickableZoomLevel=function(x8)
{
this._f557=x8;
}


MVThemeBasedFOI.prototype.enableInfoTip=function(x9)
{
this._f115=x9;
}


MVThemeBasedFOI.prototype.enableInfoWindow=function(x10)
{
this._f220=x10;
}


MVThemeBasedFOI.prototype.setClickable=function(x11)
{
this._f116=x11;
}


MVThemeBasedFOI.prototype.addEventListener=function(x12,x13)
{
if(x12=="before_refresh")
{
this._f145=x13;
}
else if(x12=="after_refresh")
{
this._f550=x13;
}
else if(x12=="mouse_click")
{
this._f121=x13;
}
else if(x12=="mouse_right_click")
{
this._f122=x13;
}
else if(x12=="mouse_over")
{
this._f123=x13;
}
else if(x12=="mouse_out")
{
this._f124=x13;
}
}


MVThemeBasedFOI.prototype.setQueryWindowMultiplier=function(x14)
{
this._f453=x14;
this._f454=x14;
}


MVThemeBasedFOI.prototype.getLayerMBR=function()
{
var x15=MVSdoGeometry.createRectangle(this.minX,this.minY,this.maxX,this.maxY,this.parent.srid);
return x15;
}


MVThemeBasedFOI.prototype.setMarkerImage=function(x16,x17,x18)
{
this._f553=new _f560(x16,x17,x18);
}


function _f560(x0,x1,x2)
{
this._f109=x0;
this.width=x1;
this.height=x2;
}


MVThemeBasedFOI.prototype.getFOIMarker=function()
{
return this._f553;
}


MVThemeBasedFOI.prototype.setVisible=function(x19)
{
this.visible=x19;
if(this.parent._f164)
this.parent._f164._f217();
if(this.parent._f355)
{
for(var x20=0;x20<this.parent._f355.length;x20++)
{
if(this.parent._f355[x20].getThemeBasedFOI()==this)
{
this.parent._f355[x20].setVisible(this.parent,x19);
return;
}
}
}
}


MVThemeBasedFOI.prototype.setInfoWindowStyle=function(x21)
{
this._f555=x21;
}


MVThemeBasedFOI.prototype.isVisible=function()
{
if(this.parent._f355)
{
for(var x22=0;x22<this.parent._f355.length;x22++)
{
if(this.parent._f355[x22].getThemeBasedFOI()==this)
{
return this.parent._f355[x22].isVisible();
}
}
}
}


MVThemeBasedFOI.prototype.refresh=function(x23)
{
this.parent._f190();
if(this.parent._f355)
{
for(var x24=0;x24<this.parent._f355.length;x24++)
{
if(this==this.parent._f355[x24].getThemeBasedFOI())
{
var x25=this.parent._f355[x24];
var x26=(x25._f148()-this.parent._f29())*0.5/this.parent._f26;
var x27=(x25._f150()-this.parent._f31())*0.5/this.parent._f27;
var x28=this.parent._f445(this.parent._f151-x26,
this.parent._f152-x27);
var x29=this.parent._f446(this.parent._f153+x26,
this.parent._f154+x27);
var x30=Math.floor((x29.x-x28.x)*this.parent._f26+0.5);
var x31=Math.floor((x29.y-x28.y)*this.parent._f27+0.5);
x25._f447(x30,x31);
x25._f448(this.parent,x28.x,x28.y,x29.x,x29.y,true,x23);
return ;
}
}
}
}


MVThemeBasedFOI.prototype.getFOIData=function()
{
if(this._f554==null||this._f554.foiarray==null)
{
return null;
}
else
 return this._f554.foiarray;
}


MVThemeBasedFOI.prototype.setNSDP=function(x32)
{
this._f556=x32;
}



MVThemeBasedFOI.prototype.setBoundingTheme=function(x33)
{
this._f442=x33;
}


MVThemeBasedFOI.prototype.zoomToTheme=function()
{
this.refresh(true);
}


MVThemeBasedFOI.prototype.addStyle=function(x34)
{
var x35=this._f558.concat(x34);
this._f558=null;
this._f558=x35;
}


MVThemeBasedFOI.prototype.deleteStyle=function(x36)
{
var x37=-1;
for(var x38=0;x38<this._f558.length;x38++)
{
var x39=this._f558[x38];
if(x39!=null&&x39==x36)
{
x37=x38;
break;
}
}

if(x37<0)
return;
var x40=0;
var x41=new Array(this._f558.length-1);
for(var x38=0;x38<this._f558.length;x38++)
{
if(x38!=x37)
{
x41[x40]=this._f558[x38];
x40++;
}
}

this._f558=null;
this._f558=x41;
}


MVThemeBasedFOI.prototype.deleteAllStyles=function()
{
for(var x42=0;x42<_f558.length;x42++)
this._f558[x42]=null;

this._f558=new Array();
}


MVThemeBasedFOI.prototype.setRenderingStyle=function(x43)
{
this._f559=x43;
}


MVThemeBasedFOI.prototype.setAutoRefresh=function(x44)
{
this._f457=x44;
}


MVThemeBasedFOI.prototype.enableEventPropagation=function(x45)
{
this._f128=x45;
}

function _f451(x0,x1)
{
this.parent=x0;
this._f561=false;
this._f462=false;
if(!x1._f107)
{
if(this.parent._f53)
{
if(_f19._f108(this.parent._f53,'/'))
{
x1._f107=this.parent._f53+'foi';
}
else
 {
x1._f107=this.parent._f53+'/foi';
}
}
else
 {
MVi18n.processLocale(_f16._f91);
}
}
else
 {
if(_f19._f108(x1._f107,'/'))
x1._f107=x1._f107.substring(0,x1._f107.length-1)
if(x1._f107!=this.parent._f53)
{
x1._f107=this.parent._f53+"/proxy?rtarget="+x1._f107+'/foi';
}
else
 {
x1._f107=this.parent._f53+'/foi';
}
}
this._f441=x1;
this._f562=0;
this._f563=0;
this.width=0;
this.height=0;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f456=true;
this._f319=0;
this._f564=true;
this._f565=false;
this._f138=0;
this._f139=0;
this._f566=0;
this._f567=0;
this._f141=0;
this._f143=0;
this._f568=false;
this._f569=true;
this._f455=1;this.div=document.createElement("div");
this.div.style.position="absolute";
this._f452=0;
this.div.style.zIndex=132;
if(!x1.visible)
this.div.style.visibility="hidden";
this.parent.div.appendChild(this.div);
this._f444=document.createElement("div");
this._f443=document.createElement("map");
}

_f451.prototype.setCachingEnabled=function(x0)
{
this._f569=x0;
}


_f451.prototype._f206=function()
{
return "<theme name=\""+_f19._f208(this._f441._f548)+
"\" render_labels=\"false\" datasource=\""+
_f19._f570(this._f441._f548)+"\"/>";
}


_f451.prototype.setSize=function(x1,x2)
{
this.width=x1;
this.height=x2;
}


_f451.prototype._f447=function(x3,x4)
{
if(!this._f462)
{
this._f562=x3;
this._f563=x4;
}
}


_f451.prototype._f140=function()
{
return this._f568;
}


_f451.prototype._f571=function()
{
return this.request;
}


_f451.prototype._f168=function()
{
return this.minX;
}


_f451.prototype._f169=function()
{
return this.minY;
}


_f451.prototype._f170=function()
{
return this.maxX;
}


_f451.prototype._f171=function()
{
return this.maxY;
}


_f451.prototype.isVisible=function()
{
return !(this.div.style.visibility=='hidden');
}


_f451.prototype._f172=function()
{
return this.div;
}


_f451.prototype.getThemeBasedFOI=function()
{
return this._f441;
}


_f451.prototype._f572=function()
{
return this._f566;
}


_f451.prototype._f573=function()
{
return this._f567;
}


_f451.prototype._f574=function(x5)
{
this._f566=x5;
}


_f451.prototype._f575=function(x6)
{
this._f567=x6;
}


_f451.prototype.setVisible=function(x7,x8)
{
if(x8)
{
if(!this.isVisible())
{
if(this._f565)
{
if((_f16._f43!="IF"&&this._f441.getFOIData()!=null&&
this._f441.getFOIData()[0].gtype%10!=1)||
this._f441._f458>=this._f319)
{
this.parent._f384.style.visibility="visible";
}
}
this.div.style.visibility="visible";

if(!this._f564)
{
_f19._f191(this.div,Math.ceil((this.minX-this.parent._f151)*this.parent._f26),
-Math.ceil((this.maxY-this.parent._f154)*this.parent._f27));
this._f448(this.parent,this.minX,this.minY,this.maxX,this.maxY,true);
}
}
}
else
 {
if(this._f565)
{
if((_f16._f43!="IF"&&this._f441.getFOIData()!=null&&
this._f441.getFOIData()[0].gtype%10!=1)||
this._f441._f458>=this._f319)
{
this.parent._f384.style.visibility="hidden";
if(this.parent._f164._f165.length>0)
{
for(var x9=0;x9<this.parent._f384.childNodes.length;x9++)
{
if(this.parent._f164._f165[0].nid==this.parent._f384.childNodes[x9].id)
{
this.parent._f164.deleteInfoWindow(this.parent._f164._f165[0]);
break;
}
}
}
}
else if(this.parent._f164._f165.length>0)
{
for(var x10=0;x10<this.div.childNodes.length;x10++)
{
if(this.parent._f164._f165[0].nid==this.div.childNodes[x10].id)
{
this.parent._f164.deleteInfoWindow(this.parent._f164._f165[0]);
break;
}
}
}
}
this.div.style.visibility="hidden";
}
}


_f451.prototype._f166=function()
{
if(this._f568)
return this._f138;
else
 return _f19._f166(this.div);
}


_f451.prototype._f167=function()
{
if(this.oading)
return this._f139;
else
 return _f19._f167(this.div);
}


_f451.prototype._f576=function(x11)
{
if(this._f568)
this._f138=x11;
}


_f451.prototype._f577=function(x12)
{
if(this._f568)
this._f139=x12;
}


_f451.prototype._f148=function()
{
return this.width;
}


_f451.prototype._f150=function()
{
return this.height;
}


_f451.prototype._f177=function()
{
while(this.div.childNodes.length>0)
{
var x13=this.div.childNodes[0];
this.div.removeChild(x13);
if(this.parent._f164._f165.length>0)
if(this.parent._f164._f165[0].nid==x13.id)
{
this.parent._f164.deleteInfoWindow(this.parent._f164._f165[0]);
}
_f19._f175(x13);
}
while(this._f443.childNodes.length>0)
{
this._f443.removeChild(this._f443.childNodes[0]);
}
while(this._f444.childNodes.length>0)
{
while(this._f444.childNodes[0].childNodes.length>0)
{
this._f444.childNodes[0].removeChild(this._f444.childNodes[0].childNodes[0]);
}
this._f444.removeChild(this._f444.childNodes[0]);
}

}


_f451.prototype._f176=function()
{
while(this.div.childNodes.length>0)
{
var x14=this.div.childNodes[0];
if(x14.src)
{
x14.src=null;
}
if(x14.style.filter)
{
x14.style.filter=null;
}
x14.onmouseover=null;
x14.onmouseout=null;
x14.onmousedown=null;
x14.onmouseup=null;
x14.oncontextmenu=null;
this.div.removeChild(x14);
while(x14.childNodes.length>0)
{
var x15=x14.childNodes[0];
if(x15.src)
{
x15.src=null;
}
x14.removeChild(x15);
x15=null;
}
_f19._f175(x14);
x14=null;
}
}


_f451.prototype._f448=function(x16,x17,x18,x19,x20,x21,x22)
{
this._f568=true;
if(!this._f462)
{
this._f441.minX=this.minX=x17;
this._f441.minY=this.minY=x18;
this._f441.maxX=this.maxX=x19;
this._f441.maxY=this.maxY=x20;
}
this._f138=Math.ceil((this.minX-this.parent._f151)*this.parent._f26);
this._f139=-Math.ceil((this.maxY-this.parent._f154)*this.parent._f27);
_f19._f191(this.div,this._f138,this._f139);

this._f141=this.parent._f142;
this._f143=this.parent._f144;

if(this._f441._f145)
{
this._f441._f145();
}
this._f456=x21;
this._f319=this.parent._f319;
this._f176();

if(this._f319<this._f441._f549||this._f319>this._f441._f440)
return ;

if(!this.isVisible())
{
this._f564=false;
return;
}
this._f564=true;
if(this._f462)
{
this._f578();
return ;
}

var x23="request=getfoi&version=1.0"+
"&theme="+this._f441._f548+"&bbox="+
this.minX+":"+this.minY+":"+this.maxX+":"+this.maxY+
"&width="+this._f562+"&height="+this._f563;

if(this._f441.getQueryParameters())
{
x23+=this._f441.getQueryParameters();
}
if(this._f441.getFOIMarker())
{
x23+="&renderimg=no";
}

if(this._f441._f557<=this._f319&&
(_f16._f43!="IF"||
this._f441._f458>=this._f319))
{
x23+="&area=yes";
}
else
 {
x23+="&area=no";
}
x23+="&dstsrid="+this.parent.srid;
this.request=null;

if(this._f441._f556!=null)
{
x23+="&nsdp="+this._f441._f556.getFlatString();
}

if(this._f441._f458>=this._f319)
x23+="&wholeimage=yes";

var x24=this;

this.startLoad=_f19._f35(this,function()
{
x24._f578();
});


if(x22){
x23+="&boundingtheme=yes&mapcache="+this.parent._f294[0]._f50+
"&mapwinwidth="+this.parent._f29()+
"&mapwinheight="+this.parent._f31()+
"&wholeimagelevel="+this._f441._f458;
}

if(this._f441._f559!=null)
{
x23+="&trs="+this._f441._f559;
}

var x25=this._f441._f558;
if(x25.length>0)
{
x23+="&tempstyles=<styles>";
for(var x26=0;x26<x25.length;x26++)
{
x23+=x25[x26].getXMLString();
}
x23+="</styles>";
}

if(!this._f569)
{
x23+="&refresh="+Math.round(Math.random()*100000);
}

try
{
this.request=_f19.getXMLHttpRequest();
this.request.onreadystatechange=this.startLoad;
this.request.open("POST",this._f441._f107,true);
this.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
this.request.send(encodeURI(x23));
}
catch(e)
{
if(e.name)
alert("Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale(e);
}
}

_f451.prototype._f578=function()
{
if(this.request.readyState==4||this._f462)
{
if(this.request.status==200||this._f462)
{

var result=null;
if(!this._f462)
{
try
{
eval("result="+this.request.responseText);
}
catch(e)
{
MVi18n.processLocale("Cannot process the following response from FOI server:\n"+this.request.responseText);
return ;
}
this.boundingThemeResult=result;
}
else
 result=this.boundingThemeResult;

if(result.adjlevel>=0&&!this._f462)
{
this._f462=true;
this._f441.minX=this.minX=result.minx;
this._f441.minY=this.minY=result.miny;
this._f441.maxX=this.maxX=result.maxx;
this._f441.maxY=this.maxY=result.maxy;
var tcx=(result.minx+result.maxx)/2;
var tcy=(result.miny+result.maxy)/2;
this.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(tcx,tcy),result.adjlevel);
return ;
}
this._f561=true;
this._f462=false;

this._f176();
if(this._f455!=1)
{
while(this._f443.childNodes.length>0)
{
this._f443.removeChild(this._f443.childNodes[0]);
}
while(this._f444.childNodes.length>0)
{
this._f444.removeChild(this._f444.childNodes[0]);
}
while(this.parent._f384.childNodes.length>0)
{
this.parent._f384.removeChild(this.parent._f384.childNodes[0]);
}
}
if(result.foiarray.length>=1)
{
this._f441._f554=result;
this.parent._f190();

if(this._f441._f458>=this._f319||
(_f16._f43!="IF"&&result.foiarray[0].gtype%10!=1))
{
this._f455=2;
var _f579=Math.ceil((this.maxX-this.minX)*this.parent._f26);
var _f580=Math.ceil((this.maxY-this.minY)*this.parent._f27);
_f19._f191(this.parent._f384,0,0);
this._f444.style.position="absolute";
this._f444.id=this._f441.name;
var _f147=(this.parent._f142-this._f141)*this.parent._f26;
var _f149=(this.parent._f144-this._f143)*this.parent._f27;
_f19._f191(this._f444,this._f138-this.parent._f200-_f147,
this._f139-this.parent._f201+_f149);
this._f444.style.zIndex=126;

var src="";
if(this._f441._f458>=this._f319)
src=result.foiarray[0].imgurl;
else
 src=_f16._f92+"transparent.gif";
if(_f16._f43=="IF"&&this._f441._f458>=this._f319)
{
this._f581=document.createElement("div");
this._f581.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
src+"', sizingMethod='image');";
var _f582=document.createElement("div");
_f582.zIndex="127";
var _f583=document.createElement("img");
_f583.width=_f19._f199(_f579)
_f583.height=_f19._f199(_f580);
_f583.style.width=_f19._f199(_f579);
_f583.style.height=_f19._f199(_f580);
_f583.style.border=0;
_f583.src=_f16._f92+"transparent.gif";
_f583.setAttribute("usemap","#polygonMap",0);
_f582.style.position="absolute";
_f582.appendChild(_f583);
this._f444.appendChild(_f582);
}
else
 {
this._f581=document.createElement("img");
this._f581.src=src;
this._f581.setAttribute("usemap","#polygonMap");
}
this._f581.width=_f579;
this._f581.height=_f580;
this._f581.style.width=_f19._f199(_f579);
this._f581.style.height=_f19._f199(_f580);
this._f581.style.border=0;
this._f443.setAttribute("name","polygonMap");
this._f443.setAttribute("id","polygonMap");
this.parent._f384.style.zIndex=this.div.style.zIndex;
this.parent._f384.appendChild(this._f444);
this._f444.appendChild(this._f581);
this._f444.appendChild(this._f443);
}
else
 {
this._f455=1;
}

if(result.foiarray[0].gtype%10!=1)
{
if(this._f452!=2)
{
this.div.style.zIndex=130;
this.parent._f384.style.zIndex=this.div.style.zIndex;
this._f452=2;
}
}
if(this._f441._f557<=this._f319)
{
for(var i=0;i<result.foiarray.length;i++)
{
result.foiarray[i].attrnames=result.attrnames;
this._f459(result.foiarray[i]);
}
}
this._f565=true;
}
else
 this._f441._f554=null;
if(this._f441._f550)
{
this._f441._f550();
}
this._f568=false;
}
}
}
var _f584=0;

_f451.prototype.setTimeout=function(_f161,_f162)
{
var Ie="tempVar"+_f584;
_f584++;
eval(Ie+" = this;");
var oi=_f161.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f162);
}


_f451.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}


_f451.prototype._f585=function(x27)
{
this._f436=0;
this.result=x27;
this.startDisplayGroupFoi();
}


_f451.prototype.startDisplayGroupFoi=function()
{
for(var x28=0;x28<180;x28++)
{
if(this._f436<this.result.foiarray.length)
{
this.result.foiarray[this._f436].attrnames=this.result.attrnames;
this._f459(this.result.foiarray[this._f436]);
this._f436++;
}
else
 {
return;
}
}
this.setTimeout("this.startDisplayGroupFoi()",2);
}


_f451.prototype._f459=function(x29)
{
if(this._f441._f458>=this._f319||
x29.imgurl||this._f441.getFOIMarker())
{
var x30=this;

var x31=null;
if(this._f441._f458<this._f319)
{
if(this._f441.getFOIMarker())
{
x29.imgurl=this._f441.getFOIMarker()._f109;
x29.width=this._f441.getFOIMarker().width;
x29.height=this._f441.getFOIMarker().height;
}

var x32=x29.imgurl.toLowerCase().indexOf('.png')==-1?false:true;

if((_f16._f43=="IF"&&x32)||
(x30._f441._f551&&x29.gtype%10==1))
{
x31=document.createElement('div');
}
else
 x31=document.createElement('img');


x31.className="noprint";
_f19._f331(x31);
x31.style.position="absolute";
x31.style.width=_f19._f199(x29.width);
x31.style.height=_f19._f199(x29.height);

if(x29.id&&x29.id!=null)
x31.id=x29.id;
x31._f196=x29.x;
x31._f197=x29.y;

var x33=(this.parent._f142-this._f141)*this.parent._f26;
var x34=(this.parent._f144-this._f143)*this.parent._f27;
var x35=_f19._f156(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this._f562,this._f563,x29.x,x29.y);

x35[0]-=x33;
x35[1]+=x34;
if(x29.gtype%10==1)
_f19._f191(x31,x35[0]-x29.width/2,x35[1]-x29.height/2);
else
 _f19._f191(x31,x35[0],x35[1]);
x31.style.zIndex=160;
}

var x36=MVSdoGeometry.createPoint(0,0);
var x37=x36;
var x38=x30._f441._f128;
var x39=function(x40)
{
x40=(x40)?x40:((window.event)?event:null);
if(x40&&!x38)
{
if(_f16._f43=="IF")
x40.cancelBubble=true;
else if(x40.stopPropagation)
x40.stopPropagation();
}
}
var x41=function(x42)
{
x42=(x42)?x42:((window.event)?event:null);
if(x42&&!x38)
{
_f19._f20(x42);
}
}
var x43=function(x44)
{
x36=_f19._f193(x44);
x41(x44);
}

var x45="";
if(x29.name&&x29.name!="null")
x45=x29.name;
if((_f16._f43=="IF"||_f16._f43=="NS")
&&x30._f441._f115&&x29.name&&x29.name!="null"&&x31)
{
x31.title=x45;
}

if(x29.name)
x29.name=_f19._f202(x29.name," ","&nbsp;");
if(x31&&(_f16._f43=="IF"||x29.gtype%10==1))
{
this.div.appendChild(x31);
if(_f16._f43=="IF"&&x32)
{
x31.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x29.imgurl+"', sizingMethod='image');";
}
else if(!x30._f441._f551)
{
x31.setAttribute("id",x29.id);
x31.src=x29.imgurl;
x31.setAttribute("border",0);
}
else
 {
var x46=document.createElement("img");
x46.style.position="relative";
x46.style.left=_f19._f199(0);
x46.style.top=_f19._f199(0);
x46.setAttribute("id",x29.id);
x46.src=x29.imgurl;
x46.setAttribute("border",0);
x31.appendChild(x46);
}
if(x30._f441._f551)
{
x30._f441._f551(x29);
var x47=document.createElement("div");
x47.style.position="absolute";
var x48=x29.xoffset;
var x49=x29.yoffset;
x47.style.left=_f19._f199(x48);
x47.style.top=_f19._f199(x49);
x47.style.padding=_f19._f199(0);
x47.innerHTML=""+x29.html+"";
x31.appendChild(x47);
}

var x50=function(x51)
{
var x52=_f19.getMouseLocation(x30.parent,x51);
if(x30._f441._f123)
{
var x53=MVSdoGeometry.createPoint(x52.sdo_point.x,x52.sdo_point.y,x30.parent.srid);
x30._f441._f123(x53,x29);
}
if(x30._f441._f125)
{
x31.style.zIndex=161;
}
if(!x31.title&&x29.name&&x29.name!="null"&&x30._f441._f115)
{
x30.parent._f164.showTextTip(x29.name,x52.sdo_point.x,x52.sdo_point.y);
}
};
var x54=function(x55)
{
if(x30._f441._f124)
{
var x56=_f19.getMouseLocation(x30.parent,x55);
var x57=MVSdoGeometry.createPoint(x56.sdo_point.x,x56.sdo_point.y,x30.parent.srid);
x30._f441._f124(x57,x29);
}
x31.style.zIndex=160;
x30.parent._f164._f195();
};

x31.onmouseover=x50;
x31.onmouseout=x54;
if(this._f441._f116)
{
var x58=x29.x;
var x59=x29.y;
_f19._f203(x31,"pointer");
var x60=function(x61)
{
x37=_f19._f193(x61);
x61=(x61)?x61:((window.event)?event:null);
if(x61.button==2)
{
return;
}
if(x36.x==x37.x&&x36.y==x37.y)
{
if(x30.parent.getBrowserType()=="NS")
{
x30.parent._f351=null;
}
var x62=_f19.getMouseLocation(x30.parent,x61);
x58=x62.sdo_point.x;
x59=x62.sdo_point.y;

if(x30._f441._f121)
{
var x63=MVSdoGeometry.createPoint(x58,x59,x30.parent.srid);
x30._f441._f121(x63,x29);
}
else if(x29.attrs!=null)
{
var x62=_f19.getMouseLocation(x30.parent,x61);
if(x29.attrs.length>=1&&x30._f441._f220)
{
x30.parent._f164._f224(x29.attrs,x29.attrnames,x29.id,
x29.name,x62.sdo_point.x,x62.sdo_point.y,null,null,
x30._f441._f548,x30._f441._f555,300);
}
}
}
x41(x61);
};
var x64=function(x65)
{
if(x30._f441._f122)
{
var x66=MVSdoGeometry.createPoint(x58,x59,x30.parent.srid);
x30._f441._f122(x66,x29);
}
x41(x65);
};
x31.onmousedown=x43;
x31.onmouseup=x60;
x31.oncontextmenu=x64;
}

x31.ondblclick=x41;
x31.onclick=x39;
x31.onkeyup=x39;
_f19._f204(x31);
}
else {
var x67=x45;

var x68=Math.floor((x29.x-this.minX)*this.parent._f26+0.5);
var x69=Math.floor((this.maxY-x29.y)*this.parent._f27+0.5);
var x70="";
if(this._f441._f116)
{
var x71=document.createElement("area");
x71.setAttribute("border",0);
if(_f16._f43!="OS")
{
x71.setAttribute("title",x67);
x71.setAttribute("href","javascript:void(0)");
}
if(x29.gtype%10==1)
{
var x35=_f19._f156(this.parent,this.minX,this.minY,
this.maxX,this.maxY,
this._f562,this._f563,
x29.x,x29.y);
x35[0]+=this.parent._f200;
x35[1]+=this.parent._f201;
x71.setAttribute("shape","rect");
var x72=(x35[0]-x29.width/2)+","+(x35[1]-x29.height/2)+","+
(x35[0]+x29.width/2)+","+(x35[1]+x29.height/2);
x71.setAttribute("coords",x72);
}
else
 {
var x73="";
if(typeof(x29.area)=='undefined')
x73="0,0";
else
 x73=x29.area;
x71.setAttribute("shape","poly");
x71.setAttribute("coords",x73);
}


var x74=function(x75)
{
x37=_f19._f193(x75);
x75=(x75)?x75:((window.event)?event:null);
if(x75.button==2)
{
return;
}
if((x36.x==x37.x&&x36.y==x37.y))
{
if(x30.parent.getBrowserType()=="NS")
{
x30.parent._f351=null;
}
if(x30._f441._f121)
{
var x76=_f19.getMouseLocation(x30.parent,x75);
var x77=MVSdoGeometry.createPoint(x76.sdo_point.x,x76.sdo_point.y,x30.parent.srid);
x30._f441._f121(x77,x29);
}
else if(x29.attrs!=null)
{
if(x29.attrs.length>=1&&x30._f441._f220)
{
var x76=_f19.getMouseLocation(x30.parent,x75);
x30.parent._f164._f224(x29.attrs,x29.attrnames,
x29.id,x29.name,x76.sdo_point.x,x76.sdo_point.y,null,null,
x30._f441._f548,x30._f441._f555,300);
}
}
}
x41(x75);
};

var x78=function(x79)
{
var x80=_f19.getMouseLocation(x30.parent,x79);
if(x30._f441._f123)
{
var x81=MVSdoGeometry.createPoint(x80.sdo_point.x,x80.sdo_point.y,x30.parent.srid);
x30._f441._f123(x81,x29);
}
if(!x71.title&&x29.name&&x29.name!="null"&&x30._f441._f115)
{
x30.parent._f164.showTextTip(x29.name,x80.sdo_point.x,x80.sdo_point.y);
}
};

var x82=function(x83)
{
if(x30._f441._f124)
{
var x84=_f19.getMouseLocation(x30.parent,x83);
var x85=MVSdoGeometry.createPoint(x84.sdo_point.x,x84.sdo_point.y,x30.parent.srid);
x30._f441._f124(x85,x29);
}
x30.parent._f164._f195();
};

var x86=function(x87)
{
if(x30._f441._f122)
{
var x88=MVSdoGeometry.createPoint(x58,x59,x30.parent.srid);
x30._f441._f122(x88,x29);
}
x41(x87);
};

x71.onmousedown=x43;
x71.onmouseup=x74;
x71.onmouseover=x78;
x71.onmouseout=x82;
x71.oncontextmenu=x86;
_f19._f204(x71);
this._f443.appendChild(x71);
}
x71.ondblclick=x41;
x71.onclick=x39;
x71.onkeyup=x39;
if(x31)
{
_f19._f191(x31,x68+this._f138-this.parent._f200-x33,
x69+this._f139-this.parent._f201+x34);
x31.style.position="absolute";
x31.style.width=_f19._f199(x29.width);
x31.style.height=_f19._f199(x29.height);
x31.id=this._f441.name;
x31.src=x29.imgurl;
x31.style.zIndex=125;
this.parent._f384.appendChild(x31);
}
}
}
}

function _f215(x0)
{
this.minX;
this.minY;
this.maxX;
this.maxY;
this.width;
this.height;
this.parent=x0;
this._f216=null;
this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.zIndex="1200";
this.parent.div.appendChild(this.div);
this._f115=document.createElement("div");
this._f115.style.position="absolute";
this._f115.style.backgroundColor="#FFFFDF";
this._f115.style.border="inset black 1px";
this._f115.style.visibility="hidden";
this._f115.style.zIndex="1200";
this.parent.div.appendChild(this._f115);
_f19._f191(this._f115,0,0);
this._f165=new Array(0);
this._f128=false;
}

_f215.prototype.enableEventPropagation=function(x0)
{
this._f128=x0;
}

_f215.prototype._f217=function()
{}

_f215.prototype._f195=function()
{
this._f115.style.visibility='hidden';
}

_f215.prototype.refresh=function(x1,x2,x3,x4,x5,x6)
{
_f19._f191(this.div,0,0);
this.minX=x1;
this.minY=x2;
this.maxX=x3;
this.maxY=x4;
this.width=x5;
this.height=x6;
var x7=0;
for(;x7<this._f165.length;x7++)
{
var x8=_f19._f218(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,this._f165[x7].winX,this._f165[x7].winY);
this._f165[x7].style.visibility="hidden";
_f19._f191(this._f165[x7],x8.x,x8.y);
this._f165[x7].style.visibility="visible";
}
}

_f215.prototype._f172=function()
{
return this.div;
}

_f215.prototype.showTextTip=function(x9,x10,x11)
{
this._f115.innerHTML=x9;
if(_f16._f43=="NS"&&navigator.userAgent.toLowerCase().indexOf("netscape")>0)
{
var x12=_f19._f202(x9.toLowerCase(),"&nbsp;"," ").length;
this._f115.style.width=_f19._f199(x12*8+8);
}
var x13=_f19._f218(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x10,x11);
_f19._f191(this._f115,x13.x+10,x13.y+5);
this._f115.style.visibility="visible";
}


_f215.prototype._f119=function(id,x14,x15,x16,x17,x18,x19,x20)
{
this._f195();
var x21=this.parent;
if(!x16)
return ;
var x22=0;
for(;x22<this._f165.length;x22++)
{
if(id&&this._f165[x22].nid==id){
this.deleteInfoWindow(this._f165[x22]);
return ;
}
}
if(this._f165.length>0)
this.deleteInfoWindow(this._f165[0]);

var x23=document.createElement("div");
var x24=this;
var x25=function(x26)
{
x26=(x26)?x26:((window.event)?event:null);
var x27=!x24._f128;
if(x26&&!x24._f128)
{
if(_f16._f43=="IF")
x26.cancelBubble=true;
else if(x26.stopPropagation)
x26.stopPropagation();
}
}

var x28=function(x29)
{
x21._f221=true;
x25(x29);
}
var x30=function(x31)
{
x21._f221=false;
x25(x31);
}

x23.id="mvinfodiv";
x23.onmousedown=_f19._f35(x23,x25);
x23.onmouseup=_f19._f35(x23,x25);
x23.onmouseover=_f19._f35(x23,x28);
x23.onmouseout=_f19._f35(x23,x30);
x23.ondblclick=_f19._f35(x23,x25);
x23.onclick=_f19._f35(x23,x25);
x23.onkeyup=_f19._f35(x23,x25);
if(_f16._f43=="OS")
x23.onkeypress=_f19._f35(x23,x25);
else
 x23.onkeydown=_f19._f35(x23,x25);

if(x17==null||x18==null)
{
x17=_f16._f55;
x18=_f16._f56;
}

var x32=_f19._f218(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x14,x15);

x23.style.position="absolute";

var x33=document.createElement("div");
x33.style.width=x17;
x33.style.height=x18;
x33.innerHTML=x16;
this.div.appendChild(x23);
x23.style.visibility="hidden";
x23.appendChild(x33);

var x34=document.getElementById("mvinfotable");
var x35=document.getElementById("mvinfotable1");
if(x34!=null&&x35!=null)
{
if(x34.offsetWidth<=x35.offsetWidth)
x17=x35.offsetWidth+50;
else
 x17=x34.offsetWidth+50;
x18=x34.offsetHeight+x35.offsetHeight+50;
}
x23.removeChild(x33);

this._f216=null;
this._f216=new _f222(x23,0,-10,x16,x17,x18,x19,x21);

this._f165.push(x23);
x23.nid=id;
x23.winX=x14;
x23.winY=x15;

_f19._f191(x23,x32.x,x32.y);
x23.style.visibility="visible";
x23.style.zIndex="1200";


var x36=x17;
var x37=x18;

var x38=Math.ceil((this.maxX-x14)*this.parent._f26);
var x39=Math.ceil((x15-this.minY)*this.parent._f27);
var x40=0;
var x41=0;
if(x38<x36+80)
x40=x36+80-x38;
else if(x32.x+this.parent._f200<100)
x40=-(100-(x32.x+this.parent._f200));
if(x39<x37+50)
x41=x37+50-x39;
else if(Math.abs(x32.y+this.parent._f201)<50)
x41=-50+Math.abs(x32.y+this.parent._f201);
if(x20>0)
this.setTimeout("this.parent.smoothScroll("+x40+","+x41+")",x20);
else
 this.parent.smoothScroll(x40,x41);
}

_f215.prototype._f194=function(x42,x43,x44,x45,x46,x47,x48)
{
if(x43.length==0)
return;
if(x46&&x47)
{
this._f119(x43,x44,x45,x42,x46,x47,x48);
}
else
 this._f119(x43,x44,x45,x42,_f16._f55,_f16._f56,x48);
}

_f215.prototype._f223=function(x49,x50,x51,x52,x53)
{
var x54=new Array(3);
if(!x50)
x50="null";
x50=_f19._f202(x50,"&nbsp;"," ");
var x55=x50.length;
var x56=0;
var x57="";
var x58=12;
if(x50!="null")
{
x56++;
x57=x50.toUpperCase();
}

x57="<table id='mvinfotable'><tr><td>"+_f19._f202(x57," ","&nbsp;")
+"</td></tr>";


if(x51==null||x51.length==0){
x54[0]=x57;
x54[1]=x50.length*x58+36;
x54[2]=27+30;
return x54;
}

var x59=0;
var x60=0;

x56+=x51.length;

x57+="<table id='mvinfotable1'>";
for(var x61=0;x61<x51.length;x61++)
{
var x62="#bbbbbb";
if(x61%2==0)
x62="#dddddd";
if(x52!=null&&x52[x61]!=null&&x52[x61].length>x59)
x59=x52[x61].length;
if(x51[x61]==null)
x51[x61]="";
if(x51[x61].length>x60)
x60=x51[x61].length;

var x63=_f19._f202(_f19._f51(x51[x61])," ","&nbsp;");
x57=x57+"<tr bgcolor="+x62+">";
if(x52!=null)
{
var x64="";
if(x52[x61]==null)
x64="&nbsp;";
else
 x64=_f19._f202(_f19._f51(x52[x61])," ","&nbsp;")+":";
x57=x57+"<td>"+x64+"</td>";
}
x57=x57+"<td align=left>"+x63+"</td></tr>";

}
var x65;
if(x55>(x59+x60))
x65=(x55+1)*x58+40;
else
 x65=(x59+x60+1)*x58+40;
x54[0]=x57+"</table></table>";
x54[1]=x65;
x54[2]=x56*11+80;
return x54;
}

_f215.prototype._f224=function(x66,x67,x68,x69,x70,x71,x72,x73,x74,x75,x76)
{

if(x68.length==0&&x69.length==0)
return ;
if(x72&&x73)
{
this._f119(x68,x70,x71,x66,x72,x73,x75,x76);
}
else
 {
var x77=this._f223(x68,x69,x66,x67,x74);
if(x77[1]>0&&x77[2]>0)
{
this._f119(x68,x70,x71,x77[0],x77[1],x77[2],x75,x76);
}
else
 this._f119(x68,x70,x71,x77[0],_f16._f55,
_f16._f56,x75,x76);
}
}

_f215.prototype._f225=function(x78,x79,x80,x81,x82,x83)
{
this._f119("",x79,x80,x78,x81,x82,x83)
}

_f215.prototype.deleteInfoWindow=function(x84)
{
var x85=0;
for(x85=0;x85<this._f165.length;x85++)
{
if(this._f165[x85]==x84){
this._f165.splice(x85,1);
}
}
_f19._f226(x84);
this.div.removeChild(x84);
this.parent._f221=false;
}


_f215.prototype.setTimeout=function(_f161,_f162)
{
var Ie="tempVar"+_f163;
_f163++;
eval(Ie+" = this;");
var oi=_f161.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f162);
}


_f215.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}

function MVFOI(x0,x1,x2,x3,x4,x5)
{
if(!x0||x0.length==0)
{
MVi18n.processLocale("FOI ID cannot be null");
return null;
}

this.parent="";

this.id=_f19._f51(x0);

this._f106=x1;

this.gtype=x1.getGType();

this.style=x2;

this._f107=x3;
if(x3&&this.style!="")
{
if(_f19._f108(x3,'/'))
this._f107=x3+'foi';
else
 this._f107=x3+'/foi';
}

this._f109="";

this._f110=null;
this.html="";

this._f111="";

this._f112="";

this.area="";

this._f113=null;

this._f114=new Array(4);

this._f115=null;
this.width=0;

this.height=0;

this._f116=true;

this.visible=true;

this._f117=false;

this._f118=false;

this._f119=true;

this._f120=true;

this._f121=null;

this._f122=null;

this._f123=null;

this._f124=null

this.pacity=255;

this._f125=true;

this._f126=0;

this._f127=0;

this._f128=true;
if(this.gtype%10==1)
{
if(x4&&x5)
{
this.width=x4;
this.height=x5;
}
else
 {
this.width=0;
this.height=0;
}
}
}


MVFOI.prototype.setHTMLElement=function(x0,x1,x2)
{
this.html=x0;
this._f111=x1;
this._f112=x2;
}


MVFOI.createMarkerFOI=function(id,x3,x4,x5,x6)
{
return new MVFOI(id,x3,"",x4,x5,x6);
}


MVFOI.createHTMLFOI=function(id,x7,x8,x9,x10)
{
var x11=new MVFOI(id,x7,"","",0,0);
x11.setHTMLElement(x8,x9,x10);
return x11;
}



MVFOI.prototype.addEventListener=function(x12,x13)
{
if(x12=="mouse_click")
{
this._f121=x13;
}
else if(x12=="mouse_right_click")
{
this._f122=x13;
}
else if(x12=="mouse_over")
{
this._f123=x13;
}
else if(x12=="mouse_out")
{
this._f124=x13;
}
}


MVFOI.prototype.setBringToTopOnMouseOver=function(x14)
{
this._f125=x14;
}


MVFOI.prototype.setTopFlag=function(x15)
{
this._f118=x15;
}


MVFOI.prototype.enableInfoWindow=function(x16)
{
this._f119=x16;
}


MVFOI.prototype.enableInfoTip=function(x17)
{
this._f120=x17;
}


MVFOI.prototype.setFOIServerURL=function(x18)
{
if(_f19._f108(_f107,'/'))
this._f107=x18+'foi';
else
 this._f107=x18+'/foi';
}


MVFOI.prototype.setFOIOrds=function(x19)
{
this._f113=_f19._f51(x19).toUpperCase();
}


MVFOI.prototype.setFOIGtype=function(x20)
{
this.gtype=x20;
}


MVFOI.prototype.setVisible=function(x21)
{
this.visible=x21;
this.parent._f129._f130(this.id,x21);
}


MVFOI.prototype.isVisible=function()
{
return this.visible;
}



MVFOI.prototype.getId=function()
{
return this.id;
}


MVFOI.prototype.setClickable=function(x22)
{
this._f116=x22;
}


MVFOI.prototype.setInfoTip=function(x23)
{
this._f115=x23;
}


MVFOI.prototype.setInfoWindow=function(x24,x25,x26)
{
this._f110=x24;
this._f126=x25;
this._f127=x26;
}


MVFOI.prototype.enableEventPropagation=function(x27)
{
this._f128=x27;
}


MVFOI.prototype.getMBR=function()
{
var x28=new Array(4);
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
x28[0]=parseFloat(this._f113[4]);
x28[1]=parseFloat(this._f113[3])-
(parseFloat(this._f113[0])-parseFloat(this._f113[4]));
x28[2]=parseFloat(this._f113[0]);
x28[3]=parseFloat(this._f113[3]);
}
else
 {
x28[0]=parseFloat(this._f113[0]);
x28[1]=parseFloat(this._f113[1]);
x28[2]=parseFloat(this._f113[0]);
x28[3]=parseFloat(this._f113[1]);
for(var x29=2;x29<this._f113.length;x29=x29+2)
{
if(parseFloat(this._f113[x29])<x28[0])x28[0]=parseFloat(this._f113[x29]);
if(parseFloat(this._f113[x29])>x28[2])x28[2]=parseFloat(this._f113[x29]);
if(parseFloat(this._f113[x29+1])<x28[1])x28[1]=parseFloat(this._f113[x29+1]);
if(parseFloat(this._f113[x29+1])>x28[3])x28[3]=parseFloat(this._f113[x29+1]);
}
}
return x28;
}


MVFOI.prototype._f131=function(x30){
var x31=x30;
var x32="";

var x33=x31.length;
for(var x34=this.elemInfo.length;x34>0;x34=x34-3)
{
var x35=0;
if(this.elemInfo[x34-2]%10==3&&this.elemInfo[x34-1]==3){
for(var x36=0;x36<this.elemInfo[x34-3]-1;x36++)
x35=x31.indexOf(",",x35)+1;
var x37=x35;var x38=x35;if(x34==this.elemInfo.length){
x37=x31.length;
for(var x39=0;x39<2;x39++)
x38=x31.indexOf(",",x38)+1;
x38--;
}
else
 {
for(var x40=0;x40<4;x40++)
{
x37=x31.indexOf(",",x37)+1;
if(x40==1)
x38=x37;
}
x37--;
x38--;
}
x32=x31.substring(x35,x37);
var x41=new Array(4);
var x42=1;
var x43=1;
for(var x44=0;x44<4;x44++){
x43=x32.indexOf(",",x42);
if(x44==3)x43=x32.length;
if(x44==0)x42--;
x41[x44]=x32.substring(x42,x43);
x42=x43+1;
}
var x45=x41[0]+","+x41[3];
var x46=x41[2]+","+x41[1];

this.elemInfo[x34-1]=1;
if(x34==this.elemInfo.length){
x31=x31+","+x46;
}
else
 {
this.elemInfo[x34-3+3]=this.elemInfo[x34-3+3]*1+4;
x31=x31.substring(0,x37)+","+x46+","+
x31.substring(x37+1,x31.length);
}
x31=x31.substring(0,x38)+","+x45+","+
x31.substring(x38+1,x31.length);
}
}
return x31;
}


MVFOI.prototype._f132=function(x47){
var x48=x47[0]+","+x47[1];
var x49="";
for(var x50=this.elemInfo.length;x50>0;x50=x50-3)
{
var x51=this.elemInfo[x50-3]-1;var x52=this.elemInfo[x50]-1;if(x50==this.elemInfo.length)
{
x52=x47.length;}
var x53=x47[x51]+","+x47[x51+1];
var x54="";
var x55=x52-1;

for(var x56=x51;x56<=x55;x56++)
{
x54+=x47[x56]+",";
}
var x57=false;
if(x47[x51]!=x47[x52-1]||x47[x51+1]!=x47[x52])
{
x54+=x53;
x57=true;
}
if(this.elemInfo.length==3)
{
return x54;
}
if(x50==3){
x49=x54+","+x49;
}
else
 {
if(x57)
x54+=","+x48;
else
 x54+=x48;

if(x50==this.elemInfo.length)
{
x49=x54;
}
else
 {
x49=x54+","+x49;
}
}
}
return x49;
}


MVFOI.prototype._f133=function(x58)
{
var x59=new Array(this._f113.length);
var x60=new Array(this._f114[0],this._f114[1],this._f114[2],this._f114[3]);if(x60[0]<x58._f129.minX)x60[0]=x58._f129.minX;
if(x60[1]<x58._f129.minY)x60[1]=x58._f129.minY;
if(x60[3]>x58._f129.maxY)x60[3]=x58._f129.maxY;

var x61=x60[3]-x60[1];
for(var x62=0;x62<this._f113.length;x62++)
{
if(x62%2==0)
{
x59[x62]=Math.floor((this._f113[x62]-x60[0])*x58._f26+0.5);
}
else
 x59[x62]=Math.floor((x61-(this._f113[x62]-x60[1]))*x58._f27+0.5);
}
x60=null;
return x59;
}


function _f134(x0,x1)
{
var x2=new Array(x1[0],x1[1],x1[2],x1[3]);if(x2[0]<x0._f129.minX)x2[0]=x0._f129.minX;
if(x2[1]<x0._f129.minY)x2[1]=x0._f129.minY;
if(x2[3]>x0._f129.maxY)x2[3]=x0._f129.maxY;
var x3=(x1[2]+x1[0])/2;
var x4=(x1[3]+x1[1])/2
var x5=(x1[2]-x1[0])/2;
var x6=x2[3]-x2[1];
var x7;
var x8="";
var x9=2*Math.PI;

for(var x10=0;x10<90;x10++)
{
if(x10%2==0){
x7=Math.floor((x3+x5*Math.cos((x9*x10)/90)-x2[0])*
x0._f26+0.5);
}
else
 {
x7=Math.floor((x6-(x4+x5*Math.sin((x9*x10)/90)-
x2[1]))*x0._f27+0.5);
}
if(x10==0)x8+=x7;
else
 x8+=","+x7;
}
x2=null;
return x8;
}


MVFOI.prototype._f135=function(x63)
{
this.area="";
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
this.area=_f134(x63,this._f114);
}
else if(this.gtype%10==3||this.gtype%10==7)
{
var x64=this._f133(x63);
this.area=this._f132(x64);
}
}

MVFOI.prototype.animateToNewLocation=function(x65,x66)
{
if(x65.srid&&(x65.srid!=this._f106.srid))
{
x65=this.parent.transformGeom(x65,this._f106.srid);
}
if(x66==null)
x66=100;
this.parent._f129.foiToNewLocation(this,x65,x66);
}

function _f136(x0)
{
this._f137=[];
this.parent=x0;
var x1=null;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f138=0;
this._f139=0;
this._f140=false;
this.div=document.createElement("div");
this.width=0;
this.height=0;
this.count=0;
this._f141=this.parent._f142;
this._f143=this.parent._f144;
this._f145=null;
this.div.style.position="absolute";
this.div.style.zIndex=120;


this._f146=document.createElement("div");
this._f146.style.position="absolute";
this._f146.style.zIndex=180;
this.move_id=null;
this.time=20;
if(this.parent.div.appendChild)
{
this.parent.div.appendChild(this.div);
this.parent.div.appendChild(this._f146);
}
else
 {
document.body.appendChild(this.div);
document.body.appendChild(this._f146);
}

}

_f136.prototype.setScope=function()
{
var x67=(this._f148()-this.parent._f29())*0.5/this.parent._f26;
var x68=(this._f150()-this.parent._f31())*0.5/this.parent._f27;
this.minX=this.parent._f151-x67;
this.minY=this.parent._f152-x68;
this.maxX=this.parent._f153+x67;
this.maxY=this.parent._f154+x68;
}

_f136.prototype.foiToNewLocation=function(x69,x70,x71)
{
this.time=x71
this.parent._f155(true);
var x72=new Array();
var x73=new Array();
if(x70.getFirstPoint()){
x72.push(x70.getPointX());
x73.push(x70.getPointY());
}
else
 {
var x74=x70.getDimensions();
for(var x75=0;x75<=x70.getOrdinates().length-x74;x75=x75+x74)
{
x72.push(x70.getOrdinates()[x75]);
x73.push(x70.getOrdinates()[x75+1]);
}
}
var x76=0;
if(x72.length<=x76||x73.length<=x76)
return;
this.setScope();
var x77=_f19._f156(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x72[x76],x73[x76]);
var x78=Math.round(x77[0]-x69.width/2);
var x79=Math.round(x77[1]-x69.height/2);
if(this.move_id!=null)
{
clearTimeout(this.move_id);
this.move_id=null;
}
this.move_id=this.setTimeout("this.moveFoi(["+x72+"],["+x73+"],"+x76+","+x78+","+x79+","+x69.id+")",this.time);
}

_f136.prototype.moveFoi=function(x80,x81,x82,x83,x84,id,x85,x86)
{
var x87=document.getElementById(id);
var x88=parseInt(x87.style.left);
var x89=parseInt(x87.style.top);
var x90=x83-x88;
var x91=x84-x89;
var x92=Math.sqrt(x90*x90+x91*x91);
var x93=5;
if(x93>x92)
{
x87.style.left=x83+"px";
x87.style.top=x84+"px";
clearTimeout(this.move_id);
this.move_id=null;
pointx=x80[x82];
pointy=x81[x82];
var x94=this._f158(id);
x94._f106.sdo_point.x=x80[x82];
x94._f106.sdo_point.y=x81[x82];
x94.x=x80[x82];
x94.y=x81[x82];
x82++;
if(x80.length<=x82||x81.length<=x82)
{
this.parent._f155(false);
return;
}
var x95=_f19._f156(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x80[x82],x81[x82]);
var x96=Math.round(x95[0]-x94.width/2);
var x97=Math.round(x95[1]-x94.height/2);
this.move_id=this.setTimeout("this.moveFoi(["+x80+"],["+x81+"],"+x82+","+x96+","+x97+","+id+")",this.time);
}
else
 {
var x98=Math.round(x93*x90/x92);
var x99=Math.round(x93*x91/x92);
x87.style.left=parseInt(x87.style.left)+x98+"px";
x87.style.top=parseInt(x87.style.top)+x99+"px";
this.move_id=this.setTimeout("this.moveFoi(["+x80+"],["+x81+"],"+x82+","+x83+","+x84+","+id+")",this.time);
}

}

_f136.prototype.setTimeout=function(_f161,_f162)
{
var Ie="tempVar"+_f163;
_f163++;
eval(Ie+" = this;");
var oi=_f161.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f162);
}

_f136.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}

_f136.prototype.setSize=function(x100,x101)
{
this.width=x100;
this.height=x101;
}


_f136.prototype._f130=function(x102,x103)
{
for(var x104=0;x104<this._f137.length;x104++)
{
if(this._f137[x104].id==x102)
{
this._f137[x104].visible=x103;
if(!x103&&this.parent._f164._f165.length>0)
if(this.parent._f164._f165[0].nid==x102)
{
this.parent._f164.deleteInfoWindow(this.parent._f164._f165[0]);
}
}
if(x104<this.div.childNodes.length&&(this.div.childNodes[x104]).id==x102)
{
if(x103)
this.div.childNodes[x104].style.visibility="visible";
else
 this.div.childNodes[x104].style.visibility="hidden";
break;
}
if(x104<this._f146.childNodes.length&&(this._f146.childNodes[x104]).id==x102)
{
if(x103)
this._f146.childNodes[x104].style.visibility="visible";
else
 this._f146.childNodes[x104].style.visibility="hidden";
break;
}
}
}


_f136.prototype._f140=function()
{
return this._f140;
}


_f136.prototype._f166=function()
{
if(this._f140)
return this._f138;
else
 return _f19._f166(this.div);
}


_f136.prototype._f167=function()
{
if(this._f140)
return this._f139;
else
 return _f19._f167(this.div);
}


_f136.prototype._f148=function()
{
return this.width;
}


_f136.prototype._f150=function()
{
return this.height;
}


_f136.prototype._f168=function()
{
return this.minX;
}


_f136.prototype._f169=function()
{
return this.minY;
}


_f136.prototype._f170=function()
{
return this.maxX;
}


_f136.prototype._f171=function()
{
return this.maxY;
}


_f136.prototype._f172=function()
{
return this.div;
}

_f136.prototype.getTopContainer=function()
{
return this._f146;
}

_f136.prototype._f173=function(x105)
{
this._f145=x105;
}


_f136.prototype._f174=function(x106)
{
for(var x107=0;x107<this.div.childNodes.length;x107++)
{
if(x106==(this.div.childNodes[x107]).id)
{
var x108=this.div.childNodes[x107];
this.div.removeChild(x108);
_f19._f175(x108);
return;
}
}
for(var x107=0;x107<this._f146.childNodes.length;x107++)
{
if(x106==(this._f146.childNodes[x107]).id)
{
var x108=this._f146.childNodes[x107];
this._f146.removeChild(x108);
_f19._f175(x108);
return;
}
}
}


_f136.prototype._f176=function(x109)
{
while(x109.childNodes.length>0)
{
var x110=x109.childNodes[0];
if(x110.src)
{
x110.src=null;
}
x110.onmouseover=null;
x110.onmouseout=null;
x110.onmousedown=null;
x110.onmouseup=null;
x110.oncontextmenu=null;
x109.removeChild(x110);
while(x110.childNodes.length>0)
{
var x111=x110.childNodes[0];
if(x111.src)
{
x111.src=null;
}
x110.removeChild(x111);
x111=null;
}
_f19._f175(x110);
x110=null;
}
}


_f136.prototype._f177=function()
{
var x112=this._f137.length;
for(var x113=0;x113<x112;x113++)
{
var x114=this._f137.pop();
_f19._f178(x114);
if(this.parent._f164._f165.length>0)
if(this.parent._f164._f165[0].nid==x114.id)
{
this.parent._f164.deleteInfoWindow(this.parent._f164._f165[0]);
}
}
this._f176(this.div);
this._f176(this._f146);
}


_f136.prototype._f179=function(x115)
{
var x116=null;
for(var x117=0,x118=0,x119=0;x117<this._f137.length;x117++,x118++,x119++)
{
if(this._f137[x117].id==x115)
{
if(this.parent._f164._f165.length>0)
if(this.parent._f164._f165[0].nid==x115)
{
this.parent._f164.deleteInfoWindow(this.parent._f164._f165[0]);
}
this._f137[x117]=this._f137[this._f137.length-1];
_f19._f178(this._f137.pop());
x117--;
}

if(x119<this.div.childNodes.length&&this.div.childNodes[x119].id==x115)
{
var x120=this.div.childNodes[x119];
if(x120.src)
{
x120.src=null;
}
x120.onmouseover=null;
x120.onmouseout=null;
x120.onmousedown=null;
x120.onmouseup=null;
x120.oncontextmenu=null;
this.div.removeChild(x120);
_f19._f175(x120);
x120=null;
x119--;
}

if(x118<this._f146.childNodes.length&&
this._f146.childNodes[x118].id==x115)
{
var x120=this._f146.childNodes[x118];
if(x120.src)
{
x120.src=null;
}
x120.onmouseover=null;
x120.onmouseout=null;
x120.onmousedown=null;
x120.onmouseup=null;
x120.oncontextmenu=null;
this._f146.removeChild(x120);
_f19._f175(x120);
x120=null;
x118--;
}
}
return x116;
}


_f136.prototype._f158=function(x121)
{
for(var x122=0;x122<this._f137.length;x122++)
{
if(x121==this._f137[x122].id)
{
return this._f137[x122];
}
}
return null;
}


_f136.prototype._f180=function(x123)
{
this._f137.push(x123);
if(this.parent._f181&&(x123.visible==true))
{
this._f182(x123,true);
}
}


_f136.prototype._f183=function(x124)
{
var x125=x124.getMBR()[0];
var x126=x124.getMBR()[1];
var x127=x124.getMBR()[2];
var x128=x124.getMBR()[3];

var x129=(this.minX==0?x125:this.minX);
var x130=(this.minY==0?x126:this.minY);
var x131=(this.maxX==0?x127:this.maxX);
var x132=(this.maxY==0?x128:this.maxY);
var x133=x125<x129?x129:x125;
var x134=x126<x130?x130:x126;
var x135=x127<x131?x127:x131;
var x136=x128<x132?x128:x132;
var x137=Math.abs(x135-x133);
var x138=Math.abs(x136-x134);
var x139={"x":x133,"y":x136,"width":x137,"height":x138};
return x139;
}


_f136.prototype._f182=function(foi,check)
{
if(foi.gtype%10==1)
{
if(foi.style)
foi._f109=foi._f107+"?request=getpoiimage&version=1.0"+
"&poistyle="+foi.style+
"&width="+foi.width+"&height="+foi.height;
this._f184(foi);
return;
}

var _f185=foi._f106.toString();var url=encodeURI(foi._f107+"?request=getfigimage&version=1.0"+
"&figstyle="+foi.style+
"&ratx="+this.parent._f26+"&raty="+
this.parent._f27+"&figord="+_f185+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY);
if(url.length<_f16._f99)
{
foi._f109=url;
this._f184(foi);
return;
}

try
{
var _f186=this;
var _f187=_f19.getXMLHttpRequest();
if((foi.parent._f53+"/foi")!=foi._f107)
foi._f107=foi.parent._f53+"/proxy?rtarget="+foi._f107;
_f187.open("POST",foi._f107,true);
_f187.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f187.onreadystatechange=_f19._f35(_f187,function()
{
try
{
if(this.readyState!=4)
return;

if(this.status==200)
{
if(this.responseText.indexOf("imgurl")>=0)
{
var res=null;
eval("res="+this.responseText);
foi._f109=res.imgurl;
if(check)
{
if(foi._f118)
for(var td=0;td<_f186._f146.childNodes.length;td++)
{
if(_f186._f146.childNodes[td].id==foi.id)
{
_f186._f146.removeChild(_f186._f146.childNodes[td]);
break;
}
}
else
 for(var td=0;td<_f186.div.childNodes.length;td++)
{
if(_f186.div.childNodes[td].id==foi.id)
{
_f186.div.removeChild(_f186.div.childNodes[td]);
break;
}
}
}
_f186._f184(foi);
}
}
}
catch(e)
{
MVi18n.processLocale(e+". Error: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
});

_f187.send(encodeURI("request=getfig&version=1.0"+
"&figstyle="+foi.style+
"&ratx="+this.parent._f26+"&raty="+
this.parent._f27+"&figord="+_f185+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY));
}
catch(ex)
{
MVi18n.processLocale(ex+". Error: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
}


_f136.prototype._f188=function()
{
return this._f137;
}


_f136.prototype._f189=function(x140,x141,x142,x143)
{
this._f140=true;
this.parent._f190();
this.minX=x140;
this.minY=x141;
this.maxX=x142;
this.maxY=x143;
this._f141=this.parent._f142;
this._f143=this.parent._f144;
this._f138=Math.ceil((this.minX-this.parent._f151)*this.parent._f26);
this._f139=-Math.ceil((this.maxY-this.parent._f154)*this.parent._f27);
_f19._f191(this.div,this._f138,this._f139);
_f19._f191(this._f146,this._f138,this._f139);

this._f176(this.div);
this._f176(this._f146);

if(this._f145)
this._f145;

var x144=this;
for(var x145=0;x145<this._f137.length;x145++)
{
var x146=this._f137[x145];
this._f182(x146,true);

}
}


_f136.prototype._f184=function(x147)
{
x147._f117=true;

var x148=_f19._f156(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x147.x,x147.y);
var x149=(this.parent._f142-this._f141)*this.parent._f26;
var x150=(this.parent._f144-this._f143)*this.parent._f27;
var x151;
var x152=_f19._f108(x147._f109.toLowerCase(),'png');
if(!(_f16._f43=='IF'&&(x147.style!=""||x152))&&!x147.html)
{
if(x147.gtype%10==1)
x151=document.createElement('img');
else
 x151=document.createElement('div');
}
else
 x151=document.createElement('div');
x151.style.position="absolute";
var x153=this;

var x154=MVSdoGeometry.createPoint(0,0);
var x155=x154;
var x156=x147._f128;
var x157=function(x158)
{
x158=(x158)?x158:((window.event)?event:null);
if(x158&&!x156)
{
if(_f16._f43=="IF")
x158.cancelBubble=true;
else if(x158.stopPropagation)
x158.stopPropagation();
}
}
var x159=function(x160)
{
x160=(x160)?x160:((window.event)?event:null);
if(x160&&!x156)
{
_f19._f20(x160);
}
}
var x161=function(x162)
{
x154=_f19._f193(x162);
x157(x162);
}
var x163=function(x164)
{
x155=_f19._f193(x164);
if(x154.x==x155.x&&x154.y==x155.y)
{
x164=(x164)?x164:((window.event)?event:null);
if(x164.button==2)
return;
var x165=_f19.getMouseLocation(x153.parent,x164);
if(x147._f121)
{
var x166=MVSdoGeometry.createPoint(x165.sdo_point.x,x165.sdo_point.y,x153.parent.srid);
x147._f121(x166,x147);
}
else if(x147._f119&&x147._f110)
{
if(x147._f126>0&&x147._f127>0)
x153.parent._f164._f194(x147._f110,x147.id,
x165.sdo_point.x,x165.sdo_point.y,x147._f126,x147._f127);
else
 x153.parent._f164._f194(x147._f110,x147.id,
x165.sdo_point.x,x165.sdo_point.y);
}
}
x159(x164);
}

var x167=function(x168)
{
var x169=_f19.getMouseLocation(x153.parent,x168);
if(x147._f123)
{
var x170=MVSdoGeometry.createPoint(x169.sdo_point.x,x169.sdo_point.y,x153.parent.srid);
x147._f123(x170,x147);
}
if(x147._f125)
x151.style.zIndex=152;
if(x147._f115&&x147._f120&&_f16._f43=="OS")
x153.parent._f164.showTextTip(x147._f115,x169.sdo_point.x,x169.sdo_point.y);

};

var x171=function(x172)
{
if(x147._f124)
{
var x173=_f19.getMouseLocation(x153.parent,x172);
var x174=MVSdoGeometry.createPoint(x173.sdo_point.x,x173.sdo_point.y,x153.parent.srid);
x147._f124(x174,x147);
}
if(x147._f125)
x151.style.zIndex=151;
if(x147._f115)
x153.parent._f164._f195();
};
var x175=function(x176)
{
if(x147._f122)
{
var x177=_f19.getMouseLocation(x153.parent,x176);
var x178=MVSdoGeometry.createPoint(x177.sdo_point.x,x177.sdo_point.y,x153.parent.srid);
x147._f122(x178,x147);
}
x159(x176);
}
if(x147._f109)
{
x151.className="noprint";
if(!x147.visible)
x151.style.visibility="hidden";

if(x147.id&&x147.id!=null)
x151.id=x147.id;
x151._f196=x147.x;
x151._f197=x147.y;
x151.style.zIndex=151;

if(x147._f118)
this._f146.appendChild(x151);
else
 this.div.appendChild(x151);

if(x147.gtype%10!=1)
{
var x179=this._f183(x147);
x151.style.width=_f19._f199(Math.round(x179.width*this.parent._f26+0.5));
x151.style.height=_f19._f199(Math.round(x179.height*this.parent._f27+0.5));
var x180;
var x181;
if(x147._f114[0]>this.maxX||x147._f114[2]<this.minX||
x147._f114[1]>this.maxY||x147._f114[3]<this.minY)
{
return;
}
if(x148[0]>-this.parent._f200&&x148[0]<-this.parent._f200+this.width)
{
x180=x148[0];
}
else if(x148[0]<-this.parent._f200)
{
x180=-this.parent._f200;
}
else {
return;
}
if(x148[1]>-this.parent._f201&&x148[1]<-this.parent._f201+this.height)
{
x181=x148[1];
}
else if(x148[1]<-this.parent._f201)
{
x181=-this.parent._f201;
}
else {
return;
}
x180=Math.floor(x180+0.5);
x181=Math.floor(x181+0.5);
x180-=x149;
x181+=x150;

_f19._f191(x151,x180,x181);
if(_f16._f43=="IF")
{
var x182=_f19._f202(x147._f109,"(","%28");
x182=_f19._f202(x182,")","%29");
x151.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x182+"', sizingMethod='image');";

x151.onmouseover=x167;
x151.onmouseout=x171;
if(x147._f115&&x147._f120)
{
x151.setAttribute("title",x147._f115);
}
if(x147._f116)
{
if(x147._f121||((x147._f119&&x147._f110)))
_f19._f203(x151,"pointer")
x151.onmousedown=x161;
x151.onmouseup=x163;
x151.oncontextmenu=x175;
}
x151.ondblclick=x159;
x151.onclick=x159;
x151.onkeyup=x157;
if(_f16._f43=="OS")
x151.onkeypress=x157;
else
 x151.onkeydown=x157;
_f19._f204(x151);
}
else
 {
x147._f135(x153.parent);
var x183=document.createElement("map");var x184=document.createElement("area");
x183.setAttribute("name",x147.id);
x184.setAttribute("border",0);

if(x147._f115&&x147._f120)
{
if(_f16._f43!="OS")
x184.setAttribute("title",x147._f115);
}

x184.onmouseover=function(x185)
{
x167(x185);
if(x147._f125)
x151.style.zIndex=152;
};

x184.onmouseout=function(x186)
{
x171(x186);
x151.style.zIndex=151;
};

x184.ondblclick=x159;
x184.onclick=x159;
if(x147._f116)
{
var x187="0,0";
if(x147.area.length>0)
x187=x147.area;
x184.setAttribute("shape","poly");
x184.setAttribute("coords",x187);
if((x147._f121||((x147._f119&&x147._f110)))
&&_f16._f43!="OS")
x184.setAttribute("href","javascript:void(0)");
x184.onmousedown=x161;
x184.onmouseup=x163;
x184.oncontextmenu=x175;
}
else
 {
x184.setAttribute("shape","poly");
x184.setAttribute("coords","0,0");
}
var x188=_f205(x147._f109,0,0,0,0,10);
x188.setAttribute("usemap","#"+x147.id);
x151.style.border=0;
x151.appendChild(x183);
x183.appendChild(x184);
x151.appendChild(x188);
}
}
else
 {
x148[0]-=x149;
x148[1]+=x150;
_f19._f191(x151,x148[0]-x147.width/2,x148[1]-x147.height/2);
if((_f16._f43=='IF')&&
(x147.style!=""||x152))
{
x151.style.width=_f19._f199(x147.width);
x151.style.height=_f19._f199(x147.height);
var x182=_f19._f202(x147._f109,"(","%28");
x182=_f19._f202(x182,")","%29");
if(x147._f115&&x147._f120&&_f16._f43!="OS")
{
x151.setAttribute("title",x147._f115);
}
x151.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x182+"', sizingMethod='image');";
}
else
 {
if(x147._f115&&x147._f120&&_f16._f43!="OS")
{
x151.setAttribute("title",x147._f115);
}
if(x147.html)
{
var x189=document.createElement("img");
x189.style.position="relative";
x189.style.left=_f19._f199(0);
x189.style.top=_f19._f199(0);
x189.setAttribute("id",x147.id);
x189.src=x147._f109;
x189.setAttribute("border",0);
x151.appendChild(x189);
var x190=document.createElement("div");
x190.style.position="absolute";
var x191=x147._f111;
var x192=x147._f112;
x190.style.left=_f19._f199(x191);
x190.style.top=_f19._f199(x192);
x190.style.padding=_f19._f199(0);
x190.innerHTML=x147.html;
x151.appendChild(x190);
}
else
 {
x151.src=x147._f109;
x151.setAttribute("border",0);
}
}
x151.onmouseover=x167;
x151.onmouseout=x171;
x151.ondblclick=x159;
x151.onclick=x159;
if(x147._f116)
{
if(x147._f121||((x147._f119&&x147._f110)))
_f19._f203(x151,"pointer")
x151.onmousedown=x161;
x151.onmouseup=x163;
x151.oncontextmenu=x175;
}
_f19._f204(x151);
}
}
else if(x147.gtype%10==1)
{
x151.id=x147.id;
x151.style.width=_f19._f199(x147.width);
x151.style.height=_f19._f199(x147.height);
x148[0]-=x149;
x148[1]+=x150;
_f19._f191(x151,x148[0]-x147.width/2,x148[1]-x147.height/2);
this._f146.appendChild(x151);

x151.onmouseover=x167;
x151.onmouseout=x171;
x151.ondblclick=x159;
x151.onclick=x157;
x151.onkeyup=x157;
if(_f16._f43=="OS")
x151.onkeypress=x157;
else
 {
x151.onkeydown=x157;
x151.oncontextmenu=x157;
}
if(_f16._f43=="IF")
x151.onselectstart=x157;
if(x147._f115&&x147._f120&&_f16._f43!="OS")
{
x151.title=x147._f115;
}
if(x147._f116)
{
if(x147._f121||((x147._f119&&x147._f110)))
_f19._f203(x151,"pointer")
x151.onmousedown=x161;
x151.onmouseup=x163;
x151.oncontextmenu=x175;
}
if(x147.html)
{
var x190=document.createElement("div");
x190.style.position="absolute";
var x191=x147._f111;
var x192=x147._f112;
x190.style.left=_f19._f199(x191);
x190.style.top=_f19._f199(x192);
x190.style.padding=_f19._f199(0);
x190.innerHTML=x147.html;
x151.appendChild(x190);
}
}
}


_f136.prototype._f206=function()
{
var x193="";
for(var x194=0;x194<this._f137.length-1;x194++)
{
for(var x195=1;x195<this._f137.length;x195++)
{
if(this._f137[x194]._f118&&!this._f137[x195]._f118)
{
var x196=this._f137[x194];
this._f137[x194]=this._f137[x195];
this._f137[x195]=x196;
}
}
}
for(var x194=0;x194<this._f137.length;x194++)
{
if(this._f137[x194].style)
x193+=this._f207(this._f137[x194]._f106,_f19._f208(this._f137[x194].style));
}
return x193;
}


_f136.prototype._f207=function(x197,x198)
{
var x199=x197.getGType();
var x200=""
switch(x199%10){
case 1:
x200=this._f209(x197.getOrdinates());
break;
case 2:
x200=this._f210(x197.getOrdinates());
break;
case 3:
if(x197.sdo_elem_info[2]==4)
x200=this._f211(x197.getOrdinates());
else
 x200=this._f212(x197.getOrdinates());
break;
case 4:
break;
case 5:
x200=this._f209(x197.getOrdinates());
break;
case 6:
x200=this._f213(x197);
break;
case 7:
x200=this._f214(x197);
break;
}

var x201="<geoFeature+render_style=\""+x198+"\"><geometricProperty>"+x200+"</geometricProperty></geoFeature>"
return x201;
}


_f136.prototype._f209=function(x202)
{
var x203="<Point><coordinates>";
x203=x203+x202+"</coordinates></Point>";
return x203;
}


_f136.prototype._f210=function(x204)
{
var x205="<LineString><coordinates>";
x205=x205+x204+"</coordinates></LineString>"
return x205;
}


_f136.prototype._f212=function(x206)
{
var x207="<Polygon><outerBoundaryIs><LinearRing><coordinates>";
x207=x207+x206+"</coordinates></LinearRing></outerBoundaryIs></Polygon>"
return x207;
}


_f136.prototype._f214=function(x208)
{
var x209=x208.getOrdinatesOfElements();
var x210="<MULTIPOLYGON>";
for(var x211=0;x211<x209.length;x211++)
{
x210=x210+"<polygonMember>";
x210=x210+this._f212(x209[x211]);
x210=x210+"</polygonMember>";
}
x210=x210+"</MULTIPOLYGON>";
return x210;
}


_f136.prototype._f213=function(x212)
{
var x213=x212.getOrdinatesOfElements();
var x214="<MultiLineString>";
for(var x215=0;x215<x213.length;x215++)
{
x214=x214+"<lineStringMember>";
x214=x214+this._f210(x213[x215]);
x214=x214+"</lineStringMember>";
}
x214=x214+"</MultiLineString>";
return x214;
}


_f136.prototype._f211=function(x216)
{
var x217=parseFloat(x216[2]);
var x218=parseFloat(x216[1]);
var x219=parseFloat(x216[0])-parseFloat(x216[2]);
var x220="";
var x221=2*Math.PI;

var x222=x217+x219*Math.cos((x221*0)/120);
for(var x223=1;x223<120;x223++)
{
if(x223%2==0)
{
x220=x217+x219*Math.cos((x221*x223)/120);
x222+=","+x220;
}
else
 {
x220=x218+x219*Math.sin((x221*x223)/120);
x222+=" "+x220;
}

}
var x224="<Polygon><outerBoundaryIs><LinearRing><coordinates>";
x224+=x222+"</coordinates></LinearRing></outerBoundaryIs></Polygon>";
return x224;
}

function MVRedlineTool(linestyle,areastyle,foiServerURL)
{
var _f93=eval(_f16._f93);
++_f93;
_f16._f93=_f93;

this.id=_f93;

this.parent="";

this._f107=foiServerURL;

this._f534=linestyle;

this._f5=areastyle;

this._f535=0;

this._f536=0;

this._f395=0;

this._f396=0;

this._f537=new Array();

this.state=0;

this._f538=0;

this._f539=0;

this._f540=_f16._f92+_f16._f95;

this._f541=_f16._f96;

this._f542=_f16._f97;

var _f543=this;

this._f544=null;

this._f545=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if((_f16._f94)!=_f543||
(x0!=null&&x0.button==2))
return;

_f543._f538=1;
_f543._f539=1;

if(_f16._f43=="IF")
{
_f543._f395=x0.clientX+document.body.scrollLeft;
_f543._f396=x0.clientY+document.body.scrollTop;
}
else
 {
_f543._f395=x0.pageX;
_f543._f396=x0.pageY;
}
}


this._f546=function(x1)
{
x1=(x1)?x1:((window.event)?event:null);
if((_f16._f94)!=_f543||_f543._f539!=1||
(x1!=null&&x1.button==2))
return;

_f543._f539=0;

if(_f543._f538==1&&_f543.state==1)
{
_f543._f538=0;
_f543._f535=_f543.parent._f23();
_f543._f536=_f543.parent._f24();

var x2=new MVFOI("-RL8RL"+_f543.id,MVSdoGeometry.createPoint(_f543._f535,_f543._f536,_f543.parent.srid),"",_f543._f540,_f543._f541,_f543._f542);
x2.enableInfoTip(false);
x2.enableInfoWindow(false);
x2.setClickable(false);
_f543.parent.addFOI(x2);

_f543._f537.push(_f543._f535);
_f543._f537.push(_f543._f536);

var x3=(_f543._f537.length);
if(x3>=4)
{
var x4=new MVFOI("-RL6RL"+_f543.id,MVSdoGeometry.createLineString(_f543._f537.slice((x3-4)),(_f543.parent.srid)),_f543._f534,_f543._f107);
x4.enableInfoTip(false);
x4.enableInfoWindow(false);
x4.setClickable(false);
x4.setTopFlag(true);
_f543.parent.addFOI(x4);
}
if(_f543._f544)
_f543._f544();
}
}


this.mouse_move=function(x5)
{
x5=(x5)?x5:((window.event)?event:null);
if((_f16._f94)!=_f543||
(x5!=null&&x5.button==2))
return;

if(_f543._f539==1)
{
var x6=0;
var x7=0;
if(_f16._f43=="IF")
{
x6=x5.clientX+document.body.scrollLeft-_f543._f395;
x7=x5.clientY+document.body.scrollTop-_f543._f396;
}
else
 {
x6=x5.pageX-_f543._f395;
x7=x5.pageY-_f543._f396;
}
var x8=_f16.redlineIgnoreMove;

if((x6*x6+x7*x7)>(x8*x8))
_f543._f539=2;
}
}


this.getStatus=function()
{
return state;
}


this.init=function()
{
if(this.state==0)
{
if(_f16._f43=="IF")
{
this.parent._f33.attachEvent("onmousedown",this._f545);
this.parent._f33.attachEvent("onmouseup",this._f546);
this.parent._f33.attachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f33.addEventListener("mousedown",this._f545,false);
this.parent._f33.addEventListener("mouseup",this._f546,false);
this.parent._f33.addEventListener("mousemove",this.mouse_move,false);
}
}

_f16._f94=this;

this.parent.removeFOI("-RL2RL"+this.id);
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);

this._f537=new Array();
this.state=1;
}


this.generateArea=function()
{
if(this.state==1)
{
if(this._f537.length<6)
{
MVi18n.processLocale("Need at least 3 points for generating polygon area. Error: MVRedlineTool.generateArea()");
return;
}
else
 {
this.state=2;
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
var x9=this._f537.length;
if(this._f537[0]!=this._f537[x9-2]||this._f537[1]!=this._f537[x9-1])
{
this._f537.push(this._f537[0]);
this._f537.push(this._f537[1]);
}
}

var x10=new MVFOI("-RL2RL"+this.id,MVSdoGeometry.createPolygon(this._f537,this.parent.srid),this._f5,this._f107);
x10.enableInfoTip(false);
x10.enableInfoWindow(false);
x10.setClickable(false);
x10.setTopFlag(true);
this.parent.addFOI(x10);
}
}


this.clear=function()
{
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
this.parent.removeFOI("-RL2RL"+this.id);

this._f537=null;

if(_f16._f43=="IF")
{
this.parent._f33.detachEvent("onmousedown",this._f545);
this.parent._f33.detachEvent("onmouseup",this._f546);
this.parent._f33.detachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f33.removeEventListener("mousedown",this._f545,false);
this.parent._f33.removeEventListener("mouseup",this._f546,false);
this.parent._f33.removeEventListener("mousemove",this.mouse_move,false);
}

this.state=0;
}


this.setMarkerImage=function(x11,x12,x13)
{
this._f540=x11;
this._f541=x12;
this._f542=x13;
}


this.getPolygon=function()
{
var x14=this._f537.length;
if(x14>=6&&this._f537[0]==this._f537[x14-2]&&this._f537[1]==this._f537[x14-1])
{
var x15=MVSdoGeometry.createPolygon(this._f537,this.parent.srid);
return x15;
}
else
 return null;
}


this.getPolygonFOI=function()
{
return this.parent.getFOI("-RL2RL"+this.id);
}


this.getOrdinates=function()
{
return this._f537;
}


this.addEventListener=function(x16,x17)
{
if(x16=="mouse_click")
this._f544=x17;
}
}
function MVRectangleTool(rectStyle,_f3)
{

this.parent=null;

this._f439=document.createElement("div");
this._f439.style.position="absolute";
this._f439.style.zIndex=5000;
this._f439.style.border="#FF0000 2px dashed";
this._f439.style.visibility="hidden";


this._f4=2;


this._f3=_f3;


this._f5=rectStyle;

this._f6=(rectStyle?true:false);

this._f7=0;

this._f8=0;

this._f9=0;

this._f10=0;

this._f11=0;

this._f12=0;

this._f13=null;

this._f14=null;

this._f15=null;

var _f98=eval(_f16._f98);
++_f98;
_f16._f98=_f98;


this.id=_f98;

this._f17=0;
this._f43="NS";


this.keyPressFunc=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(_f16._f18)
_f19._f20(x0);
};


this.disableKeyPress=function()
{
if(this.netscape==null)
{
if(_f16._f21("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this.keyPressFunc,false);
}
}


this.enableKeyPress=function()
{
if(this.netscape==null)
{
if(_f16._f21("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this.keyPressFunc,false);
}
}


MVRectangleTool.prototype.setDivBorderStyle=function(x0,x1,x2)
{


var x3="#FF0000";
if(x0!="")
{
x3=x0;
}

var x4="1px";
if(x1)
{
x4=x1+"px";
this._f4=x1;
}

var x5="dashed";
if(x2!="")
x5=x2;

this._f439.style.border=x3+" "+x4+" "+x5;
}


MVRectangleTool.prototype.setDivFillColor=function(x6,x7)
{
if(x6!=null&&x6!="")
this._f439.style.backgroundColor=x6;

if(isNaN(x7)||x7<0||x7>1)
{
MVi18n.processLocale("The second parameter specified is not a valid number ranging from 0 to 1! Error: setDivFillColor(...) in MVRectangleTool");
}
else
 {
if(window.ActiveXObject)
{
this._f439.style.filter="alpha(opacity="+(x7*100)+")";
}
else
 {
this._f439.style.opacity=x7;
}
}
}


MVRectangleTool.prototype._f22=function()
{
this._f7=this.parent._f23();
this._f8=this.parent._f24();
}


MVRectangleTool.prototype._f25=function()
{
this._f9=this.parent._f23();
this._f10=this.parent._f24();
}


MVRectangleTool.prototype._f533=function()
{
if(this._f17!=3)
{
return;
}

var x8=(this._f7-this.parent._f28())*this.parent._f26+
(this.parent._f29()/2);
var x9=(this._f8-this.parent._f30())*(-this.parent._f27)+
(this.parent._f31()/2);

var x10=(this._f9-this.parent._f28())*this.parent._f26+
(this.parent._f29()/2);
var x11=(this._f10-this.parent._f30())*(-this.parent._f27)+
(this.parent._f31()/2);

var x12=Math.abs(x8-x10);
var x13=Math.abs(x9-x11);
x12=Math.round(x12);
x13=Math.round(x13);

var x14=(x8<x10?x8:x10);
var x15=(x9<x11?x9:x11);
x14=Math.round(x14);
x15=Math.round(x15);

this._f439.style.left=x14+'px';
this._f439.style.top=x15+'px';

if(this._f43=="NS")
{
if(x12==0)
x12=(2*this._f4);

if(x13==0)
x13=(2*this._f4);

this._f439.style.width=Math.abs(x12-(2*this._f4))+'px';
this._f439.style.height=Math.abs(x13-(2*this._f4))+'px';
this._f439.style.clip="rect(0px, "+(x12)+"px, "+
(x13)+"px, 0px)";
}
else
 {
this._f439.style.width=x12+'px';
this._f439.style.height=x13+'px';
this._f439.style.clip="rect(0px, "+(x12+(2*this._f4))+"px, "+
(x13+(2*this._f4))+"px, 0px)";
}

this._f439.style.visibility="visible";
}


MVRectangleTool.prototype.generateArea=function()
{
if(this._f17!=3)
{
return;
}

this.parent.removeFOI("MVRectangleTool"+this.id);

this._f15=MVSdoGeometry.createRectangle(
this._f7,this._f8,this._f9,this._f10,this.parent.srid);

if(!(this._f6))
return;

var x16=new MVFOI("MVRectangleTool"+this.id,this._f15,
this._f5,this._f3);

x16.setClickable(false);
x16.enableInfoTip(false);

this.parent.addFOI(x16);
}


MVRectangleTool.prototype.init=function()
{
this._f17=1;

var x17=this.parent;
var x18=x17._f33;
var x19=this;

var x20;

this._f43=this.parent.getBrowserType();

var x21=function()
{
_f16._f18=true;

var x22=x17._f28();
var x23=x17._f30();

if((x19._f11)!=x22||(x19._f12)!=x23)
{
if(x19._f17==2)
{
x19._f17=3;
}

x19._f9+=(x22-x19._f11);
x19._f10+=(x23-x19._f12);

x19._f11=x22;
x19._f12=x23;

x19._f533();
}
}

x18.onmousedown=_f19._f35(x18,function(x24)
{
x17.removeFOI("MVRectangleTool"+x19.id);

x19._f17=2;

x24=(x24)?x24:((window.event)?event:null);
x17._f36(x24);

x19._f22();
x19._f25();
x19._f439.style.visibility="hidden";

if(x19._f13!=null)
(x19._f13)();

x19._f11=x17._f28();
x19._f12=x17._f30();

var x25=5;
x20=setInterval(x21,x25);

x19.disableKeyPress();

return false;
});

x18.onmousemove=_f19._f35(x18,function(x26)
{
if(x19._f17==2)
{
x19._f17=3;
}

if(x19._f17==3)
{
x26=(x26)?x26:((window.event)?event:null);
x17._f36(x26);

x19._f25();

x19._f533();
}

return false;
});

x18.onmouseup=_f19._f35(x18,function(x27)
{
x27=(x27)?x27:((window.event)?event:null);
x17._f36(x27);

x19._f25();

x19.generateArea();

x19._f439.style.width="0px";
x19._f439.style.height="0px";
x19._f439.style.clip="rect(0px, 0px, 0px, 0px)";
x19._f439.style.visibility="hidden";

clearInterval(x20);

x17._f37();

x19.enableKeyPress();

if(x19._f14!=null)
(x19._f14)();

return false;
});

x18.onmouseout=_f19._f35(x18,function(x28)
{
if(x19._f17!=3)
return false;

if(x19._f43=="NS"||x19._f43=="OS")
{
x28=(x28)?x28:((window.event)?event:null);

var x29=x28.clientX;
var x30=x28.clientY;

var x31=x17._f29();
var x32=x17._f31();
var x33=_f19._f38(this);

var x34=x28.pageX-x33.x;
var x35=x28.pageY-x33.y;

if(x34<=0||x34>=x31||
x35<=0||x35>=x32||
x29<=0||x29>=document.body.clientWidth||
x30<=0||x30>=document.body.clientHeight)
{
return this.onmouseup(x28);
}
}
});
}


MVRectangleTool.prototype.clear=function()
{
this.parent.removeFOI("MVRectangleTool"+this.id);
this._f17=0;
this.parent._f37();
}


MVRectangleTool.prototype.getRectangle=function()
{
if(this._f15!=null)
return (this._f15);
else
 return null;
}


MVRectangleTool.prototype.getRectangleFOI=function()
{
return this.parent.getFOI("MVRectangleTool"+this.id);
}


MVRectangleTool.prototype.addEventListener=function(x36,x37)
{
if(x36=="on_start")
this._f13=x37;
else if(x36=="on_finish")
this._f14=x37;
}


MVRectangleTool.prototype.getStatus=function()
{
return this._f17;
}

function MVCircleTool(circleStyle,_f3)
{

this.parent=null;

this.circleDiv=document.createElement("div");
this.circleDiv.style.position="absolute";
this.circleDiv.style.visibility="hidden";
this.circleDiv.style.zIndex=5000;
this.plotPara=new Object();
this.plotPara._f4=2;
this.plotPara.divHeight=2;
this.plotPara.zIndex=5001;
this.plotPara.backgroundColor="#FF0000";
this.plotPara.opacity=null;

this._f3=_f3;

this._f5=circleStyle;

this._f6=(circleStyle!=null?true:false);

this._f7=0;

this._f8=0;

this._f9=0;

this._f10=0;

this.stepPx=6;

this._f11=0;

this._f12=0;

this._f13=null;

this._f14=null;

this.mRadius=null;

this._f15=null;
var circleToolId=eval(_f16.circleToolId);
_f16.circleToolId=(++circleToolId);

this.id=circleToolId;

this.namePrefix="MVCircleTool";

this._f17=0;
this.refresh=false;


this.keyPressFunc=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(_f16._f18)
_f19._f20(x0);
};


this.disableKeyPress=function()
{
if(this.netscape==null)
{
if(_f16._f21("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this.keyPressFunc,false);
}
}


this.enableKeyPress=function()
{
if(this.netscape==null)
{
if(_f16._f21("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this.keyPressFunc,false);
}
}


MVCircleTool.prototype.setPlotDivSize=function(x0,x1)
{
if(x0!=null)
{
if(isNaN(x0))
{
MVi18n.processLocale("The specified value for plot DIV width is invalid, and it should be an integer. Error: MVCircleTool.setPlotDivSize(...)");
}
else
 {
x0=Math.round(x0);
this.plotPara._f4=x0;
}
}
if(x1!=null)
{
if(isNaN(x1))
{
MVi18n.processLocale("The specified value for plot DIV height is invalid, and it should be an integer. Error: MVCircleTool.setPlotDivSize(...)");
}
else
 {
x1=Math.round(x1);
this.plotPara.divHeight=x1;
}
}
}


MVCircleTool.prototype.setPlotDivFillColor=function(x2,x3)
{
if(x2!=null&&x2!="")
this.plotPara.backgroundColor=x2;

if(isNaN(x3)||x3<0||x3>1)
{
MVi18n.processLocale("The second parameter specified is not a valid number ranging from 0 to 1! Error: setPlotDivFillColor(...) in MVCircleTool");
}
else
 {
this.plotPara.opacity=x3;
}
}


MVCircleTool.prototype.setPlotDivZindex=function(x4)
{
if(x4!=null)
{
if(isNaN(x4))
{
MVi18n.processLocale("The parameter specified is not a valid number! Error: setDivZindex(...) in MVCircleTool");
}
else
 {
this.plotPara.zIndex=x4;
this.circleDiv.style.zIndex=(x4-1);
}
}
}


MVCircleTool.prototype._f22=function()
{
this._f7=this.parent._f23();
this._f8=this.parent._f24();
}


MVCircleTool.prototype._f25=function()
{
this._f9=this.parent._f23();
this._f10=this.parent._f24();
}


MVCircleTool.prototype.drawCircle=function()
{
if(this._f17!=3)
{
return;
}
var x5=this.parent._f26;
var x6=this.parent._f27;
var x7=Math.round((this._f7-this.parent._f28())*x5+(this.parent._f29()/2));
var x8=Math.round((this._f8-this.parent._f30())*(-x6)+(this.parent._f31()/2));
var x9=(this._f9-this._f7)*x5;
var x10=(this._f10-this._f8)*(-x6);
var x11=Math.round(Math.sqrt(x9*x9+x10*x10));
this.mRadius=x11;
var x12=2*(x11+this.plotPara._f4);
var x13=2*(x11+this.plotPara.divHeight);
var x14=x7-x11-Math.round((this.plotPara._f4)/2);
var x15=x8-x11-Math.round((this.plotPara.divHeight)/2);
this.circleDiv.style.left=x14+'px';
this.circleDiv.style.top=x15+'px';
this.circleDiv.style.width=x12+'px';
this.circleDiv.style.height=x13+'px';
this.circleDiv.style.clip="rect(0px, "+x13+"px, "+x12+"px, 0px)";
this.circleDiv.style.visibility="visible";
var x16=(this.namePrefix+this.id+"PlotsDiv");
var x17=document.getElementById(x16);
if(x17!=null)
this.circleDiv.removeChild(x17);
x17=document.createElement("div");
x17.id=x16;
x17.style.position="absolute";
x17.style.left=0+'px';
x17.style.top=0+'px';
this.circleDiv.appendChild(x17);




var x18=(this.stepPx)/x11;
x18=x18>1?1:x18;
var x19=Math.acos(x18);
var x20=Math.asin(x18);
var x21=x19<x20?x19:x20;
var x22=50;
if(x21==0)
x21=Math.PI/(2*x22);
var x23=Math.ceil(Math.PI/(2*x21));
for(var x24=0;x24<x23;++x24)
{
var x25=x24*x21;
x9=Math.round(x11*Math.cos(x25));
x10=Math.round(x11*Math.sin(x25));
this.plotPos((x11+x9),(x11+x10));
this.plotPos((x11+x9),(x11-x10));
this.plotPos((x11-x9),(x11+x10));
this.plotPos((x11-x9),(x11-x10));
}
}


MVCircleTool.prototype.plotPos=function(x26,x27)
{
var x28=(this.namePrefix+this.id+"PlotsDiv");
var x29=document.getElementById(x28);
if(x29==null)
{
MVi18n.processLocale("Error: MVCircleTool.plotPos(...)");
return;
}
var x30=document.createElement("DIV");
x30.style.position="absolute";
x30.style.zIndex=this.plotPara.zIndex;
if(this.plotPara.backgroundColor!=null)
x30.style.backgroundColor=this.plotPara.backgroundColor;
if((this.plotPara.opacity)!=null)
{
if(window.ActiveXObject)
{
x30.style.filter="alpha(opacity="+((this.plotPara.opacity)*100)+")";
}
else
 {
x30.style.opacity=this.plotPara.opacity;
}
}
x30.style.left=x26+"px";
x30.style.top=x27+"px";
x30.style.width=(this.plotPara._f4)+"px";
x30.style.height=(this.plotPara.divHeight)+"px";
x30.style.clip="rect(0px, "+(this.plotPara._f4)+"px, "+
(this.plotPara.divHeight)+"px, 0px)";
x29.appendChild(x30);
}


MVCircleTool.prototype.generateArea=function()
{
if(this._f17!=3)
{
return;
}
var x31=this.namePrefix+this.id;
this.parent.removeFOI(x31);
var x32=(this._f9-this._f7);
var x33=(this._f10-this._f8);
var x34=Math.sqrt(x32*x32+x33*x33);
this.mRadius=x34;
this._f15=MVSdoGeometry.createCircle(this._f7,this._f8,x34,this.parent.srid);
if(!(this._f6))
return;
var x35=new MVFOI(x31,this._f15,this._f5,this._f3);
x35.setClickable(false);
x35.enableInfoTip(false);
this.parent.addFOI(x35);
}


MVCircleTool.prototype.init=function()
{
this._f17=1;
var x36=this.parent;
var x37=x36._f33;
var x38=this;
var x39;

var x40=function()
{
_f16._f18=true;

var x41=x36._f28();
var x42=x36._f30();

if((x38._f11)!=x41||(x38._f12)!=x42||(x38.refresh))
{
x38.refresh=false;
if(x38._f17==2)
{
x38._f17=3;
}
x38._f9+=(x41-x38._f11);
x38._f10+=(x42-x38._f12);
x38._f11=x41;
x38._f12=x42;
x38.drawCircle();
}
}

x37.onmousedown=_f19._f35(x37,function(x43)
{
x36.removeFOI(x38.namePrefix+x38.id);
x38._f17=2;

x43=(x43)?x43:((window.event)?event:null);
x36._f36(x43);

x38._f22();
x38._f25();
x38.circleDiv.style.visibility="hidden";

if(x38._f13!=null)
(x38._f13)();

x38._f11=x36._f28();
x38._f12=x36._f30();

var x44=5;
x39=setInterval(x40,x44);

x38.disableKeyPress();

return false;
});

x37.onmousemove=_f19._f35(x37,function(x45)
{
if(x38._f17==2)
{
x38._f17=3;
}
if(x38._f17==3)
{
x45=(x45)?x45:((window.event)?event:null);
x36._f36(x45);
x38._f25();
x38.refresh=true;
}
return false;
});

x37.onmouseup=_f19._f35(x37,function(x46)
{
x46=(x46)?x46:((window.event)?event:null);
x36._f36(x46);
x38._f25();
x38.generateArea();
var x47=document.getElementById(x38.namePrefix+x38.id+"PlotsDiv");
if(x47!=null)
x38.circleDiv.removeChild(x47);
x38.circleDiv.style.width="0px";
x38.circleDiv.style.height="0px";
x38.circleDiv.style.clip="rect(0px, 0px, 0px, 0px)";
x38.circleDiv.style.visibility="hidden";
clearInterval(x39);
x36._f37();

x38.enableKeyPress();

if(x38._f14!=null)
(x38._f14)();
return false;
});

x37.onmouseout=_f19._f35(x37,function(x48)
{
if(x38._f17!=3)
return false;

if(!(window.ActiveXObject))
{
x48=(x48)?x48:((window.event)?event:null);

var x49=x48.clientX;
var x50=x48.clientY;

var x51=x36._f29();
var x52=x36._f31();
var x53=_f19._f38(this);

var x54=x48.pageX-x53.x;
var x55=x48.pageY-x53.y;

if(x54<=0||x54>=x51||
x55<=0||x55>=x52||
x49<=0||x49>=document.body.clientWidth||
x50<=0||x50>=document.body.clientHeight)
{
return this.onmouseup(x48);
}
}
});
}


MVCircleTool.prototype.clear=function()
{
this.parent.removeFOI(this.namePrefix+this.id);
this._f17=0;
this.parent._f37();
}


MVCircleTool.prototype.getCircle=function()
{
if(this._f15!=null)
return (this._f15);
else
 return null;
}


MVCircleTool.prototype.getRadius=function()
{
return this.mRadius;
}


MVCircleTool.prototype.getCircleFOI=function()
{
return this.parent.getFOI(this.namePrefix+this.id);
}


MVCircleTool.prototype.addEventListener=function(x56,x57)
{
if(x56=="on_start")
this._f13=x57;
else if(x56=="on_finish")
this._f14=x57;
}


MVCircleTool.prototype.getStatus=function()
{
return this._f17;
}

function MVi18n()
{
}


MVi18n._f607=null;


MVi18n._f608=null;


MVi18n._f609=null;


MVi18n.URL=null;


MVi18n.processLocale=function(str,translate)
{
if(MVi18n.URL==null)
{
alert(str);
return;
}

var url=null;

if(translate==null||translate)
url=encodeURI(MVi18n.URL+"/ReturnLocaleString");

var text=str;

var _f607=MVi18n._f607;
var _f608=MVi18n._f608;
var _f609=MVi18n._f609;

if((_f609.toLowerCase())=="url")
{
if(translate!=null&&!translate)
{
alert(text);
return;
}

url=url+encodeURI("?liter="+str);

if((_f607.toLowerCase())=="func")
eval(_f608)(url);
else if((_f607.toLowerCase())=="eval")
eval(_f608+url);

return;
}
else if(translate!=null&&!translate)
{
if((_f607.toLowerCase())=="func")
eval(_f608)(text);
else if((_f607.toLowerCase())=="eval")
{
text=text.replace(/\n/,"");
text=text.replace(/\r/,"");

eval(_f608+"\""+text+"\"");
}

return;
}

try
{
var _f187=_f19.getXMLHttpRequest();

_f187.open("POST",url,true);
_f187.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

_f187.onreadystatechange=_f19._f35(_f187,function()
{
try
{
if(this.readyState!=4)
return;

if(this.status==200)
text=this.responseText;

_f19.gc();

if((_f607.toLowerCase())=="func")
eval(_f608)(text);
else if((_f607.toLowerCase())=="eval")
{
text=text.replace(/\n/,"");
text=text.replace(/\r/,"");

eval(_f608+"\""+text+"\"");
}
}
catch(e)
{
alert(e);
}
});

_f187.send(encodeURI("liter="+str));
}
catch(ex)
{
alert(ex);
}
}


MVi18n.processLocaleOper=function(str,asyn,translate)
{
if(MVi18n.URL==null||(translate!=null&&!translate))
{
return;
}

var url=encodeURI(MVi18n.URL+"/ReturnLocaleOper");

try
{
var _f187=_f19.getXMLHttpRequest();

_f187.open("POST",url,asyn);
_f187.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

if(asyn)
{
_f187.onreadystatechange=_f19._f35(_f187,function()
{
try
{
if(this.readyState!=4)
return;

if(this.status==200)
eval(this.responseText);

_f19.gc();
}
catch(e)
{
alert(e);
}
});

_f187.send(encodeURI(str));
}
else
 {
_f187.send(encodeURI(str));
if(_f187.status==200)
eval(_f187.responseText);
}
}
catch(ex)
{
alert(ex);
}
}


MVi18n.addBehavior=function(x0,x1,x2)
{
if(x0==null||(x0!="func"&&x0!="eval"))
{
alert("MethodType Error");

return;
}

if(x1==null||x1=="")
{
alert("MethodName Error");

return;
}

if(x2==null||((x2.toLowerCase())!="url"&&(x2.toLowerCase())!="text"))
{
alert("ArgType Error");

return;
}

MVi18n._f607=x0;
MVi18n._f608=x1;
MVi18n._f609=x2;
}


MVi18n.setURL=function(x3)
{
if(x3==null||x3=="")
{
alert("Parameter should not be null or empty. Error occurs in MVi18n.setURL(...)");

return;
}

MVi18n.URL=x3;
}

function MVMapView(x0,x1)
{
MVi18n.addBehavior("func","alert","text");

this._f142=0;

this._f144=0;

this._f26=0;

this._f27=0;

this.tileWidth=0;

this.tileHeight=0;

this._f320=500;

this._f321=500;

this._f332=0;

this._f333=0;
this._f334=1;
this._f335=0;

this._f336=0;
this._f319=0;

this._f337=false;
this._f181=false;
this._f338=0;

this._f339=0;
this._f340=null;
this._f341=null;
this._f342=0.0;

this._f343=0.0;
this._f344=0.0;

this._f345=0.0;
this._f346=0.0;

this._f347=0.0;
this._f151=0.0;

this._f152=0.0;
this._f153=0.0;

this._f154=0.0;
this._f348=false;
this.msi=null;

this._f349=false;
this._f350=true;

this._f351=null;

this._f352=new Array();
this._f353=new Array();

this._f354=null;

this._f294=new Array();

this._f355=new Array();

this._f164=null;

this._f129=null;

this._f356=new _f357();

this._f358=2;

this._f359=4;

this._f360=4;

this._f361=null;

this._f362=new _f357();

this._f221=false;

this._f363=0;

this._f117=false;

this._f364=new Array();

this._f252=null;

this._f251=false;

this._f365=true;

this._f366=null;

this._f367=0;

this._f368=0;

this._f369=null;

this._f370=null;

this._f371=false;

this._f372=false;

this._f373=null;

this._f374=false;

this._f375=null;

this._f376=1;

this.centerMarkUrl=null;

this.centerMarkW=0;

this.centerMarkH=0;

var x2=String(document.location);
var x3=x2.indexOf("//");
if(x3<0)
{
MVi18n.processLocale("Not a valid http request");
}
else
 {
var x4=x2.substring(x3+2);
var x5=x4.indexOf("/");
if(x5<0)
{
MVi18n.processLocale("No hostname in http request");
}
else
 {

this._f53=x2.substring(0,x3+x5+2)+"/mapviewer";
}
}

this._f377=this._f53;

this._f378=this._f53;
if(x1)
{
this._f377=x1;
this._f378=x1;
if(_f19._f108(x1,'/'))
{
this._f377=x1.substring(0,x1.length-1);
this._f378=x1.substring(0,x1.length-1);
}
if(this._f53!=this._f377)
{
this._f377=this._f53+"/proxy?rtarget="+this._f377;
}
}
_f16._f104=this._f378+"/foi";
MVi18n.setURL(this._f377);
MVi18n.processLocaleOper(
"_i0=Pan NorthWest"+
"&_i1=Pan North"+
"&_i2=Pan NorthEast"+
"&_i3=Pan West"+
"&_i4=Pan East"+
"&_i5=Pan SouthWest"+
"&_i6=Pan South"+
"&_i7=Pan SouthEast"+
"&_i8=Slider Bar"+
"&_i9=Drag To Zoom"+
"&_i10=Zoom In"+
"&_i11=Zoom Out"+
"&_i12=Scale at the center of the map"+
"&_i13=MapView baseURL is not set, please check"+
"&_i14=km"+
"&_i15=mi"+
"&_i16=m"+
"&_i17=ft"+
"&_i18=Home",false);

try
{
_f16._f77=_i0;
_f16._f78=_i1;
_f16._f79=_i2;
_f16._f80=_i3;
_f16._f81=_i4;
_f16._f82=_i5;
_f16._f83=_i6;
_f16._f84=_i7;
_f16._f86=_i8;
_f16._f87=_i9;
_f16._f88=_i10;
_f16._f89=_i11;
_f16._f90=_i12;
_f16._f91=_i13;
_f16._f100=_i14;
_f16._f101=_i15;
_f16._f102=_i16;
_f16._f103=_i17;
_f16._f85=_i18;
}
catch(ex)
{
}

if(x0==null)
return null;

this._f33=x0;

this.div=null;

var x6=this;
var x7=this.getBrowserType();
this._f379();



this._f33.style.overflow="hidden";
if(this._f33.style.position!="absolute")
{
this._f33.style.position="relative";
}


this._f380="";

this._f55=0;

this._f56=0;


this._f381();

this._f382=false;

this._f383=null;


this._f384=document.createElement("div");
_f19._f331(this._f384);
this._f384.style.position="absolute";
this._f384.style.zIndex=125;
this.div.appendChild(this._f384);


this._f385=null

this._f236=null;

this._f386=null;

this._f387=null;

this._f388=null;

this._f389=new _f390();

this._f391=true;

this.doubleClickAction="recenter";

this.dblclickListener=null;
return this;
}

MVMapView.prototype._f379=function()
{
if(_f16._f43=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
document.body.style.height="100%";
}
if(this._f33.style.backgroundColor=="")
this._f33.style.backgroundColor="lightgrey";
this._f33.style.zIndex=70;
this.div=document.createElement("div");
this.div.style.position="absolute";
if(_f16._f43=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
this.div.style.width=_f19._f199(this._f29());
this.div.style.height=_f19._f199(this._f31());
}
else
 {
this.div.style.width="100%";
this.div.style.height="100%";
}
this.div.style.zIndex=80;
this.div.style.left=_f19._f199(0);
this.div.style.top=_f19._f199(0);
this._f200=0;
this._f201=0;
this._f302=this._f200;
this._f303=this._f201;
this._f392=0;
this._f393=0;
this._f33.appendChild(this.div);
}

MVMapView.prototype._f394=function(x0,x1)
{
this._f392=x0-this._f200;
this._f393=x1-this._f201;
}

MVMapView.prototype._f397=function(x2,x3)
{
this._f200=x2-this._f392;
this._f201=x3-this._f393;
this._f302=_f19._f166(this.div);
this._f303=_f19._f167(this.div);
var x4=this._f142;
var x5=this._f144;
this._f142=this._f142+
(this._f302-this._f200)/this._f26;
this._f144=this._f144-
(this._f303-this._f201)/this._f27;

if(x4!=this._f142||x5!=this._f144)
{
this._f348=true;
}
_f19._f191(this.div,this._f200,this._f201);
}

MVMapView.prototype.addEventListener=function(x6,x7)
{
if(x6=="recenter")
{
this._f386=x7;
}
else if(x6=="mouse_click")
{
this._f236=x7;
}
else if(x6=="mouse_right_click")
{
this._f387=x7;
}

else if(x6=="zoom_level_change")
{
this._f385=x7;
}
else if(x6=="mouse_double_click")
{
this.dblclickListener=x7;
}

}


MVMapView.prototype.init=function()
{
this._f338=this._f335+(this._f332/2*this.tileWidth);
this._f339=this._f336+(this._f333/2*this.tileHeight);
if(!this._f117)
{
if(this._f398())
return ;
}
for(var x8=0;x8<this._f294.length;x8++)
{
this._f294[x8]._f316(this._f29(),this._f31(),
this._f142,this._f144);
}
if(!this._f164)
this._f164=new _f215(this);


this._f190();

this.refreshThemeBasedFOIs(true);
this._f189();
this._f164.refresh(this._f151,this._f152,
this._f153,this._f154,
this._f29(),this._f31());
this._f181=true;
this._f337=true;
if(this._f375!=null&&!this._f117)
for(var x8=0;x8<this._f375.length;x8++)
if(this._f375[x8]!=null)
{
var id="_md_"+this._f376
this._f375[x8].init(id,this);
if(this._f375[x8]._f234)
this._f33.appendChild(this._f375[x8]._f243);
else
 this._f33.appendChild(this._f375[x8]._f233);
this._f376++;
}
if(this._f252!=null&&this._f252._f399==null)
this._f252.init(this)

}

MVMapView.prototype._f400=function()
{
this.tileWidth=this._f352[this._f319];
this.tileHeight=this._f353[this._f319];
this._f401();
}

MVMapView.prototype._f401=function()
{
this._f335=-this.tileWidth*this._f334;
this._f336=-this.tileHeight*this._f334;
var x9=this._f29()/this.tileWidth;
this._f332=parseInt(Math.ceil(x9/2)+1)*2+1;
x9=this._f31()/this.tileHeight;
this._f333=parseInt(Math.ceil(x9/2)+1)*2+1;
this._f338=this._f335+(this._f332/2*this.tileWidth);this._f339=this._f336+(this._f333/2*this.tileHeight);}

MVMapView.prototype._f402=function()
{
this._f341=new _f323(this.msi,this._f142,this._f144,this._f319);this._f340=new _f323(this.msi,this._f142,this._f144,this._f319);this._f340._f327(-(Math.ceil(this._f332/2)-1),+Math.ceil(this._f333/2)-1);
this._f26=this.tileWidth/this._f341._f324;this._f27=this.tileHeight/this._f341._f325;
}

MVMapView.prototype._f190=function()
{
this._f344=this._f340.minX;
this._f345=(this._f340.minY+this._f340._f325);
this._f346=(this._f340.minX+(this._f340._f324*this._f332));
this._f347=(this._f340.minY-(this._f340._f325*(this._f333-1)));

this._f151=this._f403();
this._f152=this._f404();
this._f153=this._f405();
this._f154=this._f406();
}

MVMapView.prototype.display=function()
{
this.init();
if(!this._f374)
{
this._f37();
this._f374=true;
}
this._f117=true;
}


MVMapView.prototype.setCenter=function(x10)
{
this.srid=this.msi.getSrid();
if(x10)
{
if(!(x10.sdo_point))
MVi18n.processLocale("Center point specified is wrong, and it should be a point MVSdoGeometry. Error: setCenter(...) in MapView");

if(this.srid!=x10.srid)
{
x10=this.transformGeom(x10,this.srid);
}
if(!this._f117)
{
this._f142=x10.getPointX();
this._f144=x10.getPointY();
}
else
 {
this._f407=(this._f142-x10.getPointX())*this._f26
this._f408=(this._f144-x10.getPointY())*this._f27*(-1);
this._f409=this._f29();
this._f410=this._f31();
if(Math.abs(this._f407)<=(this._f409+this._f320)&&Math.abs(this._f408)<=(this._f410+this._f321))
{
this._f157=Math.sqrt(this._f407*this._f407+this._f408*this._f408);
this._f411=20;
this._f412=this._f157>((this._f409+this._f410)/4)?300:200;
this._f413=0;
this._f414=0;
this._f415=0;
this.smoothPan();
}
else
 {
this._f142=x10.getPointX();
this._f144=x10.getPointY();
this.display()
}
}
}
}

MVMapView.prototype.setCenterLon=function(x11)
{
this._f142=x11;
}

MVMapView.prototype.setCenterLat=function(x12)
{
this._f144=x12;
}

MVMapView.prototype.setCenterMark=function(x13,x14,x15)
{
if(this._f416!=undefined)
{
this._f33.removeChild(this._f416);
delete this._f416;
}
if(x13==null)
return ;

this.centerMarkUrl=x13;
this.centerMarkW=x14;
this.centerMarkH=x15;

var x16=document.createElement("img");x16.src=x13;
x16.style.zIndex=2000;
x16.style.position="absolute";
x16.style.width=_f19._f199(x14);
x16.style.height=_f19._f199(x15);
x16.style.left=_f19._f199((this._f29()-x14)/2);
x16.style.top=_f19._f199((this._f31()-x15)/2);
this._f33.appendChild(x16);
this._f416=x16;
}

MVMapView.prototype.setZoomLevel=function(x17)
{
if(isNaN(x17))
MVi18n.processLocale("The zoom level specified is not a valid integer! Error: setZoomLevel(...) in MapView");

if(x17<0||x17>this._f363)
MVi18n.processLocale("The zoom level specified is invalid: out of range, and it should be an integer between 0 and "+this._f363+". Error: setZoomLevel(...) in MapView");
if(this._f117)
this.zoomTo(x17);
else
 {
this._f319=x17;
this._f417()._f284(x17);
this._f400();
}
}

MVMapView.prototype.setHomeMap=function(x18,x19)
{
this._f369=x18;
this._f370=x19;
}

MVMapView.prototype._f418=function(x20,x21)
{
this._f320=x20;
this._f321=x21;
}

MVMapView.prototype._f419=function(x22)
{
_f16._f45=MVConfig.defaultJson;
_f16._f48(x22);
this.msi=new _f255(x22._f50);
this.msi.init();
if(this._f319>(this._f417()._f285()-1))
{
this._f319=this._f417()._f285()-1;
}
this._f417()._f284(this._f319);

for(var x23=0;x23<this.msi._f274();x23++)
{
this._f352[x23]=this.msi._f277(this._f319);
this._f353[x23]=this.msi._f278(this._f319);
}
this._f400();
this._f363=this.msi._f274()-1;
this._f402();
}


MVMapView.prototype.getMapBaseURL=function()
{
return this._f378;
}

MVMapView.prototype._f29=function()
{
return this._f33.offsetWidth;
}

MVMapView.prototype._f31=function()
{
return this._f33.offsetHeight;
}

MVMapView.prototype._f403=function()
{
var x24=this._f29()/2;
return (0-x24)/this._f26+this._f142;
}

MVMapView.prototype._f404=function()
{
var x25=this._f31()/2;
return -1.0*(x25-1)/this._f27+this._f144;
}

MVMapView.prototype._f405=function()
{
var x26=this._f29()/2;
return (x26-1)/this._f26+this._f142;
}

MVMapView.prototype._f406=function()
{
var x27=this._f31()/2;
return -1.0*(0-x27)/this._f27+this._f144;
}


MVMapView.prototype.getCenter=function()
{
var x28=MVSdoGeometry.createPoint(this._f142,this._f144,this.srid);
return x28;
}

MVMapView.prototype._f28=function()
{
return this._f142;
}

MVMapView.prototype._f30=function()
{
return this._f144;
}

MVMapView.prototype.getMapWindowBBox=function()
{
this._f190();
var x29=MVSdoGeometry.createRectangle(this._f151,this._f152,
this._f153,this._f154,this.srid);
return x29;
}

MVMapView.prototype.getMouseLocation=function()
{
var x30=MVSdoGeometry.createPoint(this._f342,this._f343,this.srid);
return x30;
}

MVMapView.prototype._f23=function()
{
return this._f342;
}

MVMapView.prototype._f24=function()
{
return this._f343;
}

MVMapView.prototype.getZoomLevel=function()
{
return this._f319;
}

MVMapView.prototype.getBaseDiv=function()
{
return this._f33;
}

MVMapView.prototype._f420=function()
{
return this.div;
}


MVMapView.prototype._f421=function()
{
return this._f341._f325;
}

MVMapView.prototype._f422=function()
{
return this._f341._f324;
}

MVMapView.prototype._f423=function()
{
return this.msi;
}

MVMapView.prototype._f417=function()
{
return this.msi._f268();
}

MVMapView.prototype._f424=function()
{
return this._f344;
}

MVMapView.prototype._f425=function()
{
return this._f345;
}

MVMapView.prototype._f426=function()
{
return this._f346;
}

MVMapView.prototype._f427=function()
{
return this._f347;
}

MVMapView.prototype.getScreenMinLon=function()
{
return this._f151;
}

MVMapView.prototype._f428=function()
{
return this._f152;
}

MVMapView.prototype._f429=function()
{
return this._f153;
}

MVMapView.prototype._f430=function()
{
return this._f154;
}

MVMapView.prototype._f431=function()
{
return this._f26;
}

MVMapView.prototype._f432=function()
{
return this._f27;
}


MVMapView.prototype.zoomIn=function(x31)
{
this.zoomTo(this._f319+1,x31);
}

MVMapView.prototype.zoomOut=function(x32)
{
this.zoomTo(this._f319-1,x32);
}

MVMapView.prototype.zoomTo=function(x33,x34)
{
var x35=this._f319;

if(x33>=this._f363)
{
x33=this._f363;
}
else if(x33<0)
{
x33=0;
}
if(x33==this._f319&&!x34)
{
if(this._f361)
this._f361._f433.style.top=_f19._f199(this._f62*3+3+
this._f66+(this._f58-_f16._f60)*
(this._f363-x33)/this._f363);
return false;
}
this._f250();

this._f319=x33;
_f19._f191(this.div,0,0);
if(this._f164._f165.length>0)
this._f164.deleteInfoWindow(this._f164._f165[0]);
if(this._f361)
this._f361._f433.style.top=_f19._f199(this._f62*3+3+
this._f66+
(this._f58-_f16._f60)*
(this._f363-this._f319)/this._f363);
this._f200=0;
this._f201=0;
this._f302=this._f200;
this._f303=this._f201;
this._f392=0;
this._f393=0;

this._f319=x33;
this._f417()._f284(x33);
this._f400();
var x36=false;
if(x34)
{
this.srid=this.msi.getSrid();
if(!(x34.sdo_point))
MVi18n.processLocale("Center point specified is wrong, and it should be a point MVSdoGeometry. Error: setCenter(...) in MapView");

if(this.srid!=x34.srid)
{
x34=this.transformGeom(x34,this.srid);
}
if(x34.getPointX()!=this._f142||x34.getPointY()!=this._f144)
{
x36=true;
}
this._f142=x34.getPointX();
this._f144=x34.getPointY();
}
this.display();
if(this._f382)
{
this._f356._f434(this);
}
if(x36&&this._f386)
{
this._f386()
}
if(this._f252)
{
this._f252._f435(x35,this._f319,x34);
}
if(this._f385)
{
this._f385(x35,this._f319);
}
return true;
}

MVMapView.prototype.zoomToAtLocation=function(x37,x38)
{
this.srid=this.msi.getSrid();
if(x37.srid&&(this.srid!=x37.srid))
{
x37=this.transformGeom(x37,this.srid);
}
var x39=(this._f142-x37.getPointX())*this._f26;
var x40=(this._f144-x37.getPointY())*this._f27;
var x41=this._f352[x38]/this.msi._f275(x38);
var x42=this._f353[x38]/this.msi._f276(x38);
var x43=x39/x41+x37.getPointX();
var x44=x40/x42+x37.getPointY();

var x45=MVSdoGeometry.createPoint(x43,x44,this.srid);
this.zoomTo(x38,x45);
}


MVMapView.prototype.setCenterAndZoomLevel=function(x46,x47)
{
this.srid=this.msi.getSrid();
if(x46.srid&&(this.srid!=x46.srid))
{
x46=this.transformGeom(x46,this.srid);
}
if(x47==null)
{
x47=this._f319;
}
if(x47==this._f319)
{
this._f407=(this._f142-x46.getPointX())*this._f26
this._f408=(this._f144-x46.getPointY())*this._f27*(-1);
this._f409=this._f29();
this._f410=this._f31();
if(Math.abs(this._f407)<=(this._f409+this._f320)&&Math.abs(this._f408)<=(this._f410+this._f321))
{
this._f157=Math.sqrt(this._f407*this._f407+this._f408*this._f408);
this._f411=20;
this._f412=this._f157>((this._f409+this._f410)/4)?300:200;
this._f413=0;
this._f414=0;
this._f415=0;
this.smoothPan();
return;
}
}
this.zoomTo(x47,x46);
}


MVMapView.prototype.addBaseMapLayer=function(x48)
{
if(x48==null||!(x48.getType&&(x48.getType())=="MVBaseMap"))
{
MVi18n.processLocale("The parameter is not a valid MVBaseMap object. Error: MVMapView.addBaseMapLayer(...)");
return;
}

x48.parent=this;
if(!x48._f49)
{
if(this._f378)
{
if(_f19._f108(this._f378,'/'))
{
x48._f49=this._f378+'mcserver';
}
else
 {
x48._f49=this._f378+'/mcserver';
}
x48._f52=x48.parent._f377;
}
else
 {
MVi18n.processLocale(_f16._f91);
}

}
else
 {
var x49=x48._f49;
x48._f49=x48._f49+'/mcserver';
x48._f52=x48.parent._f377;
if(x49!=x48.parent._f53)
{
x48._f52=x48.parent._f53+"/proxy?rtarget="+x49;
}
}
this._f419(x48);
var x50=false;
var x51=null
for(var x52=0;x52<this._f294.length;x52++)
{
if(this._f294[x52]._f295()==x48._f49&&
this._f294[x52]._f271()==x48._f50)
{
x50=true;
x51=this._f294[x52];
this._f294[x52].visible=x48.isVisible();
}
}
if(!x50)
{
x51=new _f296(this,x48);
this._f294.push(x51);
}
if(this._f117)
{
x51._f316(this._f29(),this._f31(),
this._f142,this._f144);
}
x51=null;
}

MVMapView.prototype.removeBaseMapLayer=function(x53)
{
var x54=0;
for(;x54<this._f294.length;x54++)
{
if(this._f294[x54]._f271()==x53._f50)
{
break;
}
}
var x55=this._f294[x54];
this._f294[x54]=this._f294[this._f294.length-1];
this._f294[this._f294.length-1]=x55;
while(this._f294[this._f294.length-1]._f313.childNodes.length>0)
{
var x56=this._f294[this._f294.length-1]._f313.childNodes[0];
if(x56.tagName=="IMG")
{
x56.src=null;
}
else
 {
x56.style.filter=null;
}
this._f294[this._f294.length-1]._f313.removeChild(x56);
x56=null;
}
this._f294[this._f294.length-1]=null;
this._f294.pop();
}


MVMapView.prototype._f381=function()
{
if(!this._f164)
this._f164=new _f215(this);
this._f129=new _f136(this);
this._f129.setSize(Math.ceil(2*(this._f29())),
Math.ceil(2*(this._f31())));
_f19._f191(this._f129._f172(),
(this._f29()-this._f129._f148())/2,
(this._f31()-this._f129._f150())/2);
}

MVMapView.prototype.addGroupFOI=function(x57)
{
this._f436=0;
this._f437=x57;
this.startAddGroupFOI();

}

MVMapView.prototype.startAddGroupFOI=function()
{
for(var x58=0;x58<11000;x58++)
{
if(this._f436<this._f437.length)
{
this.addFOI(this._f437[this._f436]);
this._f436++;
}
else
 {
this._f437=null;
this._f438=null;
return;
}
}
this.setTimeout("this.startAddGroupFOI()",5);
}

MVMapView.prototype.addFOI=function(x59)
{
if(!x59||!x59.id)
return false;
if(x59.gtype%10==1)
x59._f118=true;
x59.parent=this;
if(x59.id!="")
{
var x60=x59.id.substr(0,3);
if(x60!="-RL")
{
for(var x61=0;x61<this._f129._f137.length;x61++)
{
if(this._f129._f137[x61].id==x59.id)
{
MVi18n.processLocale('ID:"'+x59.id+'" is used, please chose a new ID')
return false;
}
}
}
}
if(x59.gtype%10==1&&!x59.style)
{
x59._f109=x59._f107;
}
if(!x59._f107)
{
if(this._f53)
{
if(_f19._f108(this._f53,'/'))
{
x59._f107=this._f53+'foi';
}
else
 {
x59._f107=this._f53+'/foi';
}
}
else
 {
MVi18n.processLocale(_f16._f91);
return false;
}
}


if(x59._f106.srid&&(x59._f106.srid!=this.srid))
{
x59._f106=this.transformGeom(x59._f106,this.srid);
}
if(x59.gtype%10==1)
{
x59._f113=x59._f106.getFirstPoint();
}
else
 {
x59.elemInfo=x59._f106.sdo_elem_info.toString().split(",");
var x62=x59._f106.sdo_ordinates.toString();
while(x62.indexOf(" ")!=-1)
{
x62=_f19._f202(x62," ","");
}
for(var x61=0;x61<x59.elemInfo.length;x61+=3){
if(x59.elemInfo[x61+2]*1==3){
x62=x59._f131(x62);
break;
}
}
x59._f113=x62.split(",");
}
x59._f114=x59.getMBR();
x59.x=x59._f114[0];
x59.y=x59._f114[3];
if(x59.gtype%10!=1)
{
x59.width=x59._f114[2]-x59._f114[0];
x59.height=x59._f114[3]-x59._f114[1];
}
this._f129._f180(x59);
return true;
}


MVMapView.prototype.getFOI=function(id)
{
return this._f129._f158(id);
}

MVMapView.prototype.removeFOI=function(x63)
{
if(!x63)
return ;
if(x63.id)
this._f129._f179(x63.id);
else
 this._f129._f179(x63);
}

MVMapView.prototype.getAllFOIs=function()
{
return this._f129._f188();
}


MVMapView.prototype._f189=function()
{
this._f190();
if(this._f129!=null)
{
var x64=(this._f129._f148()-
this._f29())*0.5/this._f26;
var x65=(this._f129._f150()-
this._f31())*0.5/this._f27;
_f19._f191(this._f129._f172(),
(this._f29()-this._f129._f148())/2,
(this._f31()-this._f129._f150())/2);
_f19._f191(this._f129.getTopContainer(),
(this._f29()-this._f129._f148())/2,
(this._f31()-this._f129._f150())/2);
this._f129._f189(this._f151-x64,
this._f152-x65,this._f153+x64,
this._f154+x65);
}
}

MVMapView.prototype.removeAllFOIs=function()
{
this._f129._f177();
}


MVMapView.prototype.addRedLineTool=function(x66)
{
if(x66==null)
{
MVi18n.processLocale("The parameter is null. Error: MVMapView.addRedLineTool(...)");
return;
}

x66.parent=this;

if(!x66._f107)
{
if(this._f53)
{
x66._f107=this._f53;
}
else
 {
MVi18n.processLocale(_f16._f91);
}
}
}


MVMapView.prototype.addCircleTool=function(x67)
{
if(x67==null)
{
MVi18n.processLocale("The parameter is null. Error: MVMapView.addCircleTool(...)");
return;
}

this._f33.appendChild(x67.circleDiv);
x67.parent=this;

if(!x67._f3)
{
if(this._f53)
{
x67._f3=this._f53;
}
else
 {
MVi18n.processLocale(_f16._f91);
}
}
}


MVMapView.prototype.addRectangleTool=function(x68)
{
if(x68==null)
{
MVi18n.processLocale("The parameter is null. Error: MVMapView.addRectangleTool(...)");
return;
}

this._f33.appendChild(x68._f439);
x68.parent=this;

if(!x68._f3)
{
if(this._f53)
{
x68._f3=this._f53;
}
else
 {
MVi18n.processLocale(_f16._f91);
}
}
}


MVMapView.prototype.stopMarqueeZoom=function()
{
this._f372=false;
if(this._f373)
{
this._f373.clear();
}
}


MVMapView.prototype.startMarqueeZoom=function(x69)
{
if(!x69||x69=="one_time")
this._f372=false;
else
 this._f372=true;
this.marqueeZoom();
}


MVMapView.prototype.marqueeZoom=function()
{
var x70=this._f373;
if(!x70)
{
x70=new MVRectangleTool(null,null);
this.addRectangleTool(x70);
this._f373=x70;
}
x70.init();
var x71=_f19._f35(x70,function()
{
var x72=Math.abs(this._f7-this._f9);
var x73=Math.abs(this._f8-this._f10);

if(x72>0&&x73>0)
{
var x74=x72*(this.parent._f26);
var x75=x73*(this.parent._f27);

var x76=this.parent._f29();
var x77=this.parent._f31();

var x78=this.parent._f319;
var x79=x78;
var x80=this.parent._f363;

if(x76<x74||x77<x75)
{
for(var x81=(x78-1);x81>=0;--x81)
{
x79=x81;

var x82=(this.parent._f352[x81]/this.parent.msi._f275(x81))*x72;
var x83=(this.parent._f353[x81]/this.parent.msi._f276(x81))*x73;

if(x82<=x76&&x83<=x77)
break;
}
}
else if(x76>x74&&x77>x75)
{
for(var x81=(x78+1);x81<=x80;++x81)
{
var x82=(this.parent._f352[x81]/this.parent.msi._f275(x81))*x72;
var x83=(this.parent._f353[x81]/this.parent.msi._f276(x81))*x73;

if(x82<=x76&&x83<=x77)
x79=x81;
else
 break;
}
}

var x84=(this._f7+this._f9)/2;
var x85=(this._f8+this._f10)/2;
var x86=MVSdoGeometry.createPoint(x84,x85,this.parent.srid);
this.parent.zoomTo(x79,x86);
}
if(this.parent._f372)
{
this.parent.marqueeZoom();
}
});

x70.addEventListener("on_finish",x71);
}


MVMapView.prototype.zoomToRectangle=function(x87)
{
var x88=x87.getMBR();

var x89=Math.abs(x88[0]-x88[2]);
var x90=Math.abs(x88[1]-x88[3]);

var x91=x89*(this._f26);
var x92=x90*(this._f27);

var x93=this._f29();
var x94=this._f31();

var x95=this._f319;
var x96=x95;
var x97=this._f363;

if(x93<x91||x94<x92)
{
for(var x98=(x95-1);x98>=0;--x98)
{
x96=x98;

var x99=(this._f352[x98]/this.msi._f275(x98))*x89;
var x100=(this._f353[x98]/this.msi._f276(x98))*x90;

if(x99<=x93&&x100<=x94)
break;
}
}
else if(x93>x91&&x94>x92)
{
for(var x98=(x95+1);x98<=x97;++x98)
{
var x99=(this._f352[x98]/this.msi._f275(x98))*x89;
var x100=(this._f353[x98]/this.msi._f276(x98))*x90;

if(x99<=x93&&x100<=x94)
x96=x98;
else
 break;
}
}

var x101=(x88[0]+x88[2])/2;
var x102=(x88[1]+x88[3])/2;
var x103=MVSdoGeometry.createPoint(x101,x102,this.srid);
this.zoomTo(x96,x103);
}


MVMapView.prototype._f398=function()
{
this._f190();
var x104=0;
for(x104=0;x104<this._f355.length;x104++)
{
var x105=this._f355[x104];
if(x105._f441._f442)
{
while(x105._f443.childNodes.length>0)
{
x105._f443.removeChild(x105._f443.childNodes[0]);
}
while(x105._f444.childNodes.length>0)
{
x105._f444.removeChild(x105._f444.childNodes[0]);
}
while(this._f384.childNodes.length>0)
{
this._f384.removeChild(this._f384.childNodes[0]);
}
var x106=(x105._f148()-this._f29())*0.5/this._f26;
var x107=(x105._f150()-this._f31())*0.5/this._f27;
var x108=this._f445(this._f151-x106,
this._f152-x107);
var x109=this._f446(this._f153+x106,
this._f154+x107);
var x110=Math.floor((x109.x-x108.x)*this._f26+0.5);
var x111=Math.floor((x109.y-x108.y)*this._f27+0.5);
x105._f447(x110,x111);
x105._f448(this,0,0,1,1,true,true);
return true;
}
}
return false;
}

MVMapView.prototype._f449=function(x112,x113)
{
var x114=x112._f450(this,x113);
x114.style.position="absolute";
if(this._f358==1||this._f358==3)
x114.style.right=_f19._f199(this._f359);
else
 x114.style.left=_f19._f199(this._f359);
if(this._f358==2||this._f358==3)
x114.style.bottom=_f19._f199(this._f360);
else
 x114.style.top=_f19._f199(this._f360);
}


MVMapView.prototype.addThemeBasedFOI=function(x115)
{
if(!x115)
{
MVi18n.processLocale("themeBasedFOI is null")
return ;
}
if(!this._f164)
this._f164=new _f215(this);
for(var x116=0;x116<this._f355.length;x116++)
{
if(_f19._f51(this._f355[x116]._f441.name)==_f19._f51(x115.name))
{
MVi18n.processLocale("theme based FOI layer name is used, please set a new name");
return;
}
}
x115.parent=this;

var x117=new _f451(this,x115);
if(this._f355.length+132<229)
{
x117.div.style.zIndex=this._f355.length+132;
x117._f452=x117.div.style.zIndex-129;
}
else
 {
x117.div.style.zIndex=229;
x117._f452=100;
}
x117.setSize(parseInt(x115._f453*(this._f29())),
parseInt(x115._f454*(this._f31())));
this._f355[this._f355.length]=x117;
if(this._f117)
{
var x118=(x117._f148()-this._f29())*0.5/this._f26;
var x119=(x117._f150()-this._f31())*0.5/this._f27;
var x120=this._f445(this._f151-x118,this._f152-x119);
var x121=this._f446(this._f153+x118,this._f154+x119);
var x122=Math.ceil((x121.x-x120.x)*this._f26);
var x123=Math.ceil((x121.y-x120.y)*this._f27);
x117._f447(x122,x123);
_f19._f191(x117._f172(),Math.ceil((x120.x-this._f151)*this._f26),
-Math.ceil((x121.y-this._f154)*this._f27));

if(x115._f442)
x117._f448(this,x120.x,x120.y,x121.x,x121.y,false,true);
else
 x117._f448(this,x120.x,x120.y,x121.x,x121.y,false);
}
}


MVMapView.prototype.getThemeIndex=function(x124)
{
for(var x125=0;x125<this._f355.length;x125++)
{
if(_f19._f51(this._f355[x125]._f441.name)==_f19._f51(x124.name))
{
return this._f355[x125].div.style.zIndex-129;
}
}
MVi18n.processLocale("no such thembasedfoi layer");
}


MVMapView.prototype.getOrigThemeIndex=function(x126)
{
for(var x127=0;x127<this._f355.length;x127++)
{
if(_f19._f51(this._f355[x127]._f441.name)==_f19._f51(x126.name))
{
return this._f355[x127]._f452;
}
}
MVi18n.processLocale("no such thembasedfoi layer");
}


MVMapView.prototype.setThemeIndex=function(x128,x129)
{
for(var x130=0;x130<this._f355.length;x130++)
{
if(_f19._f51(this._f355[x130]._f441.name)==_f19._f51(x128.name))
{
if(x129>100)
x129=100;
if(x129<1)
x129=1;
this._f355[x130].div.style.zIndex=x129+129;
if(this._f355[x130]._f455==2&&_f16._f43!="IF")
{
this._f384.style.zIndex=x129+129;
}
}
}
}


MVMapView.prototype.setToOrigThemeIndex=function(x131)
{
for(var x132=0;x132<this._f355.length;x132++)
{
if(_f19._f51(this._f355[x132]._f441.name)==_f19._f51(x131.name))
{
this._f355[x132].div.style.zIndex=this._f355[x132]._f452+129;
if(this._f355[x132]._f455==2&&_f16._f43!="IF")
{
this._f384.style.zIndex=this._f355[x132]._f452+129;
}
}
}
}


MVMapView.prototype.getThemeBasedFOI=function(x133)
{
for(var x134=0;x134<this._f355.length;x134++)
{

if(this._f355[x134].getThemeBasedFOI().name==x133)
{
return this._f355[x134].getThemeBasedFOI();
}
}
}


MVMapView.prototype.enableInfoWindowEventPropagation=function(x135)
{
if(!this._f164)
this._f164=new _f215(this);
this._f164.enableEventPropagation(x135);
}


MVMapView.prototype.refreshThemeBasedFOIs=function(x136)
{
if(this._f164)
this._f164._f217();
this._f190();
var x137=0;
for(x137=0;x137<this._f355.length;x137++)
{
var x138=this._f355[x137];
if(x138._f455!=1)
{
while(x138._f443.childNodes.length>0)
{
x138._f443.removeChild(x138._f443.childNodes[0]);
}
while(x138._f444.childNodes.length>0)
{
x138._f444.removeChild(x138._f444.childNodes[0]);
}
while(this._f384.childNodes.length>0)
{
this._f384.removeChild(this._f384.childNodes[0]);
}
}
var x139=(x138._f148()-this._f29())*0.5/this._f26;
var x140=(x138._f150()-this._f31())*0.5/this._f27;
var x141=this._f445(this._f151-x139,
this._f152-x140);
var x142=this._f446(this._f153+x139,
this._f154+x140);
var x143=Math.floor((x142.x-x141.x)*this._f26+0.5);
var x144=Math.floor((x142.y-x141.y)*this._f27+0.5);
x138._f447(x143,x144);

var x145=x138._f441.getFOIData();
if(x145!=null)
{
if(!x138._f441._f457&&(x145[0].gtype%10==1)&&
(x138._f441._f458<this._f319)){
x138._f176();
x138._f441.minx=x138.minX=x141.x;
x138._f441.miny=x138.minY=x141.y;
x138._f441.maxx=x138.maxX=x142.x;
x138._f441.maxy=x138.maxY=x142.y;
x138._f319=this._f319;

var x146=Math.ceil((x138.minX-this._f151)*this._f26);
var x147=-Math.ceil((x138.maxY-this._f154)*this._f27);
_f19._f191(x138._f172(),x146,x147);
x138._f141=this._f142;
x138._f143=this._f144;
for(var x148=0;x148<x145.length;x148++)
{
x138._f459(x145[x148]);
}
continue;
}
}
x138._f448(this,x141.x,x141.y,x142.x,x142.y,x136);
}
}

MVMapView.prototype._f445=function(x149,x150)
{
var x151={"x":0,"y":0};
var x152=Math.floor((x149-this.msi._f168())/this.msi._f275(this._f319));
var x153=Math.floor((x150-this.msi._f169())/this.msi._f276(this._f319));
x151.x=this.msi._f168()+x152*this.msi._f275(this._f319);
x151.y=this.msi._f169()+x153*this.msi._f276(this._f319);
return x151;
}

MVMapView.prototype._f446=function(x154,x155)
{
var x156={"x":0,"y":0};
var x157=Math.floor((x154-this.msi._f168())/this.msi._f275(this._f319));
var x158=Math.floor((x155-this.msi._f169())/this.msi._f276(this._f319));
x156.x=this.msi._f168()+(x157+1)*this.msi._f275(this._f319);
x156.y=this.msi._f169()+(x158+1)*this.msi._f276(this._f319);
return x156;
}

MVMapView.prototype._f460=function()
{
while(this._f355.length>0)
{
this._f355[this._f355.length-1]._f177();
this._f355[this._f355.length-1]=null;
this._f355.pop();
}
while(this._f384.childNodes.length>0)
{
this._f384.removeChild(this._f384.childNodes[0]);
}
}


MVMapView.prototype.removeThemeBasedFOI=function(x159)
{
if(!x159)
return ;
for(var x160=0;x160<this._f355.length;x160++)
{
if(x159==this._f355[x160].getThemeBasedFOI())
{
this._f355[x160]._f177();
this._f355[x160]=this._f355[this._f355.length-1];
this._f355[this._f355.length-1]=null;
this._f355.pop()
break;
}
}
for(var x161=0;x161<this._f384.childNodes.length;x161++)
{
if(this._f384.childNodes[x161].id==x159.name)
{
this._f384.removeChild(this._f384.childNodes[x161]);
x161--;
}
}
}

MVMapView.prototype._f461=function()
{
if(this._f164)
this._f164._f217();
this._f190();
var x162=0;
var x163=false;
for(x162=0;x162<this._f355.length;x162++)
{
var x164=this._f355[x162];
if((
this._f151<x164._f168()||
this._f152<x164._f169()||
this._f153>x164._f170()||
this._f154>x164._f171())&&x164._f441._f457)
{
if(x164._f455!=1)
{
while(x164._f443.childNodes.length>0)
{
x164._f443.removeChild(x164._f443.childNodes[0]);
}
while(x164._f444.childNodes.length>0)
{
x164._f444.removeChild(x164._f444.childNodes[0]);
}
while(this._f384.childNodes.length>0)
{
this._f384.removeChild(this._f384.childNodes[0]);
}
}
var x165=(x164._f148()-this._f29())*0.5/this._f26;
var x166=(x164._f150()-this._f31())*0.5/this._f27;
var x167=this._f445(this._f151-x165,
this._f152-x166);
var x168=this._f446(this._f153+x165,
this._f154+x166);
var x169=Math.floor((x168.x-x167.x)*this._f26+0.5);
var x170=Math.floor((x168.y-x167.y)*this._f27+0.5);
x164._f447(x169,x170);
x164._f448(this,x167.x,x167.y,x168.x,x168.y,true);
}
else if(x164._f462&&x164._f441._f457)
{
x164._f448(this,0,0,0,0,true);
}
}
if(this._f151<this._f129.minX||
this._f152<this._f129.minY||
this._f153>this._f129.maxX||
this._f154>this._f129.maxY)
{
var x165=(this._f129._f148()-this._f29())*0.5/this._f26;
var x166=(this._f129._f150()-this._f31())*0.5/this._f27;
this._f129._f189(this._f151-x165,
this._f152-x166,
this._f153+x165,
this._f154+x166);
}
if(!x163)
{
this._f164.refresh(this._f151,this._f152,this._f153,
this._f154,this._f29(),this._f31());
x163=true;
}
}

MVMapView.prototype.getAllThemeBasedFOIs=function()
{
return this._f355;
}


MVMapView.prototype.displayInfoWindow=function(x171,x172,x173,x174,x175)
{
this._f164._f225(x172,x171.sdo_point.x,x171.sdo_point.y,x173,x174,x175);
}


MVMapView.prototype.setInfoWindow=function(x176,x177,x178)
{
this._f380=x176;
this._f55=x177;
this._f56=x178;
}

MVMapView.prototype._f463=function(x179,x180)
{
_f16._f55=x179;
_f16._f56=x180;
}


MVMapView.prototype.removeInfoWindow=function()
{
if(this._f164._f165.length>0)
this._f164.deleteInfoWindow(this._f164._f165[0]);
}


MVMapView.prototype.addCSTransformFunction=function(x181,x182,x183)
{
if(x181)
this._f366=x181;
this._f367=x182;
this._f368=x183;
}


MVMapView.prototype.transformGeom=function(geometry,_f368,_f49)
{
var request=null;
var _f464;
var _f465;
var _f466;
_f466=this.getDataSource();
if(_f49)
{}
else if(this._f378)
{
if(_f19._f108(this._f378,'/'))
{
_f49=this._f378+'mcserver';
}
else
 {
_f49=this._f378+'/mcserver';
}
}
else
 {
MVi18n.processLocale(_f16._f91);
}
_f465=_f19._f202(geometry.toString(),"null","");
if(geometry.getGType()==1)
{
_f465=_f19._f202(_f465,"SdoPointType","");
}
else
 {
}
_f465=_f19._f202(_f465," ","");
var _f467=_f49+"?request=cstransform&dstsrid="+
_f368+"&geometry="+_f465+"&datasource="+_f466;
try
{
request=_f19.getXMLHttpRequest();
request.open("GET",encodeURI(_f467),false);
request.send("");
}
catch(e)
{
if(e.name)
MVi18n.processLocale("Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale(e);
}
if(request.status==200)
{try
{
eval("var result="+request.responseText);
_f464=result;
if(result.length==0)
{
result=null;
return;
}
result=null;
}
catch(e)
{
MVi18n.processLocale("Cannot process the following response from FOI server:\n"+request.responseText);
return ;
}
}if(_f464.SDO_GTYPE==1)
{
return MVSdoGeometry.createPoint(_f464.SDO_POINT.X,_f464.SDO_POINT.Y,_f464.SDO_SRID);
}
else
 {
return new MVSdoGeometry(2000+_f464.SDO_GTYPE,_f464.SDO_SRID,_f464.SDO_ELEM_INFO,_f464.SDO_ORDINATES,null)
}

}

MVMapView.prototype.getSrid=function()
{
return this.srid;
}


MVMapView.prototype._f468=function()
{
_f19._f203(document.body,"wait");
_f19._f203(this._f33,"wait");
}

MVMapView.prototype._f469=function()
{
_f19._f203(document.body,"");
_f19._f203(this._f33,"");
}

MVMapView.prototype.getDataSource=function()
{
var x184=this.msi._f266();
var x185=x184.split(".");
if(x185.length<2){
return "";
}
else
 return x185[0];
}

MVMapView.prototype.getBaseMap=function()
{
var x186=this.msi._f266();
var x187=x186.split(".");
if(x187.length<2){
return "";
}
else
 return x187[1];
}

MVMapView.prototype._f206=function()
{
var x188="<?xml version=\"1.0\" standalone=\"yes\"?>"
x188=x188+"<map_request datasource=\""+this.getDataSource()+"\" format=\"GIF_URL\" width=\""+this._f29()+"\" height=\""+this._f31()+"\">";
var x189=parseInt(this._f31())/this._f27;
var x190=this.getCenter();
x188=x188+"<center size=\""+x189+"\"><geoFeature render_style=\"\"><geometricProperty typeName=\"center\"><Point><coordinates>"+x190.sdo_point.x+","+x190.sdo_point.y+"</coordinates></Point></geometricProperty></geoFeature></center>";
x188=x188+"<themes>";
x188=x188+"<theme name=\"cached_basemap\"><map_cache_theme map_cache_name=\""+this.getBaseMap()+"\" snap_to_cache_scale=\"true\"/></theme>";
for(var x191=0;x191<this._f355.length;x191++)
{
x188=x188+this._f355[x191]._f206();
}
x188=x188+"</themes>";
x188=x188+this._f129._f206();
x188=x188+"</map_request>";
return x188;
}


MVMapView.prototype._f250=function()
{
this._f33.className=null;
this._f470=null;

if(this._f383)
while(this._f383.childNodes.length>0)
{
var x192=this._f383.childNodes[0];
if(x192.src)
{
x192.src=null;
}
x192.onload=null;
this._f383.removeChild(x192);
_f19._f175(x192);
}

}


MVMapView.prototype._f471=function()
{
this._f33.className=("noprint");
}

MVMapView.prototype.print=function(x193)
{
var x194=this;
if(this._f470)
{
window.print();
}
else if(!this._f472)
{
this._f468();
this._f250();
var x195=this._f206();
_f187=_f19.getXMLHttpRequest();
var x196="";
if(this._f377)
{
if(_f19._f108(this._f377,'/'))
{
x196=this._f377+'omserver';
}
else
 {
x196=this._f377+'/omserver';
}
}
else
 {
MVi18n.processLocale(_f16._f91);
}

_f187.open("POST",x196,true);
_f187.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f187.send("xml_request="+x195);

_f187.onreadystatechange=function()
{
if(_f187.readyState==4)
{
if(_f187.status==200)
{
x194._f383=x193;
var x197=document.createElement("img");
var x198=_f187.responseXML;
x198=x198.getElementsByTagName("map_content")[0];
x197.src=x198.getAttribute("url");
x197.className="printimage";
x194._f383.appendChild(x197);

x197.onload=_f19._f35(x197,function()
{
x194._f471();
if(x194._f375!=null)
for(var x199=0;x199<x194._f375.length;x199++)
{
if(x194._f375[x199]._f235&&x194._f375[x199].visible)
x194._f383.appendChild(x194._f375[x199]._f248());
}
x194._f473(true);
if(x194._f382)
x194._f449(x194._f362,x194._f383)

x194._f469();
window.print();
x194._f472=false;
})
x194._f470=x197;
}
}
}

}
}



MVMapView.prototype._f473=function(x200)
{
var x201=document.createElement("span");
x201.className="copyright";
x201.style.zIndex=1999;
if(typeof x200=="string")
{
x201.innerHTML=" "+x200+" ";
this._f383.appendChild(x201);
}
else if(this._f474!=undefined)
{
x201.innerHTML=" "+this._f474.innerHTML+" ";
this._f383.appendChild(x201);
}
}


MVMapView.prototype.setMouseWheelZoomEnabled=function(x202)
{
this._f371=x202;
this._f37();
}


MVMapView.prototype._f37=function()
{
var x203=this;
var x204=this.getBrowserType();

this._f33.onmouseover=_f19._f35(this._f33,function()
{
_f16._f18=true;
});

this._f33.onmouseout=_f19._f35(this._f33,function(x205)
{
if(x204=="NS"||x204=="OS")
{
x205=(x205)?x205:((window.event)?event:null);

var x206=x205.clientX;
var x207=x205.clientY;

var x208=x203._f29();
var x209=x203._f31();
var x210=_f19._f38(this);

var x211=x205.pageX-x210.x;
var x212=x205.pageY-x210.y;

if(x211<=0||x211>=x208||
x212<=0||x212>=x209||
x206<=0||x206>=document.body.clientWidth||
x207<=0||x207>=document.body.clientHeight)
{
x203._f475(window.event);
_f16._f18=false;
if(x203._f389.contains(37))x203._f389.remove(37);
if(x203._f389.contains(38))x203._f389.remove(38);
if(x203._f389.contains(39))x203._f389.remove(39);
if(x203._f389.contains(40))x203._f389.remove(40);
}
}
else
 {
_f16._f18=false;
if(x203._f389.contains(37))x203._f389.remove(37);
if(x203._f389.contains(38))x203._f389.remove(38);
if(x203._f389.contains(39))x203._f389.remove(39);
if(x203._f389.contains(40))x203._f389.remove(40);
}
});

this.div.onclick=_f19._f35(this.div,function()
{
if(x203._f236)
{
x203._f236();
}
else
 return;
});

document.body.onmousedown=_f19._f35(document.body,function()
{
_f16._f18=false;
});

if(x204=="IF")
{
this._f33.onselectstart=_f19._f35(this._f33,function()
{
if(x203._f221)
return true;
else
 return false;
});
this._f33.oncontextmenu=_f19._f35(this._f33,function()
{
x203._f36(window.event);
if(x203._f387)
{
x203._f387();
}
if(x203._f221)
return true;
else
 return false;
});

if(this._f371)
this._f33.onmousewheel=_f19._f35(this._f33,function()
{
return x203._f476(window.event);
});

this._f33.onmousedown=_f19._f35(this._f33,function()
{
_f19._f20(window.event);
return x203._f477(window.event);
});

this._f33.onmousemove=_f19._f35(this._f33,function()
{
return x203._f478(window.event);
});

this._f33.onmouseup=_f19._f35(this._f33,function()
{
return x203._f475(window.event);
});

this.div.ondblclick=_f19._f35(this.div,function()
{
return x203._f479(window.event);
});

if(!this._f251)
{
document.body.onkeydown=_f19._f35(document.body,function()
{
return x203._f480(window.event);
});

document.body.onkeyup=_f19._f35(document.body,function()
{
return x203._f481(window.event);
});

window.onresize=_f19._f35(window,function()
{
x203._f482(window.event);
if(x203._f252)
{
x203._f252._f253._f482(window.event);
x203._f252._f254();
}
if(x203._f375!=null)
for(var x213=0;x213<x203._f375.length;x213++)
{
if(!x203._f375[x213]._f234)
x203._f375[x213].setPosition(x203._f375[x213]._f233);
}
return false;
});
}

}
else if(x204=="NS")
{
this._f33.oncontextmenu=function(x214)
{
x203._f36(x214);
if(x203._f387)
{
x203._f387();
}
if(x203._f221)
return true;
else
 return false;
};

this._f33.onmousedown=function(x215)
{
x215.stopPropagation();
return x203._f477(x215);
};

this._f33.onmousemove=function(x216)
{
return x203._f478(x216);
};

this._f33.onmouseup=function(x217)
{
return x203._f475(x217);
};

var x218=function(x219)
{
x219.preventDefault();
if(x219.detail<0)x203.zoomIn();
else x203.zoomOut();
}

if(this._f371)
this._f33.addEventListener("DOMMouseScroll",x218,false);

this.div.ondblclick=function(x220)
{
return x203._f479(x220);
};

window.onmouseup=function(x221)
{
return x203._f475(x221);
};
if(!this._f251)
{
window.onkeydown=function(x222)
{
return x203._f480(x222);
};

window.onkeyup=function(x223)
{
return x203._f481(x223);
};



window.onresize=function(x224)
{
x203._f482(x224);
if(x203._f252)
{
x203._f252._f253._f482(x224);
x203._f252._f254();
}
if(x203._f375!=null)
for(var x225=0;x225<x203._f375.length;x225++)
{
if(!x203._f375[x225]._f234)
x203._f375[x225].setPosition(x203._f375[x225]._f233);
}
return false;
};
}

}

if(x204=="OS")
{
this._f33.onmousedown=function()
{
window.event.stopPropagation();
return x203._f477(window.event);
};

this._f33.onmousemove=function()
{
return x203._f478(window.event);
};

this._f33.onmouseup=function()
{
return x203._f475(window.event);
};

this.div.ondblclick=function()
{
return x203._f479(window.event);
};

window.onmouseup=function()
{
return x203._f475(window.event);
};

if(!this._f251)
{
window.onresize=function()
{
x203._f482(window.event);
if(x203._f252)
{
x203._f252._f253._f482(window.event);
x203._f252._f254();
}
if(x203._f375!=null)
for(var x226=0;x226<x203._f375.length;x226++)
{
if(!x203._f375[x226]._f234)
x203._f375[x226].setPosition(x203._f375[x226]._f233);
}
return false;
return false;
};
}
this._f33.onkeypress=function()
{
return x203._f480(window.event);
};

this._f33.onkeyup=function()
{
return x203._f481(window.event);
};
}
}


MVMapView.prototype._f476=function(x227)
{
if(x227.wheelDelta>0)this.zoomIn();
else this.zoomOut();
return false;
}


MVMapView.prototype._f482=function(x228)
{
this._f319=this.getZoomLevel();
if(this._f319>this._f363)
{
this._f319=this._f363;
return ;
}
_f19._f191(this.div,0,0);
this._f200=0;
this._f201=0;
this._f302=this._f200;
this._f303=this._f201;
this._f392=0;
this._f393=0;
this.setZoomLevel(this._f319);
if(this._f416)
{
if(this.centerMarkUrl)
this.setCenterMark(this.centerMarkUrl,this.centerMarkW,this.centerMarkH);
else
 this.setCenterMark(_f16._f92+"center.gif",20,20);
}
if(this._f483)
{
this.addNavigationPanel(this._f484,this._f485,this._f486,this._f487);
}
for(lc=0;lc<this._f355.length;lc++)
{
this._f355[lc].setSize(
parseInt(this._f355[lc]._f441._f453*(this._f29())),
parseInt(this._f355[lc]._f441._f454*(this._f31())));
}
this.display();
if(this._f382)
{
this._f356._f434(this);
}
return false;
}


MVMapView.prototype.getBrowserType=function()
{
return _f16._f43;
}


MVMapView.prototype.enableKeyboardPanning=function(x229)
{
this._f391=x229;
}

MVMapView.prototype._f480=function(x230)
{
if(!_f16._f18||!this._f391)
return true;
if(this._f488==undefined||this.scroll_up==undefined||this._f489==undefined||this._f490==undefined)
{
this._f488=0;
this.scroll_up=0;
this._f489=0;
this._f490=0;
this._f491=0;
}
var x231=(this.getBrowserType()!="OS")?96:48;
if(!x230.shiftKey)
{
switch(x230.keyCode)
{
case 37:this._f488=1;this._f389.add(x230.keyCode);break;
case 38:this.scroll_up=1;this._f389.add(x230.keyCode);break;
case 39:this._f489=1;this._f389.add(x230.keyCode);break;
case 40:this._f490=1;this._f389.add(x230.keyCode);break;
case x231+1:this._f488=1;this._f490=1;
break;
case x231+2:this._f490=1;this._f389.add(x230.keyCode);
break;
case x231+3:this._f489=1;this._f490=1;
break;
case x231+4:this._f488=1;this._f389.add(x230.keyCode);
break;
case x231+5:break;
case x231+6:this._f489=1;this._f389.add(x230.keyCode);
break;
case x231+7:this._f488=1;this.scroll_up=1;
break;
case x231+8:this.scroll_up=1;this._f389.add(x230.keyCode);
break;
case x231+9:this.scroll_up=1;this._f489=1;
break;
default:return true;
}
this._f492();
return false;
}
else
 return true;
}


MVMapView.prototype._f481=function(x232)
{
if(!_f16._f18)return;
var x233=(this.getBrowserType()!="OS")?96:48;
if(x232.shiftKey)
{
switch(x232.keyCode)
{
case 37:this._f389.remove(x232.keyCode);
break;
case 38:this._f389.remove(x232.keyCode);break;
case 39:this._f389.remove(x232.keyCode);
break;
case 40:this._f389.remove(x232.keyCode);break;
default:return true;
}
}
else
 {
switch(x232.keyCode)
{
case 33:this.smoothScroll(0,-this._f31()/2);break;
case 34:this.smoothScroll(0,this._f31()/2);break;
case 35:this.smoothScroll(this._f29()/2,0);break;
case 36:this.smoothScroll(-this._f29()/2,0);break;
case 37:this._f389.remove(x232.keyCode);break;
case 38:this._f389.remove(x232.keyCode);
break;
case 39:this._f389.remove(x232.keyCode);
break;
case 40:this._f389.remove(x232.keyCode);break;
case x233+1:this._f488=0;
this._f490=0;
break;
case x233+2:this._f490=0;
this._f389.remove(x232.keyCode);
break;
case x233+3:this._f489=0;
this._f490=0;
break;
case x233+4:this._f488=0;
this._f389.remove(x232.keyCode);
break;
case x233+5:this._f488=0;
this.scroll_up=0;
this._f489=0;
this._f490=0;
break;
case x233+6:this._f489=0;
this._f389.remove(x232.keyCode);
break;
case x233+7:this._f488=0;
this.scroll_up=0;
break;
case x233+8:this.scroll_up=0;
this._f389.remove(x232.keyCode);
break;
case x233+9:this.scroll_up=0;
this._f389.remove(x232.keyCode);
this._f489=0;
break;
case 107:this.zoomIn();break;
case 187:this.zoomIn();break;
case 109:this.zoomOut();break;
case 189:this.zoomOut();break;
case 61:this.zoomIn();
break;
case 43:this.zoomIn();
break;
case 45:this.zoomOut();
break;
case 95:this.zoomOut();
break;
default:return true;
}
}return false;
}


MVMapView.prototype._f493=function(x234)
{
x234=(x234)?x234:((window.event)?event:null);
var x235=x234.clientX+document.body.scrollLeft-this._f33.offsetLeft;
return x235;
}


MVMapView.prototype._f494=function(x236)
{
x236=(x236)?x236:((window.event)?event:null);
var x237=x236.clientY+document.body.scrollTop-this._f33.offsetTop;
return x237;
}


MVMapView.prototype._f495=function(x238)
{
var x239={left:0,top:0};
if(x238.pageX||x238.pageY)
{
x239.left=x238.pageX-_f19._f38(this._f33).x;
x239.top=x238.pageY-_f19._f38(this._f33).y;
}
else if(x238.clientX||x238.clientY)
{
x239.left=x238.clientX+document.body.scrollLeft-
document.body.clientLeft-_f19._f38(this._f33).x;
x239.top=x238.clientY+document.body.scrollTop-
document.body.clientTop-_f19._f38(this._f33).y;
if(document.body.parentElement&&document.body.parentElement.clientLeft)
{
var x240=document.body.parentElement;
x239.left+=x240.scrollLeft-x240.clientLeft;
x239.top+=x240.scrollTop-x240.clientTop;
}
}
return x239;
}


MVMapView.prototype._f477=function(x241)
{
if(this._f350==false)return;
x241=(x241)?x241:((window.event)?event:null);
if(x241.button==2)
{
return;
}
if(!this._f349&&((_f16._f43=="IF"&&x241.button==1)||
(_f16._f43!="IF"&&x241.button==0)))
_f19._f203(this._f33,"move");
if((_f16._f43!="SF")&&(_f16._f43.indexOf("OS")!=0)&&
((_f16._f43=="IF"&&x241.button==4)||(_f16._f43!="IF"
&&x241.button==1)))
{
_f19._f20(x241);
return false;
}

for(var x242=0;x242<this._f355.length;x242++)
{
if(this._f355[x242]._f140())
{
_f19._f203(this._f33,"wait");
}
}
if((_f16._f43.indexOf("OS")==0)&&x241.button==2)
{
_f496();
}
if(this._f354!=null)
{
clearInterval(this._f354);
this._f354=null;
}
this._f351=this;
var x243=this._f495(x241);
this._f394(x243.left,x243.top);

this._f36(x241);
if(_f16._f39==2)x241.returnValue=false;
if(this._f349)this._f351=null;
this._f497();
return false;
}


MVMapView.prototype._f497=function()
{
this.fetchingMapId=this.setTimeout("this.fetching()",400);
}


MVMapView.prototype.fetching=function()
{
this._f190();
for(var x244=0;x244<this._f294.length;x244++)
this._f294[x244]._f328();
this._f497();
}


function _f496(x0)
{
x0=(x0)?x0:((window.event)?event:null);
_f19._f20(x0);
return false;
}


MVMapView.prototype._f478=function(x245)
{
if(this._f375)
{
var x246=this._f29()/4;
var x247=this._f31()/4;
var x248=this._f142+x246/this._f26;
var x249=this._f144-x247/this._f27;
var x250=_f19.getMouseLocation(this,x245);
var x251=x250.sdo_point.x;
var x252=x250.sdo_point.y;
if(x251>x248&&x252<x249)
{
for(var x253=0;x253<this._f375.length;x253++)
{
if(this._f375[x253]._f234&&
this._f375[x253]._f243.style.visibility!="visible"
)
this._f375[x253]._f243.style.visibility="visible";
}
}
else
 {
for(var x253=0;x253<this._f375.length;x253++)
{
if(this._f375[x253]._f234&&!this._f375[x253]._f244)
this._f375[x253]._f243.style.visibility="hidden";
}
}
}
if(this._f350==false)return;
if(!this._f351||this._f349)return true;
this._f250();
var x254=this._f495(x245);
this._f397(x254.left,x254.top);

if(this._f252)
{
this._f252._f498(this._f302-this._f200,this._f303-this._f201)
}
if(this._f388)
{
this._f388(this._f302-this._f200,this._f303-this._f201);
}
return false;
}


MVMapView.prototype._f475=function(x255)
{
if(this._f350==false)return;
x255=(x255)?x255:((window.event)?event:null);
_f19._f203(this._f33,"default");
if(!this._f351&&!this._f349)return;
this._f351=null;
if(x255)this._f36(x255);

this._f190();
if(this._f348==true)
{
for(var x256=0;x256<this._f294.length;x256++)
this._f294[x256]._f328();
this._f461();
this._f348=false;
if(this._f252)
{
this._f252._f499();
}
if(this._f386)
{
this._f386();
}
}
if(this._f382)
{
this._f356._f434(this);
}
if(this.fetchingMapId!=null)
{
clearTimeout(this.fetchingMapId);
}
this._f250();
}


MVMapView.prototype.setDoubleClickAction=function(x257)
{
if(x257==null||(x257!='recenter'&&x257!='zoomin'))
MVi18n.processLocale("The action specified is not valid ! Error: setDoubleClickAction(...) in MapView");
this.doubleClickAction=x257
}


MVMapView.prototype._f479=function(x258)
{
x258=(x258)?x258:((window.event)?event:null);
if(this.dblclickListener){
this.dblclickListener()
return true;
}
if(this.doubleClickAction=="zoomin")
{
this.zoomIn();
return true;
}
if(this._f349)
{
this._f351=null;
this._f33.style.cursor="default";
return true;
}
this._f33.style.cursor="default";
if(this._f354!=null)
{
clearInterval(this._f354);
this._f354=null;
}
var x259=this._f495(x258);
var x260=x259.left;
var x261=x259.top;
this._f407=this._f29()/2-x260;
this._f408=this._f31()/2-x261;

this._f157=Math.sqrt(this._f407*this._f407+this._f408*this._f408);
this._f411=20;
this._f409=this._f29();
this._f410=this._f31();
this._f412=this._f157>((this._f409+this._f410)/4)?300:200;
this._f413=0;
this._f414=0;
this._f415=0;
this.smoothPan();
}


MVMapView.prototype.smoothScroll=function(x262,x263)
{
if(x262==0&&x263==0)
{
return;
}
if(this._f349)
{
this._f351=null;
this._f33.style.cursor="default";
return true;
}
this._f33.style.cursor="default";

if(this._f354!=null)
{
clearTimeout(this._f354);
this._f354=null;
}
this._f407=x262*(-1);
this._f408=x263*(-1);
this._f157=Math.sqrt(x262*x262+x263*x263);
this._f411=10;
this._f409=this._f29();
this._f410=this._f31();
this._f412=this._f157>((this._f409+this._f410)/4)?300:200;
this._f413=0;
this._f414=0;
this._f415=0;
this.smoothPan();
}


MVMapView.prototype.smoothPan=function()
{
this._f413++;
var x264=this._f413*this._f411/this._f412;
this.targetX=this._f407*(2*x264-x264*x264);
this.targetY=this._f408*(2*x264-x264*x264);
var x265=this._f409/2;
var x266=this._f410/2;
this._f394(x265,x266);
x265=Math.round(this.targetX-this._f414)+this._f409/2;
x266=Math.round(this.targetY-this._f415)+this._f410/2;
this._f397(x265,x266);
if(this._f252)
{
this._f252._f498(this._f302-this._f200,this._f303-this._f201)
}
if(this._f388)
{
this._f388(this._f302-this._f200,this._f303-this._f201);
}
this._f414=this.targetX;
this._f415=this.targetY;

for(i=0;i<this._f294.length;i++)
this._f294[i]._f328();
if(x264<1.0)
{
this._f354=this.setTimeout("this.smoothPan()",this._f411);
}
else
 {
clearTimeout(this._f354);
this._f354=null;
this._f461();
this._f190();
this._f348=false;
if(this._f252)
{
this._f252._f499();
}
if(this._f386)
{
this._f386();
}
if(this._f382)
{
this._f356._f434(this);
}
this._f250();
return false;
}
}


MVMapView.prototype.smoothMove=function(x267,x268)
{
this.targetX=x267*(-1);
this.targetY=x268*(-1);
var x269=this._f29()/2;
var x270=this._f31()/2;
this._f394(x269,x270);
x269=Math.round(this.targetX+this._f29()/2);
x270=Math.round(this.targetY+this._f31()/2);
this._f397(x269,x270);

if(this._f388)
{
this._f388(this._f302-this._f200,this._f303-this._f201);
}

for(i=0;i<this._f294.length;i++)
this._f294[i]._f328();
}

var _f163=0;


MVMapView.prototype.setTimeout=function(_f161,_f162)
{
var Ie="tempVar"+_f163;
_f163++;
eval(Ie+" = this;");
var oi=_f161.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f162);
}


MVMapView.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}


MVMapView.prototype._f492=function(x271,x272)
{
if(!this._f354)
{
this._f354=this.setTimeout("this.arrowScroll()",5)
}
}


MVMapView.prototype.arrowScroll=function()
{
if(this._f349)
{
this._f351=null;
this._f33.style.cursor="default";
return true;
}
this._f33.style.cursor="default";

if(this._f354!=null)
{
clearTimeout(this._f354);
this._f354=null;
}
var x273=(this.getBrowserType()!="OS")?96:48;
if(this._f389.length>0)
{
var x274=((this._f389.contains(37)||this._f389.contains(x273+4))?1:0)+
((this._f389.contains(39)||this._f389.contains(x273+6))?-1:0);

var x275=((this._f389.contains(38)||this._f389.contains(x273+8))?1:0)+
((this._f389.contains(40)||this._f389.contains(x273+2))?-1:0);
this.moveOffsetX=(x274==1?15:0)+(x274==-1?-15:0);
this.moveOffsetY=(x275==1?15:0)+(x275==-1?-15:0);
this._f394(0,0);
this._f397(this.moveOffsetX,this.moveOffsetY);
if(this._f252)
{
this._f252._f498(this._f302-this._f200,this._f303-this._f201)
}
if(this._f388)
{
this._f388(this._f302-this._f200,this._f303-this._f201);
}
for(i=0;i<this._f294.length;i++)
this._f294[i]._f328();
this._f354=this.setTimeout("this.arrowScroll()",5)
}
else
 {
this._f250();
this._f354=null;

this._f461();
this._f190();
this._f348=false;
if(this._f252)
{
this._f252._f499();
}
if(this._f386)
{
this._f386();
}
if(this._f382)
{
this._f356._f434(this);
}
}
}


MVMapView.prototype._f500=function(x276){
var x277=this._f495(x276);
var x278=x277.left;
var x279=x277.top;
if(((_f16._f43=="NS"))&&((x278<=0)||(x278>=
this._f29())||(x279<=0)||(x279>=
this._f31()))&&(this._f351))
{
this._f475();
}
}



MVMapView.prototype._f36=function(x280)
{
var x281=_f19.getMouseLocation(this,x280);
var x282=x281.sdo_point.x;
var x283=x281.sdo_point.y;
defaultStatus="X:"+x282+"  /  Y:"+x283;
this._f342=x282;
this._f343=x283;
}


MVMapView.prototype._f155=function(x284)
{
this._f349=x284;
}


MVMapView.prototype.enableDragging=function(x285)
{
this._f155(!x285);
}




function _f390(x0)
{
this.length=0;
if(x0)
{
for(var x1=x0.length-1;x1>=0;--x1)
{
this.add(x0[x1]);
this.length++;
}
}
}

_f390.prototype.add=function(x286)
{
if(!this.contains(x286))
{
this["key"+x286]=1;
this.length++;
}
}


_f390.prototype.remove=function(x287)
{
if(this.exist(x287))
{
delete this["key"+x287];
this.length--;
}
}


_f390.prototype.contains=function(x288)
{
return this["key"+x288]==1;
}


_f390.prototype.exist=function(x289)
{
return this["key"+x289]==1||this["key"+x289]==2;
}


_f390.prototype.sleep=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=2;
}
}
}


_f390.prototype.wakeup=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=1;
}
}
}

MVMapView.prototype.addMapDecoration=function(x290)
{
if(this._f375==null)
this._f375=new Array();
this._f375.push(x290);
if(this._f117)
{
var id="_md_"+this._f376
x290.init(id,this);
if(x290._f234)
this._f33.appendChild(x290._f243);
else
 this._f33.appendChild(x290._f233);
this._f376++;
}
}


MVMapView.prototype.removeMapDecoration=function(x291)
{
if(x291==null||x291.id==null||this._f375==null)
{
return;
}
for(var x292=0;x292<this._f375.length;x292++)
if(this._f375[x292].id==x291.id)
{
if(this._f375[x292]._f235)
this._f250();
this._f375[x292]=this._f375[this._f375.length-1]
this._f375.pop();
}
var x293=this._f33.childNodes;
for(var x292=0;x292<x293.length;x292++)
if(x293[x292].id==x291.id&&x293[x292].isMapDecoration)
{
var x294=x293[x292];
x294.onclick=null;
x294.onmouseover=null;
x294.onmouseout=null;
this._f33.removeChild(x294);
_f19._f175(x294);
break;
}
}



MVMapView.prototype.addCopyRightNote=function(x295)
{
if(this._f474!=undefined)
{
this._f33.removeChild(this._f474);
delete this._f474;
}
var x296=document.createElement("SPAN");
x296.innerHTML=" "+x295+" ";
x296.style.zIndex=2000;
x296.style.position="absolute";
x296.style.right=_f19._f199(-1);
x296.style.bottom=_f19._f199(-1);
x296.style.fontSize=12;
x296.style.color="black";
x296.style.backgroundColor="";
this._f33.appendChild(x296);
this._f474=x296;
}


MVMapView.prototype.addOverviewMap=function(x297)
{
if(this._f252==null)
this._f252=x297;
else
 return;
if(this._f117)
this._f252.init(this)
}


function _f501(x0,x1,x2,x3,x4,x5)
{
this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.zIndex=x4;
this.div.title=x5;
this.div.style.width=_f19._f199(x2);
this.div.style.height=_f19._f199(x3);
_f19._f331(this.div);
var x6=document.createElement("img");x6.src=x1;
x6.style.zIndex=x4;
x6.style.width=_f19._f199(x2);
x6.style.height=_f19._f199(x3);
this.div.appendChild(x6);
x0.appendChild(this.div);
return this.div;
}


MVMapView.prototype.addNavigationPanel=function(x298,x299,x300,x301)
{
this._f485=x299;
this._f486=x300;
this._f487=x301;

if(this._f483!=undefined)
{
this._f33.removeChild(this._f483);
delete this._f483;
}
this._f483=document.createElement('div');
this._f483.setAttribute('id','control_panel_div');
this._f483.style.position='absolute';
this._f483.className="noprint";
this._f484=x298;
var x302=this;
if(this._f484)
{
if(x298.toLowerCase()=="east")
{
if(this._f485!=false)
{
this._f483.style.left=_f19._f199(this._f29()-80);
}
else
 this._f483.style.left=_f19._f199(this._f29()-50);
}
else
 {
if(this._f485!=false)
{
this._f483.style.left=_f19._f199(10);
}
else
 this._f483.style.left=_f19._f199(30);
}
}
else
 {
this._f483.style.left=_f19._f199(10);
}
this._f483.style.top=_f19._f199(10);
this._f483.style.zIndex=2000;
_f19._f203(this._f483,"pointer");
this._f33.appendChild(this._f483);

this._f61=0;
this._f62=0;
if(this._f485!=false)
{
this._f61=_f16._f61;
this._f62=_f16._f62;

var x303=new _f501(this._f483,_f16._f92+"navicons/nw.gif",
this._f61,this._f62,200,_f16._f77);
_f19._f191(x303,0,0);
x303.onmousedown=_f19._f35(x303,function(x304)
{
x302.smoothScroll((x302._f29()+x302._f31())*(-0.18),(x302._f29()+x302._f31())*(-0.18));
x304=(x304)?x304:((window.event)?event:null);
_f19._f20(x304);
});

var x305=new _f501(this._f483,_f16._f92+"navicons/north.gif",
this._f61,this._f62,2000,_f16._f78);
_f19._f191(x305,this._f61+1,0);
x305.onmousedown=_f19._f35(x305,function(x306)
{
x302.smoothScroll(0,(x302._f29()+x302._f31())*(-0.25));
x306=(x306)?x306:((window.event)?event:null);
_f19._f20(x306);
});

var x307=new _f501(this._f483,_f16._f92+"navicons/ne.gif",
this._f61,this._f62,2000,_f16._f79);
_f19._f191(x307,this._f61*2+2,0);
x307.onmousedown=_f19._f35(x307,function(x308)
{
x302.smoothScroll((x302._f29()+x302._f31())*(0.18),(x302._f29()+x302._f31())*(-0.18));
x308=(x308)?x308:((window.event)?event:null);
_f19._f20(x308);
});

var x309=new _f501(this._f483,_f16._f92+"navicons/west.gif",
this._f61,this._f62,2000,_f16._f80);
_f19._f191(x309,0,this._f62+1);
x309.onmousedown=_f19._f35(x309,function(x310)
{
x302.smoothScroll((x302._f29()+x302._f31())*(-0.25),0);
x310=(x310)?x310:((window.event)?event:null);
_f19._f20(x310);
});

var x311=new _f501(this._f483,_f16._f92+"navicons/east.gif",
this._f61,this._f62,2000,_f16._f81);
_f19._f191(x311,this._f61*2+2,this._f62+1);
x311.onmousedown=_f19._f35(x311,function(x312)
{
x302.smoothScroll((x302._f29()+x302._f31())*(0.25),0);
x312=(x312)?x312:((window.event)?event:null);
_f19._f20(x312);
});

var x313=new _f501(this._f483,_f16._f92+"navicons/sw.gif",
this._f61,this._f62,2000,_f16._f82);
_f19._f191(x313,0,this._f62*2+2);
x313.onmousedown=_f19._f35(x313,function(x314)
{
x302.smoothScroll((x302._f29()+x302._f31())*(-0.18),(x302._f29()+x302._f31())*(0.18));
x314=(x314)?x314:((window.event)?event:null);
_f19._f20(x314);
});

var x315=new _f501(this._f483,_f16._f92+"navicons/south.gif",
this._f61,this._f62,2000,_f16._f83);
_f19._f191(x315,this._f61+1,this._f62*2+2);
x315.onmousedown=_f19._f35(x315,function(x316)
{
x302.smoothScroll(0,(x302._f29()+x302._f31())*(0.25));
x316=(x316)?x316:((window.event)?event:null);
_f19._f20(x316);
});

var x317=new _f501(this._f483,_f16._f92+"navicons/se.gif",
this._f61,this._f62,2000,_f16._f84)
_f19._f191(x317,this._f61*2+2,this._f62*2+2);
x317.onmousedown=_f19._f35(x317,function(x318)
{
x302.smoothScroll((x302._f29()+x302._f31())*(0.18),(x302._f29()+x302._f31())*(0.18));
x318=(x318)?x318:((window.event)?event:null);
_f19._f20(x318);
});
if(x302._f369&&x302._f370){
var x319=new _f501(this._f483,_f16._f92+"navicons/center.gif",
this._f61,this._f62,2000,_f16._f85)
_f19._f191(x319,this._f61+1,this._f62+1);
x319.onmousedown=_f19._f35(x319,function(x320)
{
x302.setCenterAndZoomLevel(x302._f369,x302._f370);
x320=(x320)?x320:((window.event)?event:null);
_f19._f20(x320);
});
}
}
this._f57=0;
this._f58=0;
if(this._f486!=false)
{
this._f57=_f16._f57;
this._f58=_f16._f58;
}

this._f65=0;
this._f66=0;
if(this._f487!=false)
{
this._f65=_f16._f65;
this._f66=_f16._f66;
var x321=new _f501(this._f483,src=_f16._f92+"navicons/zoomin.gif",
this._f65,this._f66,2000,_f16._f88);
_f19._f191(x321,(this._f61*3-this._f65)/2+1,this._f62*3+3);
x321.onmousedown=_f19._f35(x321,function(x322)
{
x302.zoomIn();
x322=(x322)?x322:((window.event)?event:null);
_f19._f20(x322);
});
var x323=new _f501(this._f483,_f16._f92+"navicons/zoomout.gif",
this._f65,this._f66,2000,_f16._f89);
_f19._f191(x323,(this._f61*3-this._f65)/2+1,
this._f62*3+3+this._f66+this._f58+1);
x323.onmousedown=_f19._f35(x323,function(x324)
{
x302.zoomOut();
x324=(x324)?x324:((window.event)?event:null);
_f19._f20(x324);
});
}
if(this._f486!=false)
{
this._f361=new _f502(this);
}
}


function _f502(x0)
{
var x1=x0;
this.div=document.createElement("div");

this._f503=new _f501(this.div,_f16._f92+"navicons/zoombar.gif",
x1._f57,x1._f58,2000,_f16._f86);
_f19._f191(this._f503,(x1._f61*3-x1._f57)/2+1,
x1._f62*3+3+x1._f66);

this._f433=new _f501(this.div,_f16._f92+"navicons/slider.gif",_f16._f59,
_f16._f60,2001,_f16._f87);
_f19._f191(this._f433,(x1._f61*3-_f16._f59)/2+1,
x1._f62*3+3+x1._f66+
(x1._f58-_f16._f60)*
(x1._f363-x1._f319)/x1._f363);

x1._f483.appendChild(this.div);
this._f504=Math.floor(_f16._f60/2);
var x2=function(x3)
{
x3=(x3)?x3:((window.event)?event:null);
x1._f350=false;
var x4=x1._f495(x3);
var x5=x4.top-10-x1._f361._f504;
var x6=x1._f62*3+3+x1._f66+
(x1._f58-_f16._f60)*
(x1._f363-x1._f319)/x1._f363;
if(x5<=x1._f62*3+3+x1._f66+x1._f361._f504)
x5=x1._f62*3+3+x1._f66;
else if(x5>=x1._f62*3+3+x1._f66+
x1._f58-_f16._f60)
x5=x1._f62*3+3+x1._f66+
x1._f58-_f16._f60;
x1._f361._f433.style.top=_f19._f199(x5);
var x7=(x1._f58-_f16._f60);
x7=x7/x1._f363;
var x8=Math.floor((x6-x5)/x7+0.5);
x1._f361._f505=true;
x1.zoomTo(x1._f319+x8);
_f19._f20(x3);
}

var x9=function(x10)
{
x10=(x10)?x10:((window.event)?event:null);
x1._f350=false;
if(!x1._f361._f505)return;
var x11=x1._f495(x10);
var x12=x11.top-10;
if(x1._f62*3+3+x1._f66+x1._f361._f504<=x12&&
x12<=x1._f62*3+3+x1._f66+
x1._f58-x1._f361._f504)
x1._f361._f433.style.top=_f19._f199(x12-x1._f361._f504);
_f19._f20(x10);
}

var x13=function(x14)
{
x14=(x14)?x14:((window.event)?event:null);
x1._f350=true;
x1._f361._f505=false;
var x15=x1._f495(x14);
var x16=x15.top-10-x1._f361._f504;
var x17=x1._f62*3+3+x1._f66+
(x1._f58-_f16._f60)*
(x1._f363-x1._f319)/x1._f363;
if(x16<=x1._f62*3+3+x1._f66+x1._f361._f504)
x16=x1._f62*3+3+x1._f66;
else if(x16>=x1._f62*3+3+x1._f66+
x1._f58-_f16._f60)
x16=x1._f62*3+3+x1._f66+
x1._f58-_f16._f60;
x1._f361._f433.style.top=_f19._f199(x16);
var x18=(x1._f58-_f16._f60);
x18=x18/x1._f363;
var x19=Math.floor((x17-x16)/x18+0.5);
x1.zoomTo(x1._f319+x19);
_f19._f20(x14);
}
var x20=function(x21)
{
x21=(x21)?x21:((window.event)?event:null);
x1._f350=true;
if(x1._f361._f505)
{
x1._f361._f505=false;
x13(x21);
}
return false;
}

this.div.onmousedown=_f19._f35(this.div,x2);
this.div.onmouseup=_f19._f35(this.div,x13);
this.div.onmousemove=_f19._f35(this.div,x9);
this.div.onmouseout=_f19._f35(this.div,x20);

this._f505=false;
}

var p=_f16._f92+"scale/";
var _f506=p+"scale_bar1.png";
var _f507=p+"scale_bar2.png";
var _f508=p+"scale_bar3.png"


MVMapView.prototype.addScaleBar=function(x325,x326,x327,x328)
{
if(x328)
{
this._f356._f509=true;
}
this._f358=x325||this._f358;
this._f359=x326||this._f359;
this._f360=x327||this._f360;
this._f382=true;
this._f449(this._f356);
}


MVMapView.prototype._f510=function(x329,x330,x331)
{
if(!x331)x331=MVSdoGeometry.createPoint(0,0,this.srid);
x331.sdo_point.x=(x329-this._f338)/this._f26+this._f142;
x331.sdo_point.y=this._f144-(x330-this._f339)/this._f27;
if(x331.srid&&x331.srid!=8307)
{
x331=this.transformGeom(x331,8307);
}
while(x331.sdo_point.x<-180)x331.sdo_point.x+=360;
while(x331.sdo_point.x>180)x331.sdo_point.x-=360;
x331.sdo_point.x=(x331.sdo_point.x)*Math.PI/180;
x331.sdo_point.y=(x331.sdo_point.y)*Math.PI/180;
return x331.sdo_point;
}


function _f511(x0,x1,x2,x3,x4)
{
var x5;var x6;var x7;var x8;var x9;var x10;var x11;var x12;var x13;var x14;
var x15;var x16;var x17;var x18;var x19;
var x20;var x21;var x22;var x23;var x24;var x25;
var x26=Math.PI/2.0;

if(x26-Math.abs(x0.y)<1.e-10)
x18=x0.y;
else
 x18=Math.atan(x3*Math.tan(x0.y));
if(x26-Math.abs(x1.y)<1.e-10)
x19=x1.y;
else
 x19=Math.atan(x3*Math.tan(x1.y));
x6=(x18+x19)/2.0;
x7=(x18-x19)/2.0;
x5=Math.abs(x0.x-x1.x);
if(x5>Math.PI)
x5=2.0*Math.PI-x5;
x5/=2.0;
if(x5<5.e-8&&Math.abs(x7)<5.e-8)
return 0.0;
else if((x26-x5<5.e-8&&Math.abs(x6)<5.e-8)||
x26-Math.abs(x7)<5.e-8)
return -1.0;
x20=Math.sin(x6);
x21=Math.cos(x6);
x22=Math.sin(x7);
x23=Math.cos(x7);
x24=Math.sin(x5);
x8=x22*x22+x24*x24*(x23*x23-x20*x20);
x9=Math.acos(1.0-2.0*x8);
x25=Math.sin(x9);
x10=2.0*(1.0-2.0*x8);
x11=2.0*x20*x20*x23*x23/(1.0-x8);
x12=2.0*x22*x22*x21*x21/x8;
x13=x11+x12;
x14=x11-x12;
x15=x9/x25;
x16=4.0*x15*x15;
x17=x16*x10;
var x27=(x17+(x15-(x17-x10)/2.0)*x13);
return x2*x25*(x15-x4*(x15*x13-x14)/4.0+x4*x4*
(x13*x27-x14*(2.0*x16+x10*x14)+x16*x13*x14)/64.0);
}


function _f512(x0,x1,x2,x3)
{
this.fpsLength=x0;
this.metricLength=x1;
this.fpsText=x2;
this.metricText=x3;
}


function _f357(x0)
{
this._f513=x0||125;
this._f509=false;
}


_f357.prototype._f450=function(x332,x333)
{
this.div=document.createElement("div");
this.div.style.zIndex=2000;
this._f514=document.createElement("div");
this._f515=document.createElement("div");
_f19._f516(this.div);
_f19._f516(this._f514);
_f19._f516(this._f515);
this.div.style.height=_f19._f199(40);
this.div.style.width=_f19._f199(125);
this.div.style.fontSize=_f19._f199(5);
var x334=this._f517(x332,this._f513);
var x335=x334.fpsLength;
var x336=x334.metricLength;
var x337=Math.max(x335,x336);

_f19._f518(this._f514,8,2,x337,0,10,11);
_f19._f518(this._f515,8,29,x337,0,10,11);

this._f519(this._f514,x334.fpsText);
this._f519(this._f515,x334.metricText);
this._f520=_f205(_f506,x335,6,3,15,5);
this._f521=_f205(_f507,x336,6,3,21,8);
this._f522=_f205(_f508,Math.abs(x335-x336),6,(x335>x336)?(3+x336):(3+x335),(x335>x336)?21:15,0);

if(x333)
x333.appendChild(this.div);
else
 x332._f33.appendChild(this.div);
this.div.appendChild(this._f520);
this.div.appendChild(this._f521);
this.div.appendChild(this._f522);
this.div.appendChild(this._f514);
this.div.appendChild(this._f515);
this.div.title=_f16._f90;
this._f523();
return this.div;
}


_f357.prototype._f523=function()
{
var x338="black";
this._f514.style.color=x338;
this._f515.style.color=x338;
}


_f357.prototype._f434=function(x339)
{
var x340=this._f517(x339,this._f513);
var x341=Math.max(x340.fpsLength,x340.metricLength);
this._f519(this._f514,x340.fpsText);
this._f519(this._f515,x340.metricText);
this.width=x341+4;
this._f520.style.width=_f19._f199(x340.fpsLength);
this._f521.style.width=_f19._f199(x340.metricLength);
this._f522.left=(x340.fpsLength>x340.metricLength)?x340.metricLength+3:x340.fpsLength+3;
this._f522.top=(x340.fpsLength>x340.metricLength)?21:15;
this._f522.style.left=_f19._f199(this._f522.left);
this._f522.style.top=_f19._f199(this._f522.top);
this._f522.style.width=_f19._f199(Math.abs(x340.metricLength-x340.fpsLength));
this.div.style.width=_f19._f199(x341+4);
this._f515.style.width=_f19._f199(x340.metricLength);
this._f514.style.width=_f19._f199(x340.fpsLength);
}


_f357.prototype._f517=function(x342,x343)
{
var x344;
var x345;
var x346;
var x347;
var x348;
var x349;
var x350=x342.msi._f273();
var x351=x342.msi._f272();
if(x351=='GEODETIC')
{
x344=x342._f510(x342._f338-x343/2,x342._f339);
x345=x342._f510(x342._f338+x343/2,x342._f339);
var x352=6378137.0;
var x353=0.9966471893352525;
var x354=0.0033528106647474805;
x346=_f511(x344,x345,x352,x353,x354);
}
else if(x351=='PROJECTED')
{
if(this._f509==true)
{
var x355=x343/2;
var x356=x342._f142-x355/x342._f26;
var x357=x355/x342._f26+x342._f142;
var x358=x342._f144;
var x359=MVSdoGeometry.createLineString([x356,x358,x357,x358],x342.srid);
x346=x359.getLength(x342._f378+'/foi',"meter",true);
}
else
 {
x346=x350*x343/x342._f26;
}
}
else if(x351=='LOCAL'||(x351=='UNDEFINED'&&x350!=0))
{
x346=x350*x343/x342._f26;
}
else if(x351=='UNDEFINED'&&x350==0)
{
x346=x343/x342._f26;
_f16._f100='';
_f16._f101='';
_f16._f102='';
_f16._f103='';
}
x347=this._f524(x346);
if(x347>=1000)
{
var x360=this._f524(x346/1000);
var x361=x346/1000;
x349=Math.round(this._f513*x360/x361);
x348=x360+" "+_f16._f100;
}
else
 {
x349=Math.round(this._f513*x347/x346);
x348=x347+" "+_f16._f102;
}
var x362=x346/1609.344;
var x363=x346*3.28084;
var x364;
var x365;
if(x362>=1)
{
var x366=this._f524(x362);
x364=Math.round(this._f513*x366/x362);
x365=x366+" "+_f16._f101;
}
else
 {
var x367=this._f524(x363);
x364=Math.round(this._f513*x367/x363);
x365=x367+" "+_f16._f103;
}
return new _f512(x364,x349,x365,x348);
}


_f357.prototype._f524=function(x368)
{
var x369=x368;
if(x369>1)
{
var x370=0;
while(x369>=10){x369=x369/10;x370=x370+1;}
if(x369>=5){x369=5;}
else if(x369>=2){x369=2;}
else {x369=1;}
while(x370>0){x369=x369*10;x370=x370-1;}
}
return x369;
}


_f357.prototype._f519=function(x371,x372)
{
if(x371.innerHTML!=x372)
{
x371.innerHTML=x372;
}
}



function _f222(_f227,x,y,_f110,_width,_height,style,_f219)
{
if(style==null||style=="")
{
style="MVInfoWindowStyle1";
}
if(_width==null||_width<0)_width=0;
if(_height==null||_height<0)_height=0;

this._f219=_f219;
eval(style+".init()");
this._f228=eval(style+".createWindow("+x+","+y+","+_width+","+_height+")");

_f227.appendChild(this._f228);

div=this._f229(_f110,_width);
eval(style+".addContent(div)");

var close=function(){
_f219._f164.deleteInfoWindow(_f227);
}
eval(style+".addCloseButton(close)");
}

_f222.prototype._f229=function(x0,x1)
{
var x2=window.document.createElement("DIV");
x2.className="infowindow";
x2.style.position="absolute";

x2.style.zIndex=3;
x2.innerHTML="<table width="+x1+"px><tr><td > "+x0+"</td></tr></table>";
_f19._f203(x2,"auto");
return x2;
}

_f222.prototype._f230=function(){
_f219._f164.deleteInfoWindow(_f220);
}

_f222.prototype._f231=function()
{
if(this._f228){
this._f228.style.display="none";
}
}

_f222.prototype._f232=function()
{
this._f228.style.display="";
this._f228.style.visibility="visible";
}

_f222.prototype.isVisible=function()
{
return this._f228&&this._f228.style.display!="none";
}



function MVConfig(){}
MVConfig.defaultJson=
[{"mapCache":"elocation",
"coordSys":{"srid":8307,"minX":-180.0,"minY":-90.0,"maxX":180.0,"maxY":90.0},
"zoomLevels":[
{"zoomLevel":0,"zoomName":"level0","tileWidth":11.903910027584242,"tileHeight":11.903910027584242,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":1,"zoomName":"level1","tileWidth":5.115739855693407,"tileHeight":5.115739855693407,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":2,"zoomName":"level2","tileWidth":2.1985045736104674,"tileHeight":2.1985045736104674,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":3,"zoomName":"level3","tileWidth":0.9448133388893613,"tileHeight":0.9448133388893613,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":4,"zoomName":"level4","tileWidth":0.4060364190858847,"tileHeight":0.4060364190858847,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":5,"zoomName":"level5","tileWidth":0.17449465553034638,"tileHeight":0.17449465553034638,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":6,"zoomName":"level6","tileWidth":0.07498987160976968,"tileHeight":0.07498987160976968,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":7,"zoomName":"level7","tileWidth":0.03222626522667606,"tileHeight":0.03222626522667606,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":8,"zoomName":"level8","tileWidth":0.013849008926091507,"tileHeight":0.013849008926091507,"tileImageWidth":250,"tileImageHeight":250}
,{"zoomLevel":9,"zoomName":"level9","tileWidth":0.005951955013792122,"tileHeight":0.005951955013792122,"tileImageWidth":250,"tileImageHeight":250}
]}];


function MVSdoGeometry(x0,x1,x2,x3,x4)
{

this.gtype=x0;

this.srid=x1;
if(x4)
{

this.sdo_point=x4;
}
else

 this.sdo_point=null;

this.sdo_elem_info=x2;

this.sdo_ordinates=x3;

this.mbr=null;
}


MVSdoGeometry.prototype.clone=function()
{
return new MVSdoGeometry(this.gtype,this.srid,this.sdo_elem_info,this.sdo_ordinates,this.sdo_point);
}


MVSdoGeometry.prototype.equals=function(x0)
{
if(x0==null)return false;
if(this.gtype!=x0.gtype)return false;
if(this.srid!=x0.srid)return false;
if(!this.array_equals(this.getPoint(),x0.getPoint()))return false;
if(!this.array_equals(this.sdo_elem_info,x0.sdo_elem_info))return false;
if(!this.array_equals(this.sdo_ordinates,x0.sdo_ordinates))return false;
return true;
}


MVSdoGeometry.prototype.getDimensions=function()
{
return parseInt(this.gtype/1000);
}


MVSdoGeometry.prototype.getFirstPoint=function()
{
if(!this.isPoint())return null;
var x1=[];
if(this.sdo_point!=null)
{
x1[0]=this.sdo_point.x;
x1[1]=this.sdo_point.y;
if(this.getDimensions()>2)x1[2]=this.sdo_point.z;
}
else
 {
for(var x2=0;x2<this.getDimensions();x2++)
x1[x2]=this.sdo_ordinates[x2];
}
return x1;
}

MVSdoGeometry.prototype.getLabelPoint=function()
{
if(this.sdo_point==null)return null;
return [this.sdo_point.x,this.sdo_point.y];
}


MVSdoGeometry.prototype.getLastPoint=function()
{
if(!this.isPoint())return null;
var x3=[];
if(this.sdo_point!=null)
{
x3[0]=this.sdo_point.x;
x3[1]=this.sdo_point.y;
if(this.getDimensions()>2)x3[2]=this.sdo_point.z;
}
else
 {
var x4=this.sdo_ordinates.length-this.getDimensions();
for(var x5=0;x5<this.getDimensions();x5++)
x3[x5]=this.sdo_ordinates[x4+x5];
}
return x3;
}


MVSdoGeometry.prototype.getMBR=function()
{
if(!this.mbr)
{
if(this.isPoint())
this.mbr=new Array(this.getPointX(),this.getPointY(),this.getPointX(),this.getPointY());
else
 {
if(this.sdo_ordinates)
{
var x6;var x7;var x8;var x9;
for(var x10=0;x10<this.sdo_ordinates.length;x10+=2)
{
if(!x6)
{
x6=this.sdo_ordinates[x10];
x8=x6;
x7=this.sdo_ordinates[x10+1];
x9=x7;
}
else
 {
if(this.sdo_ordinates[x10]<x6)
x6=this.sdo_ordinates[x10];
else if(this.sdo_ordinates[x10]>x8)
x8=this.sdo_ordinates[x10];
if(this.sdo_ordinates[x10+1]<x7)
x7=this.sdo_ordinates[x10+1];
else if(this.sdo_ordinates[x10+1]>x9)
x9=this.sdo_ordinates[x10+1];
}
}
this.mbr=new Array(x6,x7,x8,x9);
}
}
}
return this.mbr;
}


MVSdoGeometry.prototype.getNumPoints=function()
{
if(this.isPoint())return 1;
else return this.sdo_ordinates.length/this.getDimensions();
}


MVSdoGeometry.prototype.getOrdinates=function()
{
return this.sdo_ordinates;
}


MVSdoGeometry.prototype.getOrdinatesOfElements=function()
{
var x11=[];
var x12=[];
if(this.sdo_elem_info.length==3)
{
x11[0]=this.sdo_ordinates;
}
else
 {
for(var x13=0;x13<(this.sdo_elem_info.length-3)/3;x13++)
{
var x14=this.sdo_elem_info[3*x13]-1;
var x15=this.sdo_elem_info[3*(x13+1)]-this.sdo_elem_info[3*x13];
for(var x16=0;x16<x15;x16++)
{
x12[x16]=this.sdo_ordinates[x14+x16];
}
x11[x13]=x12;
x12=[];
}
for(var x16=this.sdo_elem_info[this.sdo_elem_info.length-3]-1;x16<this.sdo_ordinates.length;x16++)
{
x12[x16-this.sdo_elem_info[this.sdo_elem_info.length-3]+1]=this.sdo_ordinates[x16];
}
x11[x13]=x12;
}
return x11;
}


MVSdoGeometry.prototype.getPoint=function()
{
if(!this.isPoint())return null;
return this.getFirstPoint();
}


MVSdoGeometry.prototype.getGType=function()
{
return parseInt(this.gtype%10);
}


MVSdoGeometry.prototype.setSrid=function(x17)
{
this.srid=x17;
}


MVSdoGeometry.prototype.isPoint=function()
{
return this.getGType()==1;
}


MVSdoGeometry.prototype.getPointX=function()
{
if(!this.isPoint())return null;
return this.getFirstPoint()[0];
}


MVSdoGeometry.prototype.getPointY=function()
{
if(!this.isPoint())return null;
return this.getFirstPoint()[1];
}


MVSdoGeometry.prototype.toString=function()
{
var x18="SdoGeometry(";
x18+=this.gtype+",";
x18+=this.srid+",";
x18+=this.sdo_point+",";
if(this.sdo_elem_info!=null)x18+="("+this.sdo_elem_info+"),";
else x18+=",";
if(this.sdo_ordinates!=null)x18+="("+this.sdo_ordinates+"))";
else x18+=")";
return x18;
}


MVSdoGeometry.prototype.array_equals=function(x19,x20)
{
if(x19==null&&x20==null)return true;
if(x19==null||x20==null)return false;
if(x19.length!=x20.length)return false;
for(var x21=0;x21<x19.length;x21++)
{
if(x19[x21]!=x20[x21])return false;
}
return true;
}


MVSdoGeometry.createPoint=function(x22,x23,x24)
{
return new MVSdoGeometry(2001,x24,null,null,new MVSdoPointType(x22,x23,null));
}


MVSdoGeometry.createLineString=function(x25,x26)
{
return new MVSdoGeometry(2002,x26,[1,2,1],x25,null);
}


MVSdoGeometry.createPolygon=function(x27,x28)
{
return new MVSdoGeometry(2003,x28,[1,1003,1],x27,null);
}


MVSdoGeometry.createRectangle=function(x29,x30,x31,x32,x33)
{
if(x29==x31||x30==x32)
{
alert("invalid rectangle coordinates!");
return null;
}
var x34;
if(x29>x31)
{
x34=x31;
x31=x29;
x29=x34;
}
if(x30>x32)
{
x34=x32;
x32=x30;
x30=x34;
}
return new MVSdoGeometry(2003,x33,[1,1003,1],[x29,x30,x29,x32,x31,x32,x31,x30,x29,x30],null);
}


MVSdoGeometry.createCircle=function(x35,x36,x37,x38)
{
return new MVSdoGeometry(2003,x38,[1,1003,4],[x35+x37,x36,x35,x36+x37,x35-x37,x36],null);
}


MVSdoGeometry.prototype.getRequestURL=function(x39)
{
var x40=String(document.location);
var x41=x40.indexOf("//");
if(x41<0)
{
MVi18n.processLocale("Not a valid http request");
}
else
 {
var x42=x40.substring(x41+2);
var x43=x42.indexOf("/");
if(x43<0)
{
MVi18n.processLocale("No hostname in http request");
}
else
 {
x40=x40.substring(0,x41+x43+2)+"/mapviewer";
}
}
if(_f19._f108(x39,'/'))
x39=x39.substring(0,x39.length-1);
var x44="";
var x45=x40+'/foi';
if(x45!=x39)
x44=x40+"/proxy?rtarget="+x39+"&";
else
 x44=x45+"?";
return x44;
}


MVSdoGeometry.prototype.getLength=function(unit,_f509,foiURL)
{
var request=null;
var _f464;
var _f465=_f19._f202(this.toString(),"null","");
if(this.gtype%10!=2&&this.gtype%10!=6)
{
alert("Not a legal line");
}
else
 {
_f465=_f19._f202(_f465," ","");
}
if(!foiURL)
foiURL=_f16._f105();
var _f547=this.getRequestURL(foiURL);
_f547+="request=getlength&version=1.1&figord="+_f465+"";
if(unit)
{
_f547=_f547+"&unit="+unit;
}
if(_f509)
{
var trans=(_f509==true)?"yes":"no";
_f547=_f547+"&togeodetic="+trans;
}
try
{
request=_f19.getXMLHttpRequest();
request.open("GET",encodeURI(_f547),false);
request.send("");
}
catch(e)
{
if(e.name)
alert("Error name: "+e.name+". Error message: "+e.message);
else
 alert(e);
}
if(request.status==200)
{try
{
eval("var result="+request.responseText);
_f464=result;
if(result.length==0)
{
result=null;
return;
}
result=null;
}
catch(e)
{
alert("Cannot process the following response from FOI server:\n"+request.responseText);
return ;
}
}return _f464;
}

MVSdoGeometry.prototype.getArea=function(unit,_f509,foiURL)
{
var request=null;
var _f464;
var _f465=_f19._f202(this.toString(),"null","");
if(this.gtype%10!=3&&this.gtype%10!=7)
{
alert("Not a legal polygon")
}
else
 {
_f465=_f19._f202(_f465," ","");
}
if(!foiURL)
foiURL=_f16._f105();
var _f547=this.getRequestURL(foiURL);
_f547+="request=getarea&version=1.1&figord="+_f465+"";
if(unit)
{
_f547=_f547+"&unit="+unit;
}
if(_f509)
{
var trans=(_f509==true)?"yes":"no";
_f547=_f547+"&togeodetic="+trans;
}
try
{
request=_f19.getXMLHttpRequest();
request.open("GET",encodeURI(_f547),false);
request.send("");
}
catch(e)
{
if(e.name)
alert("Error name: "+e.name+". Error message: "+e.message);
else
 alert(e);
}
if(request.status==200)
{try
{
eval("var result="+request.responseText);
_f464=result;
if(result.length==0)
{
result=null;
return;
}
result=null;
}
catch(e)
{
alert("Cannot process the following response from FOI server:\n"+request.responseText);
return ;
}
}return _f464;
}


function MVSdoPointType(x0,x1,x2)
{

this.x=x0;

this.y=x1;

this.z=x2;
}


MVSdoPointType.prototype.toString=function()
{
var x46="SdoPointType( ";
x46+=this.x+", ";
x46+=this.y+", ";
x46+=this.z+" )";
return x46;
}

function MVOverviewMap(x0,x1,x2)
{

this._f525=x0;

this._f525._f251=true;

this._f399=null;

this._f527=x1;

this._f253=null;

this._f526=x2;

this._f528=false;

this._f159=0;

this._f160=0;

this.coords=null;

this._f529=false;

this._f530=false;

this.borderStyle="2px solid red";

this.backgroundColor="red";
}


MVOverviewMap.prototype.init=function(x0)
{
this._f399=x0
var x1=this._f399.getZoomLevel()-this._f527;
if(x1<0)
x1=0;
this._f253=new MVMapView(this._f525,this._f399._f378);

if(this._f526==null)
{
var x2=this._f399._f294[0]._f295();
var x3=x2.length;
var x4=x2.substring(0,x3-9);
this._f526=new MVBaseMap(this._f399._f294[0]._f271(),x4);
}
this._f253.addBaseMapLayer(this._f526);
var x5=this._f399.getCenter();
this._f253.setCenter(x5);
this._f253.setZoomLevel(x1);
this._f253._f251=true;
this._f253.display();

this._f531=document.createElement("div");
this._f254()
this._f253._f33.appendChild(this._f531);
this._f531.style.zIndex=10000;
var x6=this;
var x7=function(x8,x9)
{
if(!x6._f530)
{
x6._f531.style.left=(parseInt(x6._f531.style.left)-x8)+"px";
x6._f531.style.top=(parseInt(x6._f531.style.top)-x9)+"px";
}
}

var x10=function(x11,x12)
{
var x13=x11-x12;
if(x12>x11&&x6._f399._f365)
{
x6._f253._f365=false;
x6._f399.zoomTo(x6._f399.getZoomLevel()-x13);
x6._f254();

}
else if(x12<x11&&x6._f399._f365)
{
x6._f253._f365=false;
if(x6._f399.getZoomLevel()-x11==x6._f527){
x6._f399.zoomTo(x6._f399.getZoomLevel()-x13);
}
else{
x6._f399.zoomTo(x11-x13+x6._f527);
}
x6._f254();
}
x6._f399._f365=true;
}

var x14=function()
{
if(!x6._f530)
{
x6._f529=true;
x6._f399.setCenterAndZoomLevel(x6._f253.getCenter());
x6._f254();
}
x6._f530=false;
}
this._f253.addEventListener("moving",x7);
this._f253.addEventListener("recenter",x14);
this._f253.addEventListener("zoom",x10);
}


MVOverviewMap.prototype._f254=function()
{
var x15=this._f399.msi._f275(this._f399.getZoomLevel())/this._f253.msi._f275(this._f253.getZoomLevel())*this._f399._f29();
var x16=this._f399.msi._f276(this._f399.getZoomLevel())/this._f253.msi._f276(this._f253.getZoomLevel())*this._f399._f31();
this._f531.style.position="absolute";
this._f531.style.overflow="hidden";
this._f531.style.zIndex=10000
this._f531.style.left=((this._f253._f29()-x15)/2)+"px";
this._f531.style.top=((this._f253._f31()-x16)/2)+"px";
this._f531.style.width=x15+"px";
this._f531.style.height=x16+"px";
this._f531.style.border=this.borderStyle;

if(_f16._f43=='NS')
this._f531.innerHTML="<div  style='width: "+x15+"px; height: "+x16
+"px;opacity: 0.3;background-color:"+this.backgroundColor+";'></div>";
else if(_f16._f43=='IF')
this._f531.innerHTML="<div  style='width: "+x15+"px; height: "+x16
+"px;filter:alpha(opacity=30);background-color:"+this.backgroundColor+";'></div>";
var x17=this;
if(x15>this._f253._f29()||x16>this._f253._f31())
this._f531.style.visibility="hidden";
else
 this._f531.style.visibility="visible";
var x17=this;
this._f531.onmousedown=_f19._f35(this._f531,function(x18){
x18=(x18)?x18:((window.event)?event:null);
if(x18.button==2)
{
return;
}
x17.coords=x17._f253._f495(x18)
x17._f528=true;
_f19._f20(x18);
x17._f159=0;
x17._f160=0;
})

this._f531.onmouseup=_f19._f35(this._f531,function(x19)
{
x19=(x19)?x19:((window.event)?event:null);
x17._f528=false;
x19.cancelBubble=true;
this._f532();
})

this._f531._f532=_f19._f35(this._f531,function()
{
var x20=parseInt(this.style.left)+parseInt(this.style.width)/2;
var x21=parseInt(this.style.top)+parseInt(this.style.height)/2;

var x22=x17._f253;
var x23=x20-x22._f29()/2;
x23=x23/x22._f26;
var x24=x21-x22._f31()/2;
x24=x24/x22._f27;

var x25=x17._f253._f28()+x23;
var x26=x17._f253._f30()-x24;

var x27=MVSdoGeometry.createPoint(x25,x26,x17._f253.srid);
x17._f253.setCenterAndZoomLevel(x27);
})

window.document.onmouseup=_f19._f35(window.document,function()
{
if(x17._f528){
x17._f528=false;
x17._f531._f532();
}
});

this._f531.onmousemove=_f19._f35(this._f531,function(x28)
{
x28=(x28)?x28:((window.event)?event:null);
if(x17._f528)
{
var x29=x17._f253._f495(x28);
x=x29.left-x17.coords.left;
y=x29.top-x17.coords.top;
x17.coords=x29;
this.style.left=(parseInt(this.style.left)+x)+"px";
this.style.top=(parseInt(this.style.top)+y)+"px";

x28.cancelBubble=true;
}

})
}


MVOverviewMap.prototype._f498=function(x30,x31)
{
var x32=x30*this._f399.msi._f275(this._f399.getZoomLevel())/this._f253.msi._f275(this._f253.getZoomLevel());
var x33=x31*this._f399.msi._f276(this._f399.getZoomLevel())/this._f253.msi._f276(this._f253.getZoomLevel());

if(x32>=0)
x32=x32+0.5;
else
 x32=x32-0.5;

if(x33>=0)
x33=x33+0.5;
else
 x33=x33-0.5


if(!this._f529)
{
this._f530=true;
this._f531.style.left=(parseInt(this._f531.style.left)+x32)+"px";
this._f531.style.top=(parseInt(this._f531.style.top)+x33)+"px";
}
}


MVOverviewMap.prototype._f499=function()
{
if(!this._f529)
{
this._f530=true;
this._f253.setCenterAndZoomLevel(this._f399.getCenter());
this._f254();
}
this._f529=false;
}


MVOverviewMap.prototype._f435=function(x34,x35,x36)
{
var x37=x34-x35;
if(x35>=x34&&this._f253._f365)
{
this._f399._f365=false;
if(x34-this._f253.getZoomLevel()==this._f527){
this._f253.zoomTo(this._f253.getZoomLevel()-x37,x36);
}
else {
this._f253.zoomTo(x34-x37-this._f527,x36);
}
this._f254();
}
else if(x35<x34&&this._f253._f365)
{
this._f399._f365=false;
this._f253.zoomTo(this._f253.getZoomLevel()-x37,x36);
this._f254();
}
this._f253._f365=true;
}


MVOverviewMap.prototype.setRectangleStyle=function(x38,x39)
{
this.borderStyle=x38;
this.backgroundColor=x39;
}



function MVInfoWindowStyle1()
{
}

MVInfoWindowStyle1.init=function()
{
this.window=null;
this.windowDiv=null;
this.iw="/mapviewer/fsmc/images/infoicons/";
this.iw_arrow=this.iw+"arrow.gif";
this.iw_h=this.iw+"hline.gif";
this.iw_v=this.iw+"vline.gif";
this.iw_c=this.iw+"iw_c.gif";

this.closeImg=this.iw+"close.gif";

this._f67=600;
this._f68=600;
this._f69=30;
this._f70=16;
this._f71=600;
this._f72=1;
this._f73=1;
this._f74=600;
this._f75=1;
this._f76=10;
}

MVInfoWindowStyle1.createWindow=function(x0,x1,x2,x3)
{
this.window=new Object();
this.window.arrow=_f205(this.iw_arrow,this._f69,this._f70,1,this._f76,0);
this.window.n=_f205(this.iw_h,x2+1,1,this._f69+1,0,0);
this.window.s=_f205(this.iw_h,x2+1,1,this._f69+1,x3+1,0);
this.window.e=_f205(this.iw_v,1,x3+1,x2+this._f69+1,1,0);
this.window.wu=_f205(this.iw_v,1,this._f76,this._f69,0,0);
this.window.wd=_f205(this.iw_v,1,x3-this._f70-this._f76+2,this._f69+1,this._f70+this._f76,0);
this.window.c=_f205(this.iw_c,x2,x3,this._f69+1,1,0);
this.windowDiv=window.document.createElement("div");
this.windowDiv=window.document.createElement("div");
this.windowDiv.style.position="relative";
this.windowDiv.style.left=_f19._f199(x0);
this.windowDiv.style.top=_f19._f199(x1);
this.windowDiv.appendChild(this.window.n);
this.windowDiv.appendChild(this.window.s);
this.windowDiv.appendChild(this.window.e);
this.windowDiv.appendChild(this.window.wu);
this.windowDiv.appendChild(this.window.c);
this.windowDiv.appendChild(this.window.wd);
this.windowDiv.appendChild(this.window.arrow);
this.width=x2;
return this.windowDiv;
}

MVInfoWindowStyle1.addCloseButton=function(x4)
{
this.closeButton=_f205(this.closeImg,15,15,this.width-1,10,4);
this.closeButton.style.position="absolute";
_f19._f203(this.closeButton,"pointer");
this.windowDiv.appendChild(this.closeButton);

this.closeButton.onclick=_f19._f35(this.closeButton,
function(){x4();});
}

MVInfoWindowStyle1.addContent=function(x5)
{
x5.style.left=_f19._f199(50);
x5.style.top=_f19._f199(25);
this.windowDiv.appendChild(x5);
}


function MVInfoWindowStyle2()
{
}

MVInfoWindowStyle2.init=function()
{
this.window=null;
this.windowDiv=null;
this.iw="/mapviewer/fsmc/images/infoicons/";
this.iw_arrow=this.iw+"arrow_circle.gif";
this.iw_h=this.iw+"h.gif";
this.iw_v=this.iw+"v.gif";
this.iw_c=this.iw+"iw_c.gif";
this.iw_c1=this.iw+"iw_n.gif";
this.iw_c2=this.iw+"iw_s.gif";
this.iw_nw=this.iw+"tl.gif";
this.iw_sw=this.iw+"bl.gif";
this.iw_ne=this.iw+"tr.gif";
this.iw_se=this.iw+"br.gif";
this.closeImg=this.iw+"close_circle.gif";

this.cornerwidth=25;
this.cornerheight=25;
this.arrowwidth=41;
this.arrowheight=40;
this.arrowendheight=20;
}

MVInfoWindowStyle2.createWindow=function(x0,x1,x2,x3)
{
this.window=new Object();
this.window.arrow=_f205(this.iw_arrow,this.arrowwidth+2,this.arrowheight,1,7,0);
this.window.e=_f205(this.iw_v,1,x3+1-this.cornerheight*2,x2+this.arrowwidth,this.cornerheight,0);
this.window.w=_f205(this.iw_v,1,x3-this.cornerheight*2-20,this.arrowwidth,this.arrowendheight+this.cornerheight,0);
this.window.wu=_f205(this.iw_nw,this.cornerwidth,this.cornerheight,this.arrowwidth,0,0);
this.window.wd=_f205(this.iw_sw,this.cornerwidth,25,this.arrowwidth,x3+1-this.cornerheight,0);

this.window.eu=_f205(this.iw_ne,this.cornerwidth,this.cornerheight,x2+this.arrowwidth+1-this.cornerwidth,0,0);
this.window.ed=_f205(this.iw_se,this.cornerwidth,25,x2+this.arrowwidth+1-this.cornerwidth,x3+1-this.cornerheight,0);
this.window.c=_f205(this.iw_c,x2-1,x3+1-this.cornerheight*2,this.arrowwidth+1,this.cornerheight,0);
this.window.cu=_f205(this.iw_c1,x2+1-this.cornerwidth*2,this.cornerheight,this.arrowwidth+this.cornerwidth,0,0);
this.window.cd=_f205(this.iw_c2,x2+1-this.cornerwidth*2,25,this.arrowwidth+this.cornerwidth,x3-this.cornerheight+1,0);
this.windowDiv=window.document.createElement("div");
this.windowDiv.style.position="relative";
this.windowDiv.style.left=_f19._f199(x0-1);
this.windowDiv.style.top=_f19._f199(x1+2);
this.windowDiv.appendChild(this.window.e);
this.windowDiv.appendChild(this.window.wu);
this.windowDiv.appendChild(this.window.w);
this.windowDiv.appendChild(this.window.cu);
this.windowDiv.appendChild(this.window.c);

this.windowDiv.appendChild(this.window.cd);
this.windowDiv.appendChild(this.window.wd);
this.windowDiv.appendChild(this.window.ed);
this.windowDiv.appendChild(this.window.eu);
this.windowDiv.appendChild(this.window.arrow);
this.width=x2;
return this.windowDiv;
}

MVInfoWindowStyle2.addCloseButton=function(x4)
{
this.closeButton=_f205(this.closeImg,16,16,this.width+10,10,4);
this.closeButton.style.position="absolute";
this.closeButton.onclick=_f19._f35(this.closeButton,
function(){x4();});
_f19._f203(this.closeButton,"pointer");
this.windowDiv.appendChild(this.closeButton);
}

MVInfoWindowStyle2.addContent=function(x5)
{
x5.style.left=_f19._f199(55);
x5.style.top=_f19._f199(17);
this.windowDiv.appendChild(x5);
}

MVInfoWindowStyle2.getWindow=function()
{
return this.windowDiv;
}







function MVNSDP(x0)
{

this.nsdp_id=x0;
this.nsdp_theme=null;
this.nsdp_keycol=null;
this.nsdp_rendersty=null;
this.nsdp_labelsty=null;
this.nsdp_params=null;
this.nsdp_timeout=20;
}


MVNSDP.prototype.setTheme=function(x0)
{
this.nsdp_theme=x0;
}


MVNSDP.prototype.setKeyColumn=function(x1)
{
this.nsdp_keycol=x1;
}


MVNSDP.prototype.setRenderStyle=function(x2)
{
this.nsdp_rendersty=x2;
}


MVNSDP.prototype.setLabelStyle=function(x3)
{
this.nsdp_labelsty=x3;
}


MVNSDP.prototype.setParameters=function(x4)
{
this.nsdp_params=x4;
}


MVNSDP.prototype.setTimeout=function(x5)
{
this.nsdp_timeout=x5;
}


MVNSDP.prototype.getFlatString=function()
{
var x6="{";
x6+="\"nsdp_id\":"+"\""+this.nsdp_id+"\",";
x6+="\"nsdp_theme\":"+"\""+this.nsdp_theme+"\",";
x6+="\"nsdp_keycol\":"+"\""+this.nsdp_keycol+"\",";
if(this.nsdp_rendersty!=null)
x6+="\"nsdp_rendersty\":"+"\""+this.nsdp_rendersty+"\",";
if(this.nsdp_labelsty!=null)
x6+="\"nsdp_labelsty\":"+"\""+this.nsdp_labelsty+"\",";
x6+="\"nsdp_timeout\":"+"\""+this.nsdp_timeout+"\"";

if(this.nsdp_params==null)
{
return x6+="}";
}

x6+=",\"nsdp_params\":[";
var x7=0;
for(p in this.nsdp_params)
{
x6+="{"+"\""+p+"\":"+"\""+this.nsdp_params[p]+"\"},";
x7++;
}

if(x7>0)
x6=x6.substr(0,x6.length-1);

x6+="]}";
return x6;
}







function MVStyleColor(x0,x1,x2)
{

this.name=x0;

this.type="color";

this.description=null;

if(x1==null)

this.fill=null;
else if(x1.charAt(0)=='#')

this.fill=x1.substring(1,x1.length);
else

 this.fill=x1;


this.fill_opacity=255;

if(x2==null)

this.stroke=null;
else if(x2.charAt(0)=='#')

this.stroke=storke.substring(1,x2.length);
else

 this.stroke=x2;


this.stroke_opacity=255;

this.stroke_width=1;
}


MVStyleColor.prototype.setStroke=function(x0)
{
if(x0==null)
this.stroke=null;
else if(x0.charAt(0)=='#')
this.stroke=storke.substring(1,x0.length);
else
 this.stroke=x0;
}


MVStyleColor.prototype.setStrokeOpacity=function(x1)
{
this.stroke_opacity=x1;
}


MVStyleColor.prototype.setFill=function(x2)
{
if(x2==null)
this.fill=null;
else if(x2.charAt(0)=='#')
this.fill=x2.substring(1,x2.length);
else
 this.fill=x2;
}



MVStyleColor.prototype.setFillOpacity=function(x3)
{
this.fill_opacity=x3;
}


MVStyleColor.prototype.setDescription=function(x4)
{
this.description=x4;
}


MVStyleColor.prototype.setStrokeWidth=function(x5)
{
this.stroke_width=x5;
}


MVStyleColor.prototype.getXMLString=function()
{


var x6=(this.stroke==null)?"":"stroke:0x"+this.stroke+";";
var x7=(this.fill==null)?"":"fill:0x"+this.fill+";";
var x8=this.stroke_opacity<255?"stroke-opacity:"+this.stroke_opacity+";":"";
var x9=this.fill_opacity<255?"fill-opacity:"+this.fill_opacity+";":"";
var x10=this.stroke_width!=1?"stroke-width:"+this.stroke_width:"";

var x11='<style+name="'+this.name+'">'+
'<svg+width="1in"+height="1in">'+
'<g+class="color"+style="'+x6+x8+x7+x9+x10+'">'+
'</g></svg></style>';
return x11;

}








function MVBucketSeries(x0)
{

this._f1=null;

this._f2=new Array();

this._f0=x0;
if(x0!="SCHEME_CUSTOM"&&x0!="SCHEME_EQUAL_INTERVAL")
this._f0="SCHEME_CUSTOM";
}


MVBucketSeries.prototype.setBuckets=function(x0)
{
this._f2=x0;
}


MVBucketSeries.prototype.getBuckets=function()
{
return this._f2;
}


MVBucketSeries.prototype.getScheme=function()
{
return _f0;
}


MVBucketSeries.prototype.setDefaultRenderingStyle=function(x1)
{
this._f1=x1;
}


MVBucketSeries.prototype.getXMLString=function()
{
var x2=(this._f1==null)?"":'+default_style="'+this._f1+'"+';
var x3="<Buckets"+x2+">";

for(var x4=0;x4<this._f2.length;x4++)
{
var x5=this._f2[x4];
if(x5!=null)
x3+=x5.getXMLString();
}

x3+="</Buckets>";

return x3;
}







function MVBucketStyle(x0,x1)
{

this.name=x0;

this._f2=x1;
}


MVBucketStyle.prototype.getXMLString=function()
{
var x0='<style name="'+this.name+'"><AdvancedStyle><BucketStyle>';
x0+=this._f2.getXMLString()+"</BucketStyle></AdvancedStyle></style>";

return x0;
}








function MVNumericRangedBucket(x0,x1,x2,x3)
{

this.low=x0;

this.high=x1;

this.renderingStyle=x2;

this.label=x3;
}


MVNumericRangedBucket.prototype.getXMLString=function()
{
var x0=(this.label==null)?"":'label="'+this.label+'"+';
var x1="<RangedBucket+"+x0;
var x2=(this.low==null)?"":'low="'+this.low+'"+';
var x3=(this.high==null)?"":'high="'+this.high+'"+';
var x4=(this.renderingStyle==null)?"":'style="'+this.renderingStyle+'"+';
x1+=x2+x3+x4;
x1+="/>";

return x1;
}



function MVMapDecoration(x0,x1,x2,x3,x4)
{

this.html=x0;

this.left=x1;

this.top=x2;

this.width=x3;

this.height=x4;

this._f233=document.createElement("div");
this._f233.id=null;
this._f233.isMapDecoration=true;

this.parent=null;

this._f234=false;

this._f235=false

this._f236=null;

this._f237=null;

this._f238=null;

this.id=null;

this.visible=true;

this._f147=0;

this._f149=0;

this._f239=20;

this._f240=10;

this._f241=null;

this.img=null;

this._f242=null;

this._f128=true;
}



MVMapDecoration.prototype.setPosition=function(x0)
{
x0.style.top=_f19._f199(this.parent._f31()*this.top+this._f149);
x0.style.left=_f19._f199(this.parent._f29()*this.left+this._f147);
}

MVMapDecoration.prototype.init=function(id,x1)
{
this.id=id;
this.parent=x1;
this._f233.id=this.id;
this._f233.style.zIndex=2000;
this._f233.style.position="absolute";
if(this._f234)
{

this._f243=document.createElement("div");
this._f243.style.position="absolute";
this._f243.style.zIndex=2000;
this._f243.style.right="0px";
this._f243.style.bottom="0px";
this._f243.style.width=this.width+"px";
this._f243.style.height=this.height+"px";
this._f243.style.border="1px solid black";
this._f243.style.backgroundColor="white";

this._f241=document.createElement("div");
this._f241.style.position="absolute";
this._f241.style.left=_f19._f199(0);
this._f241.style.top=_f19._f199(0);
this._f241.style.width="100%";
this._f241.style.height=this._f239+"px";
this._f241.style.zIndex="2000";
this._f241.style.border=_f19._f199(0);
this._f241.style.backgroundColor="#E6F0FA";
this._f243.appendChild(this._f241);
var x2=13;
var x3=(this.width-x2)/2;
var x4=(this._f239-x2)/2;
this.img=_f205(_f16._f92+"navicons/south.gif",x2,x2,x3,x4);
this._f241.appendChild(this.img);
this._f233.style.left=_f19._f199(0);
this._f233.style.top=this._f239+"px";
this._f233.style.border=_f19._f199(0);

if(_f16._f43=="NS")
{
this._f233.style.width=this.width+"px"
this._f233.style.height=(this.height-this._f239)+"px";
}
else
 {
this._f233.style.width=this.width-2+"px"
this._f233.style.height=(this.height-this._f239-2)+"px";
}
this._f233.innerHTML=this.html;
this._f243.appendChild(this._f233);

this._f244=true;

this.n=(this.height-this._f239)/this._f240+1;
var x5=this;
this._f241.onclick=_f19._f35(this._f241,function()
{
x5._f245();
})
this._f246(this._f243);
}
else
 {
this._f233.innerHTML=this.html;
this.setPosition(this._f233);
if(this.width)
this._f233.style.width=_f19._f199(this.width);
if(this.height)
this._f233.style.height=_f19._f199(this.height);
this._f246(this._f233);
}
this._f247();
}

MVMapDecoration.prototype._f246=function(x6)
{
var x7=this
var x8=function(x9)
{
x9=(x9)?x9:((window.event)?event:null);
if(x9&&!x7._f128)
{
if(_f16._f43=="IF")
x9.cancelBubble=true;
else if(x9.stopPropagation)
x9.stopPropagation();
}
}

var x10=function(x11)
{
x11=(x11)?x11:((window.event)?event:null);
if(x11&&!x7._f128)
{
_f19._f20(x11);
}
}

x6.onclick=function(x12)
{
if(x7._f236)
x7._f236();
x8(x12);
}
if(this._f237)
x6.onmouseover=this._f237;
if(this._f238)
x6.onmouseout=this._f238;
x6.onmousedown=x8;
x6.onmouseup=x8;
x6.onkeyup=x8
if(_f16._f43=="OS")
x6.onkeypress=x8;
else
 x6.onkeydown=x8;
}


MVMapDecoration.prototype.setOffset=function(x13,x14)
{
this._f147=x13;
this._f149=x14;
}


MVMapDecoration.prototype.setPrintable=function(x15)
{
this._f235=x15;
}


MVMapDecoration.prototype.setCollapsible=function(x16)
{
this._f234=x16;
}


MVMapDecoration.prototype._f248=function()
{
var x17=document.createElement("div");
x17.innerHTML=this.html;
x17.style.zIndex=2000;
x17.style.position="absolute";

if(this.collasible)
{
this._f249.style.right=_f19._f199(0);
this._f249.style.bottom=_f19._f199(0);
this._f249.style.width=_f19._f199(width);
this._f249.style.height=_f19._f199(height-this._f239);
this._f249.style.border="1px solid black";
this._f249.style.backgroundColor="white";
}
else{
this.setPosition(x17);
if(this.width)
x17.style.width=this.width;
if(this.height)
x17.style.height=this.height;
return x17;
}
}

MVMapDecoration.prototype.setVisible=function(x18)
{
this.visible=x18;
if(this.parent!=null&&this.parent._f117)
this._f247();
if(this.parent!=null&&this._f235)
this.parent._f250();
}


MVMapDecoration.prototype._f247=function()
{
if(this._f234)
if(this._f244&&this.visible)
this._f243.style.visibility="visible";
else if(this._f244&&!this.visible)
this._f243.style.visibility="hidden";
else
 this._f243.style.visibility="hidden";
else
 if(this.visible)
this._f233.style.visibility="visible";
else
 this._f233.style.visibility="hidden";
}

MVMapDecoration.prototype.isVisible=function()
{
return this.visible;
}


MVMapDecoration.prototype.addEventListener=function(x19,x20)
{
if(x19=="mouse_click")
this._f236=x20;
else if(x19=="mouse_over")
this._f237=x20;
else if(x19=="mouse_out")
this._f238=x20;
}


MVMapDecoration.prototype.getContainerDiv=function()
{
return this._f233
}


MVMapDecoration.prototype.enableEventPropagation=function(x21)
{
this._f128=x21;
}


MVMapDecoration.prototype._f245=function()
{
if(this._f242!=null&&this._f242!="")
return;

var x22=15;
if(this._f244)
{
this._f242=this.setTimeout("this.scrollElement(-1)",10);
}
else
 {
this._f242=this.setTimeout("this.scrollElement(1)",10);
}
}


MVMapDecoration.prototype.scrollElement=function(x23)
{
var x24=parseInt(this._f243.style.height);
var x25=parseInt(this._f233.style.height);
if(x23<0)
{
if(x25>1)
{
if(x25>this._f240)
{
this._f233.style.height=x25-this._f240+"px";
this._f243.style.height=x25-this._f240+this._f239+"px";
this._f242=this.setTimeout("this.scrollElement(-1)",10);
}
else
 {
this._f233.style.height="0px";
if(_f16._f43=="NS")
this._f243.style.height=this._f239+"px";
else
 this._f243.style.height=this._f239+2+"px";
this._f233.style.visibility="hidden";
this._f244=false;
clearTimeout(this._f242);
this._f242=null;
this.img.src=_f16._f92+"navicons/north.gif";
}
}
}
if(x23>0)
{
if(x24<this.height)
{
if(x24+this._f240<this.height)
{
this._f233.style.height=x25+this._f240+"px";
this._f243.style.height=x25+this._f240+this._f239+"px";
this._f242=this.setTimeout("this.scrollElement(1)",10);
this._f233.style.visibility="visible";
}
else
 {
if(_f16._f43=="NS")
this._f233.style.height=x25+(this.height-x24)+"px"
else
 this._f233.style.height=x25+(this.height-x24-2)+"px"
this._f243.style.height=this.height+"px";
this._f244=true;
clearTimeout(this._f242);
this._f242=null;
this.img.src=_f16._f92+"navicons/south.gif";
if(this._f233._f251&&this.parent)
{
this.parent._f252._f253.display();
this.parent._f252._f254();
}
}
}
}
}



MVMapDecoration.prototype.setTimeout=function(_f161,_f162)
{
var Ie="tempVar"+_f163;
_f163++;
eval(Ie+" = this;");
var oi=_f161.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f162);
}


MVMapDecoration.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}






function MVBarInfo(x0,x1)
{

this.name=x0;

this.color=null;

if(x1)
{
if(x1.charAt(0)=='#')
this.color=x1.substring(1,x1.length);
else
 this.color=x1;
}

this.color_opacity=255;
}


function MVBarChartStyle(x0,x1,x2,x3)
{
this.name=x0;
this.width=x1;
this.height=x2;
this.bars=x3;

this.minValue=null;
this.maxValue=null;
this.shareScale=true;this.showXAxis=false;
}

MVBarChartStyle.prototype.setMinValue=function(x0)
{
this.minValue=x0;
}

MVBarChartStyle.prototype.setMaxValue=function(x1)
{
this.maxValue=x1;
}

MVBarChartStyle.prototype.setShareScale=function(x2)
{
this.shareScale=x2;
}

MVBarChartStyle.prototype.setShowXAxis=function(x3)
{
this.showXAxis=x3;
}

MVBarChartStyle.prototype.getXMLString=function()
{
var x4=
'<style+name="'+this.name+'">'+
'<AdvancedStyle><BarChartStyle'+
'+width="'+this.width+'"+height="'+this.height+'"';

if(this.shareScale==true)
{
x4=x4+'+share_scale="true"';
}

if(this.maxValue&&this.minValue)
{
x4=x4+'+min_value="'+this.minValue+'"+max_value="'+this.maxValue+'"';
}

if(this.showXAxis)
{
x4=x4+'+show_x_axis="true"';
}

x4=x4+'>';

if(this.bars!=null)
{

for(var x5=0;x5<this.bars.length;x5++)
{
var x6=this.bars[x5];
x4=x4+'+<Bar name="'+x6.name+'"';
if(x6.color!=null)
x4=x4+'+color="#'+x6.color+'"';
x4=x4+'+/>';
}
}

x4+='+</BarChartStyle></AdvancedStyle></style>';
return x4;
}







function MVPieSlice(x0,x1)
{

this.name=x0;

this.color=null;

if(x1)
{
if(x1.charAt(0)=='#')
this.color=x1.substring(1,x1.length);
else
 this.color=x1;
}


this.color_opacity=255;
}


MVPieSlice.prototype.setColorOpacity=function(x0)
{
this.color_opacity=x0;
}


function MVPieChartStyle(x0,x1,x2)
{
this.name=x0;
this._f32=x1;
this.slices=x2;
}


MVPieChartStyle.prototype.getXMLString=function()
{
var x1='<style+name="'+this.name+'">'+
'<AdvancedStyle><PieChartStyle+'+
'pieradius="'+this._f32+'">';

if(this.slices!=null)
{

for(var x2=0;x2<this.slices.length;x2++)
{
var x3=this.slices[x2];
if(x3!=null)
{
x1=x1+'+<PieSlice+name="'+x3.name+'"';
if(x3.color!=null)
x1=x1+'+color="#'+x3.color+'"+/>';
}
}
}
x1=x1+'+</PieChartStyle></AdvancedStyle></style>';
return x1;
}
