MVMessages=new Object();
MVMessages.marqueeZoomHint="Click on the rectangle to zoom in!";
MVMessages.panNWInfoTip="Pan NorthWest";
MVMessages.panNInfoTip="Pan North";
MVMessages.panNEInfoTip="Pan NorthEast";
MVMessages.panWInfoTip="Pan West";
MVMessages.panEInfoTip="Pan East";
MVMessages.panSWInfoTip="Pan SouthWest";
MVMessages.panSInfoTip="Pan South";
MVMessages.panSEInfoTip="Pan SouthEast";
MVMessages.panCenterInfoTip="Home";
MVMessages.sliderBarInfoTip="Click to change zoom level";
MVMessages.sliderInfoTip="Drag to change zoom level";
MVMessages.zoomInInfoTip="Zoom in";
MVMessages.zoomOutInfoTip="Zoom out";
MVMessages.scaleBarInfoTip="Scale at the center of the map";
MVMessages.kilometers="km";
MVMessages.miles="mi";
MVMessages.meters="m";
MVMessages.feet="ft";
function MVXMLHttpRequest()
{
this.onreadystatechange=null;
this._f643=0;
this.url=null;
this.status=0;
this.readyState=0;
this._f644=null;
this.responseText=null;
}
MVXMLHttpRequest._f645=new Array();
MVXMLHttpRequest._f646=0;
MVXMLHttpRequest._f647=Math.round(Math.random()*10000);
MVXMLHttpRequest.callBack=function(id,x0,x1)
{
while(MVXMLHttpRequest._f645.length>0)
{
var x2=MVXMLHttpRequest._f645[0];
if(!x2.onreadystatechange)
{
if(x2._f644)
{
document.body.removeChild(x2._f644);
x2._f644=null;
}
MVXMLHttpRequest._f645.shift();
}
else
 break;
}
var x3=0;
for(;x3<MVXMLHttpRequest._f645.length;x3++)
{
if(MVXMLHttpRequest._f645[x3]._f643==id)
{
var x2=MVXMLHttpRequest._f645[x3];
x2.status=200;
x2.readyState=4;
x2.responseText=x0;
if(x2.onreadystatechange&&!x1)
x2.onreadystatechange();
x2.onreadystatechange=null;
document.body.removeChild(x2._f644);
x2._f644=null;
if(x3==0)
MVXMLHttpRequest._f645.shift();
return ;
}
}
}
MVXMLHttpRequest.prototype.abort=function()
{
MVXMLHttpRequest.callBack(this.id,null,true);
}
MVXMLHttpRequest.prototype.open=function(x4,x5,x6)
{
if(!x6)
MVi18n.processLocale("MAPVIEWER-5516");
else
 this.url=x5;
}
MVXMLHttpRequest.prototype.send=function(x7)
{
if(!this.url)
return ;
this._f643=MVXMLHttpRequest._f647+"_"+MVXMLHttpRequest._f646++;
var x8=this.url;
if(x8.indexOf("?")>0)
x8+="&";
else
 x8+="?";
x8+="callback_id="+this._f643;
if(x7.length>_f3._f60)
{
MVi18n.processLocale("MAPVIEWER-5517");
return ;
}
x8+="&"+x7;
var x9=document.createElement("script");
x9.src=x8;
x9.type='text/javascript';
x9.charset='utf-8';
this._f644=x9;
MVXMLHttpRequest._f645.push(this);
document.body.appendChild(x9);
if(MVMapView.debug)
MVi18n.processLocale("MAPVIEWER-5515","MVXMLHttpRequest. URL:"+x8);
}
MVXMLHttpRequest.prototype.setRequestHeader=function(x10)
{
}
function MVUtil(){}
MVUtil._f215=0;
MVUtil._f568=function(x0,x1,x2,x3,x4,x5,x6,x7,x8)
{
var x9=(x7-x1)*x5/(x3-x1)-x0._f179;
var x10=(x4-x8)*x6/(x4-x2)-x0._f180;
var x11=MVSdoGeometry.createPoint(x9,x10);
return x11.sdo_point;
}
MVUtil._f112=function(x12,x13,x14,x15,x16,x17,x18,x19,x20)
{
var x21=(x19-x13)*x17/(x15-x13)-x12._f179;
var x22=(x16-x20)*x18/(x16-x14)-x12._f180;
return [x21,x22];
}
MVUtil._f106=function(x23)
{
var x24=x23.style.left;
if(x24.indexOf("px")>0)
x24=x24.substring(0,x24.length-2);
return parseInt(""+x24);
}
MVUtil._f107=function(x25)
{
var x26=x25.style.top;
if(x26.indexOf("px")>0)
x26=x26.substring(0,x26.length-2);
return parseInt(""+x26);
}
MVUtil._f108=function(x27,x28,x29)
{
if(_f3._f4==2)
{
x27.style.pixelLeft=x28;
x27.style.pixelTop=x29;
}
else
 {
x27.style.left=MVUtil._f178(x28);
x27.style.top=MVUtil._f178(x29);
}
}
MVUtil._f211=function(x30,x31,x32,x33,x34,x35,x36)
{
x30.style.left=MVUtil._f178(x31);
x30.style.top=MVUtil._f178(x32);
x30.style.width=MVUtil._f178(x33);
x30.style.height=MVUtil._f178(x34);
if(x35)
x30.style.zIndex=x35;
if(x36)
x30.style.fontSize=MVUtil._f178(x36);
}
MVUtil._f485=function(x37)
{
x37.style.position="absolute";
MVUtil._f105(x37,"default");
x37.unselectable="on";
x37.onselectstart=MVUtil._f569;
x37.style.fontFamily="Arial, sans serif";
x37.style.MozUserSelect="none";
x37.align="left";
}
MVUtil._f569=function()
{
return false;
}
MVUtil._f105=function(x38,x39)
{
try
{
if(x39.indexOf(".")>-1)
{
x39="url(\""+x39+"\")"
}
x38.style.cursor=x39;
}
catch(_exception)
{
if(x39=="pointer")
{
MVUtil._f105(x38,"hand");
}
}
}
MVUtil._f435=function(x40)
{
var x41={"x":0,"y":0};
while(x40)
{
x41.x+=x40.offsetLeft;
x41.y+=x40.offsetTop;
x40=x40.offsetParent;
}
return x41;
}
function _f182(x0,x1,x2,x3,x4,x5)
{
var x6=document.createElement("img");
x6.src=x0;
if(x1&&x2)
{
x6.style.width=MVUtil._f178(x1);
x6.style.heigh=MVUtil._f178(x2);
x6.width=x1;
x6.height=x2;
}
if(x4||(x3||(x4==0||x3==0)))
{
x6.style.position="absolute";
x6.style.left=MVUtil._f178(x3);
x6.style.top=MVUtil._f178(x4);
}
if(x5||x5==0)
{
x6.style.zIndex=x5;
}
if(_f3._f13=="IF"){
x6.unselectable="on";
x6.onselectstart=MVUtil._f569;}
else{
x6.style.MozUserSelect="none";
}
if(_f3._f13=="IF")
{
x6.galleryImg="no"}
x6.style.border="0";
x6.style.padding="0";
x6.style.margin="0";
x6.oncontextmenu=MVUtil._f569;
return x6;
}
MVUtil._f389=function(x42,x43)
{
if(x43)
{
var x44=x42._f462(x43);
var x45=MVSdoGeometry.createPoint(x44.left,x44.top);
return x45.sdo_point;
}
else
 {
var x44=x42._f462(window.event);
var x45=MVSdoGeometry.createPoint(x44.left,x44.top);
return x45.sdo_point;
}
}
MVUtil.getMouseLocation=function(x46,x47)
{
var x48=MVUtil._f389(x46,x47);
var x49=x48.x-x46._f127()/2;
var x50=x49/x46._f100+x46._f114;
x49=x48.y-x46._f129()/2;
var x51=((-1.0)*x49)/x46._f101+x46._f117;
var x52=MVSdoGeometry.createPoint(x50,x51);
return x52;
}
MVUtil._f170=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;
}
MVUtil._f570=0;
MVUtil._f571=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=((MVUtil._f570++)*20)%550;
x57.innerHTML=x56;
document.body.appendChild(x57);
}
MVUtil.getXMLHttpRequest=function(x58)
{
if(!x58)
return new MVXMLHttpRequest();
else
 {
if(window.ActiveXObject)
{
var x59=null;
try
{
x59=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
x59=new ActiveXObject("Msxml2.XMLHTTP");
}
return x59;
}
else
 return new XMLHttpRequest();
}
}
MVUtil._f169=function(x60)
{
if(x60)
{
if(_f3._f13=="IF")
x60.cancelBubble=true;
else if(x60.stopPropagation)
x60.stopPropagation();
if(x60.preventDefault)
x60.preventDefault();
else
 x60.returnValue=false;
}
}
MVUtil._f178=function(x61)
{
return Math.round(x61)+"px";
}
MVUtil._f572=function(x62,x63)
{
var x64=0;
var x65=-1;
while((x65=x62.indexOf(x63,x65+1))!=-1)
{
x64++;
}
return x64;
}
MVUtil._f573=function(x66)
{
var x67=x66.indexOf('<');
if(x67==-1)
return "";
var x68=x66.indexOf(' ',x67+1);
if(x68==-1)
return "";
return '</'+MVUtil._f22(x66.substring(x67+1,x68))+'>';
}
MVUtil._f22=function(x69)
{
return x69.replace(/(^[\s]*)|([\s]*$)/g,"");
}
MVUtil._f574=function(x70,x71)
{
return x70.substring(0,x71.length)==x71;
}
MVUtil._f168=function(x72,x73)
{
return x72.substring(x72.length-x73.length,x72.length)==x73;
}
MVUtil._f575=function(x74,x75)
{
return x75+x74+MVUtil._f573(x75);
}
MVUtil._f109=function(x76,x77,x78)
{
var x79;
var x80=x76;
x79=x80.indexOf(x77);
while(x79>-1)
{
x80=x80.replace(x77,x78);
x79=x80.indexOf(x77);
}
return x80;
}
MVUtil._f521=function(x81)
{
if(x81.indexOf(".")>=0)
return x81.substring(0,x81.indexOf("."));
else
 return x81;
}
MVUtil._f185=function(x82)
{
if(x82.indexOf(".")>=0)
return x82.substring(x82.indexOf(".")+1,x82.length);
else
 return null;
}
MVUtil._f576=new Array();
MVUtil._f577=new Array();
MVUtil._f181=function(x83)
{
if(_f3._f13!="IF")
return;
var x84=MVUtil._f576.length;
if(x83._f578)
{
x84=(x83._f578);
}
else
 x83._f578=-1;
if((x83._f578)==-1&&(MVUtil._f577.length)>0)
x84=MVUtil._f577.pop();
x83._f578=x84;
MVUtil._f576[x84]=x83;
}
MVUtil.MVUnload=function()
{
if(typeof(MVUtil._f576)!="undefined"&&(MVUtil._f576!=null))
while(MVUtil._f576.length>0)
{
if(MVUtil._f576[MVUtil._f576.length-1]!=null)
{
MVUtil._f576[MVUtil._f576.length-1].onmouseover=null;
MVUtil._f576[MVUtil._f576.length-1].onmouseout=null;
MVUtil._f576[MVUtil._f576.length-1].onmousedown=null;
MVUtil._f576[MVUtil._f576.length-1].onmouseup=null;
MVUtil._f576[MVUtil._f576.length-1].oncontextmenu=null;
MVUtil._f576[MVUtil._f576.length-1].ondblclick=null;
MVUtil._f576[MVUtil._f576.length-1].onclick=null;
MVUtil._f576[MVUtil._f576.length-1].onkeyup=null;
MVUtil._f576[MVUtil._f576.length-1]=null;
}
MVUtil._f576.pop();
}
}
window.onunload=function()
{
MVUtil.MVUnload();
}
MVUtil._f163=function(x85,x86)
{
if(_f3._f13!="IF")
{
return function()
{
return x86.apply(x85,arguments);
}
}
if(!(MVUtil._f579))
{
MVUtil._f579=new Array();
MVUtil._f580=new Array();
MVUtil._f581=new Array();
}
if(!(MVUtil._f582))
{
MVUtil._f582=new Array();
MVUtil._f583=new Array();
MVUtil._f584=new Array();
}
try
{
var x87=(MVUtil._f579.length);
if(x85._f578)
{
x87=(x85._f578);
}
else
 x85._f578=-1;
if((x85._f578)==-1&&(MVUtil._f581.length)>0)
x87=MVUtil._f581.pop();
MVUtil._f579[x87]=x85;
MVUtil._f579[x87]._f578=x87;
if(!(MVUtil._f580[x87]))
MVUtil._f580[x87]=new Array();
var x88=(MVUtil._f580[x87].length);
MVUtil._f580[x87][x88]=x86;
x85=null;
x86=null;
return function()
{
return MVUtil._f580[x87][x88].apply(MVUtil._f579[x87],arguments);
}
}
catch(e)
{
var x87=(MVUtil._f582.length);
if((MVUtil._f584.length)>0)
x87=MVUtil._f584.pop();
MVUtil._f582[x87]=x85;
MVUtil._f583[x87]=x86;
x85=null;
x86=null;
return function()
{
return MVUtil._f583[x87].apply(MVUtil._f582[x87],arguments);
}
}
}
MVUtil._f585=function(x89)
{
if(_f3._f13=="IF")
{
if(x89._f578)
{
var x90=(x89._f578);
for(var x91=(MVUtil._f580[x90].length);x91>0;--x91)
{
MVUtil._f580[x90][x91-1]=null;
MVUtil._f580[x90].pop();
}
MVUtil._f580[x90]=null;
x89._f578=null;
x89=null;
MVUtil._f579[x90]=null;
MVUtil._f581.push(x90);
}
}
}
MVUtil.gc=function()
{
if(_f3._f13=="IF"&&MVUtil._f582)
{
var x92=0;
if(MVUtil._f586)
x92=(MVUtil._f586);
if((MVUtil._f582.length)<x92)
return;
for(var x93=0;x93<(MVUtil._f582.length);++x93)
{
if((MVUtil._f582[x93])&&(MVUtil._f582[x93].readyState)&&(MVUtil._f582[x93].readyState)==4)
{
MVUtil._f582[x93]=null;
MVUtil._f583[x93]=null;
MVUtil._f584.push(x93);
}
}
}
}
MVUtil._f587=function(x94,x95)
{
if(_f3._f13!="IF")
return;
if(x94=="time")
{
if(MVUtil._f588)
{
clearInterval(MVUtil._f588);
MVUtil._f588=setInterval(MVUtil.gc,x95);
}
else
 MVUtil._f588=setInterval(MVUtil.gc,x95);
}
if(x94=="totalNum")
{
MVUtil._f586=x95;
}
}
MVUtil._f154=function(x96)
{
if(x96!=null)
{
x96.src=null;
delete x96;
}
}
MVUtil._f285=function(x97)
{
if(_f3._f13=="NS")
{
x97.style.MozUserSelect="none";
}
else if(_f3._f13=="SF")
{
x97.style.KhtmlUserSelect="none";
}
else if(_f3._f13=="IF")
{
x97.unselectable="on";
}
else
 {
return false;
}
return true;
}
MVUtil._f589=function(x98)
{
if(_f3._f13=="NS")
{
x98.style.MozUserSelect="";
}
else if(_f3._f13=="SF")
{
x98.style.KhtmlUserSelect="";
}
else if(_f3._f13=="IF")
{
x98.unselectable="off";
}
else
 {
return false;
}
return true;
}
MVUtil._f25=function(x99)
{
if(!x99)
return null;
var x100=x99.indexOf("://");
if(x100>0)
{
x100+=3;
var x101=x99.indexOf("/",x100);
if(x101>0)
return x99.substring(x100,x101);
else
 return x99.substring(x100);
}
else
 return null;
}
MVUtil._f446=0;
MVUtil._f445=0;
MVUtil._f447=0;
MVUtil._f503=function(x102)
{
if(!x102)
return ;
var x103=x102.childNodes;
if(x103!=null)
{
while(x103.length>0)
{
MVUtil._f210(x103[0]);
x102.removeChild(x103[0]);
}
}
}
MVUtil._f210=function(x104)
{
if(!x104)
return ;
var x105=x104.childNodes;
if(x105!=null)
{
while(x105.length>0)
{
MVUtil._f210(x105[0]);
x104.removeChild(x105[0]);
}
}
MVUtil._f590(x104);
}
MVUtil._f590=function(x106)
{
if(!x106)
return ;
try
{
if(x106.onload)
x106.onload=null;
if(x106.onmouseover)
x106.onmouseover=null;
if(x106.onmouseout)
x106.onmouseout=null;
if(x106.onmousedown)
x106.onmousedown=null;
if(x106.onmouseup)
x106.onmouseup=null;
if(x106.oncontextmenu)
x106.oncontextmenu=null;
if(x106.ondblclick)
x106.ondblclick=null;
if(x106.onclick)
x106.onclick=null;
if(x106.onkeyup)
x106.onkeyup=null;
if(x106.onkeydown)
x106.onkeydown=null;
if(x106.onkeypressed)
x106.onkeypressed=null;
if(x106.src)
x106.src=null;
if(_f3._f13=="IF")
{
if(x106.style&&x106.style.filter)
x106.style.filter=null;
if(x106._f578)
{
MVUtil._f577.push(x106._f578)
MVUtil._f576[x106._f578]=null;
}
}
}catch(error)
{
MVi18n.processLocale("MAPVIEWER-5500",x106.nodeName+","+x106.nodeType+","+x106.nodeValue);
}
}
MVUtil._f151=MVUtil._f210;
MVUtil._f388=function(x107)
{
var x108=document.createElement("table");
var x109=document.createElement("tr");
var x110=document.createElement("td");
x110.innerHTML=x107;
x109.appendChild(x110);
x108.appendChild(x109);
return x108;
}
MVUtil.getEvent=function(x111)
{
return x111?x111:((window.event)?event:null);
}
function _f626()
{
}
_f626._f685=6372795;
_f626._f627=function(x0,x1,x2)
{
var x0=_f626._f686(x0);
var x3=x0.x;
var x4=x0.y;
var x5=x1/_f626._f685;
var x6=Math.asin(Math.sin(x4)*Math.cos(x5)+Math.cos(x4)*Math.sin(x5)*Math.cos(x2));
var x7=x3+Math.atan2(Math.sin(x2)*Math.sin(x5)*Math.cos(x4),Math.cos(x5)-Math.sin(x4)*Math.sin(x6));
return _f626._f687(new MVSdoPointType(x7,x6,0));
}
_f626._f686=function(x8)
{
var x9=x8.x;
var x10=x8.y;
while(x9<-180)x9+=360;
while(x9>180)x9-=360;
x9=x9*Math.PI/180;
x10=x10*Math.PI/180;
return new MVSdoPointType(x9,x10,0);
}
_f626._f687=function(x11)
{
var x12=x11.x;
var x13=x11.y;
x13=x13*180/Math.PI;
x12=x12*180/Math.PI;
return new MVSdoPointType(x12,x13,0);
}
_f626._f688=function(x14,x15)
{
x14=_f626._f686(x14);
x15=_f626._f686(x15);
var x16=x15.x-x14.x;
var x17=x15.y-x14.y;
var x18=Math.sin(x17/2);
var x19=Math.sin(x16/2);
var x20=x18*x18+Math.cos(x14.y)*Math.cos(x15.y)*x19*x19;
var x21=2*Math.atan2(Math.sqrt(x20),Math.sqrt(1-x20));
return x21*_f626._f685;
}
_f626._f629=function(x22)
{
var x23=0;
for(i=0;i<x22.length-2;i+=2)
{
x23+=_f626._f688(new MVSdoPointType(x22[i],x22[i+1]),new MVSdoPointType(x22[i+2],x22[i+3]));
}
return x23;
}
function _f3(){}
_f3._f4=document.all?(document.getElementById?2:1):(document.layers?3:0);
_f3._f5=navigator.userAgent.toLowerCase();
_f3._f6=null;
_f3._f7=null;
_f3._f8=new Array(30);
_f3._f9=new Array(30);
_f3._f10=new Array(30);
_f3._f11="MVInfoWindowStyle1";
_f3._f12=function(x0)
{
_f3._f6=_f3._f5.indexOf(x0)+1;
_f3._f7=x0;
return _f3._f6;
}
if(_f3._f12('safari'))
_f3._f13="SF";
else if(_f3._f12('opera'))
_f3._f13="OS";
else if(_f3._f12('msie'))
_f3._f13="IF";
else if(!_f3._f12('compatible'))
{
_f3._f13="NS";
_f3._f14=_f3._f5.substring(8,11);}
else _f3._f13="unknown";
if(!_f3._f14)
_f3._f14=_f3._f5.substring(_f3._f6+_f3._f7.length,
_f3._f6+_f3._f7.length+3);
_f3._f10["SQ_MM"]=.000001;
_f3._f10["SQ_KILOMETER"]=1000000;
_f3._f10["SQ_CENTIMETER"]=.0001;
_f3._f10["SQ_MILLIMETER"]=.000001;
_f3._f10["SQ_CH"]=404.6856;
_f3._f10["SQ_FT"]=.09290304;
_f3._f10["SQ_IN"]=.00064516;
_f3._f10["SQ_LI"]=.04046856;
_f3._f10["SQ_CHAIN"]=404.6856;
_f3._f10["SQ_FOOT"]=.09290304;
_f3._f10["SQ_INCH"]=.00064516;
_f3._f10["SQ_LINK"]=.04046856;
_f3._f10["SQ_MILE"]=2589988;
_f3._f10["SQ_ROD"]=25.29285;
_f3._f10["SQ_SURVEY_FOOT"]=.09290341;
_f3._f10["SQ_YARD"]=.8361274;
_f3._f10["ACRE"]=4046.856;
_f3._f10["HECTARE"]=10000;
_f3._f10["PERCH"]=25.29285;
_f3._f10["ROOD"]=1011.714;
_f3._f10["M"]=1;
_f3._f10["METER"]=1;
_f3._f10["KM"]=1000;
_f3._f10["KILOMETER"]=1000;
_f3._f10["CM"]=.01;
_f3._f10["CENTIMETER"]=.01;
_f3._f10["MM"]=.001;
_f3._f10["MILLIMETER"]=.001;
_f3._f10["MILE"]=1609.344;
_f3._f10["NAUT_MILE"]=1852;
_f3._f10["SURVEY_FOOT"]=.3048006096012;
_f3._f10["FOOT"]=.3048;
_f3._f10["INCH"]=.0254;
_f3._f10["YARD"]=.9144;
_f3._f10["CHAIN"]=20.1168;
_f3._f10["ROD"]=5.0292;
_f3._f10["LINK"]=.201166195;
_f3._f10["MOD_USFT"]=.304812253;
_f3._f10["CL_FT"]=.304797265;
_f3._f10["IND_FT"]=.304799518;
_f3._f10["LINK_BEN"]=.201167651;
_f3._f10["LINK_SRS"]=.201167651;
_f3._f10["CHN_BEN"]=20.1167825;
_f3._f10["CHN_SRS"]=20.1167651;
_f3._f10["IND_YARD"]=.914398554;
_f3._f10["SRS_YARD"]=.914398415;
_f3._f10["FATHOM"]=1.8288;
_f3._f10["SQ_M"]=1;
_f3._f10["SQ_METER"]=1;
_f3._f10["SQ_KM"]=1000000;
_f3._f10["SQ_CM"]=.0001;
_f3._f15=function(x1)
{
if(x1)
x1=x1.toUpperCase();
else
 return 0;
if(_f3._f10[x1])
return _f3._f10[x1];
else
 return 0;
}
_f3._f16=function(x2,x3)
{
x2=x2.toUpperCase();
_f3._f8[x2]=x3;
if(x3.coordSys.srid)
_f3._f9[x3.coordSys.srid]=x3.coordSys;
}
_f3._f18=function(x4)
{
if(x4&&_f3._f9[x4])
return _f3._f9[x4];
else
 return null;
}
_f3._f19=function(basemap,callBack)
{
if(basemap._f20==null||basemap._f21==null||MVUtil._f22(basemap._f21)=="")
{
basemap._f21="null";
_f3._f8[basemap._f21]=null;return;
}
basemap._f21=basemap._f21.toUpperCase();
if(_f3._f8[basemap._f21])
{
if(callBack)
callBack();
return ;
}
var conStr=basemap._f23.indexOf("?")>=0?"&":"?";
var formatStr;
var _f24=basemap._f23+conStr+"xml_request=<?xml+version=\"1.0\"+standalone=\"yes\"?>"
+"<map_cache_admin_request><get_client_config+map_cache_names=\""+basemap._f21
+"\"+format=\"JSON\"/></map_cache_admin_request>";
var request=null;
var localDomain=(MVUtil._f25(basemap._f20)==MVUtil._f25(_f3._f26()));
var xmlHttp=localDomain||MVMapView._f27;
var configLoaded=function()
{
try
{
var resp=xmlHttp?request.responseText:this.responseText;
eval("var result="+resp);
if(result.length==0)
{
MVi18n.processLocale("MAPVIEWER-5501",basemap._f21);
_f3._f8[basemap._f21]=null;result=null;
return;
}
_f3._f16(basemap._f21,result[0]);
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5502",basemap._f21,request.responseText);
return ;
}
if(callBack)
callBack();
}
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(!xmlHttp)
request.onreadystatechange=configLoaded;
request.open("GET",_f24,!xmlHttp);
request.send("");
}catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Exception name: "+e.name+".\n Exception message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
}
if(xmlHttp)
{
if(request.status==200)
{
configLoaded();
}
else
 {
_f3._f8[basemap._f21]=null;MVi18n.processLocale("MAPVIEWER-5502",basemap._f21,request.responseText);
}
}
request=null;
}
_f3._f28=180;
_f3._f29=100;
_f3._f30=14;
_f3._f31=112;
_f3._f32=14;
_f3._f33=14;
_f3._f34=14;
_f3._f35=14;
_f3._f36=14;
_f3._f37=14;
_f3._f38=14;
_f3._f39=14;
_f3._f40=600;
_f3._f41=600;
_f3._f42=30;
_f3._f43=16;
_f3._f44=600;
_f3._f45=1;
_f3._f46=1;
_f3._f47=600;
_f3._f48=1;
_f3._f49=10;
_f3._f50=true;
_f3._f51="/fsmc/images/";
_f3._f52="/fsmc/images/";
_f3._f53=0;
_f3._f54=null;
_f3._f55="bulls-eye.png";
_f3._f56=38;
_f3._f57=38;
_f3.redlineIgnoreMove=5;
_f3._f58=0;
_f3._f59=0;
_f3._f60=1000;
_f3._f61=null;
_f3._f62=null;
_f3._f63=function()
{
if(!_f3._f61)
_f3._f61=document.location.protocol+"//"+document.location.host+"/mapviewer/foi";
return _f3._f61;
}
_f3._f26=function()
{
if(!_f3._f62)
_f3._f62=document.location.protocol+"//"+document.location.host+"/mapviewer";
return _f3._f62;
}
_f3._f64="/mapviewer/proxy";
_f3._f65=null;
_f3._f66=function()
{
if(!_f3._f65)
_f3._f65=document.location.protocol+"//"+document.location.host+"/"+_f3._f64;
return _f3._f65;
}
if(document.getElementsByTagName("html")[0].getAttribute("xmlns")=="http://www.w3.org/1999/xhtml")
_f3._f67=true;
else
 _f3._f67=false;
function _f352(x0)
{
this._f427=x0;
this.mapConfig=_f3._f8[x0];
this._f630=this._f144();
this._f631=this._f145();
this._f632=this._f146();
this._f633=this._f147();
this._f634=this._f146()-this._f144();
this._f635=this._f147()-this._f145();
this.zoomCount=_f3._f8[this._f427].zoomLevels.length;
}
_f352.prototype._f426=function()
{
return this._f427;
}
_f352.prototype._f592=function(x0)
{
return _f3._f8[x0].format;
}
_f352.prototype._f636=function()
{
return this._f634;
}
_f352.prototype._f637=function()
{
return this._f635;
}
_f352.prototype._f144=function()
{
return _f3._f8[this._f427].coordSys.minX;
}
_f352.prototype._f145=function()
{
return _f3._f8[this._f427].coordSys.minY;
}
_f352.prototype._f146=function()
{
return _f3._f8[this._f427].coordSys.maxX;
}
_f352.prototype._f147=function()
{
return _f3._f8[this._f427].coordSys.maxY;
}
_f352.prototype._f380=function()
{
return _f3._f8[this._f427].mapCache;
}
_f352.prototype.getSrid=function()
{
return _f3._f8[this._f427].coordSys.srid;
}
_f352.prototype._f493=function()
{
return _f3._f8[this._f427].coordSys.type;
}
_f352.prototype._f492=function()
{
return _f3._f8[this._f427].coordSys.distConvFactor;
}
_f352.prototype._f353=function()
{
return _f3._f8[this._f427].zoomLevels.length;
}
_f352.prototype._f376=function(x1)
{
return _f3._f8[this._f427].zoomLevels[x1].tileWidth;
}
_f352.prototype._f377=function(x2)
{
return _f3._f8[this._f427].zoomLevels[x2].tileHeight;
}
_f352.prototype._f354=function(x3)
{
return _f3._f8[this._f427].zoomLevels[x3].tileImageWidth;
}
_f352.prototype._f355=function(x4)
{
return _f3._f8[this._f427].zoomLevels[x4].tileImageHeight;
}
_f352.prototype._f638=function(x5)
{
return _f3._f8[this._f427].zoomLevels[x5]._f639;
}
_f352.prototype._f640=function(x6,x7,x8,x9)
{
this._f630=x6;
this._f631=x7;
this._f632=x8;
this._f633=x9;
}
function _f328(x0,x1,x2,x3)
{
this._f330=x0.zoomLevels[x3].tileWidth;
this._f331=x0.zoomLevels[x3].tileHeight;this._f413=Math.floor((x1-x0.coordSys.minX)/this._f330);
this._f414=Math.floor((x2-x0.coordSys.minY)/this._f331);
this._f348=x3;
this.minX=this._f413*this._f330+x0.coordSys.minX;
this.minY=this._f414*this._f331+x0.coordSys.minY;}
_f328.prototype._f329=function(x0,x1)
{
this._f413=this._f413+x0;
this._f414=this._f414+x1;
}
function MVBaseMap(x0,x1)
{
this._f21=x0;
this._f20="";
this._f23="";
if(x1)
{
this._f20=x1;
this._f23=x1;
if(MVUtil._f168(x1,'/'))
{
this._f20=x1.substring(0,x1.length-1);
this._f23=x1.substring(0,x1.length-1);
}
}
this.parent="";
this._f593=false;
this.visible=true;
this._f591="PNG";
this.minVisibleLevel=null;
this.maxVisibleLevel=null;
}
MVBaseMap.prototype.getType=function()
{
return "MVBaseMap";
}
MVBaseMap.prototype.setTransparent=function(x0)
{
this._f593=x0;
}
MVBaseMap.prototype.setVisible=function(x1)
{
if(this.parent)
{
for(var x2=0;x2<this.parent._f242.length;x2++)
{
if(this.parent._f242[x2]._f379()==this._f20&&
this.parent._f242[x2]._f380()==this._f21)
{
this.parent._f242[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._f380=function()
{
return this._f21;
}
function MVCustomBaseMap(x0,x1,x2)
{
this._f653=MVBaseMap;
this._f653(x1,x2);
this._f609=x0;
}
MVCustomBaseMap.prototype=new MVBaseMap;
MVCustomBaseMap.prototype.getType=function()
{
return "MVCustomBaseMap";
}
function _f381(x0,x1)
{
this.basemap=x1;
this.mapConfig=x1.config;
this.visible=true;
this._f349;
this._f350;
this._f20="";
if(x1._f20)
{
this._f20=x1._f20;
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
this.parent=x0;
this._f21=x1._f21;
this._f591=this.parent.msi._f592(this._f21);
this._f593=x1._f593;
this._f594;
this._f595;
this._f308;
this._f309;
this._f596;
this._f597;
this.tileWidth;
this.tileHeight;
this._f598=true;
this._f599=[];
this._f600=0;
this._f601=0;
this._f602;
this._f603;
this._f115;
this._f118;
this._f604=null;
this._f378=document.createElement("div");
this._f378.style.position="absolute";
this._f378.style.zIndex=99;
this.parent.div.appendChild(this._f378);
this._f605=_f3._f51+"transparent."+(_f3._f13=="IF"?"gif":"png");
this._f606=document.createElement("img");
this._f606.src=this._f605;
this.visible=x1.isVisible();
this.minVisibleLevel=x1.minVisibleLevel;
this.maxVisibleLevel=x1.maxVisibleLevel;
}
_f381.prototype._f379=function()
{
return this._f20;
}
_f381.prototype._f380=function()
{
return this._f21;
}
_f381.prototype._f607=function()
{
return this._f378;
}
_f381.prototype.setVisible=function(x0)
{
this.visible=x0;
if(!this.visible)
this._f378.style.visibility="hidden";
else
 {
this._f378.style.visibility="visible";
if(this.parent._f78)
this._f318(this.parent._f127(),this.parent._f129(),this.parent._f114,this.parent._f117);
}
}
_f381.prototype.isVisible=function()
{
return this.visible;
}
_f381.prototype._f608=function(x1,x2)
{
var x3=this._f604._f348;
if(this.basemap._f609)
return this.basemap._f609(this.mapConfig.coordSys.minX+x1*this._f604._f330,
this.mapConfig.coordSys.minY+x2*this._f604._f331,
this._f604._f330,this._f604._f331,x3);
else
 return String(this._f20+"?request=gettile&format="+this._f591+"&zoomlevel="+x3+"&mapcache="+this._f21+"&mx="+x1+"&my="+x2);
}
_f381.prototype._f318=function(x4,x5,x6,x7)
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f223)
{
this._f378.style.visibility="hidden";
return ;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f223)
{
this._f378.style.visibility="hidden";
return ;
}
if(this._f378.style.visibility=="hidden")
this._f378.style.visibility="visible";
this.tileWidth=this.mapConfig.zoomLevels[this.parent._f223].tileImageWidth;
this.tileHeight=this.mapConfig.zoomLevels[this.parent._f223].tileImageHeight;
this._f594=x6;this._f595=x7;
this._f349=Math.max(this.parent._f216,this.tileWidth*1);
this._f350=Math.max(this.parent._f217,this.tileHeight*1);
this._f602=x4;this._f603=x5;
this._f115=x6;this._f118=x7;
this._f596=Math.ceil((x4+this._f349*2)/this.tileWidth);
this._f597=Math.ceil((x5+this._f350*2)/this.tileHeight);
this._f600=0;this._f601=0;
this.origParLeft=this.parent._f179;this.origParTop=this.parent._f180;
this._f610();
var x8=Math.floor(this._f596/2);
var x9=Math.floor(this._f597/2);
this._f604=null;
this._f604=new _f328(this.mapConfig,x6,x7,this.parent._f223);
this.parent._f100=this.tileWidth/this._f604._f330;this.parent._f101=this.tileHeight/this._f604._f331;var x10=this._f602/2.0-(x6-this._f604.minX)*this.parent._f100;
var x11=this._f603/2.0+(x7-this._f604.minY)*this.parent._f101-this.tileHeight;
while(true)
{
var x12=x10-x8*this.tileWidth;
if(x12>0)
{
x8++;
continue;
}
var x13=x11-x9*this.tileHeight;
if(x13>0)
{
x9++;
continue;
}
var x14=x10+(this._f596-x8)*this.tileWidth-this._f602;
if(x14<0)
{
x8--;
continue;
}
var x15=x11+(this._f597-x9)*this.tileHeight-this._f603;
if(x15<0)
{
x9--;
continue;
}
var x16=x14+x12,x17=x15+x13;
if(x16>this.tileWidth)
{
x8++
continue;
}
else if(x16<(-1)*this.tileWidth)
{
x8--;
continue;
}
if(x17>this.tileHeight)
{
x9++;
continue;
}
if(x17<(-1)*this.tileHeight)
{
x9--;
continue;
}
break;
}
this._f308=x10-x8*this.tileWidth-this.parent._f179;
this._f309=x11-x9*this.tileHeight-this.parent._f180;
MVUtil._f108(this._f378,this._f308,this._f309);
this._f611(x8,x9,
this.tileWidth,this.tileHeight,
x8*this.tileWidth,x9*this.tileHeight);
this._f604._f329(-1,1);
var x18=Math.max(x8,this._f596-x8);
var x19=Math.max(x9,this._f597-x9);
for(_f103=1;_f103<=Math.max(x18,x19);_f103++)
{
for(xx=x8-_f103,yy=x9-_f103;
xx<=x8+_f103;xx++)
{
if(!(xx<0||xx>=this._f596||yy<0||yy>=this._f597))
{
this._f611(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f604._f329(1,0);
}
this._f604._f329(-(_f103*2+1),-1);
for(xx=x8-_f103,yy=x9-_f103+1;
yy<=x9+_f103-1;yy++)
{
if(!(xx<0||xx>=this._f596||yy<0||yy>=this._f597))
{
this._f611(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f604._f329(0,-1);
}
for(xx=x8-_f103,yy=x9+_f103;
xx<=x8+_f103;xx++)
{
if(!(xx<0||xx>=this._f596||yy<0||yy>=this._f597))
{
this._f611(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f604._f329(1,0);
}
this._f604._f329(-1,1);
for(xx=x8+_f103,yy=x9+_f103-1;
yy>=x9-_f103+1;yy--)
{
if(!(xx<0||xx>=this._f596||yy<0||yy>=this._f597))
{
this._f611(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f604._f329(0,1);
}
this._f604._f329(-(_f103*2+1),1);
}
this._f604._f329(_f103,-(_f103));
this._f604._f329(-x8+Math.floor(this._f596/2),
x9-Math.floor(this._f597/2));
}
_f381.prototype._f465=function()
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f223)
{
this._f378.style.visibility="hidden";
return;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f223)
{
this._f378.style.visibility="hidden";
return;
}
var x20=this.parent._f179+this._f600+this._f308;
var x21=this.parent._f180+this._f601+this._f309;
var x22=0,x23=0;
while(true)
{
var x24=x20-x22*this.tileWidth;
if(x24>0)
{
x22++;
continue;
}
var x25=x21-x23*this.tileHeight;
if(x25>0)
{
x23++;
continue;
}
var x26=x20+(this._f596-x22)*this.tileWidth-this._f602;
if(x26<0)
{
x22--;
continue;
}
var x27=x21+(this._f597-x23)*this.tileHeight-this._f603;
if(x27<0)
{
x23--;
continue;
}
var x28=x26+x24,x29=x27+x25;
if(x28>this.tileWidth)
{
x22++
continue;
}
else if(x28<(-1)*this.tileWidth)
{
x22--;
continue;
}
if(x29>this.tileHeight)
{
x23++;
continue;
}
if(x29<(-1)*this.tileHeight)
{
x23--;
continue;
}
break;
}
if(x22==0&&x23==0)
return ;
var x30=Math.floor(this._f596/2);
var x31=Math.floor(this._f597/2);
var x32=this._f604._f413-x30;
var x33=this._f604._f414+x31;
var x34;
if(x22!=0)
{
for(x34=0;(x22>0?x34<x22:x34>x22);(x22>0?x34++:x34--))
{
var x35;
var x36;
if(x22>0)
x36=this._f600-(x34+1)*this.tileWidth;
else
 x36=this._f600+(this._f596-x34)*this.tileWidth;
if(x22>0)
{
x35=this._f599[this._f599.length-1];
this._f599.pop();
for(var x37=0;x37<x35.length;x37++)
{
if(_f3._f13=="IF"&&this._f593)
{
x35[x37].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f605+"', sizingMethod='image');";
}
else
 {
x35[x37].src=this._f605;
}
x35[x37].style.left=MVUtil._f178(x36);
if(x23==0||
(x23>0&&x37<x35.length-x23)||
(x23<0&&x37>=-x23))
{
if(_f3._f13=="IF"&&this._f593)
{
x35[x37].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this._f608(x32-x34-1,x33-x37)+
"', sizingMethod='image');";
}
else
 {
x35[x37].src=this._f608(x32-x34-1,x33-x37);
}
}}
this._f599.unshift(x35);
}
else
 {
x35=this._f599[0];
this._f599.shift();
for(var x37=0;x37<x35.length;x37++)
{
if(_f3._f13=="IF"&&this._f593)
{
x35[x37].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f605+"', sizingMethod='image');";
}
else
 {
x35[x37].src=this._f605;
}
x35[x37].style.left=MVUtil._f178(x36);
if(x23==0||
(x23>0&&x37<x35.length-x23)||
(x23<0&&x37>=-x23))
if(_f3._f13=="IF"&&this._f593)
{
x35[x37].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f608(x32+this._f596-x34,x33-x37)+"', sizingMethod='image');";
}
else
 {
x35[x37].src=this._f608(x32+this._f596-x34,x33-x37);
}
}
this._f599.push(x35);
}
}
}
if(x23!=0)
{
var x38;
for(x38=0;(x23>0?x38<x23:x38>x23);(x23>0?x38++:x38--))
{
var x39;
if(x23>0)
x39=this._f601-(x38+1)*this.tileHeight;
else
 x39=this._f601+(this._f597-x38)*this.tileHeight;
for(x34=0;x34<this._f599.length;x34++)
{
var x35=this._f599[x34];
var x40;
if(x23>0)
{
x40=x35[x35.length-1];
if(_f3._f13=="IF"&&this._f593)
{
x40.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f605+"', sizingMethod='image');";
}
else
 {
x40.src=this._f605;
}
x35.pop();
x35.unshift(x40);
x40.style.top=MVUtil._f178(x39);
if(_f3._f13=="IF"&&this._f593)
{
x40.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f608(x32-x22+x34,x33+x38+1)+"', sizingMethod='image');";
}
else
 {
x40.src=this._f608(x32-x22+x34,x33+x38+1);
}
}
else
 {
x40=x35[0];
if(_f3._f13=="IF"&&this._f593)
{
x40.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f605+"', sizingMethod='image');";
}
else
 {
x40.src=this._f605;
}
x35.shift();
x35.push(x40);
x40.style.top=MVUtil._f178(x39);
if(_f3._f13=="IF"&&this._f593)
{
x40.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f608(x32-x22+x34,x33-this._f597+x38)+"', sizingMethod='image');";
}
else
 {
x40.src=this._f608(x32-x22+x34,x33-this._f597+x38);
}
}
}
}
}
this._f600=this._f600-x22*this.tileWidth;
this._f601=this._f601-x23*this.tileHeight;
this._f604._f329(-x22,x23);
}
_f381.prototype._f611=function(x41,x42,x43,x44,x45,x46)
{
var x47=this._f599[x41][x42];
if(x47==null)
{
x47=(_f3._f13=="IF"&&this._f593)?
document.createElement('div'):document.createElement('img');
this._f378.appendChild(x47);
this._f599[x41][x42]=x47;
}
if(_f3._f13=="IF"&&this._f593)
{
x47.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f605+"', sizingMethod='image');";
}
else
 {
x47.src=this._f605;
}
if(_f3._f13=="IF"&&!this._f593)
{
x47.galleryImg="no"}
MVUtil._f285(x47);
x47.style.position="absolute";
x47.style.left=MVUtil._f178(x45);
x47.style.top=MVUtil._f178(x46);
x47.style.width=MVUtil._f178(x43);
x47.style.height=MVUtil._f178(x44);
var x48=this._f608(this._f604._f413,this._f604._f414);
if(_f3._f13=="IF"&&this._f593)
{
x47.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x48+"', sizingMethod='image');";
}
else
 {
x47.src=x48;
if(_f3._f13!='IF')
{
x47.onerror=function(x49)
{
x47.onerror=null;
x47.src=x48;
}
}
}
return x47;
}
_f381.prototype._f610=function()
{
while(this._f599.length>this._f596)
{
var x50=this._f599.pop();
while(x50.length>0)
{
if(_f3._f13=="IF"&&this._f593)
{
MVUtil._f151(x50.pop());
}
else
 {
var x51=x50.pop();
if(x51!=null)
{
this._f378.removeChild(x51);
x51.src=null;
delete x51;
}
}}}
for(var x52=0;x52<this._f596;x52++)
{
if(x52>=this._f599.length)
this._f599.push(new Array());
else
 {
var x50=this._f599[x52];
while(x50.length>this._f597)
{
if(_f3._f13=="IF"&&this._f593)
{
MVUtil._f151(x50.pop());
}
else
 {
var x51=x50.pop();
if(x51!=null)
{
this._f378.removeChild(x51);
x51.src=null;
delete x51;
}
}}var x53;
for(x53=0;x53<x50.length;x53++)
{
if(x50[x53]!=null)
{
if(_f3._f13=="IF"&&this._f593)
{
x50[x53].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f605+"', sizingMethod='image');";
}
else
 {
x50[x53].src=this._f605;
}
}
}
while(x50.length<this._f597)
x50.push(null);
}
}
}
_f381.prototype.destroy=function()
{
while(this._f599.length>0)
{
var x54=this._f599.pop();
while(x54.length>0)
{
if(_f3._f13=="IF"&&this._f593)
{
MVUtil._f151(x54.pop());
}
else
 {
var x55=x54.pop();
if(x55!=null)
{
this._f378.removeChild(x55);
x55.src=null;
delete x55;
}
}}}
}
function MVThemeBasedFOI(x0,x1,x2)
{
this.name=x0;
this.parent="";
this._f69=x2;
this._f523=-1;
this._f390=100;
this._f86=true;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f124=null;
this._f542=null;
this._f82=null;
this._f83=null;
this._f84=null;
this._f85=null;
this._f550=null;
this._f520=null;
this._f393=2;
this._f394=2;
this._f76=true;
this._f506=true;
this._f77=true;
this._f519=null;
this._f662=null;
this._f540=null;
this._f650=null;
this._f535=null;
this._f411=-1;
this._f534=-1;
this._f398=false;
this._f537=new Array();
this._f536=null;
this._f410=true;
this.visible=true;
this._f89=true;
this.cursorStyle="pointer";
if(x1!=null)
{
this._f520=x1;
}
this._f532=false;
this._f533=null;
this._f528=true;
this.renderLabels=false;
this._f551=false;
this._f538=true;
this._f651=true;
this._f652=null;
this._f94=null;
}
MVThemeBasedFOI.prototype.setLayoutCustomizer=function(x0)
{
this._f550=x0;
}
MVThemeBasedFOI.prototype.setQueryParameters=function()
{
this._f519="&paramnum="+arguments.length;
for(var x1=0;x1<arguments.length;x1++)
{
if(typeof arguments[x1]=="object")
this._f519+=this.setObjectQueryParameters(arguments[x1],x1+1);
else
 this._f519+="&param"+(x1+1)+"="+encodeURIComponent(arguments[x1]);
}
return this._f519;
}
MVThemeBasedFOI.prototype.setObjectQueryParameters=function(x2,x3)
{
if(x2.gtype!=undefined)
return "&param"+x3+"="+encodeURI(x2)+"&paramtype"+x3+"=geometry";
else
 return "&param"+x3+"="+encodeURIComponent(x2.array)+"&paramtype"+x3+"="+x2.elementType+
"&sqltype"+x3+"="+x2.sqlType;
}
MVThemeBasedFOI.prototype.getQueryParameters=function()
{
return this._f519;
}
MVThemeBasedFOI.prototype.setMinVisibleZoomLevel=function(x4)
{
this._f523=x4;
}
MVThemeBasedFOI.prototype.setMaxVisibleZoomLevel=function(x5)
{
this._f390=x5;
}
MVThemeBasedFOI.prototype.setBringToTopOnMouseOver=function(x6)
{
this._f86=x6;
}
MVThemeBasedFOI.prototype.setMaxWholeImageLevel=function(x7)
{
this._f411=x7;
}
MVThemeBasedFOI.prototype.setMinClickableZoomLevel=function(x8)
{
this._f534=x8;
}
MVThemeBasedFOI.prototype.enableInfoTip=function(x9)
{
this._f76=x9;
}
MVThemeBasedFOI.prototype.enableInfoWindow=function(x10)
{
this._f506=x10;
}
MVThemeBasedFOI.prototype.enableInfoWindowForMouseOver=function(x11)
{
this._f551=x11;
}
MVThemeBasedFOI.prototype.enableInfoWindow=function(x12)
{
this._f506=x12;
}
MVThemeBasedFOI.prototype.setClickable=function(x13)
{
this._f77=x13;
}
MVThemeBasedFOI.prototype.addEventListener=function(x14,x15)
{
this.setEventListener(x14,x15);
}
MVThemeBasedFOI.prototype.setEventListener=function(x16,x17)
{
if(x16=="before_refresh")
{
this._f124=x17;
}
else if(x16=="after_refresh")
{
this._f542=x17;
}
else if(x16=="mouse_click")
{
this._f82=x17;
}
else if(x16=="mouse_right_click")
{
this._f83=x17;
}
else if(x16=="mouse_over")
{
this._f84=x17;
}
else if(x16=="mouse_out")
{
this._f85=x17;
}
}
MVThemeBasedFOI.prototype.setQueryWindowMultiplier=function(x18)
{
this._f393=x18;
this._f394=x18;
}
MVThemeBasedFOI.prototype.getLayerMBR=function()
{
var x19=MVSdoGeometry.createRectangle(this.minX,this.minY,this.maxX,this.maxY,this.parent.srid);
return x19;
}
MVThemeBasedFOI.prototype.setMarkerImage=function(x20,x21,x22)
{
this._f662=new _f663(x20,x21,x22);
}
MVThemeBasedFOI.prototype.getThemeName=function()
{
return this._f520;
}
function _f663(x0,x1,x2)
{
this._f70=x0;
this.width=x1;
this.height=x2;
}
MVThemeBasedFOI.prototype.getFOIMarker=function()
{
return this._f662;
}
MVThemeBasedFOI.prototype.setVisible=function(x23)
{
this.visible=x23;
if(this.parent._f142)
this.parent._f142._f409();
if(this.parent._f243)
{
for(var x24=0;x24<this.parent._f243.length;x24++)
{
if(this.parent._f243[x24].getThemeBasedFOI()==this)
{
this.parent._f243[x24].setVisible(this.parent,x23);
return;
}
}
}
}
MVThemeBasedFOI.prototype.setInfoWindowStyle=function(x25,x26)
{
this._f650=x25;
this._f94=x26;
}
MVThemeBasedFOI.prototype.isVisible=function()
{
if(this.parent._f243)
{
for(var x27=0;x27<this.parent._f243.length;x27++)
{
if(this.parent._f243[x27].getThemeBasedFOI()==this)
{
return this.parent._f243[x27].isVisible();
}
}
}
}
MVThemeBasedFOI.prototype.refresh=function(x28)
{
this.parent._f166();
if(this.parent._f243)
{
for(var x29=0;x29<this.parent._f243.length;x29++)
{
if(this==this.parent._f243[x29].getThemeBasedFOI())
{
var x30=this.parent._f243[x29];
var x31=this.parent._f391(x30);
if(x28)
x28=true;
else
 x28=false;
x30._f401(this.parent,x31[0],x31[1],x31[2],x31[3],true,x28,!x28);
return ;
}
}
}
}
MVThemeBasedFOI.prototype.getFOIData=function()
{
if(this._f540==null||this._f540.foiarray==null)
{
return null;
}
else
 return this._f540.foiarray;
}
MVThemeBasedFOI.prototype.setNSDP=function(x32)
{
this._f535=x32;
}
MVThemeBasedFOI.prototype.setBoundingTheme=function(x33)
{
this._f398=x33;
}
MVThemeBasedFOI.prototype.zoomToTheme=function()
{
this.refresh(true);
}
MVThemeBasedFOI.prototype.addStyle=function(x34)
{
var x35=this._f537.concat(x34);
this._f537=null;
this._f537=x35;
}
MVThemeBasedFOI.prototype.deleteStyle=function(x36)
{
var x37=-1;
for(var x38=0;x38<this._f537.length;x38++)
{
var x39=this._f537[x38];
if(x39!=null&&x39==x36)
{
x37=x38;
break;
}
}
if(x37<0)
return;
var x40=0;
var x41=new Array(this._f537.length-1);
for(var x38=0;x38<this._f537.length;x38++)
{
if(x38!=x37)
{
x41[x40]=this._f537[x38];
x40++;
}
}
this._f537=null;
this._f537=x41;
}
MVThemeBasedFOI.prototype.deleteAllStyles=function()
{
for(var x42=0;x42<this._f537.length;x42++)
this._f537[x42]=null;
this._f537=new Array();
}
MVThemeBasedFOI.prototype.setRenderingStyle=function(x43)
{
this._f536=x43;
}
MVThemeBasedFOI.prototype.setAutoRefresh=function(x44)
{
this._f410=x44;
}
MVThemeBasedFOI.prototype.enableEventPropagation=function(x45)
{
this._f89=x45;
}
MVThemeBasedFOI.prototype.setMouseCursorStyle=function(x46)
{
this.cursorStyle=x46;
}
MVThemeBasedFOI.prototype.setHighlightOnly=function(x47)
{
this._f532=x47;
}
MVThemeBasedFOI.prototype.setFilteringGeom=function(x48)
{
this._f533=x48;
}
MVThemeBasedFOI.prototype.getFilteringGeom=function()
{
return this._f533;
}
MVThemeBasedFOI.prototype.enableImageRendering=function(x49)
{
this._f528=x49;
}
MVThemeBasedFOI.prototype.enableLabels=function(x50)
{
this.renderLabels=x50;
}
MVThemeBasedFOI.prototype.enableImageCaching=function(x51)
{
this._f538=x51;
}
MVThemeBasedFOI.prototype.getLayerName=function()
{
return this.name;
}
MVThemeBasedFOI.prototype.setInfoWindowTitle=function(x52)
{
this._f652=x52;
}
MVThemeBasedFOI.prototype.setNameAsInfoWindowTitle=function(x53)
{
this._f651=x53;
}
function MVArrayParameter(x0,x1,x2)
{
this.array=x0;
this.elementType=x1;
this.sqlType=x2;
}
function ArrayParameter(x0,x1,x2)
{
this.array=x0;
this.elementType=x1;
this.sqlType=x2;
}
function _f405(x0,x1)
{
this.parent=x0;
this._f417=false;
if(!x1._f69)
{
if(this.parent._f273)
{
if(MVUtil._f168(this.parent._f273,'/'))
x1._f69=this.parent._f273+'foi';
else
 x1._f69=this.parent._f273+'/foi';
}
else
 MVi18n.processLocale("MAPVIEWER-5504");}
if(MVMapView._f27&&MVUtil._f25(x1._f69)!=MVUtil._f25(this.parent._f62))
x1._f69=_f3._f66()+"?rtarget="+x1._f69;
this._f392=x1;
this._f509=0;
this._f510=0;
this.width=0;
this.height=0;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f511=0;
this._f512=0;
this._f513=0;
this._f514=0;
this._f408=true;
this._f223=0;
this._f515=true;
this._f516=false;
this._f121=0;
this._f122=0;
this._f517=0;
this._f518=0;
this._f115=0;
this._f118=0;
this._f476=false;
this._f407=1;this.div=document.createElement("div");
this.div.style.position="absolute";
this._f406=0;
this.div.style.zIndex=132;
if(!x1.visible)
this.div.style.visibility="hidden";
this.parent.div.appendChild(this.div);
this._f400=document.createElement("div");
this._f399=document.createElement("map");
}
_f405.prototype._f183=function()
{
if(this._f392._f519==null)
return "<theme name=\""+MVUtil._f185(this._f392._f520)+
"\" render_labels=\"false\" datasource=\""+
MVUtil._f521(this._f392._f520)+"\"/>";
else
 {
var x0="<theme name=\""+MVUtil._f185(this._f392._f520)+
"\" render_labels=\"false\" datasource=\""+
MVUtil._f521(this._f392._f520)+"\">\n"+
"  <binding_parameters>\n";
if(this._f392._f519.indexOf("=geometry")>-1)
{
return "<theme name=\""+MVUtil._f185(this._f392._f520)+
"\" render_labels=\"false\" datasource=\""+
MVUtil._f521(this._f392._f520)+"\"/>";
}
else if(this._f392._f519.indexOf("&sqltype")>-1){
var x1=this._f392._f519.indexOf("&param1=");
if(x1!=-1)
{
var x2=x1+8;
var x3=this._f392._f519.indexOf("&",x2);
var x4=this._f392._f519.substring(x2,x3);
x4=decodeURIComponent(x4);
var x5="sarray";
x1=this._f392._f519.indexOf("&paramtype1=");
if(x1>-1)
{
x2=x1+12;
x3=this._f392._f519.indexOf("&",x2);
x5=this._f392._f519.substring(x2,x3);
}
var x6=x4;
if(x5=="sarray")
{
var x7=x4.split(",");
x6="";
for(var x8=0;x8<x7.length;x8++)
{
if(x8>0)
x6+=",";
x6+=x7[x8].substring(1,x7[x8].length-1);
}
}
x0+="    <parameter value=\""+x6+"\"";
x1=this._f392._f519.indexOf("&sqltype1=");
if(x1!=-1)
{
x2=x1+10;
x3=this._f392._f519.length;
var x4=this._f392._f519.substring(x2,x3);
x0+=" type=\""+x4+"\"";
}
x0+="/>\n";
x0+="  </binding_parameters>\n";
x0+="</theme>";
return x0;
}
else
 return "<theme name=\""+MVUtil._f185(this._f392._f520)+
"\" render_labels=\"false\" datasource=\""+
MVUtil._f521(this._f392._f520)+"\"/>";
}
else
 {
var x1=this._f392._f519.indexOf("&paramnum=");
if(x1!=-1)
{
var x2=x1+10;
var x3=this._f392._f519.indexOf("&",x2);
var x9=this._f392._f519.substring(x2,x3);
for(var x8=0;x8<x9;x8++)
{
x1=this._f392._f519.indexOf("&param"+(x8+1)+"=");
if(x1==-1)
continue;
if(x8<9)
x2=x1+8;else
 x2=x1+9;if(x8==(x9-1))
x3=this._f392._f519.length;else
 x3=this._f392._f519.indexOf("&",x2);
var x4=this._f392._f519.substring(x2,x3);
x4=decodeURIComponent(x4);
x0+="    <parameter value=\""+x4+"\"/>\n";
}
x0+="  </binding_parameters>\n";
x0+="</theme>";
}
return x0;
}
}
}
_f405.prototype.setSize=function(x10,x11)
{
this.width=x10;
this.height=x11;
}
_f405.prototype._f397=function(x12,x13)
{
if(!this._f417)
{
if(this._f392._f393==1&&this._f392._f394==1)
{
this._f509=this.width;
this._f510=this.height;
}
else
 {
this._f509=x12;
this._f510=x13;
}
}
}
_f405.prototype._f123=function()
{
return this._f476;
}
_f405.prototype._f522=function()
{
return this.request;
}
_f405.prototype._f144=function()
{
return this.minX;
}
_f405.prototype._f145=function()
{
return this.minY;
}
_f405.prototype._f146=function()
{
return this.maxX;
}
_f405.prototype._f147=function()
{
return this.maxY;
}
_f405.prototype.isVisible=function()
{
if(this._f223<this._f392._f523||this._f223>this._f392._f390)
return false;
else
 return !(this.div.style.visibility=='hidden');
}
_f405.prototype._f148=function()
{
return this.div;
}
_f405.prototype.getThemeBasedFOI=function()
{
return this._f392;
}
_f405.prototype._f524=function()
{
return this._f517;
}
_f405.prototype._f525=function()
{
return this._f518;
}
_f405.prototype._f526=function(x14)
{
this._f517=x14;
}
_f405.prototype._f527=function(x15)
{
this._f518=x15;
}
_f405.prototype.setVisible=function(x16,x17)
{
if(x17)
{
if(!this.isVisible())
{
if(this._f516)
{
if((_f3._f13!="IF"&&this._f392.getFOIData()!=null&&
this._f392.getFOIData()[0].gtype%10!=1)||
this._f392._f411>=this._f223||
!this._f392._f528)
{
this.parent._f284.style.visibility="visible";
}
}
this.div.style.visibility="visible";
if(!this._f515)
{
MVUtil._f108(this.div,Math.ceil((this.minX-this.parent._f130)*this.parent._f100),
-Math.ceil((this.maxY-this.parent._f133)*this.parent._f101));
this._f401(this.parent,this.minX,this.minY,this.maxX,this.maxY,true);
}
}
}
else
 {
if(this._f516)
{
if((_f3._f13!="IF"&&this._f392.getFOIData()!=null&&
this._f392.getFOIData()[0].gtype%10!=1)||
this._f392._f411>=this._f223||
!this._f392._f528)
{
this.parent._f284.style.visibility="hidden";
if(this.parent._f142._f143.length>0)
{
for(var x18=0;x18<this.parent._f284.childNodes.length;x18++)
{
if(this.parent._f142._f143[0].nid==this.parent._f284.childNodes[x18].id)
{
this.parent._f142.deleteInfoWindow(this.parent._f142._f143[0]);
break;
}
}
}
}
else if(this.parent._f142._f143.length>0)
{
for(var x19=0;x19<this.div.childNodes.length;x19++)
{
if(this.parent._f142._f143[0].nid==this.div.childNodes[x19].id)
{
this.parent._f142.deleteInfoWindow(this.parent._f142._f143[0]);
break;
}
}
}
}
this.div.style.visibility="hidden";
this._f476=false;
this.parent._f324();
}
}
_f405.prototype._f106=function()
{
if(this._f476)
return this._f121;
else
 return MVUtil._f106(this.div);
}
_f405.prototype._f107=function()
{
if(this.oading)
return this._f122;
else
 return MVUtil._f107(this.div);
}
_f405.prototype._f529=function(x20)
{
if(this._f476)
this._f121=x20;
}
_f405.prototype._f530=function(x21)
{
if(this._f476)
this._f122=x21;
}
_f405.prototype._f126=function()
{
return this.width;
}
_f405.prototype._f128=function()
{
return this.height;
}
_f405.prototype._f153=function()
{
this._f152();
while(this.div.childNodes.length>0)
{
var x22=this.div.childNodes[0];
this.div.removeChild(x22);
if(this.parent._f142._f143.length>0)
if(this.parent._f142._f143[0].nid==x22.id)
{
this.parent._f142.deleteInfoWindow(this.parent._f142._f143[0]);
}
MVUtil._f151(x22);
}
}
_f405.prototype._f152=function()
{
while(this.div.childNodes.length>0)
{
var x23=this.div.childNodes[0];
while(x23.childNodes.length>0)
{
var x24=x23.childNodes[0];
MVUtil._f151(x24);
x23.removeChild(x24);
}
MVUtil._f151(x23);
this.div.removeChild(x23);
}
if(this._f407!=1)
{
while(this._f399.childNodes.length>0)
{
MVUtil._f151(this._f399.childNodes[0]);
this._f399.removeChild(this._f399.childNodes[0]);
}
while(this._f400.childNodes.length>0)
{
while(this._f400.childNodes[0].childNodes.length>0)
{
MVUtil._f151(this._f400.childNodes[0].childNodes[0]);
this._f400.childNodes[0].removeChild(this._f400.childNodes[0].childNodes[0]);
}
MVUtil._f151(this._f400.childNodes[0]);
this._f400.removeChild(this._f400.childNodes[0]);
}
var x25=0;
for(;x25<this.parent._f284.childNodes.length;x25++)
{
if(this.parent._f284.childNodes[x25].getAttribute("theme")==this._f392._f520)
{
MVUtil._f151(this.parent._f284.childNodes[x25]);
this.parent._f284.removeChild(this.parent._f284.childNodes[x25]);
x25--;
}
}
}
}
_f405.prototype._f401=function(x26,x27,x28,x29,x30,x31,x32,x33)
{
this._f476=true;
if(!this._f417)
{
this._f392.minX=this.minX=x27;
this._f392.minY=this.minY=x28;
this._f392.maxX=this.maxX=x29;
this._f392.maxY=this.maxY=x30;
}
this._f121=Math.ceil((this.minX-this.parent._f130)*this.parent._f100);
this._f122=-Math.ceil((this.maxY-this.parent._f133)*this.parent._f101);
MVUtil._f108(this.div,this._f121,this._f122);
this._f115=this.parent._f114;
this._f118=this.parent._f117;
if(this._f392._f124)
{
this._f392._f124();
}
this._f408=x31;
this._f223=this.parent._f223;
this._f152();
if(this._f223<this._f392._f523||this._f223>this._f392._f390)
return ;
if(!this.isVisible())
{
this._f515=false;
return;
}
this._f515=true;
if(this._f417)
{
this._f531();
return ;
}
this.adjustBBox(x32);
var x34="request=getfoi&version=1.0"+
"&theme="+encodeURIComponent(this._f392._f520)+"&bbox="+
this._f511+":"+this._f512+":"+
this._f513+":"+this._f514+
"&width="+this.adjustedRealWidth+"&height="+this.adjustedRealHeight;
if(this._f392._f532==true){
if(!this._f392._f533)
{
MVi18n.processLocale("MAPVIEWER-5514");
return;
}
this._f392.setQueryParameters(this._f392._f533);
x34+="&hilite=yes";
}
if(this._f392.getQueryParameters())
{
x34+=this._f392.getQueryParameters();
}
if(this._f392.getFOIMarker()||
!this._f392._f528)
{
x34+="&renderimg=no";
}
if(this._f392._f77&&this._f392._f534<=this._f223)
{
x34+="&clickable=yes";
}
else
 {
x34+="&clickable=no";
}
if(_f3._f13!="IF"||
this._f392._f411>=this._f223||
!this._f392._f528)
{
x34+="&area=yes";
}
else
 {
x34+="&area=no";
}
x34+="&dstsrid="+this.parent.srid;
if(this._f392._f535!=null)
{
x34+="&nsdp="+encodeURIComponent(this._f392._f535.getFlatString());
}
if(this._f392._f411>=this._f223)
x34+="&wholeimage=yes";
if(this._f392.renderLabels)
x34+="&renderlabels=yes";
var x35=this;
this.startLoad=MVUtil._f163(this,function()
{
x35._f531();
});
if(x32){
x34+="&boundingtheme=yes&mapcache="+encodeURI(this.parent._f242[0]._f21)+
"&mapwinwidth="+this.parent._f127()+
"&mapwinheight="+this.parent._f129()+
"&wholeimagelevel="+this._f392._f411;
}
if(this._f392._f536!=null)
{
x34+="&trs="+encodeURIComponent(this._f392._f536);
}
var x36=this._f392._f537;
if(x36.length>0)
{
x34+="&tempstyles=";
var x37="<styles>";
for(var x38=0;x38<x36.length;x38++)
{
x37+=x36[x38].getXMLString();
}
x37+="</styles>";
x34+=encodeURIComponent(x37);
}
if(!this._f392._f538||x33)
x34+="&refresh="+Math.round(Math.random()*100000);
if(this._f392._f538&&this._f392._f411<this._f223)
x34+="&cachefoi=yes";
var x39=(this._f392._f69.indexOf(_f3._f66())<0&&
MVUtil._f25(this._f392._f69)==MVUtil._f25(_f3._f26()));
var x40=x39||MVMapView._f27;
if(MVMapView.debug)
MVi18n.processLocale("MAPVIEWER-5515","Sending Theme Based FOI request. URL:"+this._f392._f69+" Parameters:"+x34);
try
{
this.parent.setLoadingIconVisible(true);
if(this.request)
{
this.request.onreadystatechange=function(){};
this.request.abort();
this.request=null;
}
this.request=MVUtil.getXMLHttpRequest(x40);
this.request.onreadystatechange=this.startLoad;
this.request.open("POST",this._f392._f69,true);
this.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
this.request.send(x34);
}
catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
this._f476=false;
this.parent._f324();
}
}
_f405.prototype._f531=function()
{
if(this.request.readyState==4||this._f417)
{
if(this.request.status==200||this._f417)
{
var result=null;
if(!this._f417)
{
try
{
eval("result="+this.request.responseText);
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5511",this.request.responseText);
this._f476=false;
this.parent._f324();
return ;
}
this.boundingThemeResult=result;
}
else
 result=this.boundingThemeResult;
if(result.adjlevel>=0&&!this._f417)
{
this._f417=true;
this._f392.minX=this.minX=result.minx;
this._f392.minY=this.minY=result.miny;
this._f392.maxX=this.maxX=result.maxx;
this._f392.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._f539=true;
this._f417=false;
if(!this.div)
return ;
this._f152();
if(result.foiarray.length>=1)
{
this._f392._f540=result;
this.parent._f166();
if(this._f392._f411>=this._f223||
!this._f392._f528||
(_f3._f13!="IF"&&result.foiarray[0].gtype%10!=1))
{
this._f407=2;
this._f541(result);
}
else
 {
this._f407=1;
}
if(result.foiarray[0].gtype%10!=1)
{
if(this._f406!=2)
{
this.parent._f284.style.zIndex=this.div.style.zIndex;
}
}
if(this._f392._f534<=this._f223||
this._f392._f411<this._f223)
{
for(var i=0;i<result.foiarray.length;i++)
{
result.foiarray[i].attrnames=result.attrnames;
if(this._f407==1&&_f3._f13!="IF"&&result.foiarray[i].gtype%10!=1)
{
this._f407=3;
this._f541(result);
}
this._f412(result.foiarray[i]);
}
}
this._f516=true;
}
else
 this._f392._f540=null;
if(this._f392._f542)
{
this._f392._f542();
}
this._f476=false;
this.parent._f324();
}
}
}
_f405.prototype._f541=function(x41)
{
var x42=this.adjustedRealWidth;
var x43=this.adjustedRealHeight;
var x44=MVUtil._f112(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this._f509,this._f510,this._f511,this._f514);
MVUtil._f108(this.parent._f284,0,0);
if(this._f392.visible)
this.parent._f284.style.visibility="visible";
this._f400.style.position="absolute";
this._f400.id=this._f392.name;
var x45=(this._f511-this.minX)*this.parent._f100;
var x46=(this.maxY-this._f514)*this.parent._f101;
var x47=(this.parent._f114-this._f115)*this.parent._f100;
var x48=(this.parent._f117-this._f118)*this.parent._f101;
MVUtil._f108(this._f400,this._f121-this.parent._f179-x47+x45,
this._f122-this.parent._f180+x48+x46);
this._f400.style.zIndex=126;
var x49="";
if(this._f392._f411>=this._f223&&this._f392._f528)
x49=x41.foiarray[0].imgurl;
else
 x49=_f3._f51+"transparent.gif";
if(_f3._f13=="IF"&&
(this._f392._f411>=this._f223||
!this._f392._f528))
{
this._f545=document.createElement("div");
this._f545.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x49+"', sizingMethod='image');";
this._f545.style.position="absolute";
MVUtil._f108(this._f545,0,0);
if(this._f392._f534<=this._f223)
{
var x50=document.createElement("div");
x50.style.zIndex="127";
var x51=document.createElement("img");
x51.width=MVUtil._f178(x42)
x51.height=MVUtil._f178(x43);
x51.style.width=MVUtil._f178(x42);
x51.style.height=MVUtil._f178(x43);
x51.style.border=0;
x51.src=_f3._f51+"transparent.gif";
x51.setAttribute("usemap","#polygonMap"+this.parent._f214,0);
x50.style.position="absolute";
x50.appendChild(x51);
this._f400.appendChild(x50);
}
}
else
 {
this._f545=document.createElement("img");
this._f545.src=x49;
this._f545.setAttribute("usemap","#polygonMap"+this.parent._f214);
}
this._f545.width=x42;
this._f545.height=x43;
this._f545.style.width=MVUtil._f178(x42);
this._f545.style.height=MVUtil._f178(x43);
this._f545.style.border=0;
this._f399.setAttribute("name","polygonMap"+this.parent._f214);
this._f399.setAttribute("id","polygonMap"+this.parent._f214);
this.parent._f284.style.zIndex=this.div.style.zIndex;
this.parent._f284.appendChild(this._f400);
this._f400.setAttribute("theme",this._f392._f520);
this._f400.appendChild(this._f545);
this._f400.appendChild(this._f399);
if(this._f406!=2)
{
this.parent._f284.style.zIndex=this.div.style.zIndex;
}
}
var _f548=0;
_f405.prototype.setTimeout=function(_f139,_f140)
{
var Ie="tempVar"+_f548;
_f548++;
eval(Ie+" = this;");
var oi=_f139.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f140);
}
_f405.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f405.prototype._f549=function(x52)
{
this._f382=0;
this.result=x52;
this.startDisplayGroupFoi();
}
_f405.prototype.startDisplayGroupFoi=function()
{
for(var x53=0;x53<180;x53++)
{
if(this._f382<this.result.foiarray.length)
{
this.result.foiarray[this._f382].attrnames=this.result.attrnames;
this._f412(this.result.foiarray[this._f382]);
this._f382++;
}
else
 {
return;
}
}
this.setTimeout("this.startDisplayGroupFoi()",2);
}
_f405.prototype._f412=function(x54)
{
if(this._f392._f411>=this._f223||
x54.imgurl||x54.area||this._f392.getFOIMarker())
{
var x55=this;
var x56=null;
if(this._f392._f411<this._f223&&
this._f392._f528)
{
if(this._f392.getFOIMarker())
{
x54.imgurl=this._f392.getFOIMarker()._f70;
x54.width=this._f392.getFOIMarker().width;
x54.height=this._f392.getFOIMarker().height;
}
var x57=x54.imgurl.toLowerCase().indexOf('.png')==-1?false:true;
if((_f3._f13=="IF"&&x57)||
(x55._f392._f550&&x54.gtype%10==1))
{
x56=document.createElement('div');
}
else
 x56=document.createElement('img');
x56.className="noprint";
MVUtil._f285(x56);
x56.style.position="absolute";
x56.style.width=MVUtil._f178(x54.width);
x56.style.height=MVUtil._f178(x54.height);
if(x54.id&&x54.id!=null)
x56.id=x54.id;
x56._f175=x54.x;
x56._f176=x54.y;
var x58=(this.parent._f114-this._f115)*this.parent._f100;
var x59=(this.parent._f117-this._f118)*this.parent._f101;
var x60=MVUtil._f112(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this._f509,this._f510,x54.x,x54.y);
x60[0]-=x58;
x60[1]+=x59;
if(x54.gtype%10==1)
MVUtil._f108(x56,x60[0]-x54.width/2,x60[1]-x54.height/2);
else
 MVUtil._f108(x56,x60[0],x60[1]);
x56.style.zIndex=160;
}
var x61=MVSdoGeometry.createPoint(0,0);
var x62=x61;
var x63=x55._f392._f89;
var x64=function(x65)
{
x65=(x65)?x65:((window.event)?event:null);
if(x65&&!x63)
{
if(_f3._f13=="IF")
x65.cancelBubble=true;
else if(x65.stopPropagation)
x65.stopPropagation();
}
}
var x66=function(x67)
{
x67=(x67)?x67:((window.event)?event:null);
if(x67&&!x63)
{
MVUtil._f169(x67);
}
}
var x68=function(x69)
{
x61=MVUtil._f170(x69);
x66(x69);
}
var x70="";
if(x54.name&&x54.name!="null")
x70=x54.name;
if((_f3._f13=="IF"||_f3._f13=="NS")
&&x55._f392._f76&&x54.name&&x54.name!="null"&&x56)
{
x56.title=x70;
}
if(x54.name)
x54.name=MVUtil._f109(x54.name," ","&nbsp;");
if(x56&&(_f3._f13=="IF"||x54.gtype%10==1)&&
this._f392._f528)
{
this.div.appendChild(x56);
if(!x55._f392._f550)
{
if(_f3._f13=="IF"&&x57)
{
x56.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x54.imgurl+"', sizingMethod='image');";
}
if(!x55._f392._f550)
{
x56.setAttribute("id",x54.id);
x56.src=x54.imgurl;
x56.setAttribute("border",0);
}
}
if(x55._f392._f550)
{
x55._f392._f550(x54);
var x71=document.createElement("div");
x71.style.position="absolute";
var x72=x54.xoffset;
var x73=x54.yoffset;
x71.style.left=MVUtil._f178(x72);
x71.style.top=MVUtil._f178(x73);
x71.style.padding=MVUtil._f178(0);
x71.innerHTML=""+x54.html+"";
x56.appendChild(x71);
}
var x74=function(x75)
{
var x76=MVUtil.getMouseLocation(x55.parent,x75);
if(x55._f392._f84)
{
var x77=MVSdoGeometry.createPoint(x76.sdo_point.x,x76.sdo_point.y,x55.parent.srid);
x55._f392._f84(x77,x54);
}
else if(x55._f392._f551&&
!(x55.parent._f142._f552()&&!x55.parent._f142.mouseOver))
{
if(x54.attrs!=null)
{
if(x54.attrs.length>=1&&x55._f392._f506)
{
x55.parent._f142._f553(x54.attrs,x54.attrnames,x54.id,
x54.name,x76.sdo_point.x,x76.sdo_point.y,null,null,
x55._f392,300,true);
}
}
}
if(x55._f392._f86)
{
x56.style.zIndex=161;
}
if(!x56.title&&x54.name&&x54.name!="null"&&x55._f392._f76)
{
x55.parent._f142.showTextTip(x54.name,x76.sdo_point.x,x76.sdo_point.y);
}
};
var x78=function(x79)
{
if(x55._f392._f85)
{
var x80=MVUtil.getMouseLocation(x55.parent,x79);
var x81=MVSdoGeometry.createPoint(x80.sdo_point.x,x80.sdo_point.y,x55.parent.srid);
x55._f392._f85(x81,x54);
}
if(x55._f392._f551&&
!(x55.parent._f142._f552()&&!x55.parent._f142.mouseOver))
{
if(x54.attrs!=null)
{
if(x54.attrs.length>=1&&x55._f392._f506)
{
x55.parent.removeInfoWindow();
}
}
}
x56.style.zIndex=160;
x55.parent._f142._f174();
};
x56.onmouseover=x74;
x56.onmouseout=x78;
if(this._f392._f77)
{
var x82=x54.x;
var x83=x54.y;
MVUtil._f105(x56,this._f392.cursorStyle);
var x84=function(x85)
{
x62=MVUtil._f170(x85);
x85=(x85)?x85:((window.event)?event:null);
if(x85.button==2)
{
return;
}
if(x61.x==x62.x&&x61.y==x62.y)
{
x55.parent._f172();
if(x55.parent._f171)
return ;
if(x55.parent.getBrowserType()=="NS")
{
x55.parent._f238=null;
}
var x86=MVUtil.getMouseLocation(x55.parent,x85);
if(x55._f392._f82)
{
var x87=MVSdoGeometry.createPoint(x86.sdo_point.x,x86.sdo_point.y,x55.parent.srid);
x55._f392._f82(x87,x54,MVUtil.getEvent(x85));
}
else if(x54.attrs!=null)
{
if(x54.attrs.length>=1&&x55._f392._f506)
{
x55.parent._f142._f553(x54.attrs,x54.attrnames,x54.id,
x54.name,x86.sdo_point.x,x86.sdo_point.y,null,null,
x55._f392,300);
}
}
}
x66(x85);
};
var x88=function(x89)
{
if(x55._f392._f83)
{
var x90=MVUtil.getMouseLocation(x55.parent,x89);
var x91=MVSdoGeometry.createPoint(x90.sdo_point.x,x90.sdo_point.y,x55.parent.srid);
x55._f392._f83(x91,x54,MVUtil.getEvent(x89));
}
x66(x89);
};
if(this._f392._f534<=this._f223)
{
x56.onmousedown=x68;
x56.onmouseup=x84;
x56.oncontextmenu=x88;
}
}
if(this._f392._f534<=this._f223)
{
x56.ondblclick=x66;
x56.onclick=x64;
x56.onkeyup=x64;
}
MVUtil._f181(x56);
}
else {
var x92=x70;
var x93=Math.floor((x54.x-this.minX)*this.parent._f100+0.5);
var x94=Math.floor((this.maxY-x54.y)*this.parent._f101+0.5);
var x95="";
if(this._f392._f77)
{
var x96=document.createElement("area");
x96.setAttribute("border",0);
if(_f3._f13!="OS")
{
x96.setAttribute("title",x92);
x96.setAttribute("href","javascript:void(0)");
}
if(x54.gtype%10==1)
{
var x60=MVUtil._f112(this.parent,this.minX,this.minY,
this.maxX,this.maxY,
this._f509,this._f510,
x54.x,x54.y);
x60[0]+=this.parent._f179;
x60[1]+=this.parent._f180;
x96.setAttribute("shape","rect");
var x97=(x60[0]-x54.width/2)+","+(x60[1]-x54.height/2)+","+
(x60[0]+x54.width/2)+","+(x60[1]+x54.height/2);
x96.setAttribute("coords",x97);
}
else
 {
var x98="";
if(typeof(x54.area)=='undefined')
x98="0,0";
else
 x98=x54.area;
x96.setAttribute("shape","poly");
x96.setAttribute("coords",x98);
}
var x99=function(x100)
{
x62=MVUtil._f170(x100);
x100=(x100)?x100:((window.event)?event:null);
if(x100.button==2)
{
return;
}
if((x61.x==x62.x&&x61.y==x62.y))
{
if(x55.parent.getBrowserType()=="NS")
{
x55.parent._f238=null;
}
if(x55._f392._f82)
{
var x101=MVUtil.getMouseLocation(x55.parent,x100);
var x102=MVSdoGeometry.createPoint(x101.sdo_point.x,x101.sdo_point.y,x55.parent.srid);
x55._f392._f82(x102,x54,MVUtil.getEvent(x100));
}
else if(x54.attrs!=null)
{
if(x54.attrs.length>=1&&x55._f392._f506)
{
var x101=MVUtil.getMouseLocation(x55.parent,x100);
x55.parent._f142._f553(x54.attrs,x54.attrnames,
x54.id,x54.name,x101.sdo_point.x,x101.sdo_point.y,null,null,
x55._f392,300);
}
}
}
x66(x100);
};
var x103=function(x104)
{
var x105=MVUtil.getMouseLocation(x55.parent,x104);
if(x55._f392._f84)
{
var x106=MVSdoGeometry.createPoint(x105.sdo_point.x,x105.sdo_point.y,x55.parent.srid);
x55._f392._f84(x106,x54);
}
else if(x55._f392._f551&&
!(x55.parent._f142._f552()&&!x55.parent._f142.mouseOver))
{
if(x54.attrs!=null)
{
if(x54.attrs.length>=1&&x55._f392._f506)
{
x55.parent._f142._f553(x54.attrs,x54.attrnames,x54.id,
x54.name,x105.sdo_point.x,x105.sdo_point.y,null,null,
x55._f392,300,true);
}
}
}
if(!x96.title&&x54.name&&x54.name!="null"&&x55._f392._f76)
{
x55.parent._f142.showTextTip(x54.name,x105.sdo_point.x,x105.sdo_point.y);
}
};
var x107=function(x108)
{
if(x55._f392._f85)
{
var x109=MVUtil.getMouseLocation(x55.parent,x108);
var x110=MVSdoGeometry.createPoint(x109.sdo_point.x,x109.sdo_point.y,x55.parent.srid);
x55._f392._f85(x110,x54);
}
if(x55._f392._f551&&
!(x55.parent._f142._f552()&&!x55.parent._f142.mouseOver))
{
if(x54.attrs!=null)
{
if(x54.attrs.length>=1&&x55._f392._f506)
{
x55.parent.removeInfoWindow();
}
}
}
x55.parent._f142._f174();
};
var x111=function(x112)
{
if(x55._f392._f83)
{
var x113=MVUtil.getMouseLocation(x55.parent,x112);
var x114=MVSdoGeometry.createPoint(x113.sdo_point.x,x113.sdo_point.y,x55.parent.srid);
x55._f392._f83(x114,x54,MVUtil.getEvent(x112));
}
x66(x112);
};
x96.onmousedown=x68;
x96.onmouseup=x99;
x96.onmouseover=x103;
x96.onmouseout=x107;
x96.oncontextmenu=x111;
x96.ondblclick=x66;
x96.onclick=x64;
x96.onkeyup=x64;
MVUtil._f181(x96);
this._f399.appendChild(x96);
}
if(x56)
{
MVUtil._f108(x56,x93+this._f121-this.parent._f179-x58,
x94+this._f122-this.parent._f180+x59);
x56.style.position="absolute";
x56.style.width=MVUtil._f178(x54.width);
x56.style.height=MVUtil._f178(x54.height);
x56.id=this._f392.name;
x56.src=x54.imgurl;
x56.style.zIndex=125;
x56.setAttribute("theme",this._f392._f520);
this.parent._f284.appendChild(x56);
}
}
}
}
_f405.prototype.destroy=function()
{
this._f153();
this._f392._f540=null;
this._f392=null;
this.parent.div.removeChild(this.div);
this.div=null;
this.parent._f324();
this.parent=null;
}
_f405.prototype.adjustBBox=function(x115)
{
var x116=false;
if(!x115&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.minX<-180)
{
this._f511=-180;
x116=true;
}
else
 this._f511=this.minX;
if(!x115&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.maxX>180)
{
this._f513=180;
x116=true;
}
else
 this._f513=this.maxX;
if(!x115&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.minY<-90)
{
this._f512=-90;
x116=true;
}
else
 this._f512=this.minY;
if(!x115&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.maxY>90)
{
this._f514=90;
x116=true;
}
else
 this._f514=this.maxY;
this.adjustedRealWidth=Math.round(this._f509*
(this._f513-this._f511)/(this.maxX-this.minX));
this.adjustedRealHeight=Math.round(this._f510*
(this._f514-this._f512)/(this.maxY-this.minY));
}
function _f319(x0)
{
this.minX;
this.minY;
this.maxX;
this.maxY;
this.width;
this.height;
this.parent=x0;
this._f648=null;
this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.zIndex="1200";
this.parent.div.appendChild(this.div);
this._f76=document.createElement("div");
this._f76.style.position="absolute";
this._f76.style.backgroundColor="#FFFFDF";
this._f76.style.border="inset black 1px";
this._f76.style.visibility="hidden";
this._f76.style.zIndex="1200";
this.parent.div.appendChild(this._f76);
MVUtil._f108(this._f76,0,0);
this._f143=new Array(0);
this._f89=false;
this.mouseOver=false;
}
_f319.prototype.enableEventPropagation=function(x0)
{
this._f89=x0;
}
_f319.prototype._f409=function()
{}
_f319.prototype._f174=function()
{
this._f76.style.visibility='hidden';
}
_f319.prototype.refresh=function(x1,x2,x3,x4,x5,x6)
{
MVUtil._f108(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._f143.length;x7++)
{
var x8=MVUtil._f568(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,this._f143[x7].winX,this._f143[x7].winY);
this._f143[x7].style.visibility="hidden";
MVUtil._f108(this._f143[x7],x8.x,x8.y);
this._f143[x7].style.visibility="visible";
}
}
_f319.prototype._f148=function()
{
return this.div;
}
_f319.prototype.showTextTip=function(x9,x10,x11)
{
this._f76.innerHTML=x9;
if(_f3._f13=="NS"&&navigator.userAgent.toLowerCase().indexOf("netscape")>0)
{
var x12=MVUtil._f109(x9.toLowerCase(),"&nbsp;"," ").length;
this._f76.style.width=MVUtil._f178(x12*8+8);
}
var x13=MVUtil._f568(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x10,x11);
MVUtil._f108(this._f76,x13.x+10,x13.y+5);
this._f76.style.visibility="visible";
}
_f319.prototype._f552=function()
{
return this._f143.length>0;
}
_f319.prototype._f80=function(id,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23)
{
if(MVInfoWindowStyle1._f201)
{
clearTimeout(MVInfoWindowStyle1._f201);
MVInfoWindowStyle1._f201=null;
}
if(x19==null||x19=="")
{
x19=_f3._f11;
}
if(x21)
this.mouseOver=true;
else
 this.mouseOver=false;
this._f174();
var x24=this.parent;
if(!x16)
return ;
var x25=0;
for(;x25<this._f143.length;x25++)
{
if(id&&this._f143[x25].nid==id){
this.deleteInfoWindow(this._f143[x25]);
return ;
}
}
if(this._f143.length>0)
this.deleteInfoWindow(this._f143[0]);
var x26=document.createElement("div");
var x27=this;
var x28=function(x29)
{
x29=(x29)?x29:((window.event)?event:null);
var x30=!x27._f89;
if(x29&&!x27._f89)
{
if(_f3._f13=="IF")
x29.cancelBubble=true;
else if(x29.stopPropagation)
x29.stopPropagation();
}
}
var x31=function(x32)
{
x24._f251=true;
x28(x32);
}
var x33=function(x34)
{
x24._f251=false;
x28(x34);
}
x26.id="mvinfodiv";
x26.onmousedown=MVUtil._f163(x26,x28);
x26.onmouseup=MVUtil._f163(x26,x28);
x26.onmouseover=MVUtil._f163(x26,x31);
x26.onmouseout=MVUtil._f163(x26,x33);
x26.ondblclick=MVUtil._f163(x26,x28);
x26.onclick=MVUtil._f163(x26,x28);
x26.onkeyup=MVUtil._f163(x26,x28);
if(_f3._f13=="OS")
x26.onkeypress=MVUtil._f163(x26,x28);
else
 x26.onkeydown=MVUtil._f163(x26,x28);
if(x17==null||x18==null)
{
x17=_f3._f28;
x18=_f3._f29;
}
var x35=MVUtil._f568(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x14,x15);
x26.style.position="absolute";
var x36=document.createElement("div");
x36.style.width=x17;
x36.style.height=x18;
x36.innerHTML=x16;
this.div.appendChild(x26);
x26.style.visibility="hidden";
x26.appendChild(x36);
if(x19!=_f3._f11)
{
var x37=document.getElementById("mvinfotable");
var x38=document.getElementById("mvinfotable1");
var x39=0,x40=0;
if(x37!=null&&x38!=null)
{
if(x37.offsetWidth<=x38.offsetWidth)
x39=x38.offsetWidth+45;
else
 x39=x37.offsetWidth+45;
x17=x39;
}
if(x39>x17)
x17=x39;
if(x37!=null&&x38!=null)
{
x37.style.width=x17+"px";
if(x37.offsetHeight<=x38.offsetHeight)
x40=x38.offsetHeight+40;
else
 x40=x37.offsetHeight+40;
}
if(x40>x18)
x18=x40;
}
x26.removeChild(x36);
this._f648=null;
this._f648=new _f499(x26,0,0,x16,x17,x18,x19,x24,x21,this,x35,x22,x23);
this._f143.push(x26);
x26.nid=id;
x26.winX=x14;
x26.winY=x15;
MVUtil._f108(x26,x35.x,x35.y);
x26.style.visibility="visible";
x26.style.zIndex="1200";
x26.style.width=MVUtil._f178(0);
x26.style.height=MVUtil._f178(0);
if(!x21)
{
var x41=0;var x42=0;
if(x19==_f3._f11)
{
var x37=document.getElementById("infowindow3table");
if(x37!=null)
{
x17=x37.offsetWidth;
x37.style.width=MVUtil._f178(x17);
x18=x37.offsetHeight;
x41=MVUtil._f106(x37);
x42=MVUtil._f107(x37);
}
}
var x43=x17;
var x44=x18;
var x45=this.parent._f179+x35.x+x41;
var x46=this.parent._f180+x35.y+x42;
var x47=0;
var x48=0;
if(x45<0)
{
if(this.parent._f179+x35.x<x45)
x47=this.parent._f179+x35.x-10;
else
 x47=x45;
}
else if(this.parent._f179+x35.x<0)
x47=this.parent._f179+x35.x-10;
else if(x45+x43>this.width)
{
if(this.parent._f179+x35.x>x45+x43)
x47=this.parent._f179+x35.x-this.width+10;
else
 x47=x45+x43-this.width;
}
else if(this.parent._f179+x35.x>this.width)
x47=this.parent._f179+x35.x-this.width+10;
if(x46<0)
{
if(this.parent._f180+x35.y<x46)
x48=this.parent._f180+x35.y-10;
else
 x48=x46;
}
else if(this.parent._f180+x35.y<0)
x48=this.parent._f180+x35.y-10;
else if(x46+x44>this.height)
{
if(this.parent._f180+x35.y>this.height)
x48=this.parent._f180+x35.y-this.height+10;
else
 x48=x46+x44-this.height;
}
else if(this.parent._f180+x35.y>this.height)
x48=this.parent._f180+x35.y-this.height+10;
if(x20)
this.setTimeout("this.parent.smoothScroll("+x47+","+x48+")",x20);
else
 this.parent.smoothScroll(x47,x48);
}
}
_f319.prototype._f173=function(x49,x50,x51,x52,x53,x54,x55,x56,x57)
{
if(x50.length==0)
return;
if(x53&&x54)
{
this._f80(x50,x51,x52,x49,x53,x54,x55,null,null,x56,x57);
}
else
 this._f80(x50,x51,x52,x49,_f3._f28,_f3._f29,x55,null,null,x56,x57);
}
_f319.prototype._f649=function(x58,x59,x60,x61,x62,x63,x64)
{
var x65=new Array(4);
if(!x59)
x59="null";
x59=MVUtil._f109(x59,"&nbsp;"," ");
var x66=0;
var x67=0;
var x68="";
var x69=12;
if(x59!="null")
{
if(x63)
x65[3]=x59;
else
 {
x66=x59.length;
x67++;
x68="<tr><td>"+MVUtil._f109(x59," ","&nbsp;")+"</td></tr>";
}
}
x68="<table id='mvinfotable'>"+x68;
if(x60==null||x60.length==0){
x65[0]=x68;
if(x64=="MVInfoWindowStyle1")
{
x65[1]=0;
x65[2]=0;
}
else
 {
x65[1]=x59.length*x69+36;
x65[2]=27+30;
}
return x65;
}
var x70=0;
var x71=0;
x67+=x60.length;
x68+="<tr><td><table id='mvinfotable1'>";
for(var x72=0;x72<x60.length;x72++)
{
var x73="#bbbbbb";
if(x72%2==0)
x73="#dddddd";
if(x61!=null&&x61[x72]!=null&&x61[x72].length>x70)
x70=x61[x72].length;
if(x60[x72]==null)
x60[x72]="";
if(x60[x72].length>x71)
x71=x60[x72].length;
var x74=MVUtil._f109(MVUtil._f22(x60[x72])," ","&nbsp;");
x68=x68+"<tr bgcolor="+x73+">";
if(x61!=null)
{
var x75="";
if(x61[x72]==null)
x75="&nbsp;";
else
 x75=MVUtil._f109(MVUtil._f22(x61[x72])," ","&nbsp;")+":";
x68=x68+"<td>"+x75+"</td>";
}
x68=x68+"<td align=left>"+x74+"</td></tr>";
}
var x76;
if(x66>(x70+x71))
x76=(x66+1)*x69+40;
else
 x76=(x70+x71+1)*x69+40;
x65[0]=x68+"</table></td></tr></table>";
if(x64=="MVInfoWindowStyle1")
{
x65[1]=0;
x65[2]=0;
}
else
 {
x65[1]=x76;
x65[2]=x67*11+80;
}
return x65;
}
_f319.prototype._f553=function(x77,x78,x79,x80,x81,x82,
x83,x84,x85,x86,
x87)
{
var x88=x85._f520;
var x89=x85._f650?x85._f650:_f3._f11;
var x90=x85._f651;
var x91=x85._f652;
var x92=x85._f94;
if(x79.length==0&&x80.length==0)
return ;
if(x83&&x84)
{
this._f80(x79,x81,x82,x77,x83,x84,x89,x86,x87,x91,x92);
}
else
 {
var x93=this._f649(x79,x80,x77,x78,x88,x89=="MVInfoWindowStyle1"&&x90,x89);
if(x93[1]>0&&x93[2]>0||x89=="MVInfoWindowStyle1")
{
this._f80(x79,x81,x82,x93[0],x93[1],x93[2],x89,x86,x87,x91?x91:x93[3],x92);
}
else
 this._f80(x79,x81,x82,x93[0],_f3._f28,
_f3._f29,x89,x86,x87,x91?x91:x93[3],x92);
}
}
_f319.prototype._f418=function(x94,x95,x96,x97,x98,x99,x100,x101)
{
this._f80("",x95,x96,x94,x97,x98,x99,null,null,x100,x101)
}
_f319.prototype.deleteInfoWindow=function(x102)
{
if(MVInfoWindowStyle1._f201)
{
clearTimeout(MVInfoWindowStyle1._f201);
MVInfoWindowStyle1._f201=null;
}
var x103=0;
for(x103=0;x103<this._f143.length;x103++)
{
if(this._f143[x103]==x102){
this._f143.splice(x103,1);
}
}
MVUtil._f585(x102);
MVUtil._f210(x102);
this.div.removeChild(x102);
this.parent._f251=false;
}
_f319.prototype.setTimeout=function(_f139,_f140)
{
var Ie="tempVar"+_f141;
_f141++;
eval(Ie+" = this;");
var oi=_f139.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f140);
}
_f319.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
function MVFOI(x0,x1,x2,x3,x4,x5)
{
if(!x0||x0.length==0)
{
MVi18n.processLocale("MAPVIEWER-5503");
return null;
}
this.parent="";
this.id=MVUtil._f22(x0);
this._f68=x1;
this.gtype=x1.getGType();
this.style=x2;
this._f69=x3;
this._f70="";
this._f71=null;
this.html="";
this._f72="";
this._f73="";
this.area="";
this._f74=null;
this._f75=new Array(4);
this._f76=null;
this.width=0;
this.height=0;
this._f77=true;
this.visible=true;
this._f78=false;
this._f79=false;
this._f80=true;
this._f81=true;
this._f82=null;
this._f83=null;
this._f84=null;
this._f85=null
this._f86=true;
this._f87=0;
this._f88=0;
this._f89=true;
this.cursorStyle=null;
this._f90=null;
this._f91=null;
this.node=null;
if(this.gtype%10==1)
{
if(x4)
this.width=x4;
else
 this.width=10;
if(x5)
this.height=x5;
else
 this.height=10;
}
this._f92=null;
this._f93=null;
this._f94=null;
}
MVFOI.prototype.setHTMLElement=function(x0,x1,x2)
{
this.html=x0;
if(x1)
this._f72=x1;
if(x2)
this._f73=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)
{
this.setEventListener(x12,x13);
}
MVFOI.prototype.setEventListener=function(x14,x15)
{
if(x14=="mouse_click")
{
this._f82=x15;
}
else if(x14=="mouse_right_click")
{
this._f83=x15;
}
else if(x14=="mouse_over")
{
this._f84=x15;
}
else if(x14=="mouse_out")
{
this._f85=x15;
}
}
MVFOI.prototype.setBringToTopOnMouseOver=function(x16)
{
this._f86=x16;
}
MVFOI.prototype.setTopFlag=function(x17)
{
this._f79=x17;
}
MVFOI.prototype.enableInfoWindow=function(x18)
{
this._f80=x18;
}
MVFOI.prototype.enableInfoTip=function(x19)
{
this._f81=x19;
}
MVFOI.prototype.setFOIOrds=function(x20)
{
this._f74=MVUtil._f22(x20).toUpperCase();
}
MVFOI.prototype.setFOIGtype=function(x21)
{
this.gtype=x21;
}
MVFOI.prototype.setVisible=function(x22)
{
this.visible=x22;
this.parent._f95._f96(this,x22);
}
MVFOI.prototype.isVisible=function()
{
return this.visible;
}
MVFOI.prototype.getId=function()
{
return this.id;
}
MVFOI.prototype.setClickable=function(x23)
{
this._f77=x23;
}
MVFOI.prototype.setInfoTip=function(x24)
{
this._f76=x24;
}
MVFOI.prototype.setInfoWindow=function(x25,x26,x27,x28,x29,x30)
{
this._f71=x25;
this._f87=x26;
this._f88=x27;
this._f92=x28;
this._f93=x29;
this._f94=x30;
}
MVFOI.prototype.enableEventPropagation=function(x31)
{
this._f89=x31;
}
MVFOI.prototype.getMBR=function()
{
var x32=new Array(4);
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
x32[0]=parseFloat(this._f74[4]);
x32[1]=parseFloat(this._f74[3])-
(parseFloat(this._f74[0])-parseFloat(this._f74[4]));
x32[2]=parseFloat(this._f74[0]);
x32[3]=parseFloat(this._f74[3]);
}
else
 {
x32[0]=parseFloat(this._f74[0]);
x32[1]=parseFloat(this._f74[1]);
x32[2]=parseFloat(this._f74[0]);
x32[3]=parseFloat(this._f74[1]);
for(var x33=2;x33<this._f74.length;x33=x33+2)
{
if(parseFloat(this._f74[x33])<x32[0])x32[0]=parseFloat(this._f74[x33]);
if(parseFloat(this._f74[x33])>x32[2])x32[2]=parseFloat(this._f74[x33]);
if(parseFloat(this._f74[x33+1])<x32[1])x32[1]=parseFloat(this._f74[x33+1]);
if(parseFloat(this._f74[x33+1])>x32[3])x32[3]=parseFloat(this._f74[x33+1]);
}
}
return x32;
}
MVFOI.prototype._f97=function(x34){
var x35=x34;
var x36="";
var x37=x35.length;
for(var x38=this.elemInfo.length;x38>0;x38=x38-3)
{
var x39=0;
if(this.elemInfo[x38-2]%10==3&&this.elemInfo[x38-1]==3){
for(var x40=0;x40<this.elemInfo[x38-3]-1;x40++)
x39=x35.indexOf(",",x39)+1;
var x41=x39;var x42=x39;if(x38==this.elemInfo.length){
x41=x35.length;
for(var x43=0;x43<2;x43++)
x42=x35.indexOf(",",x42)+1;
x42--;
}
else
 {
for(var x44=0;x44<4;x44++)
{
x41=x35.indexOf(",",x41)+1;
if(x44==1)
x42=x41;
}
x41--;
x42--;
}
x36=x35.substring(x39,x41);
var x45=new Array(4);
var x46=1;
var x47=1;
for(var x48=0;x48<4;x48++){
x47=x36.indexOf(",",x46);
if(x48==3)x47=x36.length;
if(x48==0)x46--;
x45[x48]=x36.substring(x46,x47);
x46=x47+1;
}
var x49=x45[0]+","+x45[3];
var x50=x45[2]+","+x45[1];
this.elemInfo[x38-1]=1;
if(x38==this.elemInfo.length){
x35=x35+","+x50;
}
else
 {
this.elemInfo[x38-3+3]=this.elemInfo[x38-3+3]*1+4;
x35=x35.substring(0,x41)+","+x50+","+
x35.substring(x41+1,x35.length);
}
x35=x35.substring(0,x42)+","+x49+","+
x35.substring(x42+1,x35.length);
}
}
return x35;
}
MVFOI.prototype._f98=function(x51){
var x52=x51[0]+","+x51[1];
var x53="";
for(var x54=this.elemInfo.length;x54>0;x54=x54-3)
{
var x55=this.elemInfo[x54-3]-1;var x56=this.elemInfo[x54]-1;if(x54==this.elemInfo.length)
{
x56=x51.length;}
var x57=x51[x55]+","+x51[x55+1];
var x58="";
var x59=x56-1;
for(var x60=x55;x60<=x59;x60++)
{
x58+=x51[x60]+",";
}
var x61=false;
if(x51[x55]!=x51[x56-1]||x51[x55+1]!=x51[x56])
{
x58+=x57;
x61=true;
}
if(this.elemInfo.length==3)
{
return x58;
}
if(x54==3){
x53=x58+","+x53;
}
else
 {
if(x61)
x58+=","+x52;
else
 x58+=x52;
if(x54==this.elemInfo.length)
{
x53=x58;
}
else
 {
x53=x58+","+x53;
}
}
}
return x53;
}
MVFOI.prototype._f99=function(x62)
{
var x63=new Array(this._f74.length);
var x64=new Array(this._f75[0],this._f75[1],this._f75[2],this._f75[3]);if(x64[0]<x62._f95.minX)x64[0]=x62._f95.minX;
if(x64[1]<x62._f95.minY)x64[1]=x62._f95.minY;
if(x64[3]>x62._f95.maxY)x64[3]=x62._f95.maxY;
var x65=x64[3]-x64[1];
for(var x66=0;x66<this._f74.length;x66++)
{
if(x66%2==0)
{
x63[x66]=Math.floor((this._f74[x66]-x64[0])*x62._f100+0.5);
}
else
 x63[x66]=Math.floor((x65-(this._f74[x66]-x64[1]))*x62._f101+0.5);
}
x64=null;
return x63;
}
function _f102(x0,x1)
{
var x2=new Array(x1[0],x1[1],x1[2],x1[3]);if(x2[0]<x0._f95.minX)x2[0]=x0._f95.minX;
if(x2[1]<x0._f95.minY)x2[1]=x0._f95.minY;
if(x2[3]>x0._f95.maxY)x2[3]=x0._f95.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._f100+0.5);
}
else
 {
x7=Math.floor((x6-(x4+x5*Math.sin((x9*x10)/90)-
x2[1]))*x0._f101+0.5);
}
if(x10==0)x8+=x7;
else
 x8+=","+x7;
}
x2=null;
return x8;
}
MVFOI.prototype._f104=function(x67)
{
if(this.area==null||this.area=="")
{
this.area="";
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
this.area=_f102(x67,this._f75);
}
else if(this.gtype%10==3||this.gtype%10==7)
{
var x68=this._f99(x67);
this.area=this._f98(x68);
}
}
}
MVFOI.prototype.animateToNewLocation=function(x69,x70)
{
var x71=this;
var x72=function(x73)
{
if(x73)
x69=x73;
if(x70==null)
x70=100;
x71.parent._f95.foiToNewLocation(x71,x69,x70);
}
if(x69.srid&&(x69.srid!=this._f68.srid))
x69=this.parent.transformGeom(x69,this._f68.srid,null,x72);
else
 x72();
}
MVFOI.prototype.setMouseCursorStyle=function(x74)
{
this.cursorStyle=x74;
if(this.node)
MVUtil._f105(this.node,x74);
}
MVFOI.prototype.getGeometry=function()
{
return this._f68;
}
MVFOI.prototype.setRenderingStyle=function(x75,x76,x77)
{
this.style=x75;
if(typeof x76!='undefined')
{
if(x76)
this.width=x76;
else
 this.width=0;
}
if(typeof x77!='undefined')
{
if(x77)
this.height=x77;
else
 this.height=0;
}
}
MVFOI.prototype.setWidth=function(x78)
{
if(!x78)
x78=0;
this.width=x78;
}
MVFOI.prototype.setHeight=function(x79)
{
if(!x79)
x79=0;
this.height=x79;
}
MVFOI.prototype.updateImageURL=function(x80,x81,x82)
{
this._f70=x80;
var x83=0;
var x84=0;
if(x81)
{
x83=this.width-x81;
this.width=x81;
}
if(x82)
{
x84=this.height-x82;
this.height=x82;
}
if(this.node)
{
var x85=MVUtil._f106(this.node)+x83/2;
var x86=MVUtil._f107(this.node)+x84/2;
if(this._f91)
{
this._f91.src=x80;
MVUtil._f108(this._f91,x85,x86);
}
else if(this.node.src)
{
this.node.src=x80;
MVUtil._f108(this.node,x85,x86);
}
else if(this.node.style.filter)
{
var x87=MVUtil._f109(x80,"(","%28");
x87=MVUtil._f109(x87,")","%29");
this.node.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x87+"', sizingMethod='image');";
MVUtil._f108(this.node,x85,x86);
}
else
 {
this._f90._f110(this.id);
this._f90._f111(this);
}
}
}
MVFOI.prototype.updateGeometry=function(x88)
{
if(this._f78)
{
if(this._f68.getGType()==1&&x88.getGType()==1)
{
var x89=MVUtil._f112(this._f90.parent,this._f90.minX,this._f90.minY,
this._f90.maxX,this._f90.maxY,
this._f90.width,this._f90.height,
x88.getPointX(),x88.getPointY());
var x90=(this._f90.parent._f114-this._f90._f115)*this._f90.parent._f100;
var x91=(this._f90.parent._f117-this._f90._f118)*this._f90.parent._f101;
x89[0]-=x90;
x89[1]+=x91;
MVUtil._f108(this.node,x89[0]-this.width/2,x89[1]-this.height/2);
}
else
 {
this._f90._f110(this.id);
this._f90._f111(this);
}
}
this._f68=x88;
}
MVFOI.prototype.reDraw=function()
{
if(this._f78)
{
this._f90._f110(this.id);
this._f90._f111(this);
}
}
function _f119(x0)
{
this._f120=[];
this.parent=x0;
var x1=null;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f121=0;
this._f122=0;
this._f123=false;
this.div=document.createElement("div");
this.width=0;
this.height=0;
this.count=0;
this._f115=this.parent._f114;
this._f118=this.parent._f117;
this._f124=null;
this.div.style.position="absolute";
this.div.style.zIndex=120;
this._f125=document.createElement("div");
this._f125.style.position="absolute";
this._f125.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._f125);
}
else
 {
document.body.appendChild(this.div);
document.body.appendChild(this._f125);
}
}
_f119.prototype.setScope=function()
{
var x92=(this._f126()-this.parent._f127())*0.5/this.parent._f100;
var x93=(this._f128()-this.parent._f129())*0.5/this.parent._f101;
this.minX=this.parent._f130-x92;
this.minY=this.parent._f131-x93;
this.maxX=this.parent._f132+x92;
this.maxY=this.parent._f133+x93;
}
_f119.prototype.foiToNewLocation=function(x94,x95,x96)
{
if(x96)
x94.time=x96;
else
 x94.time=this.time;
this.parent._f134(true);
var x97=new Array();
var x98=new Array();
if(x95.getFirstPoint()){
x97.push(x95.getPointX());
x98.push(x95.getPointY());
}
else
 {
var x99=x95.getDimensions();
for(var x100=0;x100<=x95.getOrdinates().length-x99;x100=x100+x99)
{
x97.push(x95.getOrdinates()[x100]);
x98.push(x95.getOrdinates()[x100+1]);
}
}
var x101=0;
if(x97.length<=x101||x98.length<=x101)
return;
this.setScope();
var x102=MVUtil._f112(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x97[x101],x98[x101]);
var x103=Math.round(x102[0]-x94.width/2);
var x104=Math.round(x102[1]-x94.height/2);
if(!x94.move_id)
{
clearTimeout(x94.move_id);
x94.move_id=null;
}
x94.move_id=this.setTimeout("this.moveFoi(["+x97+"],["+x98+"],"+x101+","+x103+","+x104+",\""+x94.id+"\")",x94.time);
}
_f119.prototype.moveFoi=function(x105,x106,x107,x108,x109,id,x110,x111)
{
var x112=document.getElementById(id);
var x113=parseInt(x112.style.left);
var x114=parseInt(x112.style.top);
var x115=x108-x113;
var x116=x109-x114;
var x117=Math.sqrt(x115*x115+x116*x116);
var x118=5;
var x119=this._f136(id);
if(x118>x117)
{
x112.style.left=x108+"px";
x112.style.top=x109+"px";
clearTimeout(x119.move_id);
x119.move_id=null;
pointx=x105[x107];
pointy=x106[x107];
x119._f68.sdo_point.x=x105[x107];
x119._f68.sdo_point.y=x106[x107];
x119.x=x105[x107];
x119.y=x106[x107];
x107++;
if(x105.length<=x107||x106.length<=x107)
{
this.parent._f134(false);
return;
}
var x120=MVUtil._f112(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x105[x107],x106[x107]);
var x121=Math.round(x120[0]-x119.width/2);
var x122=Math.round(x120[1]-x119.height/2);
x119.move_id=this.setTimeout("this.moveFoi(["+x105+"],["+x106+"],"+x107+","+x121+","+x122+",\""+id+"\")",x119.time);
}
else
 {
var x123=Math.round(x118*x115/x117);
var x124=Math.round(x118*x116/x117);
x112.style.left=parseInt(x112.style.left)+x123+"px";
x112.style.top=parseInt(x112.style.top)+x124+"px";
x119.move_id=this.setTimeout("this.moveFoi(["+x105+"],["+x106+"],"+x107+","+x108+","+x109+",\""+id+"\")",x119.time);
}
}
_f119.prototype.setTimeout=function(_f139,_f140)
{
var Ie="tempVar"+_f141;
_f141++;
eval(Ie+" = this;");
var oi=_f139.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f140);
}
_f119.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f119.prototype.setSize=function(x125,x126)
{
this.width=x125;
this.height=x126;
}
_f119.prototype._f96=function(x127,x128)
{
var x129=x127.id;
for(var x130=0;x130<this._f120.length;x130++)
{
if(this._f120[x130].id==x129)
{
this._f120[x130].visible=x128;
if(!x128&&this.parent._f142._f143.length>0)
if(this.parent._f142._f143[0].nid==x129)
{
this.parent._f142.deleteInfoWindow(this.parent._f142._f143[0]);
}
}
}
if(x128)
x127.node.style.visibility="visible";
else
 x127.node.style.visibility="hidden";
}
_f119.prototype._f123=function()
{
return this._f123;
}
_f119.prototype._f106=function()
{
if(this._f123)
return this._f121;
else
 return MVUtil._f106(this.div);
}
_f119.prototype._f107=function()
{
if(this._f123)
return this._f122;
else
 return MVUtil._f107(this.div);
}
_f119.prototype._f126=function()
{
return this.width;
}
_f119.prototype._f128=function()
{
return this.height;
}
_f119.prototype._f144=function()
{
return this.minX;
}
_f119.prototype._f145=function()
{
return this.minY;
}
_f119.prototype._f146=function()
{
return this.maxX;
}
_f119.prototype._f147=function()
{
return this.maxY;
}
_f119.prototype._f148=function()
{
return this.div;
}
_f119.prototype.getTopContainer=function()
{
return this._f125;
}
_f119.prototype._f149=function(x131)
{
this._f124=x131;
}
_f119.prototype._f150=function(x132)
{
for(var x133=0;x133<this.div.childNodes.length;x133++)
{
if(x132==(this.div.childNodes[x133]).id)
{
var x134=this.div.childNodes[x133];
this.div.removeChild(x134);
MVUtil._f151(x134);
return;
}
}
for(var x133=0;x133<this._f125.childNodes.length;x133++)
{
if(x132==(this._f125.childNodes[x133]).id)
{
var x134=this._f125.childNodes[x133];
this._f125.removeChild(x134);
MVUtil._f151(x134);
return;
}
}
}
_f119.prototype._f152=function(x135)
{
while(x135.childNodes.length>0)
{
var x136=x135.childNodes[0];
if(x136.src)
{
x136.src=null;
}
x136.onmouseover=null;
x136.onmouseout=null;
x136.onmousedown=null;
x136.onmouseup=null;
x136.oncontextmenu=null;
x135.removeChild(x136);
while(x136.childNodes.length>0)
{
var x137=x136.childNodes[0];
if(x137.src)
{
x137.src=null;
}
x136.removeChild(x137);
x137=null;
}
MVUtil._f151(x136);
x136=null;
}
}
_f119.prototype._f153=function()
{
var x138=this._f120.length;
for(var x139=0;x139<x138;x139++)
{
var x140=this._f120.pop();
MVUtil._f154(x140);
if(this.parent._f142._f143.length>0)
if(this.parent._f142._f143[0].nid==x140.id)
{
this.parent._f142.deleteInfoWindow(this.parent._f142._f143[0]);
}
}
this._f152(this.div);
this._f152(this._f125);
}
_f119.prototype._f110=function(x141)
{
var x142=null;
for(var x143=0,x144=0,x145=0;x143<this._f120.length;x143++,x144++,x145++)
{
if(this._f120[x143].id==x141)
{
if(this.parent._f142._f143.length>0)
if(this.parent._f142._f143[0].nid==x141)
{
this.parent._f142.deleteInfoWindow(this.parent._f142._f143[0]);
}
this._f120[x143]=this._f120[this._f120.length-1];
MVUtil._f154(this._f120.pop());
x143--;
}
if(x145<this.div.childNodes.length&&this.div.childNodes[x145].id==x141)
{
var x146=this.div.childNodes[x145];
if(x146.src)
{
x146.src=null;
}
x146.onmouseover=null;
x146.onmouseout=null;
x146.onmousedown=null;
x146.onmouseup=null;
x146.oncontextmenu=null;
this.div.removeChild(x146);
MVUtil._f151(x146);
x146=null;
x145--;
}
if(x144<this._f125.childNodes.length&&
this._f125.childNodes[x144].id==x141)
{
var x146=this._f125.childNodes[x144];
if(x146.src)
{
x146.src=null;
}
x146.onmouseover=null;
x146.onmouseout=null;
x146.onmousedown=null;
x146.onmouseup=null;
x146.oncontextmenu=null;
this._f125.removeChild(x146);
MVUtil._f151(x146);
x146=null;
x144--;
}
}
return x142;
}
_f119.prototype._f136=function(x147)
{
for(var x148=0;x148<this._f120.length;x148++)
{
if(x147==this._f120[x148].id)
{
return this._f120[x148];
}
}
return null;
}
_f119.prototype._f111=function(x149)
{
this._f120.push(x149);
if(this.parent._f155&&(x149.visible==true))
{
this._f156(x149,true);
}
}
_f119.prototype._f157=function(x150)
{
var x151=x150.getMBR()[0];
var x152=x150.getMBR()[1];
var x153=x150.getMBR()[2];
var x154=x150.getMBR()[3];
var x155=(this.minX==0?x151:this.minX);
var x156=(this.minY==0?x152:this.minY);
var x157=(this.maxX==0?x153:this.maxX);
var x158=(this.maxY==0?x154:this.maxY);
var x159=x151<x155?x155:x151;
var x160=x152<x156?x156:x152;
var x161=x153<x157?x153:x157;
var x162=x154<x158?x154:x158;
var x163=Math.abs(x161-x159);
var x164=Math.abs(x162-x160);
var x165={"x":x159,"y":x162,"width":x163,"height":x164};
return x165;
}
_f119.prototype._f156=function(x166,x167)
{
var x168=this;
var x169=function(x170)
{
if(x170)
x166._f68=x170;
if(x166.gtype%10==1)
{
x166._f74=x166._f68.getFirstPoint();
}
else
 {
x166.elemInfo=x166._f68.sdo_elem_info.toString().split(",");
var x171=x166._f68.sdo_ordinates.toString();
while(x171.indexOf(" ")!=-1)
{
x171=MVUtil._f109(x171," ","");
}
for(var x172=0;x172<x166.elemInfo.length;x172+=3){
if(x166.elemInfo[x172+2]*1==3){
x171=x166._f97(x171);
break;
}
}
x166._f74=x171.split(",");
}
x166._f75=x166.getMBR();
x166.x=x166._f75[0];
x166.y=x166._f75[3];
if(x166.gtype%10!=1)
{
x166.width=x166._f75[2]-x166._f75[0];
x166.height=x166._f75[3]-x166._f75[1];
}
x168._f158(x166,x167);
}
if(x166._f68.srid&&(x166._f68.srid!=this.parent.srid))
this.parent.transformGeom(x166._f68,this.parent.srid,null,x169);
else
 x169();
}
_f119.prototype._f158=function(foi,check)
{
if(foi.gtype%10==1)
{
if(foi.style)
foi._f70=foi._f69+"?request=getpoiimage&version=1.0"+
"&poistyle="+foi.style+
"&width="+foi.width+"&height="+foi.height;
this._f159(foi);
return;
}
var _f160=foi._f68.toString();var url=encodeURI(foi._f69+"?request=getfigimage&version=1.0"+
"&figstyle="+foi.style+
"&ratx="+this.parent._f100+"&raty="+
this.parent._f101+"&figord="+_f160+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY);
if(url.length<_f3._f60&&
(!foi._f77||foi._f77&&_f3._f13=="IF"))
{
foi._f70=url;
this._f159(foi);
return;
}
try
{
var _f161=this;
var localDomain=(MVUtil._f25(foi._f69)==MVUtil._f25(_f3._f26()));
var xmlHttp=localDomain||MVMapView._f27;
var _f162=MVUtil.getXMLHttpRequest(xmlHttp);
if(MVMapView._f27&&!localDomain)
foi._f69=_f3._f66()+"?rtarget="+foi._f69;
_f162.open("POST",foi._f69,true);
_f162.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f162.onreadystatechange=MVUtil._f163(_f162,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._f70=res.imgurl;
if(res.area&&res.area!="")
foi.area=res.area;
if(check)
{
if(foi._f79)
for(var td=0;td<_f161._f125.childNodes.length;td++)
{
if(_f161._f125.childNodes[td].id==foi.id)
{
_f161._f125.removeChild(_f161._f125.childNodes[td]);
break;
}
}
else
 for(var td=0;td<_f161.div.childNodes.length;td++)
{
if(_f161.div.childNodes[td].id==foi.id)
{
_f161.div.removeChild(_f161.div.childNodes[td]);
break;
}
}
}
_f161._f159(foi);
}
}
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5500",e+". \nFrom: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
});
_f162.send(encodeURI("request=getfig&version=1.0"+
"&figstyle="+foi.style+
"&ratx="+this.parent._f100+"&raty="+
this.parent._f101+"&figord="+_f160+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY));
}
catch(ex)
{
MVi18n.processLocale("MAPVIEWER-5500",ex+". \nFrom: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
}
_f119.prototype._f164=function()
{
return this._f120;
}
_f119.prototype._f165=function(x173,x174,x175,x176)
{
this._f123=true;
this.parent._f166();
this.minX=x173;
this.minY=x174;
this.maxX=x175;
this.maxY=x176;
this._f115=this.parent._f114;
this._f118=this.parent._f117;
this._f121=Math.ceil((this.minX-this.parent._f130)*this.parent._f100);
this._f122=-Math.ceil((this.maxY-this.parent._f133)*this.parent._f101);
MVUtil._f108(this.div,this._f121,this._f122);
MVUtil._f108(this._f125,this._f121,this._f122);
this._f152(this.div);
this._f152(this._f125);
if(this._f124)
this._f124;
var x177=this;
for(var x178=0;x178<this._f120.length;x178++)
{
var x179=this._f120[x178];
this._f156(x179,true);
}
}
_f119.prototype._f159=function(x180)
{
x180._f78=true;
x180._f90=this;
var x181=MVUtil._f112(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x180.x,x180.y);
var x182=(this.parent._f114-this._f115)*this.parent._f100;
var x183=(this.parent._f117-this._f118)*this.parent._f101;
var x184;
var x185=MVUtil._f168(x180._f70.toLowerCase(),'png');
if(!(_f3._f13=='IF'&&(x180.style!=""||x185))&&!x180.html)
{
if(x180.gtype%10==1)
x184=document.createElement('img');
else
 x184=document.createElement('div');
}
else
 x184=document.createElement('div');
x184.style.position="absolute";
var x186=this;
var x187=MVSdoGeometry.createPoint(0,0);
var x188=x187;
var x189=x180._f89;
var x190=function(x191)
{
x191=(x191)?x191:((window.event)?event:null);
if(x191&&!x189)
{
if(_f3._f13=="IF")
x191.cancelBubble=true;
else if(x191.stopPropagation)
x191.stopPropagation();
}
}
var x192=function(x193)
{
x193=(x193)?x193:((window.event)?event:null);
if(x193&&!x189)
{
MVUtil._f169(x193);
}
}
var x194=function(x195)
{
x187=MVUtil._f170(x195);
x190(x195);
}
var x196=function(x197)
{
x188=MVUtil._f170(x197);
if(x187.x==x188.x&&x187.y==x188.y)
{
x197=(x197)?x197:((window.event)?event:null);
if(x197.button==2)
return;
if(x186.parent._f171)
return;
var x198=MVUtil.getMouseLocation(x186.parent,x197);
if(x180._f82)
{
x186.parent._f172();
var x199=MVSdoGeometry.createPoint(x198.sdo_point.x,x198.sdo_point.y,x186.parent.srid);
x180._f82(x199,x180,MVUtil.getEvent(x197));
}
else if(x180._f80&&x180._f71)
{
if(x180._f87>0&&x180._f88>0)
x186.parent._f142._f173(x180._f71,x180.id,
x198.sdo_point.x,x198.sdo_point.y,x180._f87,x180._f88,x180._f92,x180._f93);
else
 x186.parent._f142._f173(x180._f71,x180.id,
x198.sdo_point.x,x198.sdo_point.y,null,null,x180._f92,x180._f93);
}
}
x192(x197);
}
var x200=function(x201)
{
var x202=MVUtil.getMouseLocation(x186.parent,x201);
if(x180._f84)
{
var x203=MVSdoGeometry.createPoint(x202.sdo_point.x,x202.sdo_point.y,x186.parent.srid);
x180._f84(x203,x180);
}
if(x180._f86)
x184.style.zIndex=152;
if(x180._f76&&x180._f81&&_f3._f13=="OS")
x186.parent._f142.showTextTip(x180._f76,x202.sdo_point.x,x202.sdo_point.y);
};
var x204=function(x205)
{
if(x180._f85)
{
var x206=MVUtil.getMouseLocation(x186.parent,x205);
var x207=MVSdoGeometry.createPoint(x206.sdo_point.x,x206.sdo_point.y,x186.parent.srid);
x180._f85(x207,x180);
}
if(x180._f86)
x184.style.zIndex=151;
if(x180._f76)
x186.parent._f142._f174();
};
var x208=function(x209)
{
if(x180._f83)
{
var x210=MVUtil.getMouseLocation(x186.parent,x209);
var x211=MVSdoGeometry.createPoint(x210.sdo_point.x,x210.sdo_point.y,x186.parent.srid);
x180._f83(x211,x180,MVUtil.getEvent(x209));
}
x192(x209);
}
if(x180._f70)
{
x184.className="noprint";
if(!x180.visible)
x184.style.visibility="hidden";
if(x180.id&&x180.id!=null)
x184.id=x180.id;
x184._f175=x180.x;
x184._f176=x180.y;
x184.style.zIndex=151;
if(x180._f79)
this._f125.appendChild(x184);
else
 this.div.appendChild(x184);
if(x180.gtype%10!=1)
{
var x212=this._f157(x180);
x184.style.width=MVUtil._f178(Math.round(x212.width*this.parent._f100+0.5));
x184.style.height=MVUtil._f178(Math.round(x212.height*this.parent._f101+0.5));
var x213;
var x214;
if(x180._f75[0]>this.maxX||x180._f75[2]<this.minX||
x180._f75[1]>this.maxY||x180._f75[3]<this.minY)
{
return;
}
if(x181[0]>-this.parent._f179&&x181[0]<-this.parent._f179+this.width)
{
x213=x181[0];
}
else if(x181[0]<-this.parent._f179)
{
x213=-this.parent._f179;
}
else {
return;
}
if(x181[1]>-this.parent._f180&&x181[1]<-this.parent._f180+this.height)
{
x214=x181[1];
}
else if(x181[1]<-this.parent._f180)
{
x214=-this.parent._f180;
}
else {
return;
}
x213=Math.floor(x213+0.5);
x214=Math.floor(x214+0.5);
x213-=x182;
x214+=x183;
MVUtil._f108(x184,x213,x214);
if(_f3._f13=="IF")
{
var x215=MVUtil._f109(x180._f70,"(","%28");
x215=MVUtil._f109(x215,")","%29");
x184.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x215+"', sizingMethod='image');";
x184.onmouseover=x200;
x184.onmouseout=x204;
if(x180._f76&&x180._f81)
{
x184.setAttribute("title",x180._f76);
}
if(x180._f77)
{
if(x180.cursorStyle)
MVUtil._f105(x184,x180.cursorStyle);
else if(x180._f82||((x180._f80&&x180._f71)))
MVUtil._f105(x184,"pointer");
x184.onmousedown=x194;
x184.onmouseup=x196;
x184.oncontextmenu=x208;
}
x184.ondblclick=x192;
x184.onclick=x192;
x184.onkeyup=x190;
if(_f3._f13=="OS")
x184.onkeypress=x190;
else
 x184.onkeydown=x190;
MVUtil._f181(x184);
}
else
 {
x180._f104(x186.parent);
var x216=document.createElement("map");var x217=document.createElement("area");
x216.setAttribute("name",x180.id);
x217.setAttribute("border",0);
if(x180._f76&&x180._f81)
{
if(_f3._f13!="OS")
x217.setAttribute("title",x180._f76);
}
x217.onmouseover=function(x218)
{
x200(x218);
if(x180._f86)
x184.style.zIndex=152;
};
x217.onmouseout=function(x219)
{
x204(x219);
x184.style.zIndex=151;
};
x217.ondblclick=x192;
x217.onclick=x192;
if(x180._f77)
{
var x220="0,0";
if(x180.area.length>0)
x220=x180.area;
x217.setAttribute("shape","poly");
x217.setAttribute("coords",x220);
if((x180._f82||((x180._f80&&x180._f71)))
&&_f3._f13!="OS")
x217.setAttribute("href","javascript:void(0)");
x217.onmousedown=x194;
x217.onmouseup=x196;
x217.oncontextmenu=x208;
}
else
 {
x217.setAttribute("shape","poly");
x217.setAttribute("coords","0,0");
}
var x221=_f182(x180._f70,0,0,0,0,10);
x180._f91=x221;
x221.setAttribute("usemap","#"+x180.id);
x184.style.border=0;
x184.appendChild(x216);
x216.appendChild(x217);
x184.appendChild(x221);
}
}
else
 {
x181[0]-=x182;
x181[1]+=x183;
MVUtil._f108(x184,x181[0]-x180.width/2,x181[1]-x180.height/2);
if((_f3._f13=='IF')&&
(x180.style!=""||x185))
{
x184.style.width=MVUtil._f178(x180.width);
x184.style.height=MVUtil._f178(x180.height);
var x215=MVUtil._f109(x180._f70,"(","%28");
x215=MVUtil._f109(x215,")","%29");
if(x180._f76&&x180._f81&&_f3._f13!="OS")
{
x184.setAttribute("title",x180._f76);
}
x184.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x215+"', sizingMethod='image');";
}
else
 {
if(x180._f76&&x180._f81&&_f3._f13!="OS")
{
x184.setAttribute("title",x180._f76);
}
if(x180.html)
{
var x222=document.createElement("img");
x180._f91=x222;
x222.style.position="relative";
x222.style.left=MVUtil._f178(0);
x222.style.top=MVUtil._f178(0);
x222.setAttribute("id",x180.id);
x222.src=x180._f70;
x222.setAttribute("border",0);
x184.appendChild(x222);
var x223=document.createElement("div");
x223.style.position="absolute";
var x224=x180._f72;
var x225=x180._f73;
x223.style.left=MVUtil._f178(x224);
x223.style.top=MVUtil._f178(x225);
x223.style.padding=MVUtil._f178(0);
x180.foiDiv=x223;
x223.innerHTML=x180.html;
x184.appendChild(x223);
}
else
 {
x180._f91=x184;
x184.src=x180._f70;
x184.setAttribute("border",0);
}
}
x184.onmouseover=x200;
x184.onmouseout=x204;
x184.ondblclick=x192;
x184.onclick=x192;
if(x180._f77)
{
if(x180.cursorStyle)
MVUtil._f105(x184,x180.cursorStyle);
else if(x180._f82||((x180._f80&&x180._f71)))
MVUtil._f105(x184,"pointer")
x184.onmousedown=x194;
x184.onmouseup=x196;
x184.oncontextmenu=x208;
}
MVUtil._f181(x184);
}
}
else if(x180.gtype%10==1)
{
x184.id=x180.id;
x184.style.width=MVUtil._f178(x180.width);
x184.style.height=MVUtil._f178(x180.height);
x181[0]-=x182;
x181[1]+=x183;
MVUtil._f108(x184,x181[0]-x180.width/2,x181[1]-x180.height/2);
this._f125.appendChild(x184);
x184.onmouseover=x200;
x184.onmouseout=x204;
x184.ondblclick=x192;
x184.onclick=x190;
x184.onkeyup=x190;
if(_f3._f13=="OS")
x184.onkeypress=x190;
else
 {
x184.onkeydown=x190;
x184.oncontextmenu=x190;
}
if(_f3._f13=="IF")
x184.onselectstart=x190;
if(x180._f76&&x180._f81&&_f3._f13!="OS")
{
x184.title=x180._f76;
}
if(x180._f77)
{
if(x180.cursorStyle)
MVUtil._f105(x184,x180.cursorStyle);
else if(x180._f82||((x180._f80&&x180._f71)))
MVUtil._f105(x184,"pointer")
x184.onmousedown=x194;
x184.onmouseup=x196;
x184.oncontextmenu=x208;
}
if(x180.html)
{
var x223=document.createElement("div");
x223.style.position="absolute";
var x224=x180._f72;
var x225=x180._f73;
x223.style.left=MVUtil._f178(x224);
x223.style.top=MVUtil._f178(x225);
x223.style.padding=MVUtil._f178(0);
x180.foiDiv=x223;
x223.innerHTML=x180.html;
x184.appendChild(x223);
}
}
x180.node=x184;
}
_f119.prototype._f183=function()
{
var x226="";
for(var x227=0;x227<this._f120.length-1;x227++)
{
for(var x228=1;x228<this._f120.length;x228++)
{
if(this._f120[x227]._f79&&!this._f120[x228]._f79)
{
var x229=this._f120[x227];
this._f120[x227]=this._f120[x228];
this._f120[x228]=x229;
}
}
}
for(var x227=0;x227<this._f120.length;x227++)
{
if(this._f120[x227].style)
x226+=this._f184(this._f120[x227]._f68,MVUtil._f185(this._f120[x227].style));
}
return x226;
}
_f119.prototype._f184=function(x230,x231)
{
var x232=x230.getGType();
var x233=""
switch(x232%10){
case 1:
x233=this._f186(x230.getOrdinates());
break;
case 2:
x233=this._f187(x230.getOrdinates());
break;
case 3:
if(x230.sdo_elem_info[2]==4)
x233=this._f188(x230.getOrdinates());
else
 x233=this._f189(x230.getOrdinates());
break;
case 4:
break;
case 5:
x233=this._f186(x230.getOrdinates());
break;
case 6:
x233=this._f190(x230);
break;
case 7:
x233=this._f191(x230);
break;
}
var x234="<geoFeature render_style=\""+x231+"\"><geometricProperty>"+x233+"</geometricProperty></geoFeature>"
return x234;
}
_f119.prototype._f186=function(x235)
{
var x236=_f119._f192(x235);
var x237="<Point><coordinates>";
x237=x237+x236+"</coordinates></Point>";
return x237;
}
_f119.prototype._f187=function(x238)
{
var x239=_f119._f192(x238);
var x240="<LineString><coordinates>";
x240=x240+x239+"</coordinates></LineString>"
return x240;
}
_f119.prototype._f189=function(x241)
{
var x242=_f119._f192(x241);
var x243="<Polygon><outerBoundaryIs><LinearRing><coordinates>";
x243=x243+x242+"</coordinates></LinearRing></outerBoundaryIs></Polygon>"
return x243;
}
_f119.prototype._f191=function(x244)
{
var x245=x244.getOrdinatesOfElements();
var x246="<MULTIPOLYGON>";
for(var x247=0;x247<x245.length;x247++)
{
x246=x246+"<polygonMember>";
x246=x246+this._f189(x245[x247]);
x246=x246+"</polygonMember>";
}
x246=x246+"</MULTIPOLYGON>";
return x246;
}
_f119.prototype._f190=function(x248)
{
var x249=x248.getOrdinatesOfElements();
var x250="<MultiLineString>";
for(var x251=0;x251<x249.length;x251++)
{
x250=x250+"<lineStringMember>";
x250=x250+this._f187(x249[x251]);
x250=x250+"</lineStringMember>";
}
x250=x250+"</MultiLineString>";
return x250;
}
_f119.prototype._f188=function(x252)
{
var x253=parseFloat(x252[2]);
var x254=parseFloat(x252[1]);
var x255=parseFloat(x252[0])-parseFloat(x252[2]);
var x256="";
var x257=2*Math.PI;
var x258=x253+x255*Math.cos((x257*0)/120);
for(var x259=1;x259<120;x259++)
{
if(x259%2==0)
{
x256=x253+x255*Math.cos((x257*x259)/120);
x258+=" "+x256;
}
else
 {
x256=x254+x255*Math.sin((x257*x259)/120);
x258+=","+x256;
}
}
var x260="<Polygon><outerBoundaryIs><LinearRing><coordinates>";
x260+=x258+"</coordinates></LinearRing></outerBoundaryIs></Polygon>";
return x260;
}
_f119.prototype.destroy=function()
{
this._f153();
this._f120=null;
}
_f119._f192=function(x261)
{
var x262=0;
var x263="";
for(;x262<x261.length;x262+=2)
{
if(x262>0)
x263+=" ";
x263+=x261[x262+0]+","+x261[x262+1];
}
return x263;
}
function MVRedlineTool(linestyle,areastyle,foiServerURL)
{
var _f53=eval(_f3._f53);
++_f53;
_f3._f53=_f53;
this.id=_f53;
this.parent="";
this._f69=foiServerURL;
this._f612=linestyle;
this._f613=areastyle;
this._f614=0;
this._f615=0;
this._f313=0;
this._f314=0;
this._f616=new Array();
this.state=0;
this._f617=0;
this._f618=0;
this._f619=_f3._f51+_f3._f55;
this._f620=_f3._f56;
this._f621=_f3._f57;
var _f622=this;
this._f623=null;
this._f624=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if((_f3._f54)!=_f622||
(x0!=null&&x0.button==2))
return;
_f622._f617=1;
_f622._f618=1;
if(_f3._f13=="IF")
{
_f622._f313=x0.clientX+document.body.scrollLeft;
_f622._f314=x0.clientY+document.body.scrollTop;
}
else
 {
_f622._f313=x0.pageX;
_f622._f314=x0.pageY;
}
}
this._f625=function(x1)
{
x1=(x1)?x1:((window.event)?event:null);
if((_f3._f54)!=_f622||_f622._f618!=1||
(x1!=null&&x1.button==2))
return;
_f622._f618=0;
if(_f622._f617==1&&_f622.state==1)
{
_f622._f617=0;
_f622._f614=_f622.parent._f358();
_f622._f615=_f622.parent._f359();
var x2=new MVFOI("-RL8RL"+_f622.id,MVSdoGeometry.createPoint(_f622._f614,_f622._f615,_f622.parent.srid),"",_f622._f619,_f622._f620,_f622._f621);
x2.enableInfoTip(false);
x2.enableInfoWindow(false);
x2.setClickable(false);
_f622.parent.addFOI(x2);
_f622._f616.push(_f622._f614);
_f622._f616.push(_f622._f615);
var x3=(_f622._f616.length);
if(x3>=4)
{
var x4=new MVFOI("-RL6RL"+_f622.id,MVSdoGeometry.createLineString(_f622._f616.slice((x3-4)),(_f622.parent.srid)),_f622._f612,_f622._f69);
x4.enableInfoTip(false);
x4.enableInfoWindow(false);
x4.setClickable(false);
x4.setTopFlag(true);
_f622.parent.addFOI(x4);
}
if(_f622._f623)
_f622._f623();
}
}
this.mouse_move=function(x5)
{
x5=(x5)?x5:((window.event)?event:null);
if((_f3._f54)!=_f622||
(x5!=null&&x5.button==2))
return;
if(_f622._f618==1)
{
var x6=0;
var x7=0;
if(_f3._f13=="IF")
{
x6=x5.clientX+document.body.scrollLeft-_f622._f313;
x7=x5.clientY+document.body.scrollTop-_f622._f314;
}
else
 {
x6=x5.pageX-_f622._f313;
x7=x5.pageY-_f622._f314;
}
var x8=_f3.redlineIgnoreMove;
if((x6*x6+x7*x7)>(x8*x8))
_f622._f618=2;
}
}
this.getStatus=function()
{
return state;
}
this.init=function()
{
this.parent._f171=true;
if(this.state==0)
{
if(_f3._f13=="IF")
{
this.parent._f278.attachEvent("onmousedown",this._f624);
this.parent._f278.attachEvent("onmouseup",this._f625);
this.parent._f278.attachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f278.addEventListener("mousedown",this._f624,false);
this.parent._f278.addEventListener("mouseup",this._f625,false);
this.parent._f278.addEventListener("mousemove",this.mouse_move,false);
}
}
_f3._f54=this;
this.parent.removeFOI("-RL2RL"+this.id);
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
this._f616=new Array();
this.state=1;
}
this.generateArea=function()
{
if(this.state==1)
{
if(this._f616.length<6)
{
MVi18n.processLocale("MAPVIEWER-5512");
return;
}
else
 {
this.state=2;
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
var x9=this._f616.length;
if(this._f616[0]!=this._f616[x9-2]||this._f616[1]!=this._f616[x9-1])
{
this._f616.push(this._f616[0]);
this._f616.push(this._f616[1]);
}
}
var x10=new MVFOI("-RL2RL"+this.id,MVSdoGeometry.createPolygon(this._f616,this.parent.srid),this._f613,this._f69);
x10.enableInfoTip(false);
x10.enableInfoWindow(false);
x10.setClickable(false);
x10.setTopFlag(true);
this.parent.addFOI(x10);
}
this.parent._f171=false;
}
this.clear=function()
{
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
this.parent.removeFOI("-RL2RL"+this.id);
this._f616=null;
if(_f3._f13=="IF")
{
this.parent._f278.detachEvent("onmousedown",this._f624);
this.parent._f278.detachEvent("onmouseup",this._f625);
this.parent._f278.detachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f278.removeEventListener("mousedown",this._f624,false);
this.parent._f278.removeEventListener("mouseup",this._f625,false);
this.parent._f278.removeEventListener("mousemove",this.mouse_move,false);
}
this.state=0;
this.parent._f171=false;
}
this.setMarkerImage=function(x11,x12,x13)
{
this._f619=x11;
this._f620=x12;
this._f621=x13;
}
this.getPolygon=function()
{
var x14=this._f616.length;
if(x14>=6&&this._f616[0]==this._f616[x14-2]&&this._f616[1]==this._f616[x14-1])
{
var x15=MVSdoGeometry.createPolygon(this._f616,this.parent.srid);
return x15;
}
else
 return null;
}
this.getPolygonFOI=function()
{
return this.parent.getFOI("-RL2RL"+this.id);
}
this.getOrdinates=function()
{
return this._f616;
}
this.addEventListener=function(x16,x17)
{
this.setEventListener(x16,x17);
}
this.setEventListener=function(x18,x19)
{
if(x18=="mouse_click")
this._f623=x19;
}
}
function MVRectangleTool(rectStyle,_f386)
{
this.parent=null;
this._f387=document.createElement("div");
this.innerRectangleDiv=null;
this._f387.style.position="absolute";
this._f387.style.zIndex=5000;
this._f387.style.border="#FF0000 2px dashed";
this._f387.style.visibility="hidden";
this._f664=2;
this._f386=_f386;
this._f613=rectStyle;
this._f665=(rectStyle?true:false);
this._f666=0;
this._f667=0;
this._f668=0;
this._f669=0;
this._f670=0;
this._f671=0;
this._f672=null;
this._f673=null;
this._f674=null;
this._f675=null;
var _f59=eval(_f3._f59);
++_f59;
_f3._f59=_f59;
this.id=_f59;
this._f676=0;
this._f13="NS";
this._f677=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(_f3._f50)
MVUtil._f169(x0);
};
this._f678=function()
{
if(this.netscape==null)
{
if(_f3._f12("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this._f677,false);
}
}
this._f679=function()
{
if(this.netscape==null)
{
if(_f3._f12("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this._f677,false);
}
}
MVRectangleTool.prototype.setDivBorderStyle=function(x0,x1,x2)
{
var x3="#FF0000";
if(x0&&x0!="")
{
x3=x0;
}
var x4="1px";
if(x1)
{
x4=x1+"px";
this._f664=x1;
}
var x5="dashed";
if(x2!="")
x5=x2;
this._f387.style.border=x3+" "+x4+" "+x5;
}
MVRectangleTool.prototype.setDivFillColor=function(x6,x7)
{
if(!this.innerRectangleDiv)
{
this.innerRectangleDiv=document.createElement("div");
this.innerRectangleDiv.style.width="100%";
this.innerRectangleDiv.style.height="100%";
this._f387.appendChild(this.innerRectangleDiv);
}
if(x6&&x6!="")
{
if(this.innerRectangleDiv.style.setAttribute)
this.innerRectangleDiv.style.cssText+=";background-color:"+x6;
else
 this.innerRectangleDiv.style.backgroundColor=x6;
}
if(isNaN(x7)||x7<0||x7>1)
{
MVi18n.processLocale("MAPVIEWER-5500","The second parameter specified is not a valid number between 0 and 1! From: setDivFillColor(...) in MVRectangleTool");
}
else
 {
if(window.ActiveXObject)
{
this.innerRectangleDiv.style.filter="alpha(opacity="+(x7*100)+")";
}
else
 {
this.innerRectangleDiv.style.opacity=x7;
}
}
}
MVRectangleTool.prototype._f680=function()
{
this._f666=this.parent._f358();
this._f667=this.parent._f359();
}
MVRectangleTool.prototype._f681=function()
{
this._f668=this.parent._f358();
this._f669=this.parent._f359();
}
MVRectangleTool.prototype._f682=function()
{
this._f387.style.width="0px";
this._f387.style.height="0px";
this._f387.style.clip="rect(0px, 0px, 0px, 0px)";
this._f387.style.visibility="hidden";
}
MVRectangleTool.prototype._f683=function()
{
if(this._f676!=3)
{
return;
}
var x8=(this._f666-this.parent._f356())*this.parent._f100+
(this.parent._f127()/2);
var x9=(this._f667-this.parent._f357())*(-this.parent._f101)+
(this.parent._f129()/2);
var x10=(this._f668-this.parent._f356())*this.parent._f100+
(this.parent._f127()/2);
var x11=(this._f669-this.parent._f357())*(-this.parent._f101)+
(this.parent._f129()/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._f387.style.left=x14-1-MVUtil._f106(this.parent.div)+'px';
this._f387.style.top=x15-1-MVUtil._f107(this.parent.div)+'px';
if(x12>0)
x12++;
if(x13>0)
x13++;
if(this._f13=="NS")
{
if(x12==0)
x12=(2*this._f664);
if(x13==0)
x13=(2*this._f664);
this._f387.style.width=Math.abs(x12-(2*this._f664))+'px';
this._f387.style.height=Math.abs(x13-(2*this._f664))+'px';
this._f387.style.clip="rect(0px, "+(x12)+"px, "+
(x13)+"px, 0px)";
}
else
 {
this._f387.style.width=x12+'px';
this._f387.style.height=x13+'px';
this._f387.style.clip="rect(0px, "+(x12+(2*this._f664))+"px, "+
(x13+(2*this._f664))+"px, 0px)";
}
this._f387.style.visibility="visible";
}
MVRectangleTool.prototype.generateArea=function()
{
if(this._f676!=3)
return;
this.parent.removeFOI("MVRectangleTool"+this.id);
if(!this._f665)
return;
this._f682();
if(this._f666!=this._f668&&this._f667!=this._f669)
{
this._f675=MVSdoGeometry.createRectangle(
this._f666,this._f667,this._f668,this._f669,this.parent.srid);
var x16=new MVFOI("MVRectangleTool"+this.id,this._f675,
this._f613,this._f386);
x16.setClickable(false);
x16.enableInfoTip(false);
this.parent.addFOI(x16);
}
else
 this._f675=null;
}
MVRectangleTool.prototype.init=function()
{
this._f676=1;
MVUtil._f590(this._f387);
var x17=this.parent;
var x18=x17._f278;
var x19=this;
var x20;
this._f13=this.parent.getBrowserType();
var x21=function()
{
_f3._f50=true;
var x22=x17._f356();
var x23=x17._f357();
if((x19._f670)!=x22||(x19._f671)!=x23)
{
if(x19._f676==2)
{
x19._f676=3;
}
x19._f668+=(x22-x19._f670);
x19._f669+=(x23-x19._f671);
x19._f670=x22;
x19._f671=x23;
x19._f683();
}
}
x18.onmousedown=MVUtil._f163(x18,function(x24)
{
x17.removeFOI("MVRectangleTool"+x19.id);
x19._f676=2;
x24=(x24)?x24:((window.event)?event:null);
x17._f437(x24);
x19._f680();
x19._f681();
x19._f387.style.visibility="hidden";
if(x19._f672!=null)
(x19._f672)();
x19._f670=x17._f356();
x19._f671=x17._f357();
var x25=5;
x20=setInterval(x21,x25);
x19._f678();
return false;
});
x18.onmousemove=MVUtil._f163(x18,function(x26)
{
if(x19._f676==2)
x19._f676=3;
if(x19._f676==3)
{
x26=(x26)?x26:((window.event)?event:null);
x17._f437(x26);
x19._f681();
x19._f683();
if(x19._f674)
x19._f674();
}
return false;
});
x18.onmouseup=MVUtil._f163(x18,function(x27)
{
x27=(x27)?x27:((window.event)?event:null);
x17._f437(x27);
x19._f681();
x19.generateArea();
clearInterval(x20);
x17._f336();
x19._f679();
if(x19._f673)
(x19._f673)();
return false;
});
x18.onmouseout=MVUtil._f163(x18,function(x28)
{
if(x19._f676!=3)
return false;
if(x19._f13=="NS"||x19._f13=="OS")
{
x28=(x28)?x28:((window.event)?event:null);
var x29=x28.clientX;
var x30=x28.clientY;
var x31=x17._f127();
var x32=x17._f129();
var x33=MVUtil._f435(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._f682();
this.parent.removeFOI("MVRectangleTool"+this.id);
this._f676=0;
this.parent._f336();
}
MVRectangleTool.prototype.getRectangle=function()
{
if(this._f666!=this._f668&&this._f667!=this._f669)
return MVSdoGeometry.createRectangle(
this._f666,this._f667,this._f668,this._f669,this.parent.srid);
else
 return null;
}
MVRectangleTool.prototype.getRectangleFOI=function()
{
return this.parent.getFOI("MVRectangleTool"+this.id);
}
MVRectangleTool.prototype.getRectangleDIV=function()
{
return this._f387;
}
MVRectangleTool.prototype.addEventListener=function(x36,x37)
{
this.setEventListener(x36,x37);
}
MVRectangleTool.prototype.setEventListener=function(x38,x39)
{
if(x38=="on_start")
this._f672=x39;
else if(x38=="on_finish")
this._f673=x39;
else if(x38=="on_drag")
this._f674=x39;
}
MVRectangleTool.prototype.getStatus=function()
{
return this._f676;
}
MVRectangleTool.prototype.getWidth=function(x40)
{
if(!x40)
return Math.abs(this._f666-this._f668);
else
 return MVSdoGeometry.getDistance(this._f666,this._f667,this._f668,this._f667,this.parent.srid,x40);
}
MVRectangleTool.prototype.getHeight=function(x41)
{
if(!x41)
return Math.abs(this._f667-this._f669);
else
 return MVSdoGeometry.getDistance(this._f666,this._f667,this._f666,this._f669,this.parent.srid,x41);
}
MVRectangleTool.prototype.setDivStyle=function(x42)
{
var x43="#FF0000";
var x44=2;
var x45="dashed";
var x46="#555555";
var x47=0.3;
if(x42.borderColor!=undefined)
x43=x42.borderColor;
if(x42.borderWidth!=undefined)
x44=x42.borderWidth;
if(x42.borderDashed!=undefined)
{
if(!x42.borderDashed)
x45="solid";
}
if(x42.fillColor!=undefined)
x46=x42.fillColor;
if(x42.fillOpacity!=undefined)
x47=x42.fillOpacity;
this.setDivFillColor(x46,x47);
this.setDivBorderStyle(x43,x44,x45);
}
function MVCircleTool(circleStyle,_f386)
{
this.parent=null;
this._f385=document.createElement("div");
this._f385.style.position="absolute";
this._f385.style.visibility="hidden";
this._f385.style.zIndex=5000;
this._f689=new Object();
this._f689._f664=2;
this._f689.divHeight=2;
this._f689.zIndex=5001;
this._f689.backgroundColor="#FF0000";
this._f689.opacity=null;
this._f386=_f386;
this._f613=circleStyle;
this._f665=(circleStyle!=null?true:false);
this._f666=0;
this._f667=0;
this._f668=0;
this._f669=0;
this.stepPx=6;
this._f670=0;
this._f671=0;
this._f672=null;
this._f673=null;
this._f674=null;
this._f690=null;
this._f675=null;
var _f58=eval(_f3._f58);
_f3._f58=(++_f58);
this.id=_f58;
this._f691="MVCircleTool";
this._f676=0;
this.refresh=false;
this._f677=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(_f3._f50)
MVUtil._f169(x0);
};
this._f678=function()
{
if(this.netscape==null)
{
if(_f3._f12("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this._f677,false);
}
}
this._f679=function()
{
if(this.netscape==null)
{
if(_f3._f12("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this._f677,false);
}
}
MVCircleTool.prototype.setPlotDivSize=function(x0,x1)
{
if(x0!=null)
{
if(isNaN(x0))
{
MVi18n.processLocale("MAPVIEWER-5500","The specified value for plot DIV width is invalid, and it should be an integer. From: MVCircleTool.setPlotDivSize(...)");
}
else
 {
x0=Math.round(x0);
this._f689._f664=x0;
}
}
if(x1!=null)
{
if(isNaN(x1))
{
MVi18n.processLocale("MAPVIEWER-5500","The specified value for plot DIV height is invalid, and it should be an integer. Error: MVCircleTool.setPlotDivSize(...)");
}
else
 {
x1=Math.round(x1);
this._f689.divHeight=x1;
}
}
}
MVCircleTool.prototype.setPlotDivFillColor=function(x2,x3)
{
if(x2!=null&&x2!="")
this._f689.backgroundColor=x2;
if(isNaN(x3)||x3<0||x3>1)
{
MVi18n.processLocale("MAPVIEWER-5500","The second parameter specified is not a valid number between 0 and 1! From: setPlotDivFillColor(...) in MVCircleTool");
}
else
 {
this._f689.opacity=x3;
}
}
MVCircleTool.prototype.setPlotDivZindex=function(x4)
{
if(x4!=null)
{
if(isNaN(x4))
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter specified is not a valid number! From: setDivZindex(...) in MVCircleTool");
}
else
 {
this._f689.zIndex=x4;
this._f385.style.zIndex=(x4-1);
}
}
}
MVCircleTool.prototype._f680=function()
{
this._f666=this.parent._f358();
this._f667=this.parent._f359();
}
MVCircleTool.prototype._f681=function()
{
this._f668=this.parent._f358();
this._f669=this.parent._f359();
var x5=(this._f668-this._f666);
var x6=(this._f669-this._f667);
var x7=Math.sqrt(x5*x5+x6*x6);
this._f690=x7;
}
MVCircleTool.prototype._f692=function()
{
if(this._f676!=3)
{
return;
}
var x8=this.parent._f100;
var x9=this.parent._f101;
var x10=Math.round((this._f666-this.parent._f356())*x8+(this.parent._f127()/2));
var x11=Math.round((this._f667-this.parent._f357())*(-x9)+(this.parent._f129()/2));
var x12=(this._f668-this._f666)*x8;
var x13=(this._f669-this._f667)*(-x9);
var x14=Math.round(Math.sqrt(x12*x12+x13*x13));
this._f690=x14;
var x15=2*(x14+this._f689._f664);
var x16=2*(x14+this._f689.divHeight);
var x17=x10-x14-Math.round((this._f689._f664)/2);
var x18=x11-x14-Math.round((this._f689.divHeight)/2);
this._f385.style.left=x17+'px';
this._f385.style.top=x18+'px';
this._f385.style.width=x15+'px';
this._f385.style.height=x16+'px';
this._f385.style.clip="rect(0px, "+x16+"px, "+x15+"px, 0px)";
this._f385.style.visibility="visible";
var x19=(this._f691+this.id+"PlotsDiv");
var x20=document.getElementById(x19);
if(x20!=null)
this._f385.removeChild(x20);
x20=document.createElement("div");
x20.id=x19;
x20.style.position="absolute";
x20.style.left=0+'px';
x20.style.top=0+'px';
this._f385.appendChild(x20);
var x21=(this.stepPx)/x14;
x21=x21>1?1:x21;
var x22=Math.acos(x21);
var x23=Math.asin(x21);
var x24=x22<x23?x22:x23;
var x25=50;
if(x24==0)
x24=Math.PI/(2*x25);
var x26=Math.ceil(Math.PI/(2*x24));
for(var x27=0;x27<x26;++x27)
{
var x28=x27*x24;
x12=Math.round(x14*Math.cos(x28));
x13=Math.round(x14*Math.sin(x28));
this._f693((x14+x12),(x14+x13));
this._f693((x14+x12),(x14-x13));
this._f693((x14-x12),(x14+x13));
this._f693((x14-x12),(x14-x13));
}
}
MVCircleTool.prototype._f693=function(x29,x30)
{
var x31=(this._f691+this.id+"PlotsDiv");
var x32=document.getElementById(x31);
if(x32==null)
{
MVi18n.processLocale("MAPVIEWER-5500","null plodsDiv found. From: MVCircleTool.plotPos(...)");
return;
}
var x33=document.createElement("DIV");
x33.style.position="absolute";
x33.style.zIndex=this._f689.zIndex;
if(this._f689.backgroundColor!=null)
x33.style.backgroundColor=this._f689.backgroundColor;
if((this._f689.opacity)!=null)
{
if(window.ActiveXObject)
{
x33.style.filter="alpha(opacity="+((this._f689.opacity)*100)+")";
}
else
 {
x33.style.opacity=this._f689.opacity;
}
}
x33.style.left=x29+"px";
x33.style.top=x30+"px";
x33.style.width=(this._f689._f664)+"px";
x33.style.height=(this._f689.divHeight)+"px";
x33.style.clip="rect(0px, "+(this._f689._f664)+"px, "+
(this._f689.divHeight)+"px, 0px)";
x32.appendChild(x33);
}
MVCircleTool.prototype.generateArea=function()
{
if(this._f676!=3)
{
return;
}
var x34=this._f691+this.id;
this.parent.removeFOI(x34);
var x35=(this._f668-this._f666);
var x36=(this._f669-this._f667);
var x37=Math.sqrt(x35*x35+x36*x36);
this._f690=x37;
this._f675=MVSdoGeometry.createCircle(this._f666,this._f667,x37,this.parent.srid);
if(!(this._f665))
return;
var x38=new MVFOI(x34,this._f675,this._f613,this._f386);
x38.setClickable(false);
x38.enableInfoTip(false);
this.parent.addFOI(x38);
}
MVCircleTool.prototype.init=function()
{
this._f676=1;
var x39=this.parent;
var x40=x39._f278;
var x41=this;
var x42;
var x43=function()
{
_f3._f50=true;
var x44=x39._f356();
var x45=x39._f357();
if((x41._f670)!=x44||(x41._f671)!=x45||(x41.refresh))
{
x41.refresh=false;
if(x41._f676==2)
{
x41._f676=3;
}
x41._f668+=(x44-x41._f670);
x41._f669+=(x45-x41._f671);
x41._f670=x44;
x41._f671=x45;
x41._f692();
}
}
x40.onmousedown=MVUtil._f163(x40,function(x46)
{
x39.removeFOI(x41._f691+x41.id);
x41._f676=2;
x46=(x46)?x46:((window.event)?event:null);
x39._f437(x46);
x41._f680();
x41._f681();
x41._f385.style.visibility="hidden";
if(x41._f672!=null)
(x41._f672)();
x41._f670=x39._f356();
x41._f671=x39._f357();
var x47=5;
x42=setInterval(x43,x47);
x41._f678();
return false;
});
x40.onmousemove=MVUtil._f163(x40,function(x48)
{
if(x41._f676==2)
{
x41._f676=3;
}
if(x41._f676==3)
{
x48=(x48)?x48:((window.event)?event:null);
x39._f437(x48);
x41._f681();
x41.refresh=true;
if(x41._f674)
x41._f674();
}
return false;
});
x40.onmouseup=MVUtil._f163(x40,function(x49)
{
x49=(x49)?x49:((window.event)?event:null);
x39._f437(x49);
x41._f681();
x41.generateArea();
var x50=document.getElementById(x41._f691+x41.id+"PlotsDiv");
if(x50!=null)
x41._f385.removeChild(x50);
x41._f385.style.width="0px";
x41._f385.style.height="0px";
x41._f385.style.clip="rect(0px, 0px, 0px, 0px)";
x41._f385.style.visibility="hidden";
clearInterval(x42);
x39._f336();
x41._f679();
if(x41._f673!=null)
(x41._f673)();
return false;
});
x40.onmouseout=MVUtil._f163(x40,function(x51)
{
if(x41._f676!=3)
return false;
if(!(window.ActiveXObject))
{
x51=(x51)?x51:((window.event)?event:null);
var x52=x51.clientX;
var x53=x51.clientY;
var x54=x39._f127();
var x55=x39._f129();
var x56=MVUtil._f435(this);
var x57=x51.pageX-x56.x;
var x58=x51.pageY-x56.y;
if(x57<=0||x57>=x54||
x58<=0||x58>=x55||
x52<=0||x52>=document.body.clientWidth||
x53<=0||x53>=document.body.clientHeight)
{
return this.onmouseup(x51);
}
}
});
}
MVCircleTool.prototype.clear=function()
{
this.parent.removeFOI(this._f691+this.id);
this._f676=0;
this.parent._f336();
}
MVCircleTool.prototype.getCircle=function()
{
if(this._f676==3&&this._f690)
return MVSdoGeometry.createCircle(this._f666,this._f667,this._f690,this.parent.srid);
else if(this._f675!=null)
return (this._f675);
else
 return null;
}
MVCircleTool.prototype.getRadius=function(x59)
{
if(!x59)
return this._f690;
else
 return MVSdoGeometry.getDistance(this._f666,this._f667,this._f666,this._f667+this._f690,this.parent.srid,x59);
}
MVCircleTool.prototype.getCenter=function()
{
return MVSdoGeometry.createPoint(this._f666,this._f667,this.parent.srid);
}
MVCircleTool.prototype.getCircleFOI=function()
{
return this.parent.getFOI(this._f691+this.id);
}
MVCircleTool.prototype.addEventListener=function(x60,x61)
{
this.setEventListener(x60,x61);
}
MVCircleTool.prototype.setEventListener=function(x62,x63)
{
if(x62=="on_start")
this._f672=x63;
else if(x62=="on_finish")
this._f673=x63;
else if(x62=="on_drag")
this._f674=x63;
}
MVCircleTool.prototype.getStatus=function()
{
return this._f676;
}
function MVi18n()
{
}
MVi18n._f641=null;
MVi18n._f213=null;
MVi18n._f642=null;
MVi18n.URL=null;
MVi18n.processLocale=function(x0,x1,x2,x3)
{
if(MVi18n.URL==null)
{
alert(x0);
return;
}
var x4=(MVUtil._f25(MVi18n.URL)==MVUtil._f25(_f3._f26()));
var x5=x4||MVMapView._f27;
if(MVMapView._f27&&!x4)
MVi18n.URL=_f3._f66()+"?rtarget="+MVi18n.URL;
var x6=null;
x6=encodeURI(MVi18n.URL+"/ReturnLocaleString");
var x7=x0;
var x8=MVi18n._f641;
var x9=MVi18n._f213;
var x10=MVi18n._f642;
if((x10.toLowerCase())=="url")
{
x6=x6+encodeURI("?liter="+x0);
if((x8.toLowerCase())=="func")
x9(x6);
return;
}
try
{
var x11=MVUtil.getXMLHttpRequest(x5);
x11.open("POST",x6,true);
x11.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
x11.onreadystatechange=MVUtil._f163(x11,function()
{
try
{
if(this.readyState!=4)
return;
if(this.status==200)
x7=this.responseText;
MVUtil.gc();
if((x8.toLowerCase())=="func")
x9(x7);
}
catch(e)
{
alert(e);
}
});
var x12="liter="+x0;
if(x1)
x12=x12+"&p0="+x1;
if(x2)
x12=x12+"&p1="+x2;
if(x3)
x12=x12+"&p2="+x3;
x11.send(encodeURI(x12));
}
catch(ex)
{
alert(ex);
}
}
MVi18n.addBehavior=function(x13,x14,x15)
{
if(x13==null||(x13!="func"&&x13!="eval"))
{
alert("MethodType Error");
return;
}
if(!x14)
{
alert("MethodName Error");
return;
}
if(x15==null||((x15.toLowerCase())!="url"&&(x15.toLowerCase())!="text"))
{
alert("ArgType Error");
return;
}
MVi18n._f641=x13;
MVi18n._f213=x14;
MVi18n._f642=x15;
}
MVi18n.setURL=function(x16)
{
if(x16==null||x16=="")
{
alert("Parameter should not be null or empty. Error occurs in MVi18n.setURL(...)");
return;
}
MVi18n.URL=x16;
}
function MVMapView(x0,x1)
{
if(!MVi18n._f213)
MVi18n.addBehavior("func",alert,"text");
this._f214=MVUtil._f215++;
this.center=null;
this._f114=0;
this._f117=0;
this._f100=0;
this._f101=0;
this.tileWidth=0;
this.tileHeight=0;
this._f216=200;
this._f217=200;
this._f218=0;
this._f219=0;
this._f220=1;
this._f221=0;
this._f222=0;
this._f223=0;
this._f224=false;
this._f155=false;
this._f225=0;
this._f226=0;
this._f227=null;
this._f228=null;
this._f229=0.0;
this._f230=0.0;
this._f231=0.0;
this._f232=0.0;
this._f233=0.0;
this._f234=0.0;
this._f130=0.0;
this._f131=0.0;
this._f132=0.0;
this._f133=0.0;
this._f235=false;
this.msi=null;
this._f236=false;
this._f237=true;
this._f238=null;
this._f239=new Array();
this._f240=new Array();
this._f241=null;
this._f242=new Array();
this._f243=new Array();
this._f142=null;
this._f95=null;
this._f244=new _f245();
this._f246=2;
this._f247=4;
this._f248=4;
this._f249=null;
this._f250=new _f245();
this._f251=false;
this._f252=0;
this._f78=false;
this._f253=new Array();
this._f254=null;
this._f255=false;
this._f256=true;
this._f257=null;
this._f258=0;
this._f259=0;
this._f260=null;
this._f261=0;
this._f262=false;
this._f263="one_time";
this._f264=false;
this._f265=null;
this._f266=false;
this._f267=false;
this._f268=false;
this._f269=false;
this._f270=null;
this._f271=1;
this.centerMarkUrl=null;
this.centerMarkW=0;
this.centerMarkH=0;
var x2=String(document.location);
var x3=x2.indexOf("//");
this._f62=_f3._f26();
this._f272=this._f62;
this._f273=this._f62;
this._f274="default";
this._f275="move";
this._f276="default";
if(x1)
{
this._f272=x1;
this._f273=x1;
if(MVUtil._f168(x1,'/'))
{
this._f272=x1.substring(0,x1.length-1);
this._f273=x1.substring(0,x1.length-1);
}
if(MVUtil._f25(this._f62)!=MVUtil._f25(this._f272))
{
this._f272=_f3._f66()+"?rtarget="+this._f272;
}
}
_f3._f61=this._f273+"/foi";
_f3._f51=this._f273+_f3._f52;
MVi18n.setURL(this._f273);
this._f277=false;
if(x0==null)
return null;
MVUtil._f210(x0);
this._f278=x0;
this.div=null;
var x4=this;
var x5=this.getBrowserType();
this.toolBarContainer=null;
this._f279();
this._f278.style.overflow="hidden";
if(this._f278.style.position!="absolute")
{
this._f278.style.position="relative";
}
this._f280="";
this._f28=0;
this._f29=0;
this._f281();
this._f282=false;
this._f283=null;
this._f284=document.createElement("div");
MVUtil._f285(this._f284);
this._f284.style.position="absolute";
this._f284.style.zIndex=125;
this.div.appendChild(this._f284);
this._f286=null;
this._f287=null;
this._f288=null;
this._f289=null;
this._f290=null;
this._f291=null;
this._f292=new _f293();
this._f294=true;
this._f295="recenter";
this._f296=null;
this._f297=true;
this._f298=null;
this._f299=false;
this._f300=null;
this._f301=null;
this._f302=null;
this._f303=null;
this._f304=false;
this._f305=0;
this._f306=null;
this._f307=5;
this._f171=false;
return this;
}
MVMapView.prototype._f279=function()
{
if(_f3._f13=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
document.body.style.height="100%";
}
if(this._f278.style.backgroundColor=="")
this._f278.style.backgroundColor="lightgrey";
this.div=document.createElement("div");
this.div.style.position="absolute";
if(_f3._f13=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
this.div.style.width=MVUtil._f178(this._f127());
this.div.style.height=MVUtil._f178(this._f129());
}
else
 {
this.div.style.width="100%";
this.div.style.height="100%";
}
this.div.style.zIndex=80;
this.div.style.left=MVUtil._f178(0);
this.div.style.top=MVUtil._f178(0);
this._f179=0;
this._f180=0;
this._f308=this._f179;
this._f309=this._f180;
this._f310=0;
this._f311=0;
this._f278.appendChild(this.div);
var x0=document.createElement("table");
x0.style.zIndex=9999;
x0.style.height=MVUtil._f178(17);
x0.style.position="absolute";
x0.style.right=MVUtil._f178(0);
x0.style.bottom=MVUtil._f178(0);
this._f278.appendChild(x0);
this.toolBarContainer=document.createElement("tr");
x0.appendChild(this.toolBarContainer);
var x1=document.createElement("td");
this.toolBarContainer.appendChild(x1);
}
MVMapView.prototype._f312=function(x2,x3)
{
this._f310=x2-this._f179;
this._f311=x3-this._f180;
}
MVMapView.prototype._f315=function(x4,x5)
{
this._f179=x4-this._f310;
this._f180=x5-this._f311;
this._f308=MVUtil._f106(this.div);
this._f309=MVUtil._f107(this.div);
var x6=this._f114;
var x7=this._f117;
this._f114=this._f114+
(this._f308-this._f179)/this._f100;
this._f117=this._f117-
(this._f309-this._f180)/this._f101;
if(x6!=this._f114||x7!=this._f117)
{
this._f235=true;
}
MVUtil._f108(this.div,this._f179,this._f180);
}
MVMapView.prototype.addEventListener=function(x8,x9)
{
this.setEventListener(x8,x9);
}
MVMapView.prototype.setEventListener=function(x10,x11)
{
if(x10=="recenter")
{
this._f289=x11;
}
else if(x10=="mouse_click")
{
this._f288=x11;
}
else if(x10=="mouse_right_click")
{
this._f290=x11;
}
else if(x10=="zoom_level_change")
{
this._f286=x11;
}
else if(x10=="before_zoom_level_change")
{
this._f287=x11;
}
else if(x10=="mouse_double_click")
{
this._f296=x11;
}
}
MVMapView.prototype.init=function()
{
this._f302=null;
this._f303=null;
if(this._f306)
clearTimeout(this._f306);
this.setLoadingIconVisible(true);
this._f225=this._f221+(this._f218/2*this.tileWidth);
this._f226=this._f222+(this._f219/2*this.tileHeight);
if(!this._f78)
{
if(this._f316())
return ;
}
this._f317();
for(var x12=0;x12<this._f242.length;x12++)
{
this._f242[x12]._f318(this._f127(),this._f129(),
this._f114,this._f117);
}
if(!this._f142)
this._f142=new _f319(this);
this._f166();
this.refreshThemeBasedFOIs(true);
this._f165();
this._f142.refresh(this._f130,this._f131,
this._f132,this._f133,
this._f127(),this._f129());
this._f155=true;
this._f224=true;
if(this._f270!=null&&!this._f78)
for(var x12=0;x12<this._f270.length;x12++)
if(this._f270[x12]!=null)
{
var id="_md_"+this._f271
this._f270[x12].init(id,this);
if(this._f270[x12]._f320)
this._f278.appendChild(this._f270[x12]._f321);
else
 this._f278.appendChild(this._f270[x12]._f322);
this._f271++;
}
if(this._f254!=null&&this._f254._f323==null)
this._f254.init(this)
this._f324();
if(this._f244)
this._f244._f325(this);
this._f306=this.setTimeout("this.checkSize()",400);
}
MVMapView.prototype.destroy=function()
{
while(this._f242.length>0)
{
var x13=this._f242.pop();
x13.destroy();
}
this._f242=null;
if(!this._f142)
this._f142=null;
while(this._f243.length>0)
{
var x14=this._f243.pop();
x14.destroy();
}
this._f243=null;
this._f95.destroy();
this._f95=null;
if(this._f270)
while(this._f270.length>0)
this._f270.pop();
this._f270=null;
if(this._f254)
{
this._f254.destroy();
this._f254=null;
}
MVUtil._f210(this._f278);
this._f278=null;
}
MVMapView.prototype._f326=function()
{
this.tileWidth=this._f239[this._f223];
this.tileHeight=this._f240[this._f223];
this._f327();
}
MVMapView.prototype._f327=function()
{
this._f221=-this.tileWidth*this._f220;
this._f222=-this.tileHeight*this._f220;
var x15=this._f127()/this.tileWidth;
this._f218=parseInt(Math.ceil(x15/2)+1)*2+1;
x15=this._f129()/this.tileHeight;
this._f219=parseInt(Math.ceil(x15/2)+1)*2+1;
this._f225=this._f221+(this._f218/2*this.tileWidth);this._f226=this._f222+(this._f219/2*this.tileHeight);}
MVMapView.prototype._f317=function()
{
this._f228=new _f328(this.msi.mapConfig,this._f114,this._f117,this._f223);this._f227=new _f328(this.msi.mapConfig,this._f114,this._f117,this._f223);this._f227._f329(-(Math.ceil(this._f218/2)-1),+Math.ceil(this._f219/2)-1);
this._f100=this.tileWidth/this._f228._f330;this._f101=this.tileHeight/this._f228._f331;}
MVMapView.prototype._f166=function()
{
this._f231=this._f227.minX;
this._f232=(this._f227.minY+this._f227._f331);
this._f233=(this._f227.minX+(this._f227._f330*this._f218));
this._f234=(this._f227.minY-(this._f227._f331*(this._f219-1)));
this._f130=this._f332();
this._f131=this._f333();
this._f132=this._f334();
this._f133=this._f335();
}
MVMapView.prototype.display=function()
{
var x16=this;
var x17=function()
{
x16.init();
if(!x16._f269)
{
x16._f336();
x16._f269=true;
}
x16._f78=true;
}
this._f337(x17);
}
MVMapView.prototype.setCenter=function(x18)
{
this.center=x18;
if(this._f78)
this._f337();
}
MVMapView.prototype._f337=function(x19)
{
if(!this.center)
{
if(x19)
x19();
return ;
}
if(!this.msi)
{
MVi18n.processLocale("Base map layer hasn't been successfully added.\nThis can be caused by one of the following reasons:\n1. Invalid MapViewer URL.\n2. Invalid map cache instance name.\n3. Did not use call back function in MVMapView.addBaseMapLayer when accessing a cross-domain MapViewer instance.");
return ;
}
this.srid=this.msi.getSrid();
var x20=this.center;
if(x20)
{
this.center=null;
if(!(x20.sdo_point))
MVi18n.processLocale("MAPVIEWER-5505");
var x21=this;
var x22=function(x23)
{
if(x23)
x20=x23;
if(!x21._f78)
{
x21._f114=x20.getPointX();
x21._f117=x20.getPointY();
}
else
 {
x21._f338=(x21._f114-x20.getPointX())*x21._f100;
x21._f339=(x21._f117-x20.getPointY())*x21._f101*(-1);
x21._f340=x21._f127();
x21._f341=x21._f129();
if(Math.abs(x21._f338)<=(x21._f340+x21._f216)&&Math.abs(x21._f339)<=(x21._f341+x21._f217))
{
x21._f135=Math.sqrt(x21._f338*x21._f338+x21._f339*x21._f339);
x21._f342=20;
x21._f343=x21._f135>((x21._f340+x21._f341)/4)?300:200;
x21._f344=0;
x21._f345=0;
x21._f346=0;
x21.smoothPan();
}
else
 {
x21._f114=x20.getPointX();
x21._f117=x20.getPointY();
x21.display();
}
if(x21._f244)
x21._f244._f325(x21);
}
if(x19)
x19();
}
if(this.srid!=x20.srid)
x20=this.transformGeom(x20,this.srid,null,x22);
else
 x22();
}
else
 {
if(x19)
x19();
}
}
MVMapView.prototype.setCenterLon=function(x24)
{
this._f114=x24;
}
MVMapView.prototype.setCenterLat=function(x25)
{
this._f117=x25;
}
MVMapView.prototype.setCenterMark=function(x26,x27,x28)
{
if(this._f347!=undefined)
{
this._f278.removeChild(this._f347);
delete this._f347;
}
if(x26==null)
return ;
this.centerMarkUrl=x26;
this.centerMarkW=x27;
this.centerMarkH=x28;
var x29=document.createElement("img");x29.src=x26;
x29.style.zIndex=2000;
x29.style.position="absolute";
x29.style.width=MVUtil._f178(x27);
x29.style.height=MVUtil._f178(x28);
x29.style.left=MVUtil._f178((this._f127()-x27)/2);
x29.style.top=MVUtil._f178((this._f129()-x28)/2);
this._f278.appendChild(x29);
this._f347=x29;
}
MVMapView.prototype.setZoomLevel=function(x30)
{
if(isNaN(x30)||x30<0)
{
MVi18n.processLocale("MAPVIEWER-5506");
return;
}
if(this._f78)
this.zoomTo(x30);
else
 {
this._f223=x30;
this._f326();
}
}
MVMapView.prototype.setHomeMap=function(x31,x32)
{
this._f260=x31;
if(x32)
this._f261=x32;
}
MVMapView.prototype.setMapBuffer=function(x33,x34)
{
this._f216=x33;
this._f217=x34;
}
MVMapView.prototype._f351=function(x35)
{
this.msi=new _f352(x35._f21);
if(this._f223>(this.msi.zoomCount-1))
{
this._f223=this.mis.zoomCount-1;
}
for(var x36=0;x36<this.msi._f353();x36++)
{
this._f239[x36]=this.msi._f354(this._f223);
this._f240[x36]=this.msi._f355(this._f223);
}
this._f326();
this._f252=this.msi._f353()-1;
this._f317();
}
MVMapView.prototype.getMapBaseURL=function()
{
return this._f273;
}
MVMapView.prototype._f127=function()
{
if(this._f278.offsetWidth)
return this._f278.offsetWidth;
else if(this._f278.width)
return parseInt(this._f278.width+"");
else
 return 0;
}
MVMapView.prototype._f129=function()
{
if(this._f278.offsetHeight)
return this._f278.offsetHeight;
else if(this._f278.width)
return parseInt(this._f278.width+"");
else
 return 0;
}
MVMapView.prototype._f332=function()
{
var x37=this._f127()/2;
return (0-x37)/this._f100+this._f114;
}
MVMapView.prototype._f333=function()
{
var x38=this._f129()/2;
return -1.0*(x38-1)/this._f101+this._f117;
}
MVMapView.prototype._f334=function()
{
var x39=this._f127()/2;
return (x39-1)/this._f100+this._f114;
}
MVMapView.prototype._f335=function()
{
var x40=this._f129()/2;
return -1.0*(0-x40)/this._f101+this._f117;
}
MVMapView.prototype.getCenter=function()
{
var x41=MVSdoGeometry.createPoint(this._f114,this._f117,this.srid);
return x41;
}
MVMapView.prototype._f356=function()
{
return this._f114;
}
MVMapView.prototype._f357=function()
{
return this._f117;
}
MVMapView.prototype.getMapWindowBBox=function()
{
this._f166();
var x42=MVSdoGeometry.createRectangle(this._f130,this._f131,
this._f132,this._f133,this.srid);
return x42;
}
MVMapView.prototype.getMouseLocation=function()
{
var x43=MVSdoGeometry.createPoint(this._f229,this._f230,this.srid);
return x43;
}
MVMapView.prototype._f358=function()
{
return this._f229;
}
MVMapView.prototype._f359=function()
{
return this._f230;
}
MVMapView.prototype.getZoomLevel=function()
{
return this._f223;
}
MVMapView.prototype.getBaseDiv=function()
{
return this._f278;
}
MVMapView.prototype._f360=function()
{
return this.div;
}
MVMapView.prototype._f361=function()
{
return this._f228._f331;
}
MVMapView.prototype._f362=function()
{
return this._f228._f330;
}
MVMapView.prototype._f363=function()
{
return this.msi;
}
MVMapView.prototype._f364=function()
{
return this._f231;
}
MVMapView.prototype._f365=function()
{
return this._f232;
}
MVMapView.prototype._f366=function()
{
return this._f233;
}
MVMapView.prototype._f367=function()
{
return this._f234;
}
MVMapView.prototype.getScreenMinLon=function()
{
return this._f130;
}
MVMapView.prototype._f368=function()
{
return this._f131;
}
MVMapView.prototype._f369=function()
{
return this._f132;
}
MVMapView.prototype._f370=function()
{
return this._f133;
}
MVMapView.prototype._f371=function()
{
return this._f100;
}
MVMapView.prototype._f372=function()
{
return this._f101;
}
MVMapView.prototype.zoomIn=function(x44)
{
this.zoomTo(this._f223+1,x44);
}
MVMapView.prototype.zoomOut=function(x45)
{
this.zoomTo(this._f223-1,x45);
}
MVMapView.prototype.zoomTo=function(x46,x47)
{
var x48=this._f223;
if(x46>=this._f252)
{
x46=this._f252;
}
else if(x46<0)
{
x46=0;
}
if(x46==this._f223&&!x47)
{
if(this._f249)
this._f249._f373.style.top=MVUtil._f178(this._f35*3+3+
this._f39+(this._f31-_f3._f33)*
(this._f252-x46)/this._f252);
return false;
}
this._f374();
this._f223=x46;
MVUtil._f108(this.div,0,0);
if(this._f142._f143.length>0)
this._f142.deleteInfoWindow(this._f142._f143[0]);
if(this._f249)
this._f249._f373.style.top=MVUtil._f178(this._f35*3+3+
this._f39+
(this._f31-_f3._f33)*
(this._f252-this._f223)/this._f252);
this._f179=0;
this._f180=0;
this._f308=this._f179;
this._f309=this._f180;
this._f310=0;
this._f311=0;
this._f223=x46;
this._f326();
var x49=false;
var x50=this;
var x51=function(x52)
{
if(x52)
x47=x52;
if(x47)
{
if(x47.getPointX()!=x50._f114||x47.getPointY()!=x50._f117)
{
x49=true;
}
x50._f114=x47.getPointX();
x50._f117=x47.getPointY();
}
if(x50._f287&&x48!=x50._f223)
x50._f287(x48,x50._f223);
x50.display();
if(x50._f282)
{
x50._f244._f325(x50);
}
if(x49&&x50._f289)
{
x50._f289()
}
if(x50._f254)
{
x50._f254._f375(x48,x50._f223,x47);
}
if(x50._f286&&x48!=x50._f223)
{
x50._f286(x48,x50._f223);
}
}
if(x47)
{
this.srid=this.msi.getSrid();
if(!(x47.sdo_point))
MVi18n.processLocale("MAPVIEWER-5505");
if(x47.srid&&(this.srid!=x47.srid))
x47=this.transformGeom(x47,this.srid,null,x51);
else
 x51();
}
else
 x51();
return true;
}
MVMapView.prototype.zoomToAtLocation=function(x53,x54)
{
this.srid=this.msi.getSrid();
var x55=this;
var x56=function(x57)
{
if(x57)
x53=x57;
var x58=(x55._f114-x53.getPointX())*x55._f100;
var x59=(x55._f117-x53.getPointY())*x55._f101;
var x60=x55._f239[x54]/x55.msi._f376(x54);
var x61=x55._f240[x54]/x55.msi._f377(x54);
var x62=x58/x60+x53.getPointX();
var x63=x59/x61+x53.getPointY();
var x64=MVSdoGeometry.createPoint(x62,x63,x55.srid);
x55.zoomTo(x54,x64);
}
if(x53.srid&&(this.srid!=x53.srid))
x53=this.transformGeom(x53,this.srid,null,x56);
else
 x56();
}
MVMapView.prototype.setCenterAndZoomLevel=function(x65,x66)
{
if(!this._f78)
{
this.center=x65;
this._f223=x66;
return ;
}
this.srid=this.msi.getSrid();
var x67=this;
var x68=function(x69)
{
if(x69)
x65=x69;
if(x66==null)
{
x66=x67._f223;
}
if(!x67._f78)
{
x67.setCenter(x65);
x67.setZoomLevel(x66);
return ;
}
if(x66==x67._f223)
{
if(!this._f224)
{
x67.zoomTo(x66,x65);
return;
}
else {
x67._f338=(x67._f114-x65.getPointX())*x67._f100
x67._f339=(x67._f117-x65.getPointY())*x67._f101*(-1);
x67._f340=x67._f127();
x67._f341=x67._f129();
if(Math.abs(x67._f338)<=(x67._f340+x67._f216)&&Math.abs(x67._f339)<=(x67._f341+x67._f217))
{
x67._f135=Math.sqrt(x67._f338*x67._f338+x67._f339*x67._f339);
x67._f342=20;
x67._f343=x67._f135>((x67._f340+x67._f341)/4)?300:200;
x67._f344=0;
x67._f345=0;
x67._f346=0;
x67.smoothPan();
return;
}
}
}
x67.zoomTo(x66,x65);
}
if(x65.srid&&(this.srid!=x65.srid))
x65=this.transformGeom(x65,this.srid,null,x68);
else
 x68();
}
MVMapView.prototype.addBaseMapLayer=function(x70,x71)
{
if(x70._f21==undefined||
x70._f21==null||
MVUtil._f22(x70._f21)=="")
{
MVi18n.processLocale("MAPVIEWER-5507");
return ;
}
x70.parent=this;
if(!x70._f20)
{
if(this._f273)
{
if(MVUtil._f168(this._f273,'/'))
x70._f20=this._f273+'mcserver';
else
 x70._f20=this._f273+'/mcserver';
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
}
if(MVMapView._f27&&MVUtil._f25(x70._f20)!=MVUtil._f25(this._f62))
x70._f23=_f3._f66()+"?rtarget="+x70._f20;
else
 x70._f23=x70._f20;
var x72=this;
if(x70==null||!x70.getType)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter is not a valid MVBaseMap object. From: MVMapView.addBaseMapLayer(...)");
return;
}
var x73=function()
{
x72._f351(x70);
x70.config=_f3._f8[x70._f21];
var x74=false;
var x75=null;
for(var x76=0;x76<x72._f242.length;x76++)
{
if(x72._f242[x76]._f379()==x70._f20&&
x72._f242[x76]._f380()==x70._f21)
{
x74=true;
x75=x72._f242[x76];
x72._f242[x76].visible=x70.isVisible();
}
}
if(!x74)
{
x75=new _f381(x72,x70);
x72._f242.push(x75);
}
if(x72._f78)
{
x75._f318(x72._f127(),x72._f129(),
x72._f114,x72._f117);
}
x75=null;
if(x71)
x71();
}
_f3._f19(x70,x73);
}
MVMapView.prototype.removeBaseMapLayer=function(x77)
{
var x78=0;
for(;x78<this._f242.length;x78++)
{
if(this._f242[x78]._f380()==x77._f21)
{
break;
}
}
var x79=this._f242[x78];
this._f242[x78]=this._f242[this._f242.length-1];
this._f242[this._f242.length-1]=x79;
while(this._f242[this._f242.length-1]._f378.childNodes.length>0)
{
var x80=this._f242[this._f242.length-1]._f378.childNodes[0];
if(x80.tagName=="IMG")
{
x80.src=null;
}
else
 {
x80.style.filter=null;
}
this._f242[this._f242.length-1]._f378.removeChild(x80);
x80=null;
}
this._f242[this._f242.length-1]=null;
this._f242.pop();
}
MVMapView.prototype._f281=function()
{
if(!this._f142)
this._f142=new _f319(this);
this._f95=new _f119(this);
this._f95.setSize(Math.ceil(2*(this._f127())),
Math.ceil(2*(this._f129())));
MVUtil._f108(this._f95._f148(),
(this._f127()-this._f95._f126())/2,
(this._f129()-this._f95._f128())/2);
}
MVMapView.prototype.addGroupFOI=function(x81)
{
this._f382=0;
this._f383=x81;
this.startAddGroupFOI();
}
MVMapView.prototype.startAddGroupFOI=function()
{
for(var x82=0;x82<11000;x82++)
{
if(this._f382<this._f383.length)
{
this.addFOI(this._f383[this._f382]);
this._f382++;
}
else
 {
this._f383=null;
this._f384=null;
return;
}
}
this.setTimeout("this.startAddGroupFOI()",5);
}
MVMapView.prototype.addFOI=function(x83)
{
if(!x83||!x83.id)
return false;
if(x83.gtype%10==1)
x83._f79=true;
x83.parent=this;
if(x83.id!="")
{
var x84=x83.id.substr(0,3);
if(x84!="-RL")
{
for(var x85=0;x85<this._f95._f120.length;x85++)
{
if(this._f95._f120[x85].id==x83.id)
{
MVi18n.processLocale("MAPVIEWER-5508",x83.id);
return false;
}
}
}
}
if(x83.gtype%10==1&&!x83.style)
{
x83._f70=x83._f69;
}
if(!x83._f69)
x83._f69=_f3._f63();
this._f95._f111(x83);
return true;
}
MVMapView.prototype.getFOI=function(id)
{
return this._f95._f136(id);
}
MVMapView.prototype.removeFOI=function(x86)
{
if(!x86)
return ;
if(x86.id)
this._f95._f110(x86.id);
else
 this._f95._f110(x86);
}
MVMapView.prototype.getAllFOIs=function()
{
return this._f95._f164();
}
MVMapView.prototype._f165=function()
{
this._f166();
if(this._f95!=null)
{
var x87=(this._f95._f126()-
this._f127())*0.5/this._f100;
var x88=(this._f95._f128()-
this._f129())*0.5/this._f101;
MVUtil._f108(this._f95._f148(),
(this._f127()-this._f95._f126())/2,
(this._f129()-this._f95._f128())/2);
MVUtil._f108(this._f95.getTopContainer(),
(this._f127()-this._f95._f126())/2,
(this._f129()-this._f95._f128())/2);
this._f95._f165(this._f130-x87,
this._f131-x88,this._f132+x87,
this._f133+x88);
}
}
MVMapView.prototype.removeAllFOIs=function()
{
this._f95._f153();
}
MVMapView.prototype.addRedLineTool=function(x89)
{
if(x89==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter redlineTool is null.\n From: MVMapView.addRedLineTool(...)");
return;
}
x89.parent=this;
if(!x89._f69)
x89._f69=_f3._f63();
}
MVMapView.prototype.addCircleTool=function(x90)
{
if(x90==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter circleTool is null. \nFrom: MVMapView.addCircleTool(...)");
return;
}
this._f278.appendChild(x90._f385);
x90.parent=this;
if(!x90._f386)
x90._f386=_f3._f63();
}
MVMapView.prototype.addRectangleTool=function(x91)
{
if(x91==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter rectangleTool is null. \nFrom: MVMapView.addRectangleTool(...)");
return;
}
this.div.appendChild(x91._f387);
x91.parent=this;
if(!x91._f386)
x91._f386=_f3._f63();
}
MVMapView.prototype.stopMarqueeZoom=function()
{
this._f264=false;
if(this._f265)
this._f265.clear();
}
MVMapView.prototype.startMarqueeZoom=function(x92,x93,x94)
{
if(!x92)
x92="one_time";
if(x94&&x94>0)
this._f307=x94;
this._f264=true;
this._f263=x92;
this.marqueeZoom(x93);
}
MVMapView.prototype.marqueeZoom=function(x95)
{
if(!this._f264)
return ;
this._f266=false;
this._f268=false;
var x96=this._f265;
if(!x96)
{
x96=new MVRectangleTool(null,null);
x96.setDivFillColor("#555555",0.3);
this.addRectangleTool(x96);
this._f265=x96;
}
if(x95)
x96.setDivStyle(x95);
x96.init();
var x97=MVUtil._f163(x96,function()
{
this.clear();
var x98=null;
if(this.parent.marqueeRectGeom)
x98=this.parent.marqueeRectGeom.getMBR();
if(x98&&
(this._f263=="prompt"||
Math.abs(x98[2]-x98[0])*this.parent._f100>=this.parent._f307&&
Math.abs(x98[3]-x98[1])*this.parent._f101>=this.parent._f307))
{
var x99=document.getElementById("mv_mrqzm_msg");
if(x99)
x99.parentNode.removeChild(x99);
this.parent.zoomToRectangle(this.parent.marqueeRectGeom);
}
if(this.parent._f263!="one_time")
{
this.parent.marqueeZoom();
}
});
var x100=MVUtil._f163(x96,function()
{
this.parent._f266=true;
this.parent.marqueeRectGeom=x96.getRectangle();
x97();
});
var x101=MVUtil._f163(x96,function()
{
this.parent.marqueeRectGeom=x96.getRectangle();
x97();
this._f264=false;
});
var x102=MVUtil._f163(x96,function(x103)
{
this.parent._f267=true;
x103=(x103)?x103:((window.event)?event:null);
MVUtil._f169(x103);
});
var x104=MVUtil._f163(x96,function(x105)
{
x105=(x105)?x105:((window.event)?event:null);
if(this.parent._f267)
{
MVUtil._f169(x105);
x97();
}
});
var x106=MVUtil._f163(x96,function()
{
this.parent._f266=true;
this.parent.marqueeRectGeom=x96.getRectangle();
if(!this.parent.marqueeRectGeom)
{
this.clear();
this.parent.marqueeZoom();
return ;
}
var x107=this.parent;
var x108=x96.getRectangleDIV();
MVUtil._f105(x108,"crosshair");
if(MVMessages.marqueeZoomHint)
{
x108.onmouseover=function(x109)
{
var x110=document.getElementById("mv_mrqzm_msg");
if(x110)
x110.parentNode.removeChild(x110);
x110=MVUtil._f388(MVMessages.marqueeZoomHint);
x110.id="mv_mrqzm_msg";
x110.style.border="1px solid #000000";
x110.style.backgroundColor="#FFFFCC";
x110.style.position="absolute";
var x111=MVUtil._f389(x107,x109);
x110.style.left=x111.x+"px";
x110.style.top=x111.y+"px";
x110.style.zIndex=9999;
x107._f278.appendChild(x110);
};
x108.onmouseout=function()
{
var x112=document.getElementById("mv_mrqzm_msg");
if(x112)
x112.parentNode.removeChild(x112);
};
}
this.parent._f267=false;
x108.onmousedown=x102;
x108.onmouseup=x104;
x108.onclick=function(x113)
{
MVUtil._f169(x113);
};
});
this._f267=false;
if(this._f263=="prompt")
x96.addEventListener("on_finish",x106);
else if(this._f263=="continuous")
x96.addEventListener("on_finish",x100);
else
 x96.addEventListener("on_finish",x101);
}
MVMapView.prototype.zoomToRectangle=function(x114)
{
var x115=x114.getMBR();
var x116=Math.abs(x115[0]-x115[2]);
var x117=Math.abs(x115[1]-x115[3]);
var x118=x116*(this._f100);
var x119=x117*(this._f101);
var x120=this._f127();
var x121=this._f129();
var x122=this._f223;
var x123=x122;
var x124=this._f252;
if(x120<x118||x121<x119)
{
for(var x125=(x122-1);x125>=0;--x125)
{
x123=x125;
var x126=(this._f239[x125]/this.msi._f376(x125))*x116;
var x127=(this._f240[x125]/this.msi._f377(x125))*x117;
if(x126<=x120&&x127<=x121)
break;
}
}
else if(x120>x118&&x121>x119)
{
for(var x125=(x122+1);x125<=x124;++x125)
{
var x126=(this._f239[x125]/this.msi._f376(x125))*x116;
var x127=(this._f240[x125]/this.msi._f377(x125))*x117;
if(x126<=x120&&x127<=x121)
x123=x125;
else
 break;
}
}
var x128=(x115[0]+x115[2])/2;
var x129=(x115[1]+x115[3])/2;
var x130=MVSdoGeometry.createPoint(x128,x129,this.srid);
this.zoomTo(x123,x130);
}
MVMapView.prototype._f391=function(x131)
{
var x132=(x131._f126()-this._f127())*0.5/this._f100;
var x133=(x131._f128()-this._f129())*0.5/this._f101;
var x134=new Array();
if(x131._f392._f393==1&&x131._f392._f394==1)
{
x134[0]=this._f130;
x134[1]=this._f131;
x134[2]=this._f132;
x134[3]=this._f133;
}
else
 {
var x135=this._f395(this._f130-x132,this._f131-x133);
var x136=this._f396(this._f132+x132,this._f133+x133);
x134[0]=x135.x;
x134[1]=x135.y;
x134[2]=x136.x;
x134[3]=x136.y;
}
var x137=Math.floor((x134[2]-x134[0])*this._f100+0.5);
var x138=Math.floor((x134[3]-x134[1])*this._f101+0.5);
x131._f397(x137,x138);
return x134;
}
MVMapView.prototype._f316=function()
{
this._f166();
var x139=0;
for(x139=0;x139<this._f243.length;x139++)
{
var x140=this._f243[x139];
if(x140._f392._f398)
{
while(x140._f399.childNodes.length>0)
{
x140._f399.removeChild(x140._f399.childNodes[0]);
}
while(x140._f400.childNodes.length>0)
{
x140._f400.removeChild(x140._f400.childNodes[0]);
}
while(this._f284.childNodes.length>0)
{
this._f284.removeChild(this._f284.childNodes[0]);
}
var x141=this._f391(x140);
x140._f401(this,0,0,1,1,true,true);
return true;
}
}
return false;
}
MVMapView.prototype._f402=function(x142,x143)
{
var x144=this;
var x145=function(x146)
{
x146.style.position="absolute";
if(x144._f246==1||x144._f246==3)
x146.style.right=MVUtil._f178(x144._f247);
else
 x146.style.left=MVUtil._f178(x144._f247);
if(x144._f246==2||x144._f246==3)
x146.style.bottom=MVUtil._f178(x144._f248);
else
 x146.style.top=MVUtil._f178(x144._f248);
}
x142._f403(this,x143,x145);
}
MVMapView.prototype.addThemeBasedFOI=function(x147)
{
if(this._f299)
{
this._f404(x147);
return ;
}
if(!x147)
{
MVi18n.processLocale("MAPVIEWER-5500","Parameter themeBasedFOI is null.\n From: addThemeBasedFOI()");
return ;
}
if(!this._f142)
this._f142=new _f319(this);
for(var x148=0;x148<this._f243.length;x148++)
{
if(MVUtil._f22(this._f243[x148]._f392.name)==MVUtil._f22(x147.name))
{
MVi18n.processLocale("MAPVIEWER-5509",MVUtil._f22(x147.name));
return;
}
}
x147.parent=this;
var x149=new _f405(this,x147);
if(this._f243.length+130<229)
{
x149.div.style.zIndex=this._f243.length+130;
x149._f406=x149.div.style.zIndex-129;
}
else
 {
x149.div.style.zIndex=229;
x149._f406=100;
}
x149.setSize(parseInt(x147._f393*(this._f127())),
parseInt(x147._f394*(this._f129())));
this._f243[this._f243.length]=x149;
if(this._f78)
{
var x150=this._f391(x149);
MVUtil._f108(x149._f148(),Math.ceil((x150[0]-this._f130)*this._f100),
-Math.ceil((x150[3]-this._f133)*this._f101));
if(x147._f398)
x149._f401(this,x150[0],x150[1],
x150[2],x150[3],false,true);
else
 x149._f401(this,x150[0],x150[1],
x150[2],x150[3],false,false);
}
}
MVMapView.prototype.getThemeIndex=function(x151)
{
for(var x152=0;x152<this._f243.length;x152++)
{
if(MVUtil._f22(this._f243[x152]._f392.name)==MVUtil._f22(x151.name))
{
return this._f243[x152].div.style.zIndex-129;
}
}
MVi18n.processLocale("MAPVIEWER-5510",MVUtil._f22(x151.name));
}
MVMapView.prototype.getOrigThemeIndex=function(x153)
{
for(var x154=0;x154<this._f243.length;x154++)
{
if(MVUtil._f22(this._f243[x154]._f392.name)==MVUtil._f22(x153.name))
{
return this._f243[x154]._f406;
}
}
MVi18n.processLocale("MAPVIEWER-5510",MVUtil._f22(x153.name));
}
MVMapView.prototype.setThemeIndex=function(x155,x156)
{
for(var x157=0;x157<this._f243.length;x157++)
{
if(MVUtil._f22(this._f243[x157]._f392.name)==MVUtil._f22(x155.name))
{
if(x156>100)
x156=100;
if(x156<1)
x156=1;
this._f243[x157].div.style.zIndex=x156+129;
if(this._f243[x157]._f407==2&&_f3._f13!="IF")
{
this._f284.style.zIndex=x156+129;
}
}
}
}
MVMapView.prototype.setToOrigThemeIndex=function(x158)
{
for(var x159=0;x159<this._f243.length;x159++)
{
if(MVUtil._f22(this._f243[x159]._f392.name)==MVUtil._f22(x158.name))
{
this._f243[x159].div.style.zIndex=this._f243[x159]._f406+129;
if(this._f243[x159]._f407==2&&_f3._f13!="IF")
{
this._f284.style.zIndex=this._f243[x159]._f406+129;
}
}
}
}
MVMapView.prototype.getThemeBasedFOI=function(x160)
{
for(var x161=0;x161<this._f243.length;x161++)
{
if(this._f243[x161].getThemeBasedFOI().name==x160)
{
return this._f243[x161].getThemeBasedFOI();
}
}
return null;
}
MVMapView.prototype.enableInfoWindowEventPropagation=function(x162)
{
if(!this._f142)
this._f142=new _f319(this);
this._f142.enableEventPropagation(x162);
}
MVMapView.prototype.refreshThemeBasedFOIs=function(x163)
{
if(this._f142)
this._f142._f409();
this._f166();
var x164=0;
for(x164=0;x164<this._f243.length;x164++)
{
var x165=this._f243[x164];
if(x165._f407!=1)
{
while(x165._f399.childNodes.length>0)
{
x165._f399.removeChild(x165._f399.childNodes[0]);
}
while(x165._f400.childNodes.length>0)
{
x165._f400.removeChild(x165._f400.childNodes[0]);
}
while(this._f284.childNodes.length>0)
{
this._f284.removeChild(this._f284.childNodes[0]);
}
}
var x166=this._f391(x165);
var x167=x165._f392.getFOIData();
if(x167!=null)
{
if(!x165._f392._f410&&(x167[0].gtype%10==1)&&
(x165._f392._f411<this._f223)){
x165._f152();
x165._f392.minX=x165.minX=x166[0];
x165._f392.minY=x165.minY=x166[1];
x165._f392.maxX=x165.maxX=x166[2];
x165._f392.maxY=x165.maxY=x166[3];
x165._f223=this._f223;
var x168=Math.ceil((x165.minX-this._f130)*this._f100);
var x169=-Math.ceil((x165.maxY-this._f133)*this._f101);
MVUtil._f108(x165._f148(),x168,x169);
x165._f115=this._f114;
x165._f118=this._f117;
for(var x170=0;x170<x167.length;x170++)
{
x165._f412(x167[x170]);
}
continue;
}
}
x165._f401(this,x166[0],x166[1],x166[2],x166[3],x163,false);
}
}
MVMapView.prototype._f395=function(x171,x172)
{
var x173={"x":0,"y":0};
var x174=Math.floor((x171-this.msi._f144())/this.msi._f376(this._f223));
var x175=Math.floor((x172-this.msi._f145())/this.msi._f377(this._f223));
x173.x=this.msi._f144()+x174*this.msi._f376(this._f223);
x173.y=this.msi._f145()+x175*this.msi._f377(this._f223);
return x173;
}
MVMapView.prototype._f396=function(x176,x177)
{
var x178={"x":0,"y":0};
var x179=Math.floor((x176-this.msi._f144())/this.msi._f376(this._f223));
var x180=Math.floor((x177-this.msi._f145())/this.msi._f377(this._f223));
x178.x=this.msi._f144()+(x179+1)*this.msi._f376(this._f223);
x178.y=this.msi._f145()+(x180+1)*this.msi._f377(this._f223);
return x178;
}
MVMapView.prototype._f415=function()
{
if(this._f78)
{
for(var x181=0;x181<this._f243.length;x181++)
this._f243[x181].setVisible(false,false);
this.refreshThemeBasedFOIs(false);
}
while(this._f243.length>0)
{
this._f243[this._f243.length-1].destroy();
this._f243[this._f243.length-1]=null;
this._f243.pop();
}
while(this._f284.childNodes.length>0)
{
this._f284.removeChild(this._f284.childNodes[0]);
}
}
MVMapView.prototype.removeThemeBasedFOI=function(x182)
{
if(!x182)
return ;
for(var x183=0;x183<this._f243.length;x183++)
{
if(x182==this._f243[x183].getThemeBasedFOI())
{
this._f243[x183].destroy();
this._f243[x183]=this._f243[this._f243.length-1];
this._f243[this._f243.length-1]=null;
this._f243.pop();
break;
}
}
for(var x184=0;x184<this._f284.childNodes.length;x184++)
{
if(this._f284.childNodes[x184].id==x182.name)
{
this._f284.removeChild(this._f284.childNodes[x184]);
x184--;
}
}
}
MVMapView.prototype._f416=function()
{
if(this._f142)
this._f142._f409();
this._f166();
var x185=0;
var x186=false;
for(x185=0;x185<this._f243.length;x185++)
{
var x187=this._f243[x185];
if((
this._f130<x187._f144()||
this._f131<x187._f145()||
this._f132>x187._f146()||
this._f133>x187._f147())&&x187._f392._f410)
{
if(x187._f407!=1)
{
while(x187._f399.childNodes.length>0)
{
x187._f399.removeChild(x187._f399.childNodes[0]);
}
while(x187._f400.childNodes.length>0)
{
x187._f400.removeChild(x187._f400.childNodes[0]);
}
while(this._f284.childNodes.length>0)
{
this._f284.removeChild(this._f284.childNodes[0]);
}
}
var x188=this._f391(x187);
x187._f401(this,x188[0],x188[1],x188[2],x188[3],true,false);
}
else if(x187._f417&&x187._f392._f410)
{
x187._f401(this,0,0,0,0,true,false);
}
}
if(this._f130<this._f95.minX||
this._f131<this._f95.minY||
this._f132>this._f95.maxX||
this._f133>this._f95.maxY)
{
var x189=(this._f95._f126()-this._f127())*0.5/this._f100;
var x190=(this._f95._f128()-this._f129())*0.5/this._f101;
this._f95._f165(this._f130-x189,
this._f131-x190,
this._f132+x189,
this._f133+x190);
}
if(!x186)
{
this._f142.refresh(this._f130,this._f131,this._f132,
this._f133,this._f127(),this._f129());
x186=true;
}
}
MVMapView.prototype.getAllThemeBasedFOIs=function()
{
return this._f243;
}
MVMapView.prototype.setDefaultInfoWindowStyle=function(x191,x192)
{
_f3._f11=x191;
if(x191=="MVInfoWindowStyle1")
MVInfoWindowStyle1._f193=x192;
}
MVMapView.prototype.displayInfoWindow=function(x193,x194,x195,x196,x197,x198,x199)
{
this._f142._f418(x194,x193.sdo_point.x,x193.sdo_point.y,x195,x196,x197,x198,x199);
}
MVMapView.prototype.setInfoWindow=function(x200,x201,x202)
{
this._f280=x200;
this._f28=x201;
this._f29=x202;
}
MVMapView.prototype._f419=function(x203,x204)
{
_f3._f28=x203;
_f3._f29=x204;
}
MVMapView.prototype.removeInfoWindow=function()
{
if(this._f142._f143.length>0)
this._f142.deleteInfoWindow(this._f142._f143[0]);
}
MVMapView.prototype.addCSTransformFunction=function(x205,x206,x207)
{
if(x205)
this._f257=x205;
this._f258=x206;
this._f259=x207;
}
MVMapView.prototype.transformGeom=function(geometry,_f259,_f20,callBack)
{
if(_f20)
{}
else if(this._f273)
{
if(MVUtil._f168(this._f273,'/'))
{
_f20=this._f273+'mcserver';
}
else
 {
_f20=this._f273+'/mcserver';
}
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
var localDomain=(MVUtil._f25(_f20)==MVUtil._f25(this._f62));
var xmlHttp=localDomain||MVMapView._f27;
if(!xmlHttp&&!callBack)
{
MVi18n.processLocale("MAPVIEWER-5500","MVMapView.transformGeom() - Call back function can not be null \nwhen browser's built-in XMLHTTP/XMLHttpRequest is disabled!")
return null;
}
var request=null;
var _f420;
var _f421;
var _f422;
_f422=this.getDataSource();
_f421=MVUtil._f109(geometry.toString(),"null","");
if(geometry.getGType()==1)
{
_f421=MVUtil._f109(_f421,"SdoPointType","");
}
else
 {
}
_f421=MVUtil._f109(_f421," ","");
if(MVMapView._f27&&!localDomain)
_f20=_f3._f66()+"?rtarget="+_f20+"&";
else
 _f20=_f20+"?";
var _f423=_f20+"request=cstransform&dstsrid="+
_f259+"&geometry="+_f421+"&datasource="+_f422;
var request=null;
var transformed=function()
{
if(request.readyState==4)
{
if(request.status==200)
{
try
{
var resp=xmlHttp?request.responseText:this.responseText;
eval("var result="+resp);
_f420=result;
if(result.length==0)
{
result=null;
return;
}
var _f68=null;
if(_f420.SDO_GTYPE==1)
{
_f68=MVSdoGeometry.createPoint(_f420.SDO_POINT.X,_f420.SDO_POINT.Y,_f420.SDO_SRID);
}
else
 {
_f68=new MVSdoGeometry(2000+_f420.SDO_GTYPE,_f420.SDO_SRID,_f420.SDO_ELEM_INFO,_f420.SDO_ORDINATES,null)
}
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5511",request.responseText);
return ;
}
if(callBack)
callBack(_f68);
if(xmlHttp)
return _f68;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=transformed;
request.open("GET",encodeURI(_f423),callBack||!xmlHttp);
request.send("");
}catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
}
if(!callBack&&xmlHttp)
{
if(request.status==200)
{
return transformed();
}
}
}
MVMapView.prototype.getSrid=function()
{
return this.srid;
}
MVMapView.prototype._f424=function()
{
MVUtil._f105(document.body,"wait");
MVUtil._f105(this._f278,"wait");
}
MVMapView.prototype._f425=function()
{
MVUtil._f105(document.body,"");
MVUtil._f105(this._f278,this._f274);
}
MVMapView.prototype.getDataSource=function()
{
var x208=this.msi._f426();
var x209=x208.split(".");
if(x209.length<2){
return "";
}
else
 return x209[0];
}
MVMapView.prototype.getBaseMap=function(x210)
{
var x211=x210.split(".");
if(x211.length<2){
return "";
}
else
 return x211[1];
}
MVMapView.prototype.getMapAsXML=function(x212,x213,x214)
{
if(!x213)
x213=this._f127();
if(!x214)
x214=this._f129();
var x215="<?xml version=\"1.0\" standalone=\"yes\"?>"
x215=x215+"<map_request datasource=\""+this.getDataSource()+"\" format=\""+x212+"\" width=\""+
x213+"\" height=\""+x214+"\" antialiase=\"true\">";
var x216=parseInt(this._f129())/this._f101;
var x217=this.getCenter();
x215=x215+"<center size=\""+x216+"\"><geoFeature><geometricProperty typeName=\"center\"><Point><coordinates>"+x217.sdo_point.x+","+x217.sdo_point.y+"</coordinates></Point></geometricProperty></geoFeature></center>";
x215=x215+"<themes>";
for(i=0;i<this._f242.length;i++)
{
x215=x215+"<theme name=\"cached_basemap"+i+"\"><map_cache_theme map_cache_name=\""+this.getBaseMap(this._f242[i]._f21)+"\" snap_to_cache_scale=\"true\"/></theme>";
}
for(var x218=0;x218<this._f243.length;x218++)
{
x215=x215+this._f243[x218]._f183();
}
x215=x215+"</themes>";
x215=x215+this._f95._f183();
x215=x215+"</map_request>";
return x215;
}
MVMapView.prototype._f183=function()
{
return this.getMapAsXML("GIF_URL");
}
MVMapView.prototype._f374=function()
{
this._f278.className=null;
this._f428=null;
if(this._f283)
while(this._f283.childNodes.length>0)
{
var x219=this._f283.childNodes[0];
if(x219.src)
{
x219.src=null;
}
x219.onload=null;
this._f283.removeChild(x219);
MVUtil._f151(x219);
}
}
MVMapView.prototype._f429=function()
{
this._f278.className=("noprint");
}
MVMapView.prototype.print=function(x220)
{
var x221=this;
if(this._f428)
{
window.print();
}
else if(!this._f430)
{
this._f424();
this._f374();
var x222=this._f183();
var x223=(this._f273==this._f272);
var x224=x223||MVMapView._f27;
var x225="";
if(MVMapView._f27&&!x223)
x225=this._f272;
else
 x225=this._f273;
if(MVUtil._f168(x225,'/'))
x225=x225+'omserver';
else
 x225=x225+'/omserver';
_f162=MVUtil.getXMLHttpRequest(x224);
_f162.open("POST",x225,true);
_f162.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f162.send("xml_request="+x222);
_f162.onreadystatechange=function()
{
if(_f162.readyState==4)
{
if(_f162.status==200)
{
x221._f283=x220;
var x226=document.createElement("img");
var x227=_f162.responseXML;
x227=x227.getElementsByTagName("map_content")[0];
x226.src=x227.getAttribute("url");
x226.className="printimage";
x221._f283.appendChild(x226);
x226.onload=MVUtil._f163(x226,function()
{
x221._f429();
if(x221._f270!=null)
for(var x228=0;x228<x221._f270.length;x228++)
{
if(x221._f270[x228]._f431&&x221._f270[x228].visible)
x221._f283.appendChild(x221._f270[x228]._f432());
}
x221._f433(true);
if(x221._f282)
x221._f402(x221._f250,x221._f283)
x221._f425();
window.print();
x221._f430=false;
})
x221._f428=x226;
}
}
}
}
}
MVMapView.prototype._f433=function(x229)
{
var x230=document.createElement("span");
x230.className="copyright";
x230.style.zIndex=1999;
if(typeof x229=="string")
{
x230.innerHTML=" "+x229+" ";
this._f283.appendChild(x230);
}
else if(this._f434!=undefined)
{
x230.innerHTML=" "+this._f434.innerHTML+" ";
this._f283.appendChild(x230);
}
}
MVMapView.prototype.setMouseWheelZoomEnabled=function(x231)
{
this._f262=x231;
this._f336();
}
MVMapView.prototype._f336=function()
{
var x232=this;
var x233=this.getBrowserType();
this._f278.onmouseover=MVUtil._f163(this._f278,function()
{
_f3._f50=true;
});
this._f278.onmouseout=MVUtil._f163(this._f278,function(x234)
{
if(x233=="NS"||x233=="OS")
{
x234=(x234)?x234:((window.event)?event:null);
var x235=x234.clientX;
var x236=x234.clientY;
var x237=x232._f127();
var x238=x232._f129();
var x239=MVUtil._f435(this);
var x240=x234.pageX-x239.x;
var x241=x234.pageY-x239.y;
if(x240<=0||x240>=x237||
x241<=0||x241>=x238||
x235<=0||x235>=document.body.clientWidth||
x236<=0||x236>=document.body.clientHeight)
{
x232._f436(window.event);
_f3._f50=false;
if(x232._f292.contains(37))x232._f292.remove(37);
if(x232._f292.contains(38))x232._f292.remove(38);
if(x232._f292.contains(39))x232._f292.remove(39);
if(x232._f292.contains(40))x232._f292.remove(40);
}
}
else
 {
_f3._f50=false;
if(x232._f292.contains(37))x232._f292.remove(37);
if(x232._f292.contains(38))x232._f292.remove(38);
if(x232._f292.contains(39))x232._f292.remove(39);
if(x232._f292.contains(40))x232._f292.remove(40);
}
});
this.div.onclick=MVUtil._f163(this.div,function()
{
if(x232._f288)
{
x232._f288();
}
else
 return;
});
document.body.onmousedown=MVUtil._f163(document.body,function()
{
_f3._f50=false;
});
if(x233=="IF")
{
this._f278.onselectstart=MVUtil._f163(this._f278,function()
{
if(x232._f251)
return true;
else
 return false;
});
this._f278.oncontextmenu=MVUtil._f163(this._f278,function()
{
x232._f437(window.event);
if(x232._f290)
{
x232._f290();
}
if(x232._f251)
return true;
else
 return false;
});
if(this._f262)
this._f278.onmousewheel=MVUtil._f163(this._f278,function()
{
return x232._f438(window.event);
});
this._f278.onmousedown=MVUtil._f163(this._f278,function()
{
MVUtil._f169(window.event);
return x232._f439(window.event);
});
this._f278.onmousemove=MVUtil._f163(this._f278,function()
{
return x232._f440(window.event);
});
this._f278.onmouseup=MVUtil._f163(this._f278,function()
{
return x232._f436(window.event);
});
this.div.ondblclick=MVUtil._f163(this.div,function()
{
return x232._f441(window.event);
});
if(!this._f255)
{
document.body.onkeydown=MVUtil._f163(document.body,function()
{
return x232._f442(window.event);
});
document.body.onkeyup=MVUtil._f163(document.body,function()
{
return x232._f443(window.event);
});
var x242=function()
{
x232._f444(window.event);
return false;
}
var x243=function()
{
if(MVUtil._f445==document.body.offsetWidth)
{
MVUtil._f446=0;
x242();
}
else
 {
MVUtil._f447=window.setTimeout(x243,100);
}
}
window.onresize=MVUtil._f163(window,function()
{
MVUtil._f446++;
MVUtil._f445=document.body.offsetWidth;
if(MVUtil._f446>1)
{
if(MVUtil._f447)
window.clearTimeout(MVUtil._f447);
MVUtil._f447=window.setTimeout(x243,100);
}
});
}
}
else if(x233=="NS")
{
this._f278.oncontextmenu=function(x244)
{
x232._f437(x244);
if(x232._f290)
{
x232._f290();
}
if(x232._f251)
return true;
else
 return false;
};
this._f278.onmousedown=function(x245)
{
x245.stopPropagation();
return x232._f439(x245);
};
this._f278.onmousemove=function(x246)
{
return x232._f440(x246);
};
this._f278.onmouseup=function(x247)
{
return x232._f436(x247);
};
var x248=function(x249)
{
x249.preventDefault();
if(x249.detail<0)x232.zoomIn();
else x232.zoomOut();
}
if(this._f262)
this._f278.addEventListener("DOMMouseScroll",x248,false);
this.div.ondblclick=function(x250)
{
return x232._f441(x250);
};
window.onmouseup=function(x251)
{
return x232._f436(x251);
};
if(!this._f255)
{
window.onkeydown=function(x252)
{
return x232._f442(x252);
};
window.onkeyup=function(x253)
{
return x232._f443(x253);
};
window.onresize=function(x254)
{
x232._f444(x254);
return false;
};
}
}
if(x233=="OS")
{
this._f278.onmousedown=function()
{
window.event.stopPropagation();
return x232._f439(window.event);
};
this._f278.onmousemove=function()
{
return x232._f440(window.event);
};
this._f278.onmouseup=function()
{
return x232._f436(window.event);
};
this.div.ondblclick=function()
{
return x232._f441(window.event);
};
window.onmouseup=function()
{
return x232._f436(window.event);
};
if(!this._f255)
{
window.onresize=function()
{
x232._f444(window.event);
return false;
};
}
this._f278.onkeypress=function()
{
return x232._f442(window.event);
};
this._f278.onkeyup=function()
{
return x232._f443(window.event);
};
}
}
MVMapView.prototype._f438=function(x255)
{
if(x255.wheelDelta>0)this.zoomIn();
else this.zoomOut();
return false;
}
MVMapView.prototype._f444=function(x256)
{
this._f304=false;
this._f302=null;
this._f303=null;
this._f223=this.getZoomLevel();
if(this._f223>this._f252)
{
this._f223=this._f252;
return ;
}
MVUtil._f108(this.div,0,0);
this._f179=0;
this._f180=0;
this._f308=this._f179;
this._f309=this._f180;
this._f310=0;
this._f311=0;
this.setZoomLevel(this._f223);
if(this._f347)
{
if(this.centerMarkUrl)
this.setCenterMark(this.centerMarkUrl,this.centerMarkW,this.centerMarkH);
else
 this.setCenterMark(_f3._f51+"center.gif",20,20);
}
if(this._f448)
{
this.addNavigationPanel(this._f449,this._f450,this._f451,this._f452);
}
for(lc=0;lc<this._f243.length;lc++)
{
this._f243[lc].setSize(
parseInt(this._f243[lc]._f392._f393*(this._f127())),
parseInt(this._f243[lc]._f392._f394*(this._f129())));
}
this.display();
if(this._f282)
{
this._f244._f325(this);
}
if(this._f254)
{
this._f254._f453._f444();
this._f254._f454();
}
if(this._f270!=null)
for(var x257=0;x257<this._f270.length;x257++)
{
if(!this._f270[x257]._f320)
this._f270[x257].setPosition(this._f270[x257]._f322);
}
return false;
}
MVMapView.prototype.getBrowserType=function()
{
return _f3._f13;
}
MVMapView.prototype.enableKeyboardPanning=function(x258)
{
this._f294=x258;
}
MVMapView.prototype._f442=function(x259)
{
if(!_f3._f50||!this._f294)
return true;
if(this._f455==undefined||this.scroll_up==undefined||this._f456==undefined||this._f457==undefined)
{
this._f455=0;
this.scroll_up=0;
this._f456=0;
this._f457=0;
this._f458=0;
}
var x260=(this.getBrowserType()!="OS")?96:48;
if(!x259.shiftKey)
{
switch(x259.keyCode)
{
case 37:this._f455=1;this._f292.add(x259.keyCode);break;
case 38:this.scroll_up=1;this._f292.add(x259.keyCode);break;
case 39:this._f456=1;this._f292.add(x259.keyCode);break;
case 40:this._f457=1;this._f292.add(x259.keyCode);break;
case x260+1:this._f455=1;this._f457=1;
break;
case x260+2:this._f457=1;this._f292.add(x259.keyCode);
break;
case x260+3:this._f456=1;this._f457=1;
break;
case x260+4:this._f455=1;this._f292.add(x259.keyCode);
break;
case x260+5:break;
case x260+6:this._f456=1;this._f292.add(x259.keyCode);
break;
case x260+7:this._f455=1;this.scroll_up=1;
break;
case x260+8:this.scroll_up=1;this._f292.add(x259.keyCode);
break;
case x260+9:this.scroll_up=1;this._f456=1;
break;
default:return true;
}
this._f459();
return false;
}
else
 return true;
}
MVMapView.prototype._f443=function(x261)
{
if(!_f3._f50)return;
var x262=(this.getBrowserType()!="OS")?96:48;
if(x261.shiftKey)
{
switch(x261.keyCode)
{
case 37:this._f292.remove(x261.keyCode);
break;
case 38:this._f292.remove(x261.keyCode);break;
case 39:this._f292.remove(x261.keyCode);
break;
case 40:this._f292.remove(x261.keyCode);break;
default:return true;
}
}
else
 {
switch(x261.keyCode)
{
case 33:this.smoothScroll(0,-this._f129()/2);break;
case 34:this.smoothScroll(0,this._f129()/2);break;
case 35:this.smoothScroll(this._f127()/2,0);break;
case 36:this.smoothScroll(-this._f127()/2,0);break;
case 37:this._f292.remove(x261.keyCode);break;
case 38:this._f292.remove(x261.keyCode);
break;
case 39:this._f292.remove(x261.keyCode);
break;
case 40:this._f292.remove(x261.keyCode);break;
case x262+1:this._f455=0;
this._f457=0;
break;
case x262+2:this._f457=0;
this._f292.remove(x261.keyCode);
break;
case x262+3:this._f456=0;
this._f457=0;
break;
case x262+4:this._f455=0;
this._f292.remove(x261.keyCode);
break;
case x262+5:this._f455=0;
this.scroll_up=0;
this._f456=0;
this._f457=0;
break;
case x262+6:this._f456=0;
this._f292.remove(x261.keyCode);
break;
case x262+7:this._f455=0;
this.scroll_up=0;
break;
case x262+8:this.scroll_up=0;
this._f292.remove(x261.keyCode);
break;
case x262+9:this.scroll_up=0;
this._f292.remove(x261.keyCode);
this._f456=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._f460=function(x263)
{
x263=(x263)?x263:((window.event)?event:null);
var x264=x263.clientX+document.body.scrollLeft-this._f278.offsetLeft;
return x264;
}
MVMapView.prototype._f461=function(x265)
{
x265=(x265)?x265:((window.event)?event:null);
var x266=x265.clientY+document.body.scrollTop-this._f278.offsetTop;
return x266;
}
MVMapView.prototype._f462=function(x267)
{
var x268={left:0,top:0};
if(x267.pageX||x267.pageY)
{
x268.left=x267.pageX-MVUtil._f435(this._f278).x;
x268.top=x267.pageY-MVUtil._f435(this._f278).y;
}
else if(x267.clientX||x267.clientY)
{
x268.left=x267.clientX+document.body.scrollLeft-
document.body.clientLeft-MVUtil._f435(this._f278).x;
x268.top=x267.clientY+document.body.scrollTop-
document.body.clientTop-MVUtil._f435(this._f278).y;
if(document.body.parentElement&&document.body.parentElement.clientLeft)
{
var x269=document.body.parentElement;
x268.left+=x269.scrollLeft-x269.clientLeft;
x268.top+=x269.scrollTop-x269.clientTop;
}
}
return x268;
}
MVMapView.prototype._f439=function(x270)
{
if(this._f264&&this._f266)
{
this._f268=true;
}
if(this._f237==false)return;
x270=(x270)?x270:((window.event)?event:null);
if(x270.button==2)
{
return;
}
if((_f3._f13!="SF")&&(_f3._f13.indexOf("OS")!=0)&&
((_f3._f13=="IF"&&x270.button==4)||(_f3._f13!="IF"
&&x270.button==1)))
{
MVUtil._f169(x270);
return false;
}
for(var x271=0;x271<this._f243.length;x271++)
{
if(this._f243[x271]._f123())
{
MVUtil._f105(this._f278,"wait");
}
}
if((_f3._f13.indexOf("OS")==0)&&x270.button==2)
{
_f463();
}
if(this._f241!=null)
{
clearInterval(this._f241);
this._f241=null;
}
this._f238=this;
var x272=this._f462(x270);
this._f312(x272.left,x272.top);
this._f437(x270);
if(_f3._f4==2)x270.returnValue=false;
if(this._f236)this._f238=null;
this._f464();
return false;
}
MVMapView.prototype._f464=function()
{
this.fetchingMapId=this.setTimeout("this.fetching()",400);
}
MVMapView.prototype.fetching=function()
{
this._f166();
for(var x273=0;x273<this._f242.length;x273++)
this._f242[x273]._f465();
this._f464();
}
function _f463(x0)
{
x0=(x0)?x0:((window.event)?event:null);
MVUtil._f169(x0);
return false;
}
MVMapView.prototype._f172=function()
{
this._f238=null;
MVUtil._f105(this._f278,this._f274);
}
MVMapView.prototype._f440=function(x274)
{
if(this._f237==false)return;
if(!this._f238||this._f236)return true;
this._f374();
var x275=this._f462(x274);
if(this._f276!=this._f275)
MVUtil._f105(this._f278,this._f275);
if(this._f264&&this._f266&&this._f268)
this._f268=false;
this._f315(x275.left,x275.top);
if(this._f254)
{
this._f254._f466(this._f308-this._f179,this._f309-this._f180)
}
if(this._f291)
{
this._f291(this._f308-this._f179,this._f309-this._f180);
}
return false;
}
MVMapView.prototype._f436=function(x276)
{
if(this._f264&&this._f268)
{
this._f265.clear();
this.marqueeZoom();
}
if(this._f237==false)return;
x276=(x276)?x276:((window.event)?event:null);
MVUtil._f105(this._f278,this._f274);
if(!this._f238&&!this._f236)return;
this._f238=null;
if(x276)this._f437(x276);
this._f166();
if(this._f235==true)
{
for(var x277=0;x277<this._f242.length;x277++)
this._f242[x277]._f465();
this._f416();
this._f235=false;
if(this._f254)
{
this._f254._f467();
}
if(this._f289)
{
this._f289();
}
}
if(this._f282)
{
this._f244._f325(this);
}
if(this.fetchingMapId!=null)
{
clearTimeout(this.fetchingMapId);
}
this._f374();
}
MVMapView.prototype.setDoubleClickAction=function(x278)
{
if(x278==null||(x278!='recenter'&&x278!='zoomin'))
MVi18n.processLocale("MAPVIEWER-5500","Invalid paramter 'action' specified! From: setDoubleClickAction(...) in MapView");
this._f295=x278
}
MVMapView.prototype._f441=function(x279)
{
x279=(x279)?x279:((window.event)?event:null);
if(this._f296){
this._f296()
return true;
}
if(this._f295=="zoomin")
{
this.zoomIn();
return true;
}
if(this._f236)
{
this._f238=null;
this._f278.style.cursor=this._f274;
return true;
}
this._f278.style.cursor=this._f274;
if(this._f241!=null)
{
clearInterval(this._f241);
this._f241=null;
}
var x280=this._f462(x279);
var x281=x280.left;
var x282=x280.top;
this._f338=this._f127()/2-x281;
this._f339=this._f129()/2-x282;
this._f135=Math.sqrt(this._f338*this._f338+this._f339*this._f339);
this._f342=20;
this._f340=this._f127();
this._f341=this._f129();
this._f343=this._f135>((this._f340+this._f341)/4)?300:200;
this._f344=0;
this._f345=0;
this._f346=0;
this.smoothPan();
}
MVMapView.prototype.smoothScroll=function(x283,x284)
{
if(x283==0&&x284==0)
{
return;
}
if(this._f236)
{
this._f238=null;
this._f278.style.cursor=this._f274;
return true;
}
this._f278.style.cursor=this._f274;
if(this._f241!=null)
{
clearTimeout(this._f241);
this._f241=null;
}
this._f338=x283*(-1);
this._f339=x284*(-1);
this._f135=Math.sqrt(x283*x283+x284*x284);
this._f342=10;
this._f340=this._f127();
this._f341=this._f129();
this._f343=this._f135>((this._f340+this._f341)/4)?300:200;
this._f344=0;
this._f345=0;
this._f346=0;
this.smoothPan();
}
MVMapView.prototype.smoothPan=function()
{
this._f344++;
var x285=this._f344*this._f342/this._f343;
this.targetX=this._f338*(2*x285-x285*x285);
this.targetY=this._f339*(2*x285-x285*x285);
var x286=this._f340/2;
var x287=this._f341/2;
this._f312(x286,x287);
x286=Math.round(this.targetX-this._f345)+this._f340/2;
x287=Math.round(this.targetY-this._f346)+this._f341/2;
this._f315(x286,x287);
if(this._f254)
{
this._f254._f466(this._f308-this._f179,this._f309-this._f180)
}
if(this._f291)
{
this._f291(this._f308-this._f179,this._f309-this._f180);
}
this._f345=this.targetX;
this._f346=this.targetY;
for(i=0;i<this._f242.length;i++)
this._f242[i]._f465();
if(x285<1.0)
{
this._f241=this.setTimeout("this.smoothPan()",this._f342);
this._f299=true;
}
else
 {
clearTimeout(this._f241);
this._f241=null;
this._f416();
this._f166();
this._f235=false;
if(this._f254)
{
this._f254._f467();
}
if(this._f289)
{
this._f289();
}
if(this._f282)
{
this._f244._f325(this);
}
this._f374();
this._f299=false;
return false;
}
}
MVMapView.prototype.smoothMove=function(x288,x289)
{
this.targetX=x288*(-1);
this.targetY=x289*(-1);
var x290=this._f127()/2;
var x291=this._f129()/2;
this._f312(x290,x291);
x290=Math.round(this.targetX+this._f127()/2);
x291=Math.round(this.targetY+this._f129()/2);
this._f315(x290,x291);
if(this._f291)
{
this._f291(this._f308-this._f179,this._f309-this._f180);
}
for(i=0;i<this._f242.length;i++)
this._f242[i]._f465();
}
var _f141=0;
MVMapView.prototype.setTimeout=function(_f139,_f140)
{
var Ie="tempVar"+_f141;
_f141++;
eval(Ie+" = this;");
var oi=_f139.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f140);
}
MVMapView.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
MVMapView.prototype._f459=function(x292,x293)
{
if(!this._f241)
{
this._f241=this.setTimeout("this.arrowScroll()",5)
}
}
MVMapView.prototype.arrowScroll=function()
{
if(this._f236)
{
this._f238=null;
this._f278.style.cursor=this._f274;
return true;
}
this._f278.style.cursor=this._f274;
if(this._f241!=null)
{
clearTimeout(this._f241);
this._f241=null;
}
var x294=(this.getBrowserType()!="OS")?96:48;
if(this._f292.length>0)
{
var x295=((this._f292.contains(37)||this._f292.contains(x294+4))?1:0)+
((this._f292.contains(39)||this._f292.contains(x294+6))?-1:0);
var x296=((this._f292.contains(38)||this._f292.contains(x294+8))?1:0)+
((this._f292.contains(40)||this._f292.contains(x294+2))?-1:0);
this.moveOffsetX=(x295==1?15:0)+(x295==-1?-15:0);
this.moveOffsetY=(x296==1?15:0)+(x296==-1?-15:0);
this._f312(0,0);
this._f315(this.moveOffsetX,this.moveOffsetY);
if(this._f254)
{
this._f254._f466(this._f308-this._f179,this._f309-this._f180)
}
if(this._f291)
{
this._f291(this._f308-this._f179,this._f309-this._f180);
}
for(i=0;i<this._f242.length;i++)
this._f242[i]._f465();
this._f241=this.setTimeout("this.arrowScroll()",5)
}
else
 {
this._f374();
this._f241=null;
this._f416();
this._f166();
this._f235=false;
if(this._f254)
{
this._f254._f467();
}
if(this._f289)
{
this._f289();
}
if(this._f282)
{
this._f244._f325(this);
}
}
}
MVMapView.prototype._f468=function(x297){
var x298=this._f462(x297);
var x299=x298.left;
var x300=x298.top;
if(((_f3._f13=="NS"))&&((x299<=0)||(x299>=
this._f127())||(x300<=0)||(x300>=
this._f129()))&&(this._f238))
{
this._f436();
}
}
MVMapView.prototype._f437=function(x301)
{
var x302=MVUtil.getMouseLocation(this,x301);
var x303=x302.sdo_point.x;
var x304=x302.sdo_point.y;
this._f229=x303;
this._f230=x304;
}
MVMapView.prototype._f134=function(x305)
{
this._f236=x305;
}
MVMapView.prototype.enableDragging=function(x306)
{
this._f134(!x306);
}
function _f293(x0)
{
this.length=0;
if(x0)
{
for(var x1=x0.length-1;x1>=0;--x1)
{
this.add(x0[x1]);
this.length++;
}
}
}
_f293.prototype.add=function(x307)
{
if(!this.contains(x307))
{
this["key"+x307]=1;
this.length++;
}
}
_f293.prototype.remove=function(x308)
{
if(this.exist(x308))
{
delete this["key"+x308];
this.length--;
}
}
_f293.prototype.contains=function(x309)
{
return this["key"+x309]==1;
}
_f293.prototype.exist=function(x310)
{
return this["key"+x310]==1||this["key"+x310]==2;
}
_f293.prototype.sleep=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=2;
}
}
}
_f293.prototype.wakeup=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=1;
}
}
}
MVMapView.prototype.addMapDecoration=function(x311)
{
if(this._f270==null)
this._f270=new Array();
this._f270.push(x311);
if(this._f78)
{
var id="_md_"+this._f271
x311.init(id,this);
if(x311._f320)
{
this._f278.appendChild(x311._f321);
}
else
 this._f278.appendChild(x311._f322);
this._f271++;
}
}
MVMapView.prototype.removeMapDecoration=function(x312)
{
if(x312==null||x312.id==null||this._f270==null)
{
return;
}
for(var x313=0;x313<this._f270.length;x313++)
if(this._f270[x313].id==x312.id)
{
if(this._f270[x313]._f431)
this._f374();
this._f270[x313]=this._f270[this._f270.length-1]
this._f270.pop();
}
var x314=null;
if(x312._f320)
x314=x312._f321;
else
 x314=x312._f322;
x314.onclick=null;
x314.onmouseover=null;
x314.onmouseout=null;
this._f278.removeChild(x314);
MVUtil._f151(x314);
}
MVMapView.prototype.addCopyRightNote=function(x315)
{
if(this._f434!=undefined)
{
this._f278.removeChild(this._f434);
delete this._f434;
}
var x316=document.createElement("SPAN");
x316.innerHTML=" "+x315+" ";
x316.style.zIndex=2000;
x316.style.position="absolute";
x316.style.right=MVUtil._f178(-1);
x316.style.bottom=MVUtil._f178(-1);
x316.style.fontSize=12;
x316.style.color="black";
x316.style.backgroundColor="";
this._f278.appendChild(x316);
this._f434=x316;
}
MVMapView.prototype.addOverviewMap=function(x317)
{
if(this._f254==null)
this._f254=x317;
else
 return;
if(this._f78)
this._f254.init(this)
}
function _f469(x0,x1,x2,x3,x4,x5)
{
this.div=document.createElement("img");
this.div.src=x1;
this.div.style.position="absolute";
this.div.style.zIndex=x4;
if(x5)
this.div.title=x5;
this.div.style.width=MVUtil._f178(x2);
this.div.style.height=MVUtil._f178(x3);
MVUtil._f285(this.div);
x0.appendChild(this.div);
return this.div;
}
MVMapView.prototype.addNavigationPanel=function(x318,x319,x320,x321)
{
this._f450=x319;
this._f451=x320;
this._f452=x321;
if(this._f448!=undefined)
{
this._f278.removeChild(this._f448);
delete this._f448;
}
this._f448=document.createElement('div');
this._f448.setAttribute('id','control_panel_div');
this._f448.style.position='absolute';
this._f448.className="noprint";
this._f449=x318;
var x322=this;
if(this._f449)
{
if(x318.toLowerCase()=="east")
{
if(this._f450!=false)
{
this._f448.style.left=MVUtil._f178(this._f127()-80);
}
else
 this._f448.style.left=MVUtil._f178(this._f127()-50);
}
else
 {
if(this._f450!=false)
{
this._f448.style.left=MVUtil._f178(10);
}
else
 this._f448.style.left=MVUtil._f178(30);
}
}
else
 {
this._f448.style.left=MVUtil._f178(10);
}
this._f448.style.top=MVUtil._f178(10);
this._f448.style.zIndex=2000;
MVUtil._f105(this._f448,"pointer");
this._f278.appendChild(this._f448);
this._f34=0;
this._f35=0;
var x323=function(x324)
{
if(x322._f264&&x322._f268)
{
x322._f265.clear();
x322.marqueeZoom();
}
x324=(x324)?x324:((window.event)?event:null);
MVUtil._f169(x324);
}
if(this._f450!=false)
{
this._f34=_f3._f34;
this._f35=_f3._f35;
var x325=new _f469(this._f448,_f3._f51+"navicons/nw.gif",
this._f34,this._f35,200,MVMessages.panNWInfoTip);
MVUtil._f108(x325,0,0);
x325.onmousedown=MVUtil._f163(x325,function(x326)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll((x322._f127()+x322._f129())*(-0.18),(x322._f127()+x322._f129())*(-0.18));
x326=(x326)?x326:((window.event)?event:null);
MVUtil._f169(x326);
});
x325.onmouseup=MVUtil._f163(x325,function(x327)
{
x323(x327);
});
var x328=new _f469(this._f448,_f3._f51+"navicons/north.gif",
this._f34,this._f35,2000,MVMessages.panNInfoTip);
MVUtil._f108(x328,this._f34+1,0);
x328.onmousedown=MVUtil._f163(x328,function(x329)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll(0,(x322._f127()+x322._f129())*(-0.25));
x329=(x329)?x329:((window.event)?event:null);
MVUtil._f169(x329);
});
x328.onmouseup=MVUtil._f163(x328,function(x330)
{
x323(x330);
});
var x331=new _f469(this._f448,_f3._f51+"navicons/ne.gif",
this._f34,this._f35,2000,MVMessages.panNEInfoTip);
MVUtil._f108(x331,this._f34*2+2,0);
x331.onmousedown=MVUtil._f163(x331,function(x332)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll((x322._f127()+x322._f129())*(0.18),(x322._f127()+x322._f129())*(-0.18));
x332=(x332)?x332:((window.event)?event:null);
MVUtil._f169(x332);
});
x331.onmouseup=MVUtil._f163(x331,function(x333)
{
x323(x333);
});
var x334=new _f469(this._f448,_f3._f51+"navicons/west.gif",
this._f34,this._f35,2000,MVMessages.panWInfoTip);
MVUtil._f108(x334,0,this._f35+1);
x334.onmousedown=MVUtil._f163(x334,function(x335)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll((x322._f127()+x322._f129())*(-0.25),0);
x335=(x335)?x335:((window.event)?event:null);
MVUtil._f169(x335);
});
x334.onmouseup=MVUtil._f163(x334,function(x336)
{
x323(x336);
});
var x337=new _f469(this._f448,_f3._f51+"navicons/east.gif",
this._f34,this._f35,2000,MVMessages.panEInfoTip);
MVUtil._f108(x337,this._f34*2+2,this._f35+1);
x337.onmousedown=MVUtil._f163(x337,function(x338)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll((x322._f127()+x322._f129())*(0.25),0);
x338=(x338)?x338:((window.event)?event:null);
MVUtil._f169(x338);
});
x337.onmouseup=MVUtil._f163(x337,function(x339)
{
x323(x339);
});
var x340=new _f469(this._f448,_f3._f51+"navicons/sw.gif",
this._f34,this._f35,2000,MVMessages.panSWInfoTip);
MVUtil._f108(x340,0,this._f35*2+2);
x340.onmousedown=MVUtil._f163(x340,function(x341)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll((x322._f127()+x322._f129())*(-0.18),(x322._f127()+x322._f129())*(0.18));
x341=(x341)?x341:((window.event)?event:null);
MVUtil._f169(x341);
});
x340.onmouseup=MVUtil._f163(x340,function(x342)
{
x323(x342);
});
var x343=new _f469(this._f448,_f3._f51+"navicons/south.gif",
this._f34,this._f35,2000,MVMessages.panSInfoTip);
MVUtil._f108(x343,this._f34+1,this._f35*2+2);
x343.onmousedown=MVUtil._f163(x343,function(x344)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll(0,(x322._f127()+x322._f129())*(0.25));
x344=(x344)?x344:((window.event)?event:null);
MVUtil._f169(x344);
});
x343.onmouseup=MVUtil._f163(x343,function(x345)
{
x323(x345);
});
var x346=new _f469(this._f448,_f3._f51+"navicons/se.gif",
this._f34,this._f35,2000,MVMessages.panSEInfoTip)
MVUtil._f108(x346,this._f34*2+2,this._f35*2+2);
x346.onmousedown=MVUtil._f163(x346,function(x347)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.smoothScroll((x322._f127()+x322._f129())*(0.18),(x322._f127()+x322._f129())*(0.18));
x347=(x347)?x347:((window.event)?event:null);
MVUtil._f169(x347);
});
x346.onmouseup=MVUtil._f163(x346,function(x348)
{
x323(x348);
});
if(x322._f260){
var x349=new _f469(this._f448,_f3._f51+"navicons/center.gif",
this._f34,this._f35,2000,MVMessages.panCenterInfoTip)
MVUtil._f108(x349,this._f34+1,this._f35+1);
x349.onmousedown=MVUtil._f163(x349,function(x350)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.setCenterAndZoomLevel(x322._f260,x322._f261);
x350=(x350)?x350:((window.event)?event:null);
MVUtil._f169(x350);
});
x349.onmouseup=MVUtil._f163(x349,function(x351)
{
x323(x351);
});
}
}
this._f30=0;
this._f31=0;
if(this._f451!=false)
{
this._f30=_f3._f30;
this._f31=_f3._f31;
}
this._f38=0;
this._f39=0;
if(this._f452!=false)
{
this._f38=_f3._f38;
this._f39=_f3._f39;
var x352=new _f469(this._f448,src=_f3._f51+"navicons/zoomin.gif",
this._f38,this._f39,2000,MVMessages.zoomInInfoTip);
MVUtil._f108(x352,(this._f34*3-this._f38)/2+1,this._f35*3+3);
x352.onmousedown=MVUtil._f163(x352,function(x353)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.zoomIn();
x353=(x353)?x353:((window.event)?event:null);
MVUtil._f169(x353);
});
x352.onmouseup=MVUtil._f163(x352,function(x354)
{
x323(x354);
});
var x355=new _f469(this._f448,_f3._f51+"navicons/zoomout.gif",
this._f38,this._f39,2000,MVMessages.zoomOutInfoTip);
MVUtil._f108(x355,(this._f34*3-this._f38)/2+1,
this._f35*3+3+this._f39+this._f31+1);
x355.onmousedown=MVUtil._f163(x355,function(x356)
{
if(x322._f264&&x322._f266)
x322._f268=true;
x322.zoomOut();
x356=(x356)?x356:((window.event)?event:null);
MVUtil._f169(x356);
});
x355.onmouseup=MVUtil._f163(x355,function(x357)
{
x323(x357);
});
}
if(this._f451!=false)
{
this._f249=new _f470(this);
}
}
function _f470(x0)
{
var x1=x0;
this.div=document.createElement("div");
this._f471=new _f469(this.div,_f3._f51+"navicons/zoombar.gif",
x1._f30,x1._f31,2000,MVMessages.sliderBarInfoTip);
MVUtil._f108(this._f471,(x1._f34*3-x1._f30)/2+1,
x1._f35*3+3+x1._f39);
this._f373=new _f469(this.div,_f3._f51+"navicons/slider.gif",_f3._f32,
_f3._f33,2001,MVMessages.sliderInfoTip);
MVUtil._f108(this._f373,(x1._f34*3-_f3._f32)/2+1,
x1._f35*3+3+x1._f39+
(x1._f31-_f3._f33)*
(x1._f252-x1._f223)/x1._f252);
x1._f448.appendChild(this.div);
this._f472=Math.floor(_f3._f33/2);
var x2=function(x3)
{
x3=(x3)?x3:((window.event)?event:null);
x1._f237=false;
var x4=x1._f462(x3);
var x5=x4.top-10-x1._f249._f472;
var x6=x1._f35*3+3+x1._f39+
(x1._f31-_f3._f33)*
(x1._f252-x1._f223)/x1._f252;
if(x5<=x1._f35*3+3+x1._f39+x1._f249._f472)
x5=x1._f35*3+3+x1._f39;
else if(x5>=x1._f35*3+3+x1._f39+
x1._f31-_f3._f33)
x5=x1._f35*3+3+x1._f39+
x1._f31-_f3._f33;
x1._f249._f373.style.top=MVUtil._f178(x5);
var x7=(x1._f31-_f3._f33);
x7=x7/x1._f252;
var x8=Math.floor((x6-x5)/x7+0.5);
x1._f249._f473=true;
x1.zoomTo(x1._f223+x8);
MVUtil._f169(x3);
if(x1._f264&&x1._f266)
{
x1._f268=true;
x1._f265.clear();
}
}
var x9=function(x10)
{
x10=(x10)?x10:((window.event)?event:null);
x1._f237=false;
if(!x1._f249._f473)return;
var x11=x1._f462(x10);
var x12=x11.top-10;
if(x1._f35*3+3+x1._f39+x1._f249._f472<=x12&&
x12<=x1._f35*3+3+x1._f39+
x1._f31-x1._f249._f472)
x1._f249._f373.style.top=MVUtil._f178(x12-x1._f249._f472);
MVUtil._f169(x10);
}
var x13=function(x14)
{
x14=(x14)?x14:((window.event)?event:null);
x1._f237=true;
x1._f249._f473=false;
var x15=x1._f462(x14);
var x16=x15.top-10-x1._f249._f472;
var x17=x1._f35*3+3+x1._f39+
(x1._f31-_f3._f33)*
(x1._f252-x1._f223)/x1._f252;
if(x16<=x1._f35*3+3+x1._f39+x1._f249._f472)
x16=x1._f35*3+3+x1._f39;
else if(x16>=x1._f35*3+3+x1._f39+
x1._f31-_f3._f33)
x16=x1._f35*3+3+x1._f39+
x1._f31-_f3._f33;
x1._f249._f373.style.top=MVUtil._f178(x16);
var x18=(x1._f31-_f3._f33);
x18=x18/x1._f252;
var x19=Math.floor((x17-x16)/x18+0.5);
x1.zoomTo(x1._f223+x19);
MVUtil._f169(x14);
if(x1._f264&&x1._f268)
x1.marqueeZoom();
}
var x20=function(x21)
{
x21=(x21)?x21:((window.event)?event:null);
x1._f237=true;
if(x1._f249._f473)
{
x1._f249._f473=false;
x13(x21);
}
return false;
}
this.div.onmousedown=MVUtil._f163(this.div,x2);
this.div.onmouseup=MVUtil._f163(this.div,x13);
this.div.onmousemove=MVUtil._f163(this.div,x9);
this.div.onmouseout=MVUtil._f163(this.div,x20);
this._f473=false;
}
MVMapView.prototype.addScaleBar=function(x358,x359,x360,x361)
{
if(x361)
{
this._f244._f474=true;
}
this._f246=x358||this._f246;
this._f247=x359||this._f247;
this._f248=x360||this._f248;
this._f282=true;
this._f402(this._f244);
}
MVMapView.prototype._f475=function(x362,x363,x364,x365)
{
if(!x364)x364=MVSdoGeometry.createPoint(0,0,this.srid);
x364.sdo_point.x=(x362-this._f225)/this._f100+this._f114;
x364.sdo_point.y=this._f117-(x363-this._f226)/this._f101;
var x366=function(x367)
{
if(x367)
x364=x367;
while(x364.sdo_point.x<-180)x364.sdo_point.x+=360;
while(x364.sdo_point.x>180)x364.sdo_point.x-=360;
x364.sdo_point.x=(x364.sdo_point.x)*Math.PI/180;
x364.sdo_point.y=(x364.sdo_point.y)*Math.PI/180;
x365(x364.sdo_point);
}
if(x364.srid&&x364.srid!=8307)
x364=this.transformGeom(x364,8307,null,x366);
else
 x366();
}
MVMapView.prototype.setMouseCursorStyle=function(x368,x369)
{
if(x369=="dragging")
this._f275=x368;
else if(x369=="default")
{
this._f274=x368;
MVUtil._f105(this._f278,x368);
}
}
MVMapView.prototype.enableLoadingIcon=function(x370)
{
this._f297=x370;
if(!x370)
this.setLoadingIconVisible(false);
}
MVMapView.prototype.setLoadingIconVisible=function(x371)
{
if(!this._f297)
x371=false;
if(!x371)
{
if(this._f298)
this._f298.style.visibility="hidden";
}
else
 {
if(!this._f298)
{
var x372=document.createElement("img");x372.src=_f3._f51+"/loading.gif?refresh="+Math.random();
x372.style.zIndex=2001;
x372.style.position="absolute";
var x373=0,x374=0;
if(x372.width)
x373=x372.width;
if(x372.height)
x374=x372.height;
x372.style.left=MVUtil._f178((this._f127()-x373)/2);
x372.style.top=MVUtil._f178((this._f129()-x374)/2);
var x375=this;
x372.onload=function()
{
x372.style.left=MVUtil._f178((x375._f127()-x372.width)/2);
x372.style.top=MVUtil._f178((x375._f129()-x372.height)/2);
x372.onload=null;
};
this._f278.appendChild(x372);
this._f298=x372;
}
else
 {
this._f298.style.left=MVUtil._f178((this._f127()-this._f298.width)/2);
this._f298.style.top=MVUtil._f178((this._f129()-this._f298.height)/2);
this._f298.style.visibility="visible";
}
}
}
MVMapView.prototype._f324=function()
{
var x376=true;
for(i=0;i<this._f243.length;i++)
{
var x377=this._f243[i];
if(x377.div&&x377.isVisible()&&x377._f476)
{
x376=false;
break;
}
}
if(x376)
this.setLoadingIconVisible(false);
}
MVMapView.prototype._f404=function(x378)
{
if(!this._f300)
this._f300=new Array();
this._f300.push(x378);
var x379=this;
var x380=function()
{
if(x379._f299)
return ;
clearInterval(x379._f301);
x379._f301=null;
while(x379._f300.length>0)
{
x379.addThemeBasedFOI(x379._f300.shift());
}
}
if(!this._f301)
this._f301=setInterval(x380,50);
}
MVMapView.prototype.checkSize=function()
{
clearTimeout(this._f306);
if(!this._f302)
this._f302=this._f127();
if(!this._f303)
this._f303=this._f129();
if(this._f302!=this._f127()||
this._f303!=this._f129())
{
this._f304=true;
this._f305=0.4;
this._f302=this._f127();
this._f303=this._f129();
}
else
 this._f305+=0.4;
if(this._f305>0.4&&this._f304)
{
this._f444();
this._f304=false;
this._f305=0;
}
this._f306=this.setTimeout("this.checkSize()",300);
}
MVMapView.addMapConfig=function(x381)
{
var x382=x381.dataSource?x381.dataSource+"."+x381.mapCache:x381.mapCache;
if(x381)
_f3._f16(x382,x381)
}
MVMapView._f27=false;
MVMapView.enableXMLHTTP=function(x383)
{
MVMapView._f27=x383;
}
MVMapView.setProxyPath=function(x384)
{
_f3._f64=x384;
}
MVMapView.setErrorHandler=function(x385)
{
MVi18n.addBehavior("func",x385,"text");
}
MVMapView.debug=false;
MVMapView.enableDebugMode=function(x386)
{
MVMapView.debug=x386;
}
function _f477(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 _f478(x0,x1,x2,x3)
{
this.fpsLength=x0;
this.metricLength=x1;
this.fpsText=x2;
this.metricText=x3;
}
function _f245(x0)
{
this._f479=x0||125;
this._f474=false;
}
_f245.prototype._f403=function(x387,x388,x389)
{
var x390=_f3._f51+"scale/";
var x391=x390+"scale_bar1.png";
var x392=x390+"scale_bar2.png";
var x393=x390+"scale_bar3.png"
this.div=document.createElement("div");
this.div.style.zIndex=2000;
this._f483=document.createElement("div");
this._f484=document.createElement("div");
MVUtil._f485(this.div);
MVUtil._f485(this._f483);
MVUtil._f485(this._f484);
this.div.style.height=MVUtil._f178(40);
this.div.style.width=MVUtil._f178(125);
this.div.style.fontSize=MVUtil._f178(5);
var x394=this;
var x395=function(x396)
{
var x397=x396.fpsLength;
var x398=x396.metricLength;
var x399=Math.max(x397,x398);
MVUtil._f211(x394._f483,8,2,x399,0,10,11);
MVUtil._f211(x394._f484,8,29,x399,0,10,11);
x394._f486(x394._f483,x396.fpsText);
x394._f486(x394._f484,x396.metricText);
x394._f487=_f182(x391,x397,6,3,15,5);
x394._f488=_f182(x392,x398,6,3,21,8);
x394._f489=_f182(x393,Math.abs(x397-x398),6,(x397>x398)?(3+x398):(3+x397),(x397>x398)?21:15,0);
if(x388)
x388.appendChild(x394.div);
else
 x387._f278.appendChild(x394.div);
x394.div.appendChild(x394._f487);
x394.div.appendChild(x394._f488);
x394.div.appendChild(x394._f489);
x394.div.appendChild(x394._f483);
x394.div.appendChild(x394._f484);
x394.div.title=MVMessages.scaleBarInfoTip;
x394._f490();
x389(x394.div);
}
this._f491(x387,this._f479,x395);
}
_f245.prototype._f490=function()
{
if(!this.div)
return ;
var x400="black";
this._f483.style.color=x400;
this._f484.style.color=x400;
}
_f245.prototype._f325=function(x401)
{
if(!this.div)
return ;
var x402=this;
var x403=function(x404)
{
var x405=Math.max(x404.fpsLength,x404.metricLength);
x402._f486(x402._f483,x404.fpsText);
x402._f486(x402._f484,x404.metricText);
x402.width=x405+4;
x402._f487.style.width=MVUtil._f178(x404.fpsLength);
x402._f488.style.width=MVUtil._f178(x404.metricLength);
x402._f489.left=(x404.fpsLength>x404.metricLength)?x404.metricLength+3:x404.fpsLength+3;
x402._f489.top=(x404.fpsLength>x404.metricLength)?21:15;
x402._f489.style.left=MVUtil._f178(x402._f489.left);
x402._f489.style.top=MVUtil._f178(x402._f489.top);
x402._f489.style.width=MVUtil._f178(Math.abs(x404.metricLength-x404.fpsLength));
x402.div.style.width=MVUtil._f178(x405+4);
x402._f484.style.width=MVUtil._f178(x404.metricLength);
x402._f483.style.width=MVUtil._f178(x404.fpsLength);
}
this._f491(x401,this._f479,x403);
}
_f245.prototype._f491=function(x406,x407,x408)
{
var x409;
var x410;
var x411;
var x412;
var x413;
var x414;
var x415=x406.msi._f492();
var x416=x406.msi._f493();
var x417=this;
var x418=function()
{
x412=x417._f494(x411);
if(x412>=1000)
{
var x419=x417._f494(x411/1000);
var x420=x411/1000;
x414=Math.round(x417._f479*x419/x420);
x413=x419+" "+MVMessages.kilometers;
}
else
 {
x414=Math.round(x417._f479*x412/x411);
x413=x412+" "+MVMessages.meters;
}
var x421=x411/1609.344;
var x422=x411*3.28084;
var x423;
var x424;
if(x421>=1)
{
var x425=x417._f494(x421);
x423=Math.round(x417._f479*x425/x421);
x424=x425+" "+MVMessages.miles;
}
else
 {
var x426=x417._f494(x422);
x423=Math.round(x417._f479*x426/x422);
x424=x426+" "+MVMessages.feet;
}
return new _f478(x423,x414,x424,x413);
}
if(x416=='GEODETIC')
{
var x427=function(x428)
{
x410=x428;
var x429=6378137.0;
var x430=0.9966471893352525;
var x431=0.0033528106647474805;
x411=_f477(x409,x410,x429,x430,x431);
x408(x418());
}
var x432=function(x433)
{
x409=x433;
x406._f475(x406._f225+x407/2,x406._f226,null,x427);
}
x406._f475(x406._f225-x407/2,x406._f226,null,x432);
return ;
}
else if(x416=='PROJECTED')
{
if(this._f474==true)
{
var x434=x407/2;
var x435=x406._f114-x434/x406._f100;
var x436=x434/x406._f100+x406._f114;
var x437=x406._f117;
var x438=MVSdoGeometry.createLineString([x435,x437,x436,x437],x406.srid);
var x439=function(x440)
{
x411=x440;
x408(x418());
}
x411=x438.getLength("meter",true,x406._f273+'/foi',x439);
return ;
}
else
 {
x411=x415*x407/x406._f100;
}
}
else if(x416=='LOCAL'||(x416=='UNDEFINED'&&x415!=0))
{
x411=x415*x407/x406._f100;
}
else if(x416=='UNDEFINED'&&x415==0)
{
x411=x407/x406._f100;
_f3._f495='';
_f3._f496='';
_f3._f497='';
_f3._f498='';
}
x408(x418());
}
_f245.prototype._f494=function(x441)
{
var x442=x441;
if(x442>1)
{
var x443=0;
while(x442>=10){x442=x442/10;x443=x443+1;}
if(x442>=5){x442=5;}
else if(x442>=2){x442=2;}
else {x442=1;}
while(x443>0){x442=x442*10;x443=x443-1;}
}
return x442;
}
_f245.prototype._f486=function(x444,x445)
{
if(x444.innerHTML!=x445)
{
x444.innerHTML=x445;
}
}
function _f499(_f500,x,y,_f71,_width,_height,style,_f501,mouseOver,parent,screenLoc,title,parameters)
{
if(_width==null||_width<0)_width=0;
if(_height==null||_height<0)_height=0;
this._f501=_f501;
if(style!="MVInfoWindowStyle1")
{
eval(style+".init()");
this._f502=eval(style+".createWindow("+x+","+y+","+_width+","+_height+")");
_f500.appendChild(this._f502);
}
var close=function(){
if(MVInfoWindowStyle1._f201)
{
clearTimeout(MVInfoWindowStyle1._f201);
MVInfoWindowStyle1._f201=null;
}
_f501._f142.deleteInfoWindow(_f500);
}
if(style=="MVInfoWindowStyle1")
{
var _f502=this._f502;
var drawInfoWindow=function()
{
if(MVInfoWindowStyle1.sizeChanged())
{
MVUtil._f503(_f500);
MVInfoWindowStyle1.init(parameters);
_f502=MVInfoWindowStyle1.createWindow(x,y,_width,_height);
_f500.appendChild(_f502);
MVInfoWindowStyle1.addContent(_f500,_f71,title);
var x0=document.getElementById("infowindow3table");
if(x0)
{
var x1=x0.offsetWidth;var x2=x0.offsetHeight;
var x3=parent.parent._f179;var x4=parent.parent._f180;
var x5=parent.width;var x6=parent.height;
var x7=screenLoc.x;var x8=screenLoc.y;
var x9=true;var x10=true;
if(x3+x7>x5/2)
x9=false;
if(x4+x8<x6/2)
x10=false;
var x11=false;
if(x10)
{
if(x4+x8-MVInfoWindowStyle1._f200-x2>=0)
x8=x8-MVInfoWindowStyle1._f200-x2;
else
 {
x8=-x4+MVInfoWindowStyle1._f200;
x11=true;
}
}
else
 {
if(x4+x8+MVInfoWindowStyle1._f200+x2<=x6)
x8=x8+MVInfoWindowStyle1._f200;
else
 {
x8=x6-x4-MVInfoWindowStyle1._f200-x2;
x11=true;
}
}
if(x9)
{
if(x3+x7+MVInfoWindowStyle1._f200+x1<=x5||x11)
x7=x7+MVInfoWindowStyle1._f200;
else
 x7=x5-x3-MVInfoWindowStyle1._f200-x1;
}
else
 {
if(x3+x7-MVInfoWindowStyle1._f200-x1>=0||x11)
x7=x7-MVInfoWindowStyle1._f200-x1;
else
 x7=-x3+MVInfoWindowStyle1._f200;
}
x0.style.left=MVUtil._f178(x7-screenLoc.x);
x0.style.top=MVUtil._f178(x8-screenLoc.y);
if(!mouseOver)
{
MVInfoWindowStyle1.addCloseButton(close);
MVInfoWindowStyle1._f208(_f500);
}
MVInfoWindowStyle1.getWindowSize();
}
}
MVInfoWindowStyle1._f201=setTimeout(drawInfoWindow,500);
}
drawInfoWindow();
this._f502=_f502;
}
else
 {
div=this._f504(_f71,_width);
eval(style+".addContent(div)");
if(!mouseOver)
{
eval(style+".addCloseButton(close)");
}
}
}
_f499.prototype._f504=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>";
MVUtil._f105(x2,"auto");
return x2;
}
_f499.prototype._f505=function(){
_f501._f142.deleteInfoWindow(_f506);
}
_f499.prototype._f507=function()
{
if(this._f502){
this._f502.style.display="none";
}
}
_f499.prototype._f508=function()
{
this._f502.style.display="";
this._f502.style.visibility="visible";
}
_f499.prototype.isVisible=function()
{
return this._f502&&this._f502.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)
{
if(x27.length<=2)
return null;
if(x27[0]!=x27[x27.length-2]&&
x27[1]!=x27[x27.length-1])
{
x27.push(x27[0]);
x27.push(x27[1]);
}
return new MVSdoGeometry(2003,x28,[1,1003,1],x27,null);
}
MVSdoGeometry.createRectangle=function(x29,x30,x31,x32,x33)
{
if(x29==x31||x30==x32)
{
MVi18n.processLocale("MAPVIEWER-5500","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.createRectangleByGCD=function(x35,x36,x37,x38,x39)
{
if(!x39)
x39=8307;
var x40=_f626._f627(new MVSdoPointType(x35,x36,0),x38,0);
var x41=_f626._f627(new MVSdoPointType(x35,x36,0),x37,Math.PI/2);
var x42=x35;var x43=x36;var x44=x41.x;var x45=x40.y;
return new MVSdoGeometry(2003,x39,[1,1003,1],[x42,x43,x42,x45,x44,x45,x44,x43,x42,x43],null);
}
MVSdoGeometry.createCircle=function(x46,x47,x48,x49)
{
return new MVSdoGeometry(2003,x49,[1,1003,4],[x46+x48,x47,x46,x47+x48,x46-x48,x47],null);
}
MVSdoGeometry.createCirclePolygon=function(x50,x51,x52,x53)
{
if(!x53)
x53=8307;
var x54=new Array();
for(i=0;i<36;i++)
{
var x55=_f626._f627(new MVSdoPointType(x50,x51,0),x52,i*Math.PI/18);
x54[i*2]=x55.x;
x54[i*2+1]=x55.y;
}
x54[72]=x54[0];
x54[73]=x54[1];
return new MVSdoGeometry(2003,x53,[1,1003,1],x54,null);
}
MVSdoGeometry.createPointAtBearing=function(x56,x57,x58,x59,x60)
{
if(!x60)
x60=8307;
var x61=_f626._f627(new MVSdoPointType(x56,x57,0),x59,x58);
return MVSdoGeometry.createPoint(x61.x,x61.y,x60);
}
MVSdoGeometry.prototype.getRequestURL=function(x62)
{
var x63=String(document.location);
if(!x62)
x62=_f3._f63();
var x64="";
if(MVMapView._f27&&MVUtil._f25(x63)!=MVUtil._f25(x62))
x64=_f3._f66()+"?rtarget="+x62+"&";
else
 x64=x62+"?";
return x64;
}
MVSdoGeometry.prototype.getLength=function(unit,_f474,foiURL,callBack)
{
if(!this.srid)
{
var len=MVSdoGeometry.calcLength(this.sdo_ordinates);
if(callBack)
callBack(len);
return len;
}
var srs=_f3._f18(this.srid);
if(!_f474||this.srid==8307||this.srid==8265)
{
if((srs||this.srid==8307||this.srid==8265)&&
(this.gtype%10==2||this.gtype%10==3)&&
this.sdo_elem_info.length==3&&this.sdo_elem_info[0]==1&&
this.sdo_elem_info[1]==2&&this.sdo_elem_info[2]==1)
{
var convFactor=0;
if(!unit||unit=="")
convFactor=1;
else
 {
convFactor=_f3._f15(unit);
if(srs&&srs.distConvFactor)
convFactor=convFactor/srs.distConvFactor;
}
if(convFactor)
{
var len=0;
if(srs&&srs.type!='GEODETIC')
len=MVSdoGeometry.calcLength(this.sdo_ordinates)/convFactor;
else
 len=_f626._f629(this.sdo_ordinates)/convFactor;
if(callBack)
callBack(len);
return len;
}
}
}
var request=null;
var _f420;
var _f421=MVUtil._f109(this.toString(),"null","");
if(this.gtype%10!=2&&this.gtype%10!=6&&this.gtype%10!=3&&this.gtype%10!=7)
{
MVi18n.processLocale("MAPVIEWER-5513");
return 0;
}
else
 {
_f421=MVUtil._f109(_f421," ","");
}
var _f628=this.getRequestURL(foiURL);
var localDomain=(_f628.indexOf(_f3._f66())<0&&
MVUtil._f25(_f628)==MVUtil._f25(_f3._f26()));
var xmlHttp=localDomain||MVMapView._f27;
if(!xmlHttp&&!callBack)
{
MVi18n.processLocale("MAPVIEWER-5500","MVSdoGeometry.getLength() - Call back function can not be null\nwhen browser's built-in XMLHTTP/XMLHttpRequest is disabled!");
return -1;
}
_f628+="request=getlength&version=1.1&figord="+_f421+"";
if(unit)
{
_f628=_f628+"&unit="+unit;
}
if(_f474)
{
var trans=(_f474==true)?"yes":"no";
_f628=_f628+"&togeodetic="+trans;
}
var request=null;
var respLoaded=function()
{
if(request.readyState==4)
{
if(request.status==200)
{
var resp=xmlHttp?request.responseText:this.responseText;
try
{
eval("var result="+resp);
_f420=result;
if(result.length==0)
{
result=null;
return;
}
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5500","Cannot process the following response from the server:\n"+resp+"\n"+e);
}
if(callBack)
callBack(_f420);
if(xmlHttp)
return _f420;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=respLoaded;
request.open("POST",encodeURI(_f628),callBack||!xmlHttp);
request.send("");
}catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
}
if(!callBack&&xmlHttp)
{
if(request.status==200)
{
return respLoaded();
}
}
}
MVSdoGeometry.prototype.getArea=function(unit,_f474,foiURL,callBack)
{
var request=null;
var _f420;
var _f421=MVUtil._f109(this.toString(),"null","");
if(this.gtype%10!=3&&this.gtype%10!=7)
{
MVi18n.processLocale("MAPVIEWER-5513");
return 0;
}
else
 {
_f421=MVUtil._f109(_f421," ","");
}
var _f628=this.getRequestURL(foiURL);
var localDomain=(_f628.indexOf(_f3._f66())<0&&
MVUtil._f25(_f628)==MVUtil._f25(_f3._f26()));
var xmlHttp=localDomain||MVMapView._f27;
if(!xmlHttp&&!callBack)
{
MVi18n.processLocale("MAPVIEWER-5500","MVSdoGeometry.getArea()- Call back function can not be null \nwhen browser's built-in XMLHTTP/XMLHttpRequest is disabled!")
return -1;
}
_f628+="request=getarea&version=1.1&figord="+_f421+"";
if(unit)
{
_f628=_f628+"&unit="+unit;
}
if(_f474)
{
var trans=(_f474==true)?"yes":"no";
_f628=_f628+"&togeodetic="+trans;
}
var request=null;
var respLoaded=function()
{
if(request.readyState==4)
{
if(request.status==200)
{
var resp=xmlHttp?request.responseText:this.responseText;
try
{
eval("var result="+resp);
_f420=result;
if(result.length==0)
{
result=null;
return;
}
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5500","Cannot process the following response from the server:\n"+resp+"\n"+e);
}
if(callBack)
callBack(_f420);
if(xmlHttp)
return _f420;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=respLoaded;
request.open("POST",encodeURI(_f628),callBack||!xmlHttp);
request.send("");
}catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
}
if(!callBack&&xmlHttp)
{
if(request.status==200)
{
return respLoaded();
}
}
}
MVSdoGeometry.getDistance=function(x65,x66,x67,x68,x69,x70,x71,x72,x73)
{
var x74=new Array(x65,x66,x67,x68);
var x75=MVSdoGeometry.createLineString(x74,x69);
return x75.getLength(x70,x71,x72,x73);
}
MVSdoGeometry.calcLength=function(x76)
{
var x77=0,x78=2;
if(x76&&x76.length>3)
{
for(;x78<x76.length;x78+=2)
{
var x79=x76[x78]-x76[x78-2];
var x80=x76[x78+1]-x76[x78-1];
x77+=Math.sqrt(x79*x79+x80*x80);
}
return x77;
}
else
 return 0;
}
function MVSdoPointType(x0,x1,x2)
{
this.x=x0;
this.y=x1;
this.z=x2;
}
MVSdoPointType.prototype.toString=function()
{
var x81="SdoPointType( ";
x81+=this.x+", ";
x81+=this.y+", ";
x81+=this.z+" )";
return x81;
}
function MVOverviewMap(x0,x1,x2)
{
this._f654=x0;
this._f654._f255=true;
this._f323=null;
this._f656=x1;
this._f453=null;
this._f655=x2;
this._f657=false;
this._f137=0;
this._f138=0;
this.coords=null;
this._f658=false;
this._f659=false;
this.borderStyle="2px solid red";
this.backgroundColor="red";
}
MVOverviewMap.prototype.init=function(x0)
{
this._f323=x0;
var x1=this._f323.getZoomLevel()-this._f656;
if(x1<0)
x1=0;
this._f453=new MVMapView(this._f654,this._f323._f273);
this._f453.enableLoadingIcon(false);
if(this._f655==null)
{
var x2=this._f323._f242[0]._f379();
this._f655=new MVBaseMap(this._f323._f242[0]._f380(),x2);
}
this._f660=document.createElement("div");
this._f453._f278.appendChild(this._f660);
this._f660.style.zIndex=10000;
var x3=this;
var x4=function(x5,x6)
{
if(!x3._f659)
{
x3._f660.style.left=(parseInt(x3._f660.style.left)-x5)+"px";
x3._f660.style.top=(parseInt(x3._f660.style.top)-x6)+"px";
}
}
var x7=function(x8,x9)
{
var x10=x8-x9;
if(x9>x8&&x3._f323._f256)
{
x3._f453._f256=false;
x3._f323.setZoomLevel(x3._f323.getZoomLevel()-x10);
x3._f454();
}
else if(x9<x8&&x3._f323._f256)
{
x3._f453._f256=false;
if(x3._f323.getZoomLevel()-x8==x3._f656){
x3._f323.setZoomLevel(x3._f323.getZoomLevel()-x10);
}
else{
x3._f323.setZoomLevel(x8-x10+x3._f656);
}
x3._f454();
}
x3._f323._f256=true;
}
var x11=function()
{
if(!x3._f659)
{
x3._f658=true;
x3._f323.setCenter(x3._f453.getCenter());
x3._f454();
}
x3._f659=false;
}
this._f453.addEventListener("moving",x4);
this._f453.addEventListener("recenter",x11);
this._f453.addEventListener("zoom",x7);
var x12=function()
{
var x13=x3._f323.getCenter();
x3._f453.setCenter(x13);
x3._f453.setZoomLevel(x1);
x3._f453._f255=true;
x3._f453.display();
x3._f454()
}
this._f453.addBaseMapLayer(this._f655,x12);
}
MVOverviewMap.prototype.destroy=function()
{
this._f453.destroy();
MVUtil._f210(this._f654);
this._f453=null;
}
MVOverviewMap.prototype._f454=function()
{
var x14=this._f323.msi._f376(this._f323.getZoomLevel())/this._f453.msi._f376(this._f453.getZoomLevel())*this._f323._f127();
var x15=this._f323.msi._f377(this._f323.getZoomLevel())/this._f453.msi._f377(this._f453.getZoomLevel())*this._f323._f129();
this._f660.style.position="absolute";
this._f660.style.overflow="hidden";
this._f660.style.zIndex=10000
this._f660.style.left=((this._f453._f127()-x14)/2)+"px";
this._f660.style.top=((this._f453._f129()-x15)/2)+"px";
this._f660.style.width=x14+"px";
this._f660.style.height=x15+"px";
this._f660.style.border=this.borderStyle;
if(_f3._f13=='NS')
this._f660.innerHTML="<div  style='width: "+x14+"px; height: "+x15
+"px;opacity: 0.3;background-color:"+this.backgroundColor+";'></div>";
else if(_f3._f13=='IF')
this._f660.innerHTML="<div  style='width: "+x14+"px; height: "+x15
+"px;filter:alpha(opacity=30);background-color:"+this.backgroundColor+";'></div>";
var x16=this;
if(x14>this._f453._f127()||x15>this._f453._f129())
this._f660.style.visibility="hidden";
else
 this._f660.style.visibility=this._f453._f278.style.visibility;
var x16=this;
this._f660.onmousedown=MVUtil._f163(this._f660,function(x17){
x17=(x17)?x17:((window.event)?event:null);
if(x17.button==2)
{
return;
}
x16.coords=x16._f453._f462(x17)
x16._f657=true;
MVUtil._f169(x17);
x16._f137=0;
x16._f138=0;
})
this._f660.onmouseup=MVUtil._f163(this._f660,function(x18)
{
x18=(x18)?x18:((window.event)?event:null);
x16._f657=false;
x18.cancelBubble=true;
this._f661();
})
this._f660._f661=MVUtil._f163(this._f660,function()
{
var x19=parseInt(this.style.left)+parseInt(this.style.width)/2;
var x20=parseInt(this.style.top)+parseInt(this.style.height)/2;
var x21=x16._f453;
var x22=x19-x21._f127()/2;
x22=x22/x21._f100;
var x23=x20-x21._f129()/2;
x23=x23/x21._f101;
var x24=x16._f453._f356()+x22;
var x25=x16._f453._f357()-x23;
var x26=MVSdoGeometry.createPoint(x24,x25,x16._f453.srid);
x16._f453.setCenter(x26);
})
window.document.onmouseup=MVUtil._f163(window.document,function()
{
if(x16._f657){
x16._f657=false;
x16._f660._f661();
}
});
this._f660.onmousemove=MVUtil._f163(this._f660,function(x27)
{
x27=(x27)?x27:((window.event)?event:null);
if(x16._f657)
{
var x28=x16._f453._f462(x27);
x=x28.left-x16.coords.left;
y=x28.top-x16.coords.top;
x16.coords=x28;
this.style.left=(parseInt(this.style.left)+x)+"px";
this.style.top=(parseInt(this.style.top)+y)+"px";
x27.cancelBubble=true;
}
})
}
MVOverviewMap.prototype._f466=function(x29,x30)
{
var x31=x29*this._f323.msi._f376(this._f323.getZoomLevel())/this._f453.msi._f376(this._f453.getZoomLevel());
var x32=x30*this._f323.msi._f377(this._f323.getZoomLevel())/this._f453.msi._f377(this._f453.getZoomLevel());
if(x31>=0)
x31=x31+0.5;
else
 x31=x31-0.5;
if(x32>=0)
x32=x32+0.5;
else
 x32=x32-0.5
if(!this._f658)
{
this._f659=true;
this._f660.style.left=(parseInt(this._f660.style.left)+x31)+"px";
this._f660.style.top=(parseInt(this._f660.style.top)+x32)+"px";
}
}
MVOverviewMap.prototype._f467=function()
{
if(!this._f658)
{
this._f659=true;
this._f453.setCenter(this._f323.getCenter());
this._f454();
}
this._f658=false;
}
MVOverviewMap.prototype._f375=function(x33,x34,x35)
{
var x36=x33-x34;
if(x34>=x33&&this._f453._f256)
{
this._f323._f256=false;
if(x33-this._f453.getZoomLevel()==this._f656){
if(x35)
this._f453.setCenterAndZoomLevel(x35,this._f453.getZoomLevel()-x36);
else
 this._f453.setZoomLevel(this._f453.getZoomLevel()-x36);
}
else {
if(x35)
this._f453.setCenterAndZoomLevel(x35,x33-x36-this._f656);
else
 this._f453.setZoomLevel(x33-x36-this._f656);
}
this._f454();
}
else if(x34<x33&&this._f453._f256)
{
this._f323._f256=false;
if(x35)
this._f453.setCenterAndZoomLevel(x35,this._f453.getZoomLevel()-x36);
else
 this._f453.setZoomLevel(this._f453.getZoomLevel()-x36);
this._f454();
}
this._f453._f256=true;
}
MVOverviewMap.prototype.setRectangleStyle=function(x37,x38)
{
this.borderStyle=x37;
this.backgroundColor=x38;
}
function MVInfoWindowStyle1()
{
}
MVInfoWindowStyle1._f193=null;
MVInfoWindowStyle1.closeButtonImgURL=null;
MVInfoWindowStyle1._f194=function(x0)
{
if(x0&&x0.closeButtonImageURL)
{
if(!this._f195||
this._f195!=x0.closeButtonImageURL)
{
this.closeButtonWidth=null;
this.closeButtonHeight=null;
}
this._f195=x0.closeButtonImageURL;
}
else
 {
if(!this._f195||
this._f195!=MVInfoWindowStyle1.closeButtonImgURL)
{
this.closeButtonWidth=null;
this.closeButtonHeight=null;
}
this._f195=MVInfoWindowStyle1.closeButtonImgURL;
}
if(x0&&x0.bodyStyle)
this._f196=x0.bodyStyle;
else
 this._f196="border:1px;border-color:#8794A3;background-color:#FFFFFF";
if(x0&&x0.titleBarStyle)
this._f197=x0.titleBarStyle;
else
 this._f197="background-color:#CFDCEB;font-weight:bold";
if(x0&&x0.coneStyle)
{
this._f198=x0.coneStyle;
var x1=x0.coneStyle.split(/;|:/);
if(x1)
{
for(i=0;i<x1.length;i++)
if(x1[i].indexOf("opacity")>=0&&i<x1.length)
{
this._f199=parseInt(x1[i+1]);
break;
}
}
}
else
 {
this._f198="background-color:#99CC33;opacity:30";
this._f199=30;
}
if(x0&&x0.offset)
MVInfoWindowStyle1._f200=x0.offset;
else
 MVInfoWindowStyle1._f200=20;
}
MVInfoWindowStyle1.init=function(x2)
{
if(!MVInfoWindowStyle1.closeButtonImgURL)
MVInfoWindowStyle1.closeButtonImgURL=_f3._f51+"/infoicons/closeDialog_n.png";
if(x2)
MVInfoWindowStyle1._f194(x2);
else
 MVInfoWindowStyle1._f194(MVInfoWindowStyle1._f193);
MVInfoWindowStyle1._f28=null;
MVInfoWindowStyle1._f29=null;
MVInfoWindowStyle1._f201=null;
this._f202=null;
this._f203=null;
this.x=null;
this.y=null;
this._f204="";
this._f205=null;
this._f206=null;
}
MVInfoWindowStyle1.createWindow=function(x3,x4,x5,x6)
{
this.x=x3;
this.y=x4;
var x7=document.createElement("div");
var x8=document.createElement("table");
x8.id="infowindow3table";
x8.style.cssText=this._f196;
x8.style.borderStyle="solid";
x8.style.cellSpacing="0px";
x8.style.borderSpacing="0px";
x8.style.borderCollapse="collapse";
x8.style.padding="0px";
if(x5)
x8.style.width=MVUtil._f178(x5);
if(x6)
x8.style.height=MVUtil._f178(x6);
var x9=document.createElement("tbody");
x8.appendChild(x9);
var x10=document.createElement("tr");
x10.style.border="0px";
x10.style.padding="0px";
x10.style.height=MVUtil._f178(10);
x9.appendChild(x10);
var x11=document.createElement("TD");
x11.align="center";
this._f206=x11;
x10.appendChild(x11);
var x12=document.createElement("TD");
x12.style.width="10%";
x12.align="right";
x12.vAlign="top";
x12.style.padding="2px";
x10.appendChild(x12);
this._f205=x12;
var x13=document.createElement("tr");
x10.style.border="0px";
x10.style.padding="0px";
x9.appendChild(x13);
var x14=document.createElement("td");
x14.colSpan="2";
x14.style.padding="10px";
x13.appendChild(x14);
this._f203=x14;
document.body.appendChild(x8);
x8.style.left=MVUtil._f178(x3-MVInfoWindowStyle1._f200);
x8.style.top=MVUtil._f178(x4+MVInfoWindowStyle1._f200);
x8.style.position='relative';
x8.style.zIndex=200;
return x8;
}
MVInfoWindowStyle1.addCloseButton=function(x15)
{
var x16=document.createElement("img");
x16.src=this._f195;
x16.style.cursor='pointer';
if(this.closeButtonWidth)
{
x16.width=this.closeButtonWidth;
x16.height=this.closeButtonHeight;
}
else
 x16.onload=MVUtil._f163(x16,
function(){MVInfoWindowStyle1.setCloseButtonSize();});
x16.onclick=MVUtil._f163(x16,
function(){x15();});
this._f205.appendChild(x16);
}
MVInfoWindowStyle1.addContent=function(x17,x18,x19)
{
this._f203.innerHTML=x18;
if(x19)
{
this._f206.innerHTML=x19;
var x20=this._f206.parentNode;
x20.style.cssText=this._f197;
x20.style.border="0px";
x20.style.padding="0px";
x20.style.height=MVUtil._f178(10);
}
}
MVInfoWindowStyle1._f208=function(x21)
{
MVInfoWindowStyle1._f209(x21,this.x,this.y);
}
MVInfoWindowStyle1._f209=function(x22,x23,x24)
{
var x25=document.getElementById("infowindow3table");
var x26=x25.style.zIndex-1;
var x27=x25.offsetLeft;
var x28=x25.offsetTop;
x27-=x23;
x28-=x24;
var x29=1;
var x30=1;
var x31=x25.offsetWidth;
var x32=x25.offsetHeight;
MVInfoWindowStyle1._f28=x31;
MVInfoWindowStyle1._f29=x32;
var x33=0;
var x34=50;
var x35=260;
var x36=340;
var x37=50;if(this._f202)
{
MVUtil._f210(this._f202);
this._f202.parentNode.removeChild(this._f202);
}
var x38=document.createElement("DIV");
x38.id=x25.id+'cones';
x38.style.position='absolute';
x38.style.left=x23+'px';
x38.style.top=x24+'px';
x38.style.border='0px solid #000000';
x38.style.zIndex=x26;
this._f202=x38;
x22.appendChild(x38);
zcounter=0;
var x39=x37;this._f204=Math.round((this._f199/x37)*7);
var x40=Math.abs(x27/x37);
var x41=Math.abs(x28/x37);
var x42=Math.abs(x40/x41);
var x43=0;
for(var x44=0;x44<x37;x44++)
{
var x45=((x27*1.0/x37)*x44);var x46=((x28*1.0/x37)*x44);x35=x29+Math.abs(((x31-x29)/x37*x44));x36=x30+Math.abs(((x32-x30)/x37*x44));
var x47=document.createElement("DIV");
x47.id=x25.id+'D'+x44;
x47.style.cssText=this._f198;
x47.style.position='absolute';
MVUtil._f211(x47,x45,x46,x35,x36);
x47.style.border='0px solid black';
x47.style.fontSize="1px";
x47.style.lineHeight=0;
x38.appendChild(x47);
MVInfoWindowStyle1._f212(x47);
x47.style.zIndex=zcounter;
zcounter++;
x43++;
x39-=x44;
}
coneDone=true;
}
MVInfoWindowStyle1._f212=function(x48)
{
if(document.all){
x48.style.opacity=0.05;
x48.style.filter='alpha(opacity = '+this._f204+')';
}else{
var x49=this._f204/100;
x48.style.MozOpacity=x49;
}
}
MVInfoWindowStyle1.sizeChanged=function()
{
var x50=document.getElementById("infowindow3table");
if(x50&&
MVInfoWindowStyle1._f28&&
Math.abs(MVInfoWindowStyle1._f28-x50.offsetWidth)<5&&
MVInfoWindowStyle1._f29&&
Math.abs(MVInfoWindowStyle1._f29-x50.offsetHeight)<5)
return false;
else
 return true;
}
MVInfoWindowStyle1.getWindowSize=function()
{
var x51=document.getElementById("infowindow3table");
if(x51)
{
MVInfoWindowStyle1._f28=x51.offsetWidth;
MVInfoWindowStyle1._f29=x51.offsetHeight;
}
}
MVInfoWindowStyle1.setCloseButtonSize=function()
{
if(this.closeButtonWidth||!this._f205||!this._f205.firstChild)
return ;
this.closeButtonWidth=this._f205.firstChild.offsetWidth;
this.closeButtonHeight=this._f205.firstChild.offsetHeight;
}
function MVInfoWindowStyle2()
{
}
MVInfoWindowStyle2.init=function()
{
this.window=null;
this._f207=null;
this.iw=_f3._f51+"/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=_f182(this.iw_arrow,this.arrowwidth+2,this.arrowheight,1,7,0);
this.window.e=_f182(this.iw_v,1,x3+1-this.cornerheight*2,x2+this.arrowwidth,this.cornerheight,0);
this.window.w=_f182(this.iw_v,1,x3-this.cornerheight*2-20,this.arrowwidth,this.arrowendheight+this.cornerheight,0);
this.window.wu=_f182(this.iw_nw,this.cornerwidth,this.cornerheight,this.arrowwidth,0,0);
this.window.wd=_f182(this.iw_sw,this.cornerwidth,25,this.arrowwidth,x3+1-this.cornerheight,0);
this.window.eu=_f182(this.iw_ne,this.cornerwidth,this.cornerheight,x2+this.arrowwidth+1-this.cornerwidth,0,0);
this.window.ed=_f182(this.iw_se,this.cornerwidth,25,x2+this.arrowwidth+1-this.cornerwidth,x3+1-this.cornerheight,0);
this.window.c=_f182(this.iw_c,x2-1,x3+1-this.cornerheight*2,this.arrowwidth+1,this.cornerheight,0);
this.window.cu=_f182(this.iw_c1,x2+1-this.cornerwidth*2,this.cornerheight,this.arrowwidth+this.cornerwidth,0,0);
this.window.cd=_f182(this.iw_c2,x2+1-this.cornerwidth*2,25,this.arrowwidth+this.cornerwidth,x3-this.cornerheight+1,0);
this._f207=window.document.createElement("div");
this._f207.style.position="relative";
this._f207.style.left=MVUtil._f178(x0-1);
this._f207.style.top=MVUtil._f178(x1+2);
this._f207.appendChild(this.window.e);
this._f207.appendChild(this.window.wu);
this._f207.appendChild(this.window.w);
this._f207.appendChild(this.window.cu);
this._f207.appendChild(this.window.c);
this._f207.appendChild(this.window.cd);
this._f207.appendChild(this.window.wd);
this._f207.appendChild(this.window.ed);
this._f207.appendChild(this.window.eu);
this._f207.appendChild(this.window.arrow);
this.width=x2;
return this._f207;
}
MVInfoWindowStyle2.addCloseButton=function(x4)
{
this.closeButton=_f182(this.closeImg,16,16,this.width+10,10,4);
this.closeButton.style.position="absolute";
this.closeButton.onclick=MVUtil._f163(this.closeButton,
function(){x4();});
MVUtil._f105(this.closeButton,"pointer");
this._f207.appendChild(this.closeButton);
}
MVInfoWindowStyle2.addContent=function(x5)
{
x5.style.left=MVUtil._f178(55);
x5.style.top=MVUtil._f178(17);
this._f207.appendChild(x5);
}
MVInfoWindowStyle2.getWindow=function()
{
return this._f207;
}
function MVInfoWindowStyle3()
{
}
MVInfoWindowStyle3.init=function()
{
this.window=null;
this._f207=null;
this.iw=_f3._f51+"/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._f40=600;
this._f41=600;
this._f42=30;
this._f43=16;
this._f44=600;
this._f45=1;
this._f46=1;
this._f47=600;
this._f48=1;
this._f49=10;
}
MVInfoWindowStyle3.createWindow=function(x0,x1,x2,x3)
{
this.window=new Object();
this.window.arrow=_f182(this.iw_arrow,this._f42,this._f43,1,this._f49,0);
this.window.n=_f182(this.iw_h,x2+1,1,this._f42+1,0,0);
this.window.s=_f182(this.iw_h,x2+1,1,this._f42+1,x3+1,0);
this.window.e=_f182(this.iw_v,1,x3+1,x2+this._f42+1,1,0);
this.window.wu=_f182(this.iw_v,1,this._f49,this._f42,0,0);
this.window.wd=_f182(this.iw_v,1,x3-this._f43-this._f49+2,this._f42+1,this._f43+this._f49,0);
this.window.c=_f182(this.iw_c,x2,x3,this._f42+1,1,0);
this._f207=window.document.createElement("div");
this._f207=window.document.createElement("div");
this._f207.style.position="relative";
this._f207.style.left=MVUtil._f178(x0);
this._f207.style.top=MVUtil._f178(x1);
this._f207.appendChild(this.window.n);
this._f207.appendChild(this.window.s);
this._f207.appendChild(this.window.e);
this._f207.appendChild(this.window.wu);
this._f207.appendChild(this.window.c);
this._f207.appendChild(this.window.wd);
this._f207.appendChild(this.window.arrow);
this.width=x2;
return this._f207;
}
MVInfoWindowStyle3.addCloseButton=function(x4)
{
this.closeButton=_f182(this.closeImg,15,15,this.width-1,10,4);
this.closeButton.style.position="absolute";
MVUtil._f105(this.closeButton,"pointer");
this._f207.appendChild(this.closeButton);
this.closeButton.onclick=MVUtil._f163(this.closeButton,
function(){x4();});
}
MVInfoWindowStyle3.addContent=function(x5)
{
x5.style.left=MVUtil._f178(50);
x5.style.top=MVUtil._f178(25);
this._f207.appendChild(x5);
}
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;
this.nsdp_smfo=true;
}
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.setShowMatchedFeatureOnly=function(x4)
{
this.nsdp_smfo=x4;
}
MVNSDP.prototype.setParameters=function(x5)
{
this.nsdp_params=x5;
}
MVNSDP.prototype.setTimeout=function(x6)
{
this.nsdp_timeout=x6;
}
MVNSDP.prototype.getFlatString=function()
{
var x7="{";
x7+="\"nsdp_id\":"+"\""+this.nsdp_id+"\",";
x7+="\"nsdp_theme\":"+"\""+this.nsdp_theme+"\",";
x7+="\"nsdp_keycol\":"+"\""+this.nsdp_keycol+"\",";
if(this.nsdp_smfo!=null&&this.nsdp_smfo==false)
x7+="\"nsdp_smfo\":"+"\""+this.nsdp_smfo+"\",";
if(this.nsdp_rendersty!=null)
x7+="\"nsdp_rendersty\":"+"\""+this.nsdp_rendersty+"\",";
if(this.nsdp_labelsty!=null)
x7+="\"nsdp_labelsty\":"+"\""+this.nsdp_labelsty+"\",";
x7+="\"nsdp_timeout\":"+"\""+this.nsdp_timeout+"\"";
if(this.nsdp_params==null)
{
return x7+="}";
}
x7+=",\"nsdp_params\":[";
var x8=0;
for(p in this.nsdp_params)
{
x7+="{"+"\""+p+"\":"+"\""+this.nsdp_params[p]+"\"},";
x8++;
}
if(x8>0)
x7=x7.substr(0,x7.length-1);
x7+="]}";
return x7;
}
function MVXMLStyle(x0,x1)
{
this.name=x0;
this.xmlDef=x1;
}
MVXMLStyle.prototype.getXMLString=function()
{
var x0='<style name="'+this.name+'">'+
this.xmlDef+
'</style>';
return x0;
}
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 MVStyleMarker(x0,x1)
{
this.name=x0;
if(x1==null)
this.type="image";
else
 this.type=x1.toLowerCase();
this.description=null;
this.fill=null;
this.fill_opacity=255;
this.stroke=null;
this.stroke_opacity=255;
this.stroke_width=1;
this.imageUrl=null;
this.vector=null;
this.width=16;
this.height=16;
}
MVStyleMarker.prototype.setName=function(x0)
{
if(x0!=null)
this.name=x0;
}
MVStyleMarker.prototype.setSize=function(x1,x2)
{
if(x1!=null)
this.width=x1;
if(x2!=null)
this.height=x2;
}
MVStyleMarker.prototype.setImageUrl=function(x3)
{
if(x3==null)
this.imageUrl=null;
else
 this.imageUrl=x3;
}
MVStyleMarker.prototype.setStrokeColor=function(x4,x5)
{
if(x4==null)
this.stroke=null;
else if(x4.charAt(0)=='#')
this.stroke=storke.substring(1,x4.length);
else
 this.stroke=x4;
this.stroke_opacity=x5;
}
MVStyleMarker.prototype.setFillColor=function(x6,x7)
{
if(x6==null)
this.fill=null;
else if(x6.charAt(0)=='#')
this.fill=x6.substring(1,x6.length);
else
 this.fill=x6;
if(x7!=null)
this.fill_opacity=x7;
}
MVStyleMarker.prototype.setDescription=function(x8)
{
this.description=x8;
}
MVStyleMarker.prototype.setStrokeWidth=function(x9)
{
this.stroke_width=x9;
}
MVStyleMarker.prototype.setVectorShape=function(x10)
{
if(x10==null)
this.vector=null;
else
 this.vector=x10;
}
MVStyleMarker.prototype.getXMLString=function()
{
var x11="width:"+this.width+";height:"+this.height+";";
var x12=(this.stroke==null)?"":"stroke:0x"+this.stroke+";";
var x13=(this.fill==null)?"":"fill:0x"+this.fill+";";
var x14=this.stroke_opacity<255?"stroke-opacity:"+this.stroke_opacity+";":"";
var x15=this.fill_opacity<255?"fill-opacity:"+this.fill_opacity+";":"";
var x16=this.stroke_width!=1?"stroke-width:"+this.stroke_width:"";
var x17="";
if(this.type=="image")
{
x17='  <image_marker url="'+this.imageUrl+'" />';
}
else if(this.type=="vector")
{
if(this.vector.charAt(0)=='c'||this.vector.charAt(0)=='C')
{
x17='  <circle cx="0" cy="0" r="1"/>';
}
else
 {
x17='  <polyline points="'+this.vector+'"/>';
}
}
var x18='<style name="'+this.name+'">'+
'<svg width="1in" height="1in">'+
'<g class="marker" style="'+x11+x12+x14+x13+x15+x16+'">'+
x17+
'</g></svg></style>';
return x18;
}
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._f322=document.createElement("div");
this._f322.id=null;
this._f322.isMapDecoration=true;
this.parent=null;
this._f320=false;
this._f431=false
this._f288=null;
this._f554=null;
this._f555=null;
this.id=null;
this.visible=true;
this._f113=0;
this._f116=0;
this._f556=(_f3._f13=="IF")?18:16;
this.stepX=15;
this.stepY=this.stepX*x4/x3;
this._f557=null;
this.icon=null;
this._f558=null;
this._f89=true;
this._f559=false;
this._f560=null;
this._f561=null;
this._f562=null;
this.buffer=(_f3._f13=="IF")?5:7;
this.collapsed=false;
}
MVMapDecoration.prototype.setPosition=function(x0)
{
x0.style.top=MVUtil._f178(this.parent._f129()*this.top+this._f116);
x0.style.left=MVUtil._f178(this.parent._f127()*this.left+this._f113);
}
MVMapDecoration.prototype.init=function(id,x1)
{
this.id=id;
this.parent=x1;
this._f322.id=this.id;
this._f322.style.zIndex=2000;
this._f322.style.position="absolute";
if(this._f320)
{
this._f321=document.createElement("div");
this._f321.style.position="absolute";
this._f321.style.zIndex=2000;
this._f321.style.right="0px";
this._f321.style.bottom="0px";
this._f321.style.width=(this.width+this.buffer)+"px";
this._f321.style.height=(this.height+this.buffer)+"px";
this._f321.style.backgroundColor="white";
this._f321.style.overflow="hidden";
this.realContdiv=document.createElement("div");
this.realContdiv.style.position="absolute";
this.realContdiv.style.zIndex=2000;
this.realContdiv.style.left="3px";
this.realContdiv.style.top="3px";
this.realContdiv.style.width=this.width+"px";
this.realContdiv.style.height=this.height+"px";
this.realContdiv.style.border="1px solid #636661";
this.realContdiv.style.overflow="hidden";
this.realContdiv.style.backgroundColor="white";
this._f321.appendChild(this.realContdiv);
this._f557=document.createElement("div");
this._f557.style.position="absolute";
this._f557.style.left=MVUtil._f178(-1);
this._f557.style.top=MVUtil._f178(-1);
this._f557.style.width="110%";
this._f557.style.height=this._f556+"px";
this._f557.style.border="1px solid #636661";
if(this._f562)
this._f557.title=this._f562;
this.realContdiv.appendChild(this._f557);
this.titleBg=document.createElement("img");
this.titleBg.style.width="100%";
this.titleBg.style.height="100%";
this.titleBg.src=_f3._f51+"title_bg.png";
this._f557.appendChild(this.titleBg);
var x2=this;
var x3=document.createElement("img");
this.icon=x3;
x3.style.position="absolute";
x3.style.left=MVUtil._f178(2);
x3.style.top=MVUtil._f178(1);
x3.style.height=MVUtil._f178(this._f556-3);
x3.style.width=MVUtil._f178(this._f556-3);
this._f557.appendChild(x3);
MVUtil._f105(this._f557,"pointer");
this.setIconImageListeners(false);
this._f557.onclick=MVUtil._f163(this._f557,function()
{
x2._f563();
});
if(this._f560)
{
var x4=document.createElement("div");
x4.style.position="absolute";
x4.style.left=MVUtil._f178(this._f556);
x4.style.top=MVUtil._f178(0);
x4.style.width=MVUtil._f178(this.width-2*this._f556);
x4.style.height=MVUtil._f178(this._f556);
this._f557.appendChild(x4);
x4.innerHTML="<center>"+this._f560+"</center>";
}
this._f322.style.left=MVUtil._f178(0);
this._f322.style.top=this._f556+((_f3._f13=="IF")?-1:1)+"px";
this._f322.style.border=MVUtil._f178(0);
if(_f3._f13=="NS"||_f3._f13=="IF")
{
this._f322.style.width=this.width+"px"
this._f322.style.height=(this.height-this._f556-1)+"px";
}
else
 {
this._f322.style.width=this.width-2+"px"
this._f322.style.height=(this.height-this._f556-2)+"px";
}
this._f322.innerHTML=this.html;
this.realContdiv.appendChild(this._f322);
this._f564=true;
this.n=(this.height-this._f556)/this.stepY+1;
this._f565(this.realContdiv);
if(this._f559)
this.collapse();
}
else
 {
this._f322.innerHTML=this.html;
this.setPosition(this._f322);
if(this.width)
this._f322.style.width=MVUtil._f178(this.width);
if(this.height)
this._f322.style.height=MVUtil._f178(this.height);
this._f565(this._f322);
}
this._f566();
}
MVMapDecoration.prototype._f565=function(x5)
{
var x6=this
var x7=function(x8)
{
x8=(x8)?x8:((window.event)?event:null);
if(x8&&!x6._f89)
{
if(_f3._f13=="IF")
x8.cancelBubble=true;
else if(x8.stopPropagation)
x8.stopPropagation();
}
}
var x9=function(x10)
{
x10=(x10)?x10:((window.event)?event:null);
if(x10&&!x6._f89)
{
MVUtil._f169(x10);
}
}
x5.onclick=function(x11)
{
if(x6._f288)
{
x6.parent._f172();
x6._f288();
}
x7(x11);
}
if(this._f554)
x5.onmouseover=this._f554;
if(this._f555)
x5.onmouseout=this._f555;
x5.onmousedown=x7;
x5.onmouseup=x7;
x5.onkeyup=x7
if(_f3._f13=="OS")
x5.onkeypress=x7;
else
 x5.onkeydown=x7;
}
MVMapDecoration.prototype.setOffset=function(x12,x13)
{
this._f113=x12;
this._f116=x13;
}
MVMapDecoration.prototype.setPrintable=function(x14)
{
this._f431=x14;
}
MVMapDecoration.prototype.setCollapsible=function(x15,x16)
{
this._f320=x15;
this._f559=x16;
}
MVMapDecoration.prototype.setTitleBar=function(x17,x18,x19)
{
if(x17)
this._f560=x17;
if(x18)
this._f561=x18;
this._f562=x19;
}
MVMapDecoration.prototype._f432=function()
{
var x20=document.createElement("div");
x20.innerHTML=this.html;
x20.style.zIndex=2000;
x20.style.position="absolute";
if(this.collasible)
{
this._f567.style.right=MVUtil._f178(0);
this._f567.style.bottom=MVUtil._f178(0);
this._f567.style.width=MVUtil._f178(width);
this._f567.style.height=MVUtil._f178(height-this._f556);
this._f567.style.border="1px solid black";
this._f567.style.backgroundColor="white";
}
else{
this.setPosition(x20);
if(this.width)
x20.style.width=this.width;
if(this.height)
x20.style.height=this.height;
return x20;
}
}
MVMapDecoration.prototype.setVisible=function(x21)
{
this.visible=x21;
if(this.parent!=null&&this.parent._f78)
this._f566();
if(this.parent!=null&&this._f431)
this.parent._f374();
}
MVMapDecoration.prototype._f566=function()
{
if(this.visible)
this._f322.style.visibility="visible";
else
 this._f322.style.visibility="hidden";
if(this._f320)
{
if(this.visible)
this._f321.style.visibility="visible";
else
 this._f321.style.visibility="hidden";
if(this.parent._f254&&this.parent._f254._f323&&
this._f322._f255&&this.parent)
{
this.parent._f254._f454();
}
}
}
MVMapDecoration.prototype.isVisible=function()
{
return this.visible;
}
MVMapDecoration.prototype.addEventListener=function(x22,x23)
{
this.setEventListener(x22,x23);
}
MVMapDecoration.prototype.setEventListener=function(x24,x25)
{
if(x24=="mouse_click")
this._f288=x25;
else if(x24=="mouse_over")
this._f554=x25;
else if(x24=="mouse_out")
this._f555=x25;
}
MVMapDecoration.prototype.getContainerDiv=function()
{
return this._f322;
}
MVMapDecoration.prototype.enableEventPropagation=function(x26)
{
this._f89=x26;
}
MVMapDecoration.prototype._f563=function()
{
this.collapsed=false;
if(this._f558!=null&&this._f558!="")
return;
var x27=15;
if(this._f564)
{
this._f558=this.setTimeout("this.scrollElement(-1)",10);
}
else
 {
this._f558=this.setTimeout("this.scrollElement(1)",10);
}
}
MVMapDecoration.prototype.collapse=function()
{
if(_f3._f13=="NS")
this._f321.style.height=MVUtil._f178(this._f556+this.buffer/2);
else
 this._f321.style.height=MVUtil._f178(this._f556+this.buffer/2);
this._f321.style.width=MVUtil._f178(this._f556+this.buffer);
this._f322.style.height="0px";
this._f322.style.visibility="hidden";
this._f564=false;
if(this._f558)
clearTimeout(this._f558);
this._f558=null;
this.setIconImageListeners(true);
this.collapsed=true;
}
MVMapDecoration.prototype.scrollElement=function(x28)
{
var x29=parseInt(this._f321.style.height);
var x30=parseInt(this._f322.style.height);
var x31=parseInt(this._f321.style.width);
var x32=parseInt(this._f322.style.width);
if(x28<0)
{
if(x30>1)
{
if(x30>this.stepY)
{
this._f322.style.height=x30-this.stepY+"px";
this._f321.style.height=x30-this.stepY+this._f556+"px";
this._f322.style.width=x32-this.stepX+"px";
this._f321.style.width=x32-this.stepX+"px";
this._f558=this.setTimeout("this.scrollElement(-1)",10);
}
else
 this.collapse();
}
else
 this.collapse();
}
if(x28>0)
{
x30+=this.stepY;
x32+=this.stepX;
x29+=this.stepY;
x31+=this.stepX;
var x33=false;
if(x29<this.height)
{
this._f322.style.height=x30+"px";
this._f321.style.height=x29+"px";
}
else
 x33=true;
if(!x33&&x31<this.width)
{
this._f322.style.width=x32+"px";
this._f321.style.width=x31+"px";
}
else
 x33=true;
if(x33)
{
if(_f3._f13=="NS")
{
this._f322.style.width=this.width+"px"
this._f322.style.height=(this.height-this._f556-1)+"px";
}
else
 {
this._f322.style.width=this.width-2+"px"
this._f322.style.height=(this.height-this._f556-2)+"px";
}
this._f321.style.width=(this.width+this.buffer)+"px";
this._f321.style.height=(this.height+this.buffer)+"px";
this._f564=true;
clearTimeout(this._f558);
this._f558=null;
this.setIconImageListeners(false);
if(this._f322._f255&&this.parent)
{
this.parent._f254._f453.display();
this.parent._f254._f454();
}
}
else
 {
this._f558=this.setTimeout("this.scrollElement(1)",10);
this._f322.style.visibility="visible";
}
}
}
MVMapDecoration.prototype.setTimeout=function(_f139,_f140)
{
var Ie="tempVar"+_f141;
_f141++;
eval(Ie+" = this;");
var oi=_f139.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f140);
}
MVMapDecoration.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
MVMapDecoration.prototype.setMouseCursorStyle=function(x34)
{
if(this.contentDiv)
MVUtil._f105(this.contentDiv,x34);
else if(this._f322)
MVUtil._f105(this._f322,x34);
}
MVMapDecoration.prototype.setIconImageListeners=function(x35)
{
var x36;
if(this._f561)
x36=this._f561;
else if(x35)
x36=_f3._f51+"button_restore.gif";
else
 x36=_f3._f51+"button_minimize.gif";
var x37=this.icon;
x37.src=x36;
var x38=this.titleBg;
this._f557.onmouseover=MVUtil._f163(this._f557,function()
{
x38.src=_f3._f51+"title_bg_over.png";
if(x35)
x37.src=_f3._f51+"button_restore.gif";
else
 x37.src=_f3._f51+"button_minimize.gif";
});
this._f557.onmouseout=MVUtil._f163(this._f557,function()
{
x38.src=_f3._f51+"title_bg.png";
x37.src=x36;
});
}
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._f103=x1;
this.slices=x2;
}
MVPieChartStyle.prototype.getXMLString=function()
{
var x1='<style name="'+this.name+'">'+
'<AdvancedStyle><PieChartStyle '+
'pieradius="'+this._f103+'">';
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;
}
function MVCollectionBucket(x0,x1,x2,x3)
{
if(x2==null)
this.type="string";
else
 this.type=x2;
if(x3==null)
this.delimiter=",";
else
 this.delimiter=x3;
this.renderingStyle=x0;
this.label=x1;
this.items=null;
}
MVCollectionBucket.prototype.setItems=function(x0)
{
if(x0==null)
this.items=null;
this.items=x0;
}
MVCollectionBucket.prototype.getXMLString=function()
{
var x1=(this.label==null)?"":'label="'+this.label+'" ';
var x2="<CollectionBucket "+x1;
var x3=(this.type==null)?"":'type="'+this.type+'" ';
var x4=(this.delimiter==null)?"":'delimiter="'+this.delimiter+'" ';
var x5=(this.renderingStyle==null)?"":'style="'+this.renderingStyle+'" ';
x2+=x3+x4+x5+">"+this.items+"</CollectionBucket>";
return x2;
}
