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._f753=0;
this.url=null;
this.status=0;
this.readyState=0;
this._f754=null;
this.responseText=null;
}
MVXMLHttpRequest._f755=new Array();
MVXMLHttpRequest._f756=0;
MVXMLHttpRequest._f757=Math.round(Math.random()*10000);
MVXMLHttpRequest.callBack=function(id,x0,x1)
{
while(MVXMLHttpRequest._f755.length>0)
{
var x2=MVXMLHttpRequest._f755[0];
if(!x2.onreadystatechange)
{
if(x2._f754)
{
document.body.removeChild(x2._f754);
x2._f754=null;
}
MVXMLHttpRequest._f755.shift();
}
else
 break;
}
var x3=0;
for(;x3<MVXMLHttpRequest._f755.length;x3++)
{
if(MVXMLHttpRequest._f755[x3]._f753==id)
{
var x2=MVXMLHttpRequest._f755[x3];
x2.status=200;
x2.readyState=4;
x2.responseText=x0;
if(x2.onreadystatechange&&!x1)
x2.onreadystatechange();
x2.onreadystatechange=null;
document.body.removeChild(x2._f754);
x2._f754=null;
if(x3==0)
MVXMLHttpRequest._f755.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._f753=MVXMLHttpRequest._f757+"_"+MVXMLHttpRequest._f756++;
var x8=this.url;
if(x8.indexOf("?")>0)
x8+="&";
else
 x8+="?";
x8+="callback_id="+this._f753;
x8+="&"+x7;
if(x8.length>_f15._f128)
{
MVi18n.processLocale("MAPVIEWER-5517");
return ;
}
var x9=document.createElement("script");
x9.src=x8;
x9.type='text/javascript';
x9.charset='utf-8';
this._f754=x9;
MVXMLHttpRequest._f755.push(this);
document.body.appendChild(x9);
if(MVMapView.debug)
MVi18n.alert("MVXMLHttpRequest. URL:"+x8);
}
MVXMLHttpRequest.prototype.setRequestHeader=function(x10)
{
}
function MVUtil(){}
MVUtil._f409=0;
MVUtil._f258=function(x0,x1,x2,x3,x4,x5,x6,x7,x8)
{
var x9=(x7-x1)*x5/(x3-x1)-x0._f247;
var x10=(x4-x8)*x6/(x4-x2)-x0._f248;
var x11=MVSdoGeometry.createPoint(x9,x10);
return x11.sdo_point;
}
MVUtil._f182=function(x12,x13,x14,x15,x16,x17,x18,x19,x20)
{
var x21=(x19-x13)*x17/(x15-x13)-x12._f247;
var x22=(x16-x20)*x18/(x16-x14)-x12._f248;
return [x21,x22];
}
MVUtil._f176=function(x23)
{
var x24=x23.style.left;
if(x24.indexOf("px")>0)
x24=x24.substring(0,x24.length-2);
return parseInt(""+x24);
}
MVUtil._f177=function(x25)
{
var x26=x25.style.top;
if(x26.indexOf("px")>0)
x26=x26.substring(0,x26.length-2);
return parseInt(""+x26);
}
MVUtil.getZIndex=function(x27)
{
var x28=x27.style.zIndex;
if(!x28)
return 0;
return parseInt(""+x28);
}
MVUtil._f178=function(x29,x30,x31)
{
if(_f15._f69==2)
{
x29.style.pixelLeft=x30;
x29.style.pixelTop=x31;
}
else
 {
x29.style.left=MVUtil._f246(x30);
x29.style.top=MVUtil._f246(x31);
}
}
MVUtil._f296=function(x32,x33,x34,x35,x36,x37,x38)
{
x32.style.left=MVUtil._f246(x33);
x32.style.top=MVUtil._f246(x34);
x32.style.width=MVUtil._f246(x35);
x32.style.height=MVUtil._f246(x36);
if(x37)
x32.style.zIndex=x37;
if(x38)
x32.style.fontSize=MVUtil._f246(x38);
}
MVUtil._f334=function(x39)
{
x39.style.position="absolute";
x39.unselectable="on";
x39.onselectstart=MVUtil._f734;
x39.style.fontFamily="Arial, sans serif";
x39.style.MozUserSelect="none";
x39.align="left";
}
MVUtil._f734=function()
{
return false;
}
MVUtil._f175=function(x40,x41)
{
try
{
if(x41.indexOf(".")>-1)
{
x41="url(\""+x41+"\")"
}
x40.style.cursor=x41;
}
catch(_exception)
{
if(x41=="pointer")
{
MVUtil._f175(x40,"hand");
}
}
}
MVUtil._f62=function(x42)
{
var x43={"x":0,"y":0};
var x44=x42;
while(x42)
{
x43.x+=x42.offsetLeft;
x43.y+=x42.offsetTop;
x42=x42.offsetParent;
}
x42=x44;
while(x42&&x42.tagName!="BODY")
{
x43.x-=x42.scrollLeft;
x43.y-=x42.scrollTop;
x42=x42.parentNode;
}
return x43;
}
function _f250(x0,x1,x2,x3,x4,x5,x6)
{
var x7=null;
if(x6&&_f15._f84())
{
x7=document.createElement("div");
x7.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x0+"', sizingMethod='scale');";
}
else
 {
x7=document.createElement("img");
x7.src=x0;
}
if(x1&&x2)
{
x7.style.width=MVUtil._f246(x1);
x7.style.height=MVUtil._f246(x2);
x7.width=x1;
x7.height=x2;
}
if(x4||(x3||(x4==0||x3==0)))
{
x7.style.position="absolute";
x7.style.left=MVUtil._f246(x3);
x7.style.top=MVUtil._f246(x4);
}
if(x5||x5==0)
{
x7.style.zIndex=x5;
}
if(_f15._f81=="IF"){
x7.unselectable="on";
x7.onselectstart=MVUtil._f734;}
else{
x7.style.MozUserSelect="none";
}
if(_f15._f81=="IF")
{
x7.galleryImg="no"}
x7.style.border="0";
x7.style.padding="0";
x7.style.margin="0";
x7.oncontextmenu=MVUtil._f734;
return x7;
}
MVUtil._f548=function(x45,x46)
{
if(x46)
{
var x47=x45._f610(x46);
var x48=MVSdoGeometry.createPoint(x47.left,x47.top);
return x48.sdo_point;
}
else
 {
var x47=x45._f610(window.event);
var x48=MVSdoGeometry.createPoint(x47.left,x47.top);
return x48.sdo_point;
}
}
MVUtil.getMouseLocation=function(x49,x50)
{
var x51=MVUtil._f548(x49,x50);
var x52=x51.x-x49._f53()/2;
var x53=x52/x49._f50+x49._f184;
x52=x51.y-x49._f55()/2;
var x54=((-1.0)*x52)/x49._f51+x49._f187;
var x55=MVSdoGeometry.createPoint(x53,x54);
return x55;
}
MVUtil._f236=function(x56)
{
x56=(x56)?x56:((window.event)?event:null);
var x57=0;
var x58=0;
if(x56.pageX)
{
x57=x56.pageX;
x58=x56.pageY;
}
else if(x56.clientX)
{
x57=x56.clientX;
x58=x56.clientY;
}
return MVSdoGeometry.createPoint(x57,x58).sdo_point;
}
MVUtil._f735=0;
MVUtil._f736=function(x59)
{
var x60=document.createElement("div");
x60.style.zIndex=1000;
x60.style.width=200;
x60.style.backgroundColor="#ffffff";
x60.style.position="absolute";
x60.style.left=0;
x60.style.top=((MVUtil._f735++)*20)%550;
x60.innerHTML=x59;
document.body.appendChild(x60);
}
MVUtil.getXMLHttpRequest=function(x61)
{
if(!x61)
return new MVXMLHttpRequest();
else
 {
if(window.ActiveXObject)
{
var x62=null;
try
{
x62=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
x62=new ActiveXObject("Msxml2.XMLHTTP");
}
return x62;
}
else
 return new XMLHttpRequest();
}
}
MVUtil._f39=function(x63)
{
if(x63)
{
if(_f15._f81=="IF")
x63.cancelBubble=true;
else if(x63.stopPropagation)
x63.stopPropagation();
if(x63.preventDefault)
x63.preventDefault();
else
 x63.returnValue=false;
}
}
MVUtil._f246=function(x64)
{
return Math.round(x64)+"px";
}
MVUtil._f737=function(x65,x66)
{
var x67=0;
var x68=-1;
while((x68=x65.indexOf(x66,x68+1))!=-1)
{
x67++;
}
return x67;
}
MVUtil._f738=function(x69)
{
var x70=x69.indexOf('<');
if(x70==-1)
return "";
var x71=x69.indexOf(' ',x70+1);
if(x71==-1)
return "";
return '</'+MVUtil._f92(x69.substring(x70+1,x71))+'>';
}
MVUtil._f92=function(x72)
{
return x72.replace(/(^[\s]*)|([\s]*$)/g,"");
}
MVUtil._f739=function(x73,x74)
{
return x73.substring(0,x74.length)==x74;
}
MVUtil._f241=function(x75,x76)
{
return x75.substring(x75.length-x76.length,x75.length)==x76;
}
MVUtil._f740=function(x77,x78)
{
return x78+x77+MVUtil._f738(x78);
}
MVUtil._f179=function(x79,x80,x81)
{
var x82;
x82=x79.indexOf(x80);
if(x82>-1)
{
var x83=x79.substring(0,x82);
var x84=x79.substring(x82+x80.length,x79.length);
x79=x83+x81+MVUtil._f179(x84,x80,x81);
}
return x79;
}
MVUtil._f716=function(x85)
{
if(x85.indexOf(".")>=0)
return x85.substring(0,x85.indexOf("."));
else
 return x85;
}
MVUtil._f252=function(x86)
{
if(x86.indexOf(".")>=0)
return x86.substring(x86.indexOf(".")+1,x86.length);
else
 return x86;
}
MVUtil._f702=new Array();
MVUtil._f741=new Array();
MVUtil._f249=function(x87)
{
if(_f15._f81!="IF")
return;
var x88=MVUtil._f702.length;
if(x87._f742)
{
x88=(x87._f742);
}
else
 x87._f742=-1;
if((x87._f742)==-1&&(MVUtil._f741.length)>0)
x88=MVUtil._f741.pop();
x87._f742=x88;
MVUtil._f702[x88]=x87;
}
MVUtil.MVUnload=function()
{
if(typeof(MVUtil._f702)!="undefined"&&(MVUtil._f702!=null))
while(MVUtil._f702.length>0)
{
if(MVUtil._f702[MVUtil._f702.length-1]!=null)
{
MVUtil._f702[MVUtil._f702.length-1].onmouseover=null;
MVUtil._f702[MVUtil._f702.length-1].onmouseout=null;
MVUtil._f702[MVUtil._f702.length-1].onmousedown=null;
MVUtil._f702[MVUtil._f702.length-1].onmouseup=null;
MVUtil._f702[MVUtil._f702.length-1].oncontextmenu=null;
MVUtil._f702[MVUtil._f702.length-1].ondblclick=null;
MVUtil._f702[MVUtil._f702.length-1].onclick=null;
MVUtil._f702[MVUtil._f702.length-1].onkeyup=null;
MVUtil._f702[MVUtil._f702.length-1]=null;
}
MVUtil._f702.pop();
}
}
window.onunload=function()
{
MVUtil.MVUnload();
}
MVUtil._f59=function(x89,x90)
{
if(_f15._f81!="IF")
{
return function()
{
return x90.apply(x89,arguments);
}
}
if(!(MVUtil._f743))
{
MVUtil._f743=new Array();
MVUtil._f744=new Array();
MVUtil._f745=new Array();
}
if(!(MVUtil._f746))
{
MVUtil._f746=new Array();
MVUtil._f747=new Array();
MVUtil._f748=new Array();
}
try
{
var x91=(MVUtil._f743.length);
if(x89._f742)
{
x91=(x89._f742);
}
else
 x89._f742=-1;
if((x89._f742)==-1&&(MVUtil._f745.length)>0)
x91=MVUtil._f745.pop();
MVUtil._f743[x91]=x89;
MVUtil._f743[x91]._f742=x91;
if(!(MVUtil._f744[x91]))
MVUtil._f744[x91]=new Array();
var x92=(MVUtil._f744[x91].length);
MVUtil._f744[x91][x92]=x90;
x89=null;
x90=null;
return function()
{
return MVUtil._f744[x91][x92].apply(MVUtil._f743[x91],arguments);
}
}
catch(e)
{
var x91=(MVUtil._f746.length);
if((MVUtil._f748.length)>0)
x91=MVUtil._f748.pop();
MVUtil._f746[x91]=x89;
MVUtil._f747[x91]=x90;
x89=null;
x90=null;
return function()
{
return MVUtil._f747[x91].apply(MVUtil._f746[x91],arguments);
}
}
}
MVUtil._f272=function(x93)
{
if(_f15._f81=="IF")
{
if(x93._f742)
{
var x94=(x93._f742);
for(var x95=(MVUtil._f744[x94].length);x95>0;--x95)
{
MVUtil._f744[x94][x95-1]=null;
MVUtil._f744[x94].pop();
}
MVUtil._f744[x94]=null;
x93._f742=null;
x93=null;
MVUtil._f743[x94]=null;
MVUtil._f745.push(x94);
}
}
}
MVUtil.gc=function()
{
if(_f15._f81=="IF"&&MVUtil._f746)
{
var x96=0;
if(MVUtil._f749)
x96=(MVUtil._f749);
if((MVUtil._f746.length)<x96)
return;
for(var x97=0;x97<(MVUtil._f746.length);++x97)
{
if((MVUtil._f746[x97])&&(MVUtil._f746[x97].readyState)&&(MVUtil._f746[x97].readyState)==4)
{
MVUtil._f746[x97]=null;
MVUtil._f747[x97]=null;
MVUtil._f748.push(x97);
}
}
}
}
MVUtil._f750=function(x98,x99)
{
if(_f15._f81!="IF")
return;
if(x98=="time")
{
if(MVUtil._f751)
{
clearInterval(MVUtil._f751);
MVUtil._f751=setInterval(MVUtil.gc,x99);
}
else
 MVUtil._f751=setInterval(MVUtil.gc,x99);
}
if(x98=="totalNum")
{
MVUtil._f749=x99;
}
}
MVUtil._f222=function(x100)
{
if(x100!=null)
{
delete x100;
}
}
MVUtil._f405=function(x101)
{
if(_f15._f81=="NS")
{
x101.style.MozUserSelect="none";
}
else if(_f15._f81=="SF")
{
x101.style.KhtmlUserSelect="none";
}
else if(_f15._f81=="IF")
{
x101.unselectable="on";
}
else
 {
return false;
}
return true;
}
MVUtil._f752=function(x102)
{
if(_f15._f81=="NS")
{
x102.style.MozUserSelect="";
}
else if(_f15._f81=="SF")
{
x102.style.KhtmlUserSelect="";
}
else if(_f15._f81=="IF")
{
x102.unselectable="off";
}
else
 {
return false;
}
return true;
}
MVUtil._f95=function(x103)
{
if(!x103)
return null;
var x104=x103.indexOf("://");
if(x104>0)
{
x104+=3;
var x105=x103.indexOf("/",x104);
if(x105>0)
return x103.substring(x104,x105);
else
 return x103.substring(x104);
}
else
 return null;
}
MVUtil._f601=0;
MVUtil._f600=0;
MVUtil._f602=0;
MVUtil._f275=function(x106)
{
if(!x106)
return ;
var x107=x106.childNodes;
if(x107!=null)
{
while(x107.length>0)
{
MVUtil._f223(x107[0]);
x106.removeChild(x107[0]);
}
}
}
MVUtil._f223=function(x108)
{
if(!x108)
return ;
var x109=x108.childNodes;
if(x109!=null)
{
while(x109.length>0)
{
MVUtil._f223(x109[0]);
x108.removeChild(x109[0]);
}
}
MVUtil._f640(x108);
}
MVUtil._f640=function(x110)
{
if(!x110)
return ;
try
{
if(x110.onload)
x110.onload=null;
if(x110.onmouseover)
x110.onmouseover=null;
if(x110.onmouseout)
x110.onmouseout=null;
if(x110.onmousedown)
x110.onmousedown=null;
if(x110.onmouseup)
x110.onmouseup=null;
if(x110.oncontextmenu)
x110.oncontextmenu=null;
if(x110.ondblclick)
x110.ondblclick=null;
if(x110.onclick)
x110.onclick=null;
if(x110.onkeyup)
x110.onkeyup=null;
if(x110.onkeydown)
x110.onkeydown=null;
if(x110.onkeypressed)
x110.onkeypressed=null;
if(_f15._f81=="IF")
{
if(x110.style&&x110.style.filter)
x110.style.filter=null;
if(x110._f742)
{
MVUtil._f741.push(x110._f742)
MVUtil._f702[x110._f742]=null;
}
}
}catch(error)
{
MVi18n.processLocale("MAPVIEWER-5500",x110.nodeName+","+x110.nodeType+","+x110.nodeValue);
}
}
MVUtil._f220=MVUtil._f223;
MVUtil._f547=function(x111)
{
var x112=document.createElement("table");
var x113=document.createElement("tr");
var x114=document.createElement("td");
x114.innerHTML=x111;
x113.appendChild(x114);
x112.appendChild(x113);
return x112;
}
MVUtil.getEvent=function(x115)
{
return x115?x115:((window.event)?event:null);
}
MVUtil.isIE7=function()
{
if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE 7")>=0)
return true;
else
 return false;
}
MVUtil.getNumber=function(x116)
{
var x117=0;
if(typeof(x116)=="string")
{
if(x116.indexOf("px")>0)
x116=x116.substring(0,x116.length-2);
if(x116.indexOf(".")>0)
x117=parseFloat(x116);
else
 x117=parseInt(x116);
if(isNaN(x117))
x117=0;
return x117;
}
else if(typeof(x116)=="number")
x117=x116;
return x117;
}
MVUtil.trapEvent=function(x118)
{
x118=(x118)?x118:((window.event)?event:null);
if(_f15._f81=="IF")
x118.cancelBubble=true;
else if(x118.stopPropagation)
x118.stopPropagation();
}
MVUtil._f400=function(x119,x120)
{
var x121=(_f15._f84()&&x120)?
document.createElement('div'):document.createElement('img');
if(_f15._f84()&&x120)
{
if(x119)
x121.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x119+"', sizingMethod='image');";
}
else
 {
x121.src=x119;
}
if(_f15._f81=="IF"&&!x120)
{
x121.galleryImg="no"}
return x121;
}
MVUtil.attachEvent=function(x122,x123,x124)
{
if(_f15._f81=="IF")
{
x123="on"+x123;
x122.attachEvent(x123,x124);
}
else
 {
x122.addEventListener(x123,x124,"false");
}
}
MVUtil.detachEvent=function(x125,x126,x127)
{
if(_f15._f81=="IF")
{
x126="on"+x126;
x125.detachEvent(x126,x127);
}
else
 {
x125.removeEventListener(x126,x127,"false");
}
}
function _f11()
{
}
_f11._f64=6372795;
_f11._f65=function(x0,x1,x2)
{
var x0=_f11._f12(x0);
var x3=x0.x;
var x4=x0.y;
var x5=x1/_f11._f64;
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 _f11._f14(new MVSdoPointType(x7,x6,0));
}
_f11._f12=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);
}
_f11._f14=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);
}
_f11._f66=function(x14,x15)
{
x14=_f11._f12(x14);
x15=_f11._f12(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*_f11._f64;
}
_f11._f67=function(x22)
{
var x23=0;
for(i=0;i<x22.length-2;i+=2)
{
x23+=_f11._f66(new MVSdoPointType(x22[i],x22[i+1]),new MVSdoPointType(x22[i+2],x22[i+3]));
}
return x23;
}
_f11.getSphericalArea=function(x24)
{
var x25=q.length/2;
var x26,x27,x28;
var x29;
var x30,x31,x32;
var x33;
var x34;
var x35=0.;
var x36;
var x37=0.;
for(x31=0,x30=x25-1,x32=1,dP=q+2;x31<x25;++x31,++x30,++x32,dP+=3)
{
x30%=x25;
x32%=x25;
var x38=MVGeoUtil.get3DVector(q[2*x31],q[2*x31+1]);
var x39=MVGeoUtil.get3DVector(q[2*x30],q[2*x30+1]);
var x40=MVGeoUtil.get3DVector(q[2*x32],q[2*x32+1]);
x37+=x38.z;
x26=MVGeoUtil.mdsphcp(x38,x38);
x29=MVGeoUtil.MAGNITUDE(x26);
x27=MVGeoUtil.mdsphcp(x38,x40);
x29*=MVGeoUtil.MAGNITUDE(x27);
x36=MVGeoUtil.DOTPRODUCT(x26,x27)/x29;
if(x36>1.)x36=1.;
if(x36<-1.)x36=-1.;
x33=Math.acos(x36);
x28=MVGeoUtil.mdsphcp(x26,x27);
if(Math.abs(x28.x)<1.e-9*x29&&Math.abs(x28.y)<1.e-9*x29&&
Math.abs(x28.z)<1.e-9*x29)
{
if(x36>0.)
x35-=Math.PI;
}
else
 {
if(MVGeoUtil.DOTPRODUCT(x28,x38)<0.)
x35+=x33-Math.PI;
else
 x35+=Math.PI-x33;
}
}
x37/=x25*1.0;
if(x35<0.)x35+=2.*Math.PI;
else x35-=2.*Math.PI;
}
_f11.mdsphcp=function(x41,x42)
{
var x43={"x":0,"y":0,"z":0};
if((x41.x==x42.x)&&(x41.y==x42.y)&&(x41.z==x42.z))
{
x43.x=x43.y=x43.z=0.0;
}
else
 {
x43.x=x41.y*x42.z-x41.z*x42.y;
x43.y=x41.z*x42.x-x41.x*x42.z;
x43.z=x41.x*x42.y-x41.y*x42.x;
}
return x43;
}
_f11.get3DVector=function(x44,x45)
{
var x46={"x":x44,"y":x45};
var x47=_f11._f12(x46);
x47.z=Math.sin(x47.y);
return x47;
}
_f11.MAGNITUDE=function(x48)
{
return Math.sqrt(x48.x*x48.x+x48.y*x48.y+x48.z*x48.z);
}
_f11.DOTPRODUCT=function(x49,x50)
{
return x49.x*x50.x+x49.y*x50.y+x49.z*x50.z;
}
function _f15(){}
_f15._f69=document.all?(document.getElementById?2:1):(document.layers?3:0);
_f15._f70=navigator.userAgent.toLowerCase();
_f15._f71=null;
_f15._f72=null;
_f15._f73=new Array(30);
_f15._f74=new Array(30);
_f15._f75=new Array(30);
_f15._f76="MVInfoWindowStyle1";
_f15._f77=null;
_f15._f78=new Array(30);
_f15._f79=function()
{
return _f15._f77;
}
_f15._f80=function(x0)
{
if(!_f15._f77)
_f15._f77=x0;
}
_f15._f41=function(x1)
{
_f15._f71=_f15._f70.indexOf(x1)+1;
_f15._f72=x1;
return _f15._f71;
}
if(_f15._f41('safari'))
_f15._f81="SF";
else if(_f15._f41('opera'))
_f15._f81="OS";
else if(_f15._f41('msie'))
_f15._f81="IF";
else if(!_f15._f41('compatible'))
{
_f15._f81="NS";
_f15._f82=_f15._f70.substring(8,11);}
else _f15._f81="unknown";
if(!_f15._f82)
_f15._f82=_f15._f70.substring(_f15._f71+_f15._f72.length,
_f15._f71+_f15._f72.length+3);
_f15._f83=0;
if(_f15._f82)
{
var i=_f15._f82.indexOf(".");
if(i>=0)
_f15._f83=parseInt(_f15._f82.substring(0,i));
else
 _f15._f83=parseInt(_f15._f82);
}
_f15._f84=function()
{
return _f15._f81=="IF"&&_f15._f83<7;
}
_f15._f75["SQ_MM"]=.000001;
_f15._f75["SQ_KILOMETER"]=1000000;
_f15._f75["SQ_CENTIMETER"]=.0001;
_f15._f75["SQ_MILLIMETER"]=.000001;
_f15._f75["SQ_CH"]=404.6856;
_f15._f75["SQ_FT"]=.09290304;
_f15._f75["SQ_IN"]=.00064516;
_f15._f75["SQ_LI"]=.04046856;
_f15._f75["SQ_CHAIN"]=404.6856;
_f15._f75["SQ_FOOT"]=.09290304;
_f15._f75["SQ_INCH"]=.00064516;
_f15._f75["SQ_LINK"]=.04046856;
_f15._f75["SQ_MILE"]=2589988;
_f15._f75["SQ_ROD"]=25.29285;
_f15._f75["SQ_SURVEY_FOOT"]=.09290341;
_f15._f75["SQ_YARD"]=.8361274;
_f15._f75["ACRE"]=4046.856;
_f15._f75["HECTARE"]=10000;
_f15._f75["PERCH"]=25.29285;
_f15._f75["ROOD"]=1011.714;
_f15._f75["M"]=1;
_f15._f75["METER"]=1;
_f15._f75["KM"]=1000;
_f15._f75["KILOMETER"]=1000;
_f15._f75["CM"]=.01;
_f15._f75["CENTIMETER"]=.01;
_f15._f75["MM"]=.001;
_f15._f75["MILLIMETER"]=.001;
_f15._f75["MILE"]=1609.344;
_f15._f75["NAUT_MILE"]=1852;
_f15._f75["SURVEY_FOOT"]=.3048006096012;
_f15._f75["FOOT"]=.3048;
_f15._f75["INCH"]=.0254;
_f15._f75["YARD"]=.9144;
_f15._f75["CHAIN"]=20.1168;
_f15._f75["ROD"]=5.0292;
_f15._f75["LINK"]=.201166195;
_f15._f75["MOD_USFT"]=.304812253;
_f15._f75["CL_FT"]=.304797265;
_f15._f75["IND_FT"]=.304799518;
_f15._f75["LINK_BEN"]=.201167651;
_f15._f75["LINK_SRS"]=.201167651;
_f15._f75["CHN_BEN"]=20.1167825;
_f15._f75["CHN_SRS"]=20.1167651;
_f15._f75["IND_YARD"]=.914398554;
_f15._f75["SRS_YARD"]=.914398415;
_f15._f75["FATHOM"]=1.8288;
_f15._f75["SQ_M"]=1;
_f15._f75["SQ_METER"]=1;
_f15._f75["SQ_KM"]=1000000;
_f15._f75["SQ_CM"]=.0001;
_f15._f85=function(x2)
{
if(x2)
x2=x2.toUpperCase();
else
 return 0;
if(_f15._f75[x2])
return _f15._f75[x2];
else
 return 0;
}
_f15._f86=function(x3,x4)
{
x3=x3.toUpperCase();
_f15._f73[x3]=x4;
if(x4.coordSys.srid)
_f15._f74[x4.coordSys.srid]=x4.coordSys;
}
_f15._f88=function(x5)
{
if(x5&&_f15._f74[x5])
return _f15._f74[x5];
else
 return null;
}
_f15._f89=function(basemap,callBack)
{
if(basemap._f90==null||basemap._f91==null||MVUtil._f92(basemap._f91)=="")
{
basemap._f91="null";
_f15._f73[basemap._f91]=null;return;
}
basemap._f91=basemap._f91.toUpperCase();
if(_f15._f73[basemap._f91])
{
if(callBack)
callBack(_f15._f73[basemap._f91]);
return _f15._f73[basemap._f91];
}
var conStr=basemap._f93.indexOf("?")>=0?"&":"?";
var formatStr;
var _f94=basemap._f93+conStr+"xml_request=<?xml+version=\"1.0\"+standalone=\"yes\"?>"
+"<map_cache_admin_request><get_client_config+map_cache_names=\""+basemap._f91
+"\"+format=\"JSON\"/></map_cache_admin_request>";
var request=null;
var localDomain=(MVUtil._f95(basemap._f90)==MVUtil._f95(_f15._f96()));
var xmlHttp=localDomain||MVMapView._f97;
var configLoaded=function()
{
try
{
var resp=xmlHttp?request.responseText:this.responseText;
eval("var result="+resp);
if(result.length==0)
{
MVi18n.processLocale("MAPVIEWER-5501",basemap._f91);
_f15._f73[basemap._f91]=null;result=null;
return;
}
_f15._f86(basemap._f91,result[0]);
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5502",basemap._f91,request.responseText);
return ;
}
if(callBack)
callBack(_f15._f73[basemap._f91]);
}
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(!xmlHttp)
request.onreadystatechange=configLoaded;
request.open("GET",_f94,!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
 {
_f15._f73[basemap._f91]=null;MVi18n.processLocale("MAPVIEWER-5502",basemap._f91,request.responseText);
}
}
request=null;
}
_f15._f98=180;
_f15._f99=100;
_f15._f100=14;
_f15._f101=112;
_f15._f102=14;
_f15._f103=14;
_f15._f104=14;
_f15._f105=14;
_f15._f106=14;
_f15._f107=14;
_f15._f108=14;
_f15._f109=14;
_f15._f110=600;
_f15._f111=600;
_f15._f112=30;
_f15._f113=16;
_f15._f114=600;
_f15._f115=1;
_f15._f116=1;
_f15._f117=600;
_f15._f118=1;
_f15._f119=10;
_f15._f38=true;
_f15._f120="/fsmc/images/";
_f15._f121="/fsmc/images/";
_f15._f122=0;
_f15._f123=null;
_f15._f124="bulls-eye.png";
_f15._f125=38;
_f15._f126=38;
_f15.redlineIgnoreMove=5;
_f15._f34=0;
_f15._f127=0;
_f15._f128=2000;
_f15._f129=null;
_f15._f130=null;
_f15._f131=function()
{
if(!_f15._f129)
_f15._f129=document.location.protocol+"//"+document.location.host+"/mapviewer/foi";
return _f15._f129;
}
_f15._f96=function()
{
if(!_f15._f130)
_f15._f130=document.location.protocol+"//"+document.location.host+"/mapviewer";
return _f15._f130;
}
_f15._f132="/mapviewer/proxy";
_f15._f133=null;
_f15._f134=function()
{
if(!_f15._f133)
_f15._f133=document.location.protocol+"//"+document.location.host+"/"+_f15._f132;
return _f15._f133;
}
if(document.getElementsByTagName("html")[0].getAttribute("xmlns")=="http://www.w3.org/1999/xhtml")
_f15._f135=true;
else
 _f15._f135=false;
_f15._f16=function(x6,x7,x8)
{
var x9=_f15._f78[x6];
if(!x9)
x9=_f15._f78[x6]=new Array();
x9[x7]=x8;
}
_f15._f136=function(x10,x11)
{
var x12=_f15._f78[x10];
if(x12)
return x12[x11];
else
 return null;
}
_f15._f137=0;
_f15._f138=false;
function _f345(x0)
{
this._f346=x0;
this.mapConfig=_f15._f73[x0];
this._f347=this._f213();
this._f348=this._f214();
this._f349=this._f215();
this._f350=this._f216();
this._f351=this._f215()-this._f213();
this._f352=this._f216()-this._f214();
this.zoomCount=_f15._f73[this._f346].zoomLevels.length;
}
_f345.prototype._f353=function()
{
return this._f346;
}
_f345.prototype._f354=function(x0)
{
return _f15._f73[x0].format;
}
_f345.prototype._f355=function()
{
return this._f351;
}
_f345.prototype._f356=function()
{
return this._f352;
}
_f345.prototype._f213=function()
{
return _f15._f73[this._f346].coordSys.minX;
}
_f345.prototype._f214=function()
{
return _f15._f73[this._f346].coordSys.minY;
}
_f345.prototype._f215=function()
{
return _f15._f73[this._f346].coordSys.maxX;
}
_f345.prototype._f216=function()
{
return _f15._f73[this._f346].coordSys.maxY;
}
_f345.prototype._f357=function()
{
return _f15._f73[this._f346].mapCache;
}
_f345.prototype.getSrid=function()
{
return _f15._f73[this._f346].coordSys.srid;
}
_f345.prototype._f358=function()
{
return _f15._f73[this._f346].coordSys.type;
}
_f345.prototype._f359=function()
{
return _f15._f73[this._f346].coordSys.distConvFactor;
}
_f345.prototype._f360=function()
{
return _f15._f73[this._f346].zoomLevels.length;
}
_f345.prototype._f361=function(x1)
{
return _f15._f73[this._f346].zoomLevels[x1].tileWidth;
}
_f345.prototype._f362=function(x2)
{
return _f15._f73[this._f346].zoomLevels[x2].tileHeight;
}
_f345.prototype._f363=function(x3)
{
return _f15._f73[this._f346].zoomLevels[x3].tileImageWidth;
}
_f345.prototype._f364=function(x4)
{
return _f15._f73[this._f346].zoomLevels[x4].tileImageHeight;
}
_f345.prototype._f365=function(x5)
{
return _f15._f73[this._f346].zoomLevels[x5]._f366;
}
_f345.prototype._f367=function(x6,x7,x8,x9)
{
this._f347=x6;
this._f348=x7;
this._f349=x8;
this._f350=x9;
}
function _f399(x0,x1,x2,x3)
{
this._f392=x0.zoomLevels[x3].tileWidth;
this._f393=x0.zoomLevels[x3].tileHeight;this._f403=Math.floor((x1-x0.coordSys.minX)/this._f392);
this._f404=Math.floor((x2-x0.coordSys.minY)/this._f393);
this._f395=x3;
this.minX=this._f403*this._f392+x0.coordSys.minX;
this.minY=this._f404*this._f393+x0.coordSys.minY;}
_f399.prototype._f401=function(x0,x1)
{
this._f403=this._f403+x0;
this._f404=this._f404+x1;
}
function MVMapTileLayer(x0,x1)
{
this._f91=x0;
this._f90="";
this._f93="";
if(x1)
{
this._f90=x1;
this._f93=x1;
if(MVUtil._f241(x1,'/'))
{
this._f90=x1.substring(0,x1.length-1);
this._f93=x1.substring(0,x1.length-1);
}
}
this.parent="";
this._f368=false;
this.visible=true;
this._f369="PNG";
this.minVisibleLevel=null;
this.maxVisibleLevel=null;
}
MVMapTileLayer.prototype.getType=function()
{
return "MVMapTileLayer";
}
MVMapTileLayer.prototype.setTransparent=function(x0)
{
this._f368=x0;
}
MVMapTileLayer.prototype.setVisible=function(x1)
{
if(this.parent)
{
for(var x2=0;x2<this.parent._f370.length;x2++)
{
if(this.parent._f370[x2]._f371()==this._f90&&
this.parent._f370[x2]._f357()==this._f91)
{
this.parent._f370[x2].setVisible(x1);
this.visible=x1;
return;
}
}
}
else
 this.visible=x1;
}
MVMapTileLayer.prototype.isVisible=function()
{
return this.visible;
}
MVMapTileLayer.prototype.setVisibleZoomLevelRange=function(x3,x4)
{
this.minVisibleLevel=x3;
this.maxVisibleLevel=x4;
}
MVMapTileLayer.prototype._f357=function()
{
return this._f91;
}
MVBaseMap=MVMapTileLayer;
function MVCustomMapTileLayer(x0,x1)
{
var x2=x0.dataSource?x0.dataSource+"."+x0.mapTileLayer:x0.mapTileLayer;
MVMapView.addMapTileLayerDefinition(x0);
this._f63=MVMapTileLayer;
this._f63(x2);
this.tileURLProvider=x1;
}
MVCustomMapTileLayer.prototype=new MVMapTileLayer;
MVCustomMapTileLayer.prototype.getType=function()
{
return "MVCustomMapTileLayer";
}
function _f372(x0,x1)
{
this.basemap=x1;
this.mapConfig=x1.config;
this.visible=true;
this._f373;
this._f374;
this._f90="";
if(x1._f90)
{
this._f90=x1._f90;
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
this.parent=x0;
this._f91=x1._f91;
this._f369=this.parent.msi._f354(this._f91);
this._f368=x1._f368;
this._f375;
this._f376;
this._f323;
this._f322;
this._f377;
this._f378;
this.tileWidth;
this.tileHeight;
this._f379=true;
this._f380=[];
this._f381=0;
this._f382=0;
this._f383;
this._f384;
this._f185;
this._f188;
this._f385=null;
this._f386=document.createElement("div");
this._f386.style.position="absolute";
this._f386.style.zIndex=99;
this.parent.div.appendChild(this._f386);
this._f387=x0._f388.src;
this.visible=x1.isVisible();
this.minVisibleLevel=x1.minVisibleLevel;
this.maxVisibleLevel=x1.maxVisibleLevel;
}
_f372.prototype._f371=function()
{
return this._f90;
}
_f372.prototype._f357=function()
{
return this._f91;
}
_f372.prototype._f389=function()
{
return this._f386;
}
_f372.prototype.setVisible=function(x0)
{
this.visible=x0;
if(!this.visible)
this._f386.style.visibility="hidden";
else
 {
this._f386.style.visibility="visible";
if(this.parent._f148)
this._f390(this.parent._f53(),this.parent._f55(),this.parent._f184,this.parent._f187);
}
}
_f372.prototype.isVisible=function()
{
return this.visible;
}
_f372.prototype._f391=function(x1,x2)
{
if(x1<0||x1>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f385._f392||
x2<0||x2>=(this.mapConfig.coordSys.maxY-this.mapConfig.coordSys.minY)/this._f385._f393)
return this._f387;
var x3=this._f385._f395;
if(this.basemap.tileURLProvider)
{
var x4=this.basemap.tileURLProvider(
this.mapConfig.coordSys.minX+x1*this._f385._f392,
this.mapConfig.coordSys.minY+x2*this._f385._f393,
this._f385._f392,this._f385._f393,x3);
if(!x4)
return this._f387;
else
 return x4;
}
else
 return String(this._f90+"?request=gettile&format="+this._f369+"&zoomlevel="+x3+"&mapcache="+this._f91+"&mx="+x1+"&my="+x2);
}
_f372.prototype._f390=function(x5,x6,x7,x8)
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f394)
{
this._f386.style.visibility="hidden";
return ;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f394)
{
this._f386.style.visibility="hidden";
return ;
}
this.tileWidth=this.mapConfig.zoomLevels[this.parent._f394].tileImageWidth;
this.tileHeight=this.mapConfig.zoomLevels[this.parent._f394].tileImageHeight;
this._f375=x7;this._f376=x8;
this._f373=Math.max(this.parent._f396,this.tileWidth*1);
this._f374=Math.max(this.parent._f397,this.tileHeight*1);
this._f383=x5;this._f384=x6;
this._f185=x7;this._f188=x8;
this._f377=Math.ceil((x5+this._f373*2)/this.tileWidth);
this._f378=Math.ceil((x6+this._f374*2)/this.tileHeight);
this._f381=0;this._f382=0;
this.origParLeft=this.parent._f247;this.origParTop=this.parent._f248;
this._f398();
var x9=Math.floor(this._f377/2);
var x10=Math.floor(this._f378/2);
this._f385=null;
this._f385=new _f399(this.mapConfig,x7,x8,this.parent._f394);
this.parent._f50=this.tileWidth/this._f385._f392;this.parent._f51=this.tileHeight/this._f385._f393;var x11=this._f383/2.0-(x7-this._f385.minX)*this.parent._f50;
var x12=this._f384/2.0+(x8-this._f385.minY)*this.parent._f51-this.tileHeight;
while(true)
{
var x13=x11-x9*this.tileWidth;
if(x13>0)
{
x9++;
continue;
}
var x14=x12-x10*this.tileHeight;
if(x14>0)
{
x10++;
continue;
}
var x15=x11+(this._f377-x9)*this.tileWidth-this._f383;
if(x15<0)
{
x9--;
continue;
}
var x16=x12+(this._f378-x10)*this.tileHeight-this._f384;
if(x16<0)
{
x10--;
continue;
}
var x17=x15+x13,x18=x16+x14;
if(x17>this.tileWidth)
{
x9++
continue;
}
else if(x17<(-1)*this.tileWidth)
{
x9--;
continue;
}
if(x18>this.tileHeight)
{
x10++;
continue;
}
if(x18<(-1)*this.tileHeight)
{
x10--;
continue;
}
break;
}
this._f323=x11-x9*this.tileWidth-this.parent._f247;
this._f322=x12-x10*this.tileHeight-this.parent._f248;
MVUtil._f178(this._f386,this._f323,this._f322);
this._f400(x9,x10,
this.tileWidth,this.tileHeight,
x9*this.tileWidth,x10*this.tileHeight);
this._f385._f401(-1,1);
var x19=Math.max(x9,this._f377-x9);
var x20=Math.max(x10,this._f378-x10);
for(_f48=1;_f48<=Math.max(x19,x20);_f48++)
{
for(xx=x9-_f48,yy=x10-_f48;
xx<=x9+_f48;xx++)
{
if(!(xx<0||xx>=this._f377||yy<0||yy>=this._f378))
{
this._f400(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f385._f401(1,0);
}
this._f385._f401(-(_f48*2+1),-1);
for(xx=x9-_f48,yy=x10-_f48+1;
yy<=x10+_f48-1;yy++)
{
if(!(xx<0||xx>=this._f377||yy<0||yy>=this._f378))
{
this._f400(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f385._f401(0,-1);
}
for(xx=x9-_f48,yy=x10+_f48;
xx<=x9+_f48;xx++)
{
if(!(xx<0||xx>=this._f377||yy<0||yy>=this._f378))
{
this._f400(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f385._f401(1,0);
}
this._f385._f401(-1,1);
for(xx=x9+_f48,yy=x10+_f48-1;
yy>=x10-_f48+1;yy--)
{
if(!(xx<0||xx>=this._f377||yy<0||yy>=this._f378))
{
this._f400(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f385._f401(0,1);
}
this._f385._f401(-(_f48*2+1),1);
}
this._f385._f401(_f48,-(_f48));
this._f385._f401(-x9+Math.floor(this._f377/2),
x10-Math.floor(this._f378/2));
}
_f372.prototype._f402=function()
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f394)
{
this._f386.style.visibility="hidden";
return;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f394)
{
this._f386.style.visibility="hidden";
return;
}
var x21=this.parent._f247+this._f381+this._f323;
var x22=this.parent._f248+this._f382+this._f322;
var x23=0,x24=0;
while(true)
{
var x25=x21-x23*this.tileWidth;
if(x25>0)
{
x23++;
continue;
}
var x26=x22-x24*this.tileHeight;
if(x26>0)
{
x24++;
continue;
}
var x27=x21+(this._f377-x23)*this.tileWidth-this._f383;
if(x27<0)
{
x23--;
continue;
}
var x28=x22+(this._f378-x24)*this.tileHeight-this._f384;
if(x28<0)
{
x24--;
continue;
}
var x29=x27+x25,x30=x28+x26;
if(x29>this.tileWidth)
{
x23++
continue;
}
else if(x29<(-1)*this.tileWidth)
{
x23--;
continue;
}
if(x30>this.tileHeight)
{
x24++;
continue;
}
if(x30<(-1)*this.tileHeight)
{
x24--;
continue;
}
break;
}
if(x23==0&&x24==0)
return ;
var x31=Math.floor(this._f377/2);
var x32=Math.floor(this._f378/2);
var x33=this._f385._f403-x31;
var x34=this._f385._f404+x32;
var x35;
if(x23!=0)
{
for(x35=0;(x23>0?x35<x23:x35>x23);(x23>0?x35++:x35--))
{
var x36;
var x37;
if(x23>0)
x37=this._f381-(x35+1)*this.tileWidth;
else
 x37=this._f381+(this._f377-x35)*this.tileWidth;
if(x23>0)
{
x36=this._f380[this._f380.length-1];
this._f380.pop();
for(var x38=0;x38<x36.length;x38++)
{
if(_f15._f84()&&this._f368)
{
x36[x38].style.filter="";
}
else
 {
x36[x38].src=this._f387;
}
x36[x38].style.left=MVUtil._f246(x37);
if(x24==0||
(x24>0&&x38<x36.length-x24)||
(x24<0&&x38>=-x24))
{
if(_f15._f84()&&this._f368)
{
x36[x38].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this._f391(x33-x35-1,x34-x38)+
"', sizingMethod='image');";
}
else
 {
x36[x38].src=this._f391(x33-x35-1,x34-x38);
}
}}
this._f380.unshift(x36);
}
else
 {
x36=this._f380[0];
this._f380.shift();
for(var x38=0;x38<x36.length;x38++)
{
if(_f15._f84()&&this._f368)
{
x36[x38].style.filter="";
}
else
 {
x36[x38].src=this._f387;
}
x36[x38].style.left=MVUtil._f246(x37);
if(x24==0||
(x24>0&&x38<x36.length-x24)||
(x24<0&&x38>=-x24))
if(_f15._f84()&&this._f368)
{
x36[x38].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f391(x33+this._f377-x35,x34-x38)+"', sizingMethod='image');";
}
else
 {
x36[x38].src=this._f391(x33+this._f377-x35,x34-x38);
}
}
this._f380.push(x36);
}
}
}
if(x24!=0)
{
var x39;
for(x39=0;(x24>0?x39<x24:x39>x24);(x24>0?x39++:x39--))
{
var x40;
if(x24>0)
x40=this._f382-(x39+1)*this.tileHeight;
else
 x40=this._f382+(this._f378-x39)*this.tileHeight;
for(x35=0;x35<this._f380.length;x35++)
{
var x36=this._f380[x35];
var x41;
if(x24>0)
{
x41=x36[x36.length-1];
if(_f15._f84()&&this._f368)
{
x41.style.filter="";
}
else
 {
x41.src=this._f387;
}
x36.pop();
x36.unshift(x41);
x41.style.top=MVUtil._f246(x40);
if(_f15._f84()&&this._f368)
{
x41.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f391(x33-x23+x35,x34+x39+1)+"', sizingMethod='image');";
}
else
 {
x41.src=this._f391(x33-x23+x35,x34+x39+1);
}
}
else
 {
x41=x36[0];
if(_f15._f84()&&this._f368)
{
x41.style.filter="";
}
else
 {
x41.src=this._f387;
}
x36.shift();
x36.push(x41);
x41.style.top=MVUtil._f246(x40);
if(_f15._f84()&&this._f368)
{
x41.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
this._f391(x33-x23+x35,x34-this._f378+x39)+"', sizingMethod='image');";
}
else
 {
x41.src=this._f391(x33-x23+x35,x34-this._f378+x39);
}
}
}
}
}
this._f381=this._f381-x23*this.tileWidth;
this._f382=this._f382-x24*this.tileHeight;
this._f385._f401(-x23,x24);
}
_f372.prototype._f400=function(x42,x43,x44,x45,x46,x47)
{
var x48=this._f391(this._f385._f403,this._f385._f404);
var x49=this._f380[x42][x43];
if(x49==null)
{
x49=(_f15._f84()&&this._f368)?
document.createElement('div'):document.createElement('img');
this._f386.appendChild(x49);
this._f380[x42][x43]=x49;
}
if(_f15._f81=="IF"&&!this._f368)
{
x49.galleryImg="no"}
MVUtil._f405(x49);
x49.style.position="absolute";
x49.style.left=MVUtil._f246(x46);
x49.style.top=MVUtil._f246(x47);
x49.style.width=MVUtil._f246(x44);
x49.style.height=MVUtil._f246(x45);
if(_f15._f84()&&this._f368)
{
x49.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x48+"', sizingMethod='image');";
}
else
 {
x49.src=x48;
}
return x49;
}
_f372.prototype._f398=function()
{
while(this._f380.length>this._f377)
{
var x50=this._f380.pop();
while(x50.length>0)
{
if(_f15._f84()&&this._f368)
{
MVUtil._f220(x50.pop());
}
else
 {
var x51=x50.pop();
if(x51!=null)
{
this._f386.removeChild(x51);
delete x51;
}
}}}
for(var x52=0;x52<this._f377;x52++)
{
if(x52>=this._f380.length)
{
var x53=new Array();
this._f380.push(x53);
for(var x54=0;x54<this._f378;x54++)
{
var x55;
if(_f15._f84())
x55=MVUtil._f400(null,this._f368);
else
 x55=MVUtil._f400(this._f387,this._f368);
this._f386.appendChild(x55);
x53.push(x55);
}
}
else
 {
var x50=this._f380[x52];
while(x50.length>this._f378)
{
if(_f15._f84()&&this._f368)
{
MVUtil._f220(x50.pop());
}
else
 {
var x51=x50.pop();
if(x51!=null)
{
this._f386.removeChild(x51);
delete x51;
}
}}var x56;
for(x56=0;x56<x50.length;x56++)
{
if(x50[x56]!=null)
{
if(_f15._f84()&&this._f368)
{
x50[x56].style.filter="";
}
else
 {
x50[x56].src=this._f387;
}
}
else
 {
var x55=MVUtil._f400(this._f387,this._f368);
this._f386.appendChild(x55);
x50.push(x55);
}
}
while(x50.length<this._f378)
{
var x55;
if(_f15._f84())
x55=MVUtil._f400(null,this._f368);
else
 x55=MVUtil._f400(this._f387,this._f368);
this._f386.appendChild(x55);
x50.push(x55);
}
}
}
}
_f372.prototype.destroy=function()
{
while(this._f380.length>0)
{
var x57=this._f380.pop();
while(x57.length>0)
{
if(_f15._f84()&&this._f368)
{
MVUtil._f220(x57.pop());
}
else
 {
var x58=x57.pop();
if(x58!=null)
{
this._f386.removeChild(x58);
delete x58;
}
}}}
this._f386.parentNode.removeChild(this._f386);
}
_f372.prototype.getXMLForPrint=function()
{
var x59="<map_cache_theme map_cache_name=\""+this._f91+"\" snap_to_cache_scale=\"true\" ";
if(this._f90!="")
{
var x60=this._f90.substring(0,this._f90.lastIndexOf("/"));
if(x60.indexOf(this.parent._f406)<0)
{
x60+="/";
x59+="mapviewer_url=\""+x60+"\"";
}
}
return x59+"/>";
}
function MVThemeBasedFOI(x0,x1,x2)
{
this.name=x0;
this.parent="";
this._f140=x2;
this._f679=-1;
this._f550=100;
this._f156=true;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f195=null;
this._f680=null;
this._f152=null;
this._f153=null;
this._f154=null;
this._f155=null;
this._f681=null;
this._f267=null;
this._f553=2;
this._f554=2;
this._f146=true;
this._f262=true;
this._f147=true;
this._f682=null;
this._f683=null;
this._f684=null;
this._f268=null;
this._f584=null;
this._f569=-1;
this._f566=-1;
this._f558=false;
this._f559=false;
this._f585=new Array();
this._f618=null;
this._f568=true;
this.visible=true;
this._f159=true;
this.cursorStyle="pointer";
this._f685=false;
this._f686=null;
this._f687=true;
this.renderLabels=false;
this._f688=false;
this._f689=true;
this._f269=true;
this._f270=null;
this._f164=null;
this._f690=false;
if(x1!=null)
{
this._f267=x1;
if(x1.indexOf("</jdbc_query>")>=0)
this._f690=true;
}
this._f691=null;
this._f692=null;
this._f183=0;
this._f186=0;
this._f693=false;
this._f694=0;
this._f695=new Array();
this._f696=new Object();
this._f697=new Array();
this._f698=new Object();
this._f699=null;
this._f700=null;
this.queryParameterArray=null;
}
MVThemeBasedFOI.prototype.setLayoutCustomizer=function(x0)
{
this._f681=x0;
}
MVThemeBasedFOI.prototype.enableHighlight=function(x1)
{
if(!x1)
this.deHighlight();
this._f693=x1;
}
MVThemeBasedFOI.prototype.setHighlightMode=function(x2)
{
switch(x2)
{
case "single":
this._f694=-1;
break;
case "multiple":
this._f694=0;
break;
default:
MVi18n.processLocale("Parameter error, and it should be either \"single\" or \"multiple\". Error occurs at MVThemeBasedFOI.setHighlightMode(...)");
}
}
MVThemeBasedFOI.prototype.setHighlightStyle=function(x3)
{
var x4=false;
if(x3!=null)
{
if(typeof(x3)=="object"&&x3.getXMLString!=null)
this._f699=encodeURIComponent(x3.getXMLString());
else if(typeof(x3)=="string")
this._f699=encodeURIComponent(x3);
else
 x4=true;
}
else
 x4=true;
if(x4)
MVi18n.processLocale("Parameter error, and it should be a string or style object. Error occurs at MVThemeBasedFOI.setHighlightStyle(...)");
}
MVThemeBasedFOI.prototype.setHighlightMarkerImage=function(x5,x6,x7)
{
this._f700=null;
var x8=true;
if(!x5||typeof(x5)!="string")
x8=false;
if(x8&&(!x6||isNaN(x6)))
x8=false;
if(x8&&(!x7||isNaN(x7)))
x8=false;
if(x8)
this._f700=new _f701(x5,x6,x7);
else
 MVi18n.processLocale("Parameter error. Error occurs at MVThemeBasedFOI.setHighlightMarkerImage(...)");
}
MVThemeBasedFOI.prototype.highlight=function(x9)
{
if(!this._f693)
{
MVi18n.processLocale("Highlighting feature is disabled for this theme based FOI. Error occurs at MVThemeBasedFOI.highlight(...)");
return;
}
var x10=this._f684;
var x11=null;
var x12=new Object();
var x13=null;
var x14=0;
if(x9==null)
{
x9=new Array();
if(x10!=null)
{
x11=x10.foiarray;
var x15=x11.length;
for(var x16=0;x16<x15;++x16)
{
x13=x11[x16];
if(x13!=null&&x13.id!=null)
{
x12[x13.id]=x13;
x9.push(x13.id);
}
}
}
x14=x9.length;
}
else if(typeof(x9)!="object"||(x14=x9.length)==null)
{
MVi18n.processLocale("Parameter error, and it should be an array object or null. Error occurs at MVThemeBasedFOI.highlight(...)");
return;
}
else
 {
if(x10!=null)
{
x11=x10.foiarray;
var x15=x11.length;
for(var x16=0;x16<x15;++x16)
{
x13=x11[x16];
if(x13!=null&&x13.id!=null)
x12[x13.id]=x13;
}
}
}
if(x14<1)
return;
var x17=this._f695;
var x18=this._f696;
var x19=this._f697;
var x20=this._f698;
var x21=null;
for(var x16=0;x16<x14;++x16)
{
x21=x9[x16];
if(x21==null||x18[x21]!=null)
continue;
x13=x12[x21];
x18[x21]=x17.length;
x17.push(x13);
if(x13!=null)
{
var x22=x13.imgurl4Hilite;
var x23=x13.highlightImageWidth;
var x24=x13.highlightImageHeight;
var x25=x13.pngType4Hilite;
var x26=x13.hilitePngType4Hilite;
var x27=(x13.recalSizePos4Hilite);
var x28=x20[x21];
var x29=null;
if(x28!=null)
x29=x19[x28];
if(x29!=null&&x22)
{
if(_f15._f81=="IF"&&x25)
{
if(x26)
{
x29.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x22+"', sizingMethod='image');";
x29.src=x22;
x29.innerHTML="";
}
else
 {
x29.style.filter=null;
x29.src=null;
x29.innerHTML="<img src=\""+encodeURIComponent(x22)+"\"/>";
}
}
else
 x29.src=x22;
if(x27&&(x13.gtype%10==1))
{
var x30=MVUtil.getNumber(x29.style.left);
var x31=MVUtil.getNumber(x29.style.top);
x30+=(x13.width-x23)/2;
x31+=(x13.height-x24)/2;
MVUtil._f178(x29,x30,x31);
x29.style.width=MVUtil._f246(x23);
x29.style.height=MVUtil._f246(x24);
}
}
}
}
}
MVThemeBasedFOI.prototype.deHighlight=function(x32)
{
if(!this._f693)
{
MVi18n.processLocale("Highlighting feature is disabled for this theme based FOI. Error occurs at MVThemeBasedFOI.deHighlight(...)");
return;
}
var x33=this._f695;
var x34=this._f696;
var x35=this._f697;
var x36=this._f698;
var x37=x33.length;
if(x37<1)
return;
var x38=null;
if(x32!=null&&(typeof(x32)!="object"||(x38=x32.length)==null))
{
MVi18n.processLocale("Parameter error, and it should be an array object or null. Error occurs at MVThemeBasedFOI.dehighlight(...)");
return;
}
if(x32!=null&&x38<1)
return;
var x39=null;
var x40=null;
var x41=null;
var x42=null;
if(x32==null){
for(var x43=0;x43<x37;++x43)
{
x39=x33[x43];
if(x39==null||x39.imgurl==null)
continue;
x40=x39.id;
if(x40==null)
continue;
x42=x36[x40];
if(x42==null)
continue;
x41=x35[x42];
if(x41==null)
continue;
var x44=x39.highlightImageWidth;
var x45=x39.highlightImageHeight;
var x46=x39.pngType4Hilite;
var x47=x39.normalPngType4Hilite;
var x48=x39.recalSizePos4Hilite;
if(_f15._f81=="IF"&&x46)
{
if(x47)
{
x41.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x39.imgurl+"', sizingMethod='image');";
x41.src=x39.imgurl;
x41.innerHTML="";
}
else
 {
x41.style.filter=null;
x41.src=null;
x41.innerHTML="<img src=\""+encodeURIComponent(x39.imgurl)+"\"/>";
}
}
else
 x41.src=x39.imgurl;
if(x48&&(x39.gtype%10==1))
{
var x49=MVUtil.getNumber(x41.style.left);
var x50=MVUtil.getNumber(x41.style.top);
x49+=(x44-x39.width)/2;
x50+=(x45-x39.height)/2;
MVUtil._f178(x41,x49,x50);
x41.style.width=MVUtil._f246(x39.width);
x41.style.height=MVUtil._f246(x39.height);
}
}
this._f695=new Array();
this._f696=new Object();
}
else
 {
for(var x43=0;x43<x38;++x43)
{
x40=x32[x43];
if(x40==null||x34[x40]==null)
continue;
x42=x34[x40];
if(x33[x42]==null)
continue;
else
 {
x39=x33[x42];
x33[x42]=null;
x34[x40]=null;
}
if(!(x39.imgurl))
continue;
x42=x36[x40];
if(x42==null)
continue;
x41=x35[x42];
if(x41==null)
continue;
var x44=x39.highlightImageWidth;
var x45=x39.highlightImageHeight;
var x46=x39.pngType4Hilite;
var x47=x39.normalPngType4Hilite;
var x48=x39.recalSizePos4Hilite;
if(_f15._f81=="IF"&&x47)
{
if(x47)
{
x41.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x39.imgurl+"', sizingMethod='image');";
x41.src=x39.imgurl;
x41.innerHTML="";
}
else
 {
x41.style.filter=null;
x41.src=null;
x41.innerHTML="<img src=\""+encodeURIComponent(x39.imgurl)+"\"/>";
}
}
else
 x41.src=x39.imgurl;
if(x48&&(x39.gtype%10==1))
{
var x49=MVUtil.getNumber(x41.style.left);
var x50=MVUtil.getNumber(x41.style.top);
x49+=(x44-x39.width)/2;
x50+=(x45-x39.height)/2;
MVUtil._f178(x41,x49,x50);
x41.style.width=MVUtil._f246(x39.width);
x41.style.height=MVUtil._f246(x39.height);
}
}
}
}
MVThemeBasedFOI.prototype.getHighlightedFOIData=function()
{
var x51=new Array();
if(this._f695!=null)
{
for(var x52=0;x52<this._f695.length;x52++)
if(this._f695[x52]!=null)
x51.push(this._f695[x52]);
}
return x51;
}
MVThemeBasedFOI.prototype.setQueryParameters=function()
{
if(arguments.length<=0)
return ;
this._f682="&paramnum="+arguments.length;
this.queryParameterArray=new Array(arguments.length);
for(var x53=0;x53<arguments.length;x53++)
{
if(typeof arguments[x53]=="object")
{
this._f682+=this.setObjectQueryParameters(arguments[x53],x53+1);
if(arguments[x53].gtype!=undefined)
this.queryParameterArray[x53]={type:"geometry",value:arguments[x53]};
else
 {
var x54=arguments[x53].elementType=="sarray"?"String":"double";
this.queryParameterArray[x53]={elemtype:x54,value:arguments[x53].array,type:arguments[x53].sqlType};
}
}
else
 {
this._f682+="&param"+(x53+1)+"="+encodeURIComponent(arguments[x53]);
this.queryParameterArray[x53]={value:arguments[x53]};
}
}
return this._f682;
}
MVThemeBasedFOI.prototype.setObjectQueryParameters=function(x55,x56)
{
if(!x55)
return "";
if(x55.gtype!=undefined)
return "&param"+x56+"="+encodeURI(x55)+"&paramtype"+x56+"=geometry";
else
 {
var x57="";
if(x55.array.substring!=undefined)
x57=x55.array;
else
 {
this.escapeQuote(x55.array);
for(var x56=0;x56<x55.array.length;x56++)
{
if(x56>0)
x57+=",";
x57+="\""+x55.array[x56]+"\"";
}
}
return "&param"+x56+"="+encodeURIComponent(x57)+"&paramtype"+x56+"="+x55.elementType+
"&sqltype"+x56+"="+x55.sqlType;
}
}
MVThemeBasedFOI.prototype.getQueryParameters=function()
{
return this._f682;
}
MVThemeBasedFOI.prototype.setMinVisibleZoomLevel=function(x58)
{
this._f679=x58;
}
MVThemeBasedFOI.prototype.setMaxVisibleZoomLevel=function(x59)
{
this._f550=x59;
}
MVThemeBasedFOI.prototype.setBringToTopOnMouseOver=function(x60)
{
this._f156=x60;
}
MVThemeBasedFOI.prototype.setMaxWholeImageLevel=function(x61)
{
this._f569=x61;
}
MVThemeBasedFOI.prototype.setMinClickableZoomLevel=function(x62)
{
this._f566=x62;
}
MVThemeBasedFOI.prototype.enableInfoTip=function(x63)
{
this._f146=x63;
}
MVThemeBasedFOI.prototype.enableInfoWindow=function(x64)
{
this._f262=x64;
}
MVThemeBasedFOI.prototype.enableInfoWindowForMouseOver=function(x65)
{
this._f688=x65;
}
MVThemeBasedFOI.prototype.enableInfoWindow=function(x66)
{
this._f262=x66;
}
MVThemeBasedFOI.prototype.setClickable=function(x67)
{
this._f147=x67;
if(this._f692)
{
if(this._f692._f564)
{
if(x67&&this.isVisible())
this._f692._f564.style.visibility="visible";
else if(!x67)
this._f692._f564.style.visibility="hidden";
}
}
}
MVThemeBasedFOI.prototype.addEventListener=function(x68,x69)
{
this.setEventListener(x68,x69);
}
MVThemeBasedFOI.prototype.setEventListener=function(x70,x71)
{
if(x70=="before_refresh")
{
this._f195=x71;
}
else if(x70=="after_refresh")
{
this._f680=x71;
}
else if(x70=="mouse_click")
{
this._f152=x71;
}
else if(x70=="mouse_right_click")
{
this._f153=x71;
}
else if(x70=="mouse_over")
{
this._f154=x71;
}
else if(x70=="mouse_out")
{
this._f155=x71;
}
}
MVThemeBasedFOI.prototype.setQueryWindowMultiplier=function(x72)
{
this._f553=x72;
this._f554=x72;
}
MVThemeBasedFOI.prototype.getQueryWindow=function()
{
var x73=MVSdoGeometry.createRectangle(this.minX,this.minY,this.maxX,this.maxY,this.parent.srid);
return x73;
}
MVThemeBasedFOI.prototype.getLayerMBR=MVThemeBasedFOI.prototype.getQueryWindow;
MVThemeBasedFOI.prototype.getMBR=function()
{
if(this._f691)
return MVSdoGeometry.createRectangle(this._f691[0],this._f691[1],this._f691[2],this._f691[3],this.parent.srid);
else
 return null;
}
MVThemeBasedFOI.prototype.setMarkerImage=function(x74,x75,x76)
{
this._f683=new _f701(x74,x75,x76);
}
MVThemeBasedFOI.prototype.getThemeName=function()
{
return this._f267;
}
function _f701(x0,x1,x2)
{
this._f141=x0;
this.width=x1;
this.height=x2;
}
MVThemeBasedFOI.prototype.getFOIMarker=function()
{
return this._f683;
}
MVThemeBasedFOI.prototype.setVisible=function(x77)
{
this.visible=x77;
if(this.parent._f211)
this.parent._f211._f257();
if(this._f692)
this._f692.setVisible(this.parent,x77);
}
MVThemeBasedFOI.prototype.setInfoWindowStyle=function(x78,x79)
{
this._f268=x78;
this._f164=x79;
}
MVThemeBasedFOI.prototype.isVisible=function()
{
if(this._f692)
{
return this._f692.isVisible();
}
else
 return this.visible;
}
MVThemeBasedFOI.prototype.refresh=function(x80)
{
this.parent._f234();
if(this._f692)
{
var x81=this._f692;
var x82=this.parent._f551(x81);
if(x80)
x80=true;
else
 x80=false;
x81._f515(this.parent,x82[0],x82[1],x82[2],x82[3],true,x80,!x80);
}
}
MVThemeBasedFOI.prototype.getFOIData=function()
{
if(this._f684==null||this._f684.foiarray==null)
{
return null;
}
else
 return this._f684.foiarray;
}
MVThemeBasedFOI.prototype.setNSDP=function(x83)
{
this._f584=x83;
}
MVThemeBasedFOI.prototype.setBoundingTheme=function(x84,x85)
{
this._f558=x84;
if(x85)
this._f559=true;
else
 this._f559=false;
}
MVThemeBasedFOI.prototype.zoomToTheme=function()
{
this.refresh(true);
}
MVThemeBasedFOI.prototype.centerToTheme=function()
{
this.parent._f234();
if(this._f692)
{
var x86=this._f692;
var x87=this.parent._f551(x86);
x86._f515(this.parent,x87[0],x87[1],x87[2],x87[3],true,true,false,false,true);
}
}
MVThemeBasedFOI.prototype.addStyle=function(x88)
{
var x89=this._f585.concat(x88);
this._f585=null;
this._f585=x89;
}
MVThemeBasedFOI.prototype.deleteStyle=function(x90)
{
var x91=-1;
for(var x92=0;x92<this._f585.length;x92++)
{
var x93=this._f585[x92];
if(x93!=null&&x93==x90)
{
x91=x92;
break;
}
}
if(x91<0)
return;
var x94=0;
var x95=new Array(this._f585.length-1);
for(var x92=0;x92<this._f585.length;x92++)
{
if(x92!=x91)
{
x95[x94]=this._f585[x92];
x94++;
}
}
this._f585=null;
this._f585=x95;
}
MVThemeBasedFOI.prototype.deleteAllStyles=function()
{
for(var x96=0;x96<this._f585.length;x96++)
this._f585[x96]=null;
this._f585=new Array();
}
MVThemeBasedFOI.prototype.setRenderingStyle=function(x97)
{
this._f618=x97;
}
MVThemeBasedFOI.prototype.setAutoRefresh=function(x98)
{
this._f568=x98;
}
MVThemeBasedFOI.prototype.enableEventPropagation=function(x99)
{
this._f159=x99;
}
MVThemeBasedFOI.prototype.setMouseCursorStyle=function(x100)
{
this.cursorStyle=x100;
if(this._f692)
{
MVUtil._f175(this._f692.div,x100);
if(this._f684&&this._f684.foiarray&&this._f692._f703)
{
for(var x101=0;x101<this._f684.foiarray.length;x101++)
{
if(this._f684.foiarray[x101]&&this._f684.foiarray[x101].areaNode)
MVUtil._f175(this._f684.foiarray[x101].areaNode,x100);
}
}
}
}
MVThemeBasedFOI.prototype.setHighlightOnly=function(x102)
{
this._f685=x102;
}
MVThemeBasedFOI.prototype.setFilteringGeom=function(x103)
{
this._f686=x103;
}
MVThemeBasedFOI.prototype.getFilteringGeom=function()
{
return this._f686;
}
MVThemeBasedFOI.prototype.enableImageRendering=function(x104)
{
this._f687=x104;
}
MVThemeBasedFOI.prototype.enableLabels=function(x105)
{
this.renderLabels=x105;
}
MVThemeBasedFOI.prototype.enableImageCaching=function(x106)
{
this._f689=x106;
}
MVThemeBasedFOI.prototype.getLayerName=function()
{
return this.name;
}
MVThemeBasedFOI.prototype.setInfoWindowTitle=function(x107)
{
this._f270=x107;
}
MVThemeBasedFOI.prototype.setScreenOffset=function(x108,x109)
{
this._f183=x108;
this._f186=x109;
}
MVThemeBasedFOI.prototype.setNameAsInfoWindowTitle=function(x110)
{
this._f269=x110;
}
MVThemeBasedFOI.prototype.escapeQuote=function(x111)
{
if(x111&&x111.length>0&&x111.indexOf==undefined)
{
for(var x112=0;x112<x111.length;x112++)
{
if(x111[x112]&&x111[x112].length!=undefined)
x111[x112]=MVUtil._f179(x111[x112],"\"","\\\"");
}
}
}
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 _f562(x0,x1)
{
this.parent=x0;
this._f572=false;
if(!x1._f140)
{
if(this.parent._f406)
{
if(MVUtil._f241(this.parent._f406,'/'))
x1._f140=this.parent._f406+'foi';
else
 x1._f140=this.parent._f406+'/foi';
}
else
 MVi18n.processLocale("MAPVIEWER-5504");}
if(MVMapView._f97&&MVUtil._f95(x1._f140)!=MVUtil._f95(this.parent._f130))
x1._f140=_f15._f134()+"?rtarget="+x1._f140;
x1._f692=this;
this._f552=x1;
this._f704=0;
this._f705=0;
this.width=0;
this.height=0;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f706=0;
this._f707=0;
this._f708=0;
this._f709=0;
this._f567=true;
this._f394=0;
this._f710=true;
this._f711=false;
this._f192=0;
this._f193=0;
this._f712=0;
this._f713=0;
this._f185=0;
this._f188=0;
this._f573=false;
this._f565=1;this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.left=MVUtil._f246(0);
this.div.style.top=MVUtil._f246(0);
this._f563=0;
if(!x1.visible)
this.div.style.visibility="hidden";
MVUtil._f175(this.div,x1.cursorStyle);
this.parent.div.appendChild(this.div);
this._f564=null;
this._f714=document.createElement("map");
}
_f562.prototype._f251=function()
{
if(this._f552._f690)
return this._f715(this._f552._f267);
else if(this._f552._f682==null)
return "<theme name=\""+MVUtil._f252(this._f552._f267)+
"\" render_labels=\"false\" datasource=\""+
MVUtil._f716(this._f552._f267)+"\"/>";
else
 {
var x0="<theme name=\""+MVUtil._f252(this._f552._f267)+
"\" render_labels=\"false\" datasource=\""+
MVUtil._f716(this._f552._f267)+"\">\n"+
"  <binding_parameters>\n";
for(var x1=0;x1<this._f552.queryParameterArray.length;x1++)
{
var x2=this._f552.queryParameterArray[x1];
x0+="<parameter ";
if(x2.type==undefined)
x0+="value=\""+x2.value+"\">";
else
 {
x0+="type=\""+x2.type+"\" ";
if(x2.type=="geometry")
{
x0+=">"+x2.value.toGML();
}
else {
x0+="elemtype=\""+x2.elemtype+"\" ";
if(!x2.value)
x0+=">";
else
 {
if(x2.value.substring!=undefined)
{
var x3=x2.value;
if(x2.elemtype=="String")
{
var x4=x2.value.split(",");
finalvalue="";
for(var x5=0;x5<x4.length;x5++)
{
if(x5>0)
finalvalue+=",";
var x6=x4[x5].indexOf("\"");
var x7=x4[x5].lastIndexOf("\"");
finalvalue+=x4[x5].substring(x6+1,x7);
}
x3=finalvalue;
}
x0+="value=\""+MVUtil._f179(x3,"\"","&quot;")+"\">";
}
else
 {
x0+=">";
for(var x5=0;x5<x2.value.length;x5++)
x0+="<elem>"+x2.value[x5]+"</elem>";
}
}
}
}
x0+="</parameter>";
}
x0+="  </binding_parameters>\n";
x0+="</theme>";
return x0;
}
}
_f562.prototype.setSize=function(x8,x9)
{
this.width=x8;
this.height=x9;
}
_f562.prototype._f557=function(x10,x11)
{
if(!this._f572)
{
if(this._f552._f553==1&&this._f552._f554==1)
{
this._f704=this.width;
this._f705=this.height;
}
else
 {
this._f704=x10;
this._f705=x11;
}
}
}
_f562.prototype._f194=function()
{
return this._f573;
}
_f562.prototype._f717=function()
{
return this.request;
}
_f562.prototype._f213=function()
{
return this.minX;
}
_f562.prototype._f214=function()
{
return this.minY;
}
_f562.prototype._f215=function()
{
return this.maxX;
}
_f562.prototype._f216=function()
{
return this.maxY;
}
_f562.prototype.isVisible=function()
{
if(this._f394<this._f552._f679||this._f394>this._f552._f550)
return false;
else
 return !(this.div.style.visibility=='hidden');
}
_f562.prototype._f217=function()
{
return this.div;
}
_f562.prototype.getThemeBasedFOI=function()
{
return this._f552;
}
_f562.prototype._f718=function()
{
return this._f712;
}
_f562.prototype._f719=function()
{
return this._f713;
}
_f562.prototype._f720=function(x12)
{
this._f712=x12;
}
_f562.prototype._f721=function(x13)
{
this._f713=x13;
}
_f562.prototype.setVisible=function(x14,x15)
{
if(x15)
{
if(!this.isVisible())
{
if(this._f711)
{
if((_f15._f81!="IF"&&this._f552.getFOIData()!=null&&
this._f552.getFOIData()[0].gtype%10!=1)||
this._f552._f569>=this._f394||
!this._f552._f687)
{
if(this._f552._f147&&this._f564)
this._f564.style.visibility="visible";
}
}
this.div.style.visibility="visible";
if(!this._f710)
{
MVUtil._f178(this.div,Math.ceil((this.minX-this.parent._f199)*this.parent._f50),
-Math.ceil((this.maxY-this.parent._f202)*this.parent._f51));
this._f515(this.parent,this.minX,this.minY,this.maxX,this.maxY,true);
}
}
}
else
 {
if(this._f711)
{
if((_f15._f81!="IF"&&this._f552.getFOIData()!=null&&
this._f552.getFOIData()[0].gtype%10!=1)||
this._f552._f569>=this._f394||
!this._f552._f687)
{
if(this._f564)
this._f564.style.visibility="hidden";
if(this.parent._f211._f212.length>0)
{
for(var x16=0;x16<this.parent._f464.childNodes.length;x16++)
{
if(this.parent._f211._f212[0].nid==this.parent._f464.childNodes[x16].id)
{
this.parent._f211.deleteInfoWindow(this.parent._f211._f212[0]);
break;
}
}
}
}
else if(this.parent._f211._f212.length>0)
{
for(var x17=0;x17<this.div.childNodes.length;x17++)
{
if(this.parent._f211._f212[0].nid==this.div.childNodes[x17].id)
{
this.parent._f211.deleteInfoWindow(this.parent._f211._f212[0]);
break;
}
}
}
}
this.div.style.visibility="hidden";
this._f573=false;
this.parent._f506();
}
}
_f562.prototype._f176=function()
{
if(this._f573)
return this._f192;
else
 return MVUtil._f176(this.div);
}
_f562.prototype._f177=function()
{
if(this.oading)
return this._f193;
else
 return MVUtil._f177(this.div);
}
_f562.prototype._f722=function(x18)
{
if(this._f573)
this._f192=x18;
}
_f562.prototype._f723=function(x19)
{
if(this._f573)
this._f193=x19;
}
_f562.prototype._f197=function()
{
return this.width;
}
_f562.prototype._f198=function()
{
return this.height;
}
_f562.prototype._f221=function()
{
this._f570();
while(this.div.childNodes.length>0)
{
var x20=this.div.childNodes[0];
this.div.removeChild(x20);
if(this.parent._f211._f212.length>0)
if(this.parent._f211._f212[0].nid==x20.id)
{
this.parent._f211.deleteInfoWindow(this.parent._f211._f212[0]);
}
MVUtil._f220(x20);
}
}
_f562.prototype._f570=function()
{
this.clearAllStarted=true;
while(this.div.childNodes.length>0)
{
var x21=this.div.childNodes[0];
while(x21.childNodes.length>0)
{
var x22=x21.childNodes[0];
MVUtil._f220(x22);
x21.removeChild(x22);
}
MVUtil._f220(x21);
this.div.removeChild(x21);
}
if(this._f565!=1)
{
this.clearTransImageLayer();
}
this.clearAllStarted=false;
}
_f562.prototype.clearTransImageLayer=function()
{
while(this._f714.childNodes.length>0)
{
MVUtil._f220(this._f714.childNodes[0]);
this._f714.removeChild(this._f714.childNodes[0]);
}
while(this._f564&&this._f564.childNodes.length>0)
{
while(this._f564.childNodes[0].childNodes.length>0)
{
MVUtil._f220(this._f564.childNodes[0].childNodes[0]);
this._f564.childNodes[0].removeChild(this._f564.childNodes[0].childNodes[0]);
}
MVUtil._f220(this._f564.childNodes[0]);
this._f564.removeChild(this._f564.childNodes[0]);
}
if(this._f564&&this._f564.parentNode)
{
MVUtil._f220(this._f564);
this._f564.parentNode.removeChild(this._f564);
this._f564=null;
}
}
_f562.prototype._f515=function(x23,x24,x25,x26,x27,x28,
x29,x30,x31,x32)
{
if(!x32)
x32=false;
if(!x31&&!x23._f148)
{
var x33=[x23,x24,x25,x26,x27,x28,x29,x30,x32];
var x34=this._f515;
var x35={obj:this,func:"refreshFOIs",params:x33};
x23._f486.push(x35);
return ;
}
this._f573=true;
if(!this._f572)
{
this._f552.minX=this.minX=x24;
this._f552.minY=this.minY=x25;
this._f552.maxX=this.maxX=x26;
this._f552.maxY=this.maxY=x27;
}
this._f192=Math.ceil((this.minX-this.parent._f199)*this.parent._f50);
this._f193=-Math.ceil((this.maxY-this.parent._f202)*this.parent._f51);
MVUtil._f178(this.div,this._f192,this._f193);
this._f185=this.parent._f184;
this._f188=this.parent._f187;
if(this._f552._f195)
{
this._f552._f195();
}
this._f567=x28;
this._f394=this.parent._f394;
if(!this._f552.visible||
!x29&&(this._f394<this._f552._f679||this._f394>this._f552._f550))
{
this._f710=false;
this._f572=false;
this._f570();
return;
}
this._f710=true;
if(this._f572)
{
this._f724();
return ;
}
this.adjustBBox(x29);
var x36="request=getfoi&version=1.0"+
"&theme="+encodeURIComponent(this._f552._f267)+"&bbox="+
this._f706+":"+this._f707+":"+
this._f708+":"+this._f709+
"&width="+this.adjustedRealWidth+"&height="+this.adjustedRealHeight;
if(this._f552._f699!=null)
x36+="&hilitestyle="+this._f552._f699;
if(this._f552._f685==true){
if(!this._f552._f686)
{
MVi18n.processLocale("MAPVIEWER-5514");
return;
}
this._f552.setQueryParameters(this._f552._f686);
x36+="&hilite=yes";
}
if(this._f552.getQueryParameters())
{
x36+=this._f552.getQueryParameters();
}
if(this._f552.getFOIMarker()||
!this._f552._f687)
{
x36+="&renderimg=no";
}
if(this._f552._f566<=this._f394)
{
x36+="&clickable=yes";
}
else
 {
x36+="&clickable=no";
}
if(_f15._f81!="IF"||
this._f552._f569>=this._f394||
!this._f552._f687)
{
x36+="&area=yes";
}
else
 {
x36+="&area=no";
}
x36+="&dstsrid="+this.parent.srid;
if(this._f552._f584!=null)
{
x36+="&nsdp="+encodeURIComponent(this._f552._f584.getFlatString());
}
if(this._f552._f569>=this._f394)
x36+="&wholeimage=yes";
if(this._f552.renderLabels)
x36+="&renderlabels=yes";
var x37=this;
this.startLoad=MVUtil._f59(this,function()
{
x37._f724();
});
if(x29){
x36+="&boundingtheme=yes&mapcache="+encodeURI(this.parent._f370[0]._f91)+
"&mapwinwidth="+this.parent._f53()+
"&mapwinheight="+this.parent._f55()+
"&wholeimagelevel="+this._f552._f569;
if(x32)
x36+="&recenteronly=yes";
}
if(this._f552._f618!=null)
{
x36+="&trs="+encodeURIComponent(this._f552._f618);
}
var x38=this._f552._f585;
if(x38.length>0)
{
x36+="&tempstyles=";
var x39="<styles>";
for(var x40=0;x40<x38.length;x40++)
{
x39+=x38[x40].getXMLString();
}
x39+="</styles>";
x36+=encodeURIComponent(x39);
}
if(!this._f552._f689||x30)
x36+="&refresh="+Math.round(Math.random()*100000);
if(this._f552._f689&&this._f552._f569<this._f394)
x36+="&cachefoi=yes";
var x41=(this._f552._f140.indexOf(_f15._f134())<0&&
MVUtil._f95(this._f552._f140)==MVUtil._f95(_f15._f96()));
var x42=x41||MVMapView._f97;
if(MVMapView.debug)
MVi18n.alert("Sending Theme Based FOI request. URL:"+this._f552._f140+" Parameters:"+x36);
try
{
this.parent.setLoadingIconVisible(true);
if(this.request)
{
this.request.onreadystatechange=function(){};
this.request.abort();
this.request=null;
}
this.request=MVUtil.getXMLHttpRequest(x42);
this.request.onreadystatechange=this.startLoad;
this.request.open("POST",this._f552._f140,true);
this.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
this.request.send(x36);
}
catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
this._f573=false;
this.parent._f506();
}
this._f570();
}
_f562.prototype.clearAllParallelly=function(){
this._f570();
}
_f562.prototype._f724=function()
{
if(this.request.readyState==4||this._f572)
{
if(this.request.status==200||this._f572)
{
var result=null;
if(!this._f572)
{
try
{
eval("result="+this.request.responseText);
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5511",this.request.responseText);
this._f573=false;
this.parent._f506();
return ;
}
this.boundingThemeResult=result;
}
else
 result=this.boundingThemeResult;
if(this._f552)
this._f552._f691=result.themeMBR;
else
 return ;
if(result.minx!=undefined&&!this._f572)
{
this._f572=true;
var tcx=(result.minx+result.maxx)/2;
var tcy=(result.miny+result.maxy)/2;
if(result.adjlevel!=undefined&&result.adjlevel!=this._f394)
{
this._f552.minX=this.minX=this._f706=result.minx;
this._f552.minY=this.minY=this._f707=result.miny;
this._f552.maxX=this.maxX=this._f708=result.maxx;
this._f552.maxY=this.maxY=this._f709=result.maxy;
this.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(tcx,tcy,this.parent.srid),result.adjlevel);
return ;
}
if(this.parent._f511(tcx)<this._f213()||this.parent._f512(tcy)<this._f214()||
this.parent._f513(tcx)>this._f215()||this.parent._f514(tcy)>this._f216())
{
this._f552.minX=this.minX=this._f706=result.minx;
this._f552.minY=this.minY=this._f707=result.miny;
this._f552.maxX=this.maxX=this._f708=result.maxx;
this._f552.maxY=this.maxY=this._f709=result.maxy;
this.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(tcx,tcy,this.parent.srid),this._f394);
return ;
}
}
this._f507=true;
this._f572=false;
if(!this.div)
return ;
var tc=this;
var realOperation=function()
{
tc._f570();
if(tc.clearAllStarted)
{
setTimeout(realOperation,100);
return ;
}
if(result.foiarray.length>=1)
{
tc._f552._f684=result;
tc.parent._f234();
if(tc._f552._f569>=tc._f394||
!tc._f552._f687||
(_f15._f81!="IF"&&result.foiarray[0].gtype%10!=1))
{
tc._f565=2;
if(tc._f552._f566<=tc._f394)
tc._f725(result);
}
else
 {
tc._f565=1;
}
tc._f552._f698=new Object();
tc._f552._f697=new Array();
if(tc._f552._f569>=tc._f394&&tc._f552._f687)
{
tc._f726(result.foiarray[0].imgurl);
}
if(tc._f552._f566<=tc._f394||
tc._f552._f569<tc._f394)
{
for(var x43=0;x43<result.foiarray.length;x43++)
{
result.foiarray[x43].hiliteImgPref=result.hiliteImgPref;
result.foiarray[x43].hiliteMW=result.hiliteMW;
result.foiarray[x43].hiliteMH=result.hiliteMH;
result.foiarray[x43].attrnames=result.attrnames;
if(tc._f565==1&&_f15._f81!="IF"&&result.foiarray[x43].gtype%10!=1)
{
tc._f565=3;
tc._f725(result);
}
if(tc._f565==1&&tc._f552._f700)
{
result.foiarray[x43].hiliteImgPref=tc._f552._f700._f141;
result.foiarray[x43].hiliteMW=tc._f552._f700.width;
result.foiarray[x43].hiliteMH=tc._f552._f700.height;
}
tc._f571(result.foiarray[x43]);
}
}
tc._f711=true;
}
else
 tc._f552._f684=null;
tc._f573=false;
tc.parent._f506();
if(tc._f552._f680)
{
tc._f552._f680();
}
if(result.minx!=undefined)
{
var x44=(result.minx+result.maxx)/2;
var x45=(result.miny+result.maxy)/2;
tc.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(x44,x45,this.parent.srid),this._f394);
}
}
realOperation();
}
}
}
_f562.prototype._f725=function(x46)
{
if(!this._f564)
this._f564=document.createElement("div");
var x47=this.adjustedRealWidth;
var x48=this.adjustedRealHeight;
MVUtil._f178(this.parent._f464,0,0);
if(this._f552.visible&&this._f552._f147)
this._f564.style.visibility="visible";
else
 this._f564.style.visibility="hidden";
this._f564.style.position="absolute";
this._f564.id=this._f552.name;
var x49=(this._f706-this.minX)*this.parent._f50;
var x50=(this.maxY-this._f709)*this.parent._f51;
var x51=(this.parent._f184-this._f185)*this.parent._f50;
var x52=(this.parent._f187-this._f188)*this.parent._f51;
MVUtil._f178(this._f564,this._f192-this.parent._f247-x51+x49,
this._f193-this.parent._f248+x52+x50);
this._f564.style.zIndex=this.div.style.zIndex;
var x53=_f15._f120+"transparent.gif";
if(_f15._f81=="IF"&&
(this._f552._f569>=this._f394||
!this._f552._f687))
{
this._f729=document.createElement("div");
this._f729.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x53+"', sizingMethod='image');";
this._f729.style.position="absolute";
MVUtil._f178(this._f729,0,0);
if(this._f552._f566<=this._f394)
{
var x54=document.createElement("div");
x54.style.zIndex="127";
var x55=document.createElement("img");
x55.width=MVUtil._f246(x47)
x55.height=MVUtil._f246(x48);
x55.style.width=MVUtil._f246(x47);
x55.style.height=MVUtil._f246(x48);
x55.style.border=0;
x55.src=_f15._f120+"transparent.gif";
x55.setAttribute("usemap","#polygonMap"+this._f563,0);
x54.style.position="absolute";
x54.appendChild(x55);
this._f564.appendChild(x54);
}
}
else
 {
this._f729=document.createElement("img");
this._f729.src=x53;
this._f729.setAttribute("usemap","#polygonMap"+this._f563);
}
this._f729.width=x47;
this._f729.height=x48;
this._f729.style.width=MVUtil._f246(x47);
this._f729.style.height=MVUtil._f246(x48);
this._f729.style.border=0;
this._f714.setAttribute("name","polygonMap"+this._f563);
this._f714.setAttribute("id","polygonMap"+this._f563);
this.parent._f464.style.zIndex=Math.max(MVUtil.getZIndex(this.div)+1,MVUtil.getZIndex(this.parent._f464));
this.parent._f464.appendChild(this._f564);
this._f564.setAttribute("theme",this._f552.name);
this._f564.appendChild(this._f729);
this._f564.appendChild(this._f714);
}
var _f732=0;
_f562.prototype.setTimeout=function(_f208,_f209)
{
var Ie="tempVar"+_f732;
_f732++;
eval(Ie+" = this;");
var oi=_f208.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f209);
}
_f562.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f562.prototype._f733=function(x56)
{
this._f543=0;
this.result=x56;
this.startDisplayGroupFoi();
}
_f562.prototype.startDisplayGroupFoi=function()
{
for(var x57=0;x57<180;x57++)
{
if(this._f543<this.result.foiarray.length)
{
this.result.foiarray[this._f543].attrnames=this.result.attrnames;
this._f571(this.result.foiarray[this._f543]);
this._f543++;
}
else
 {
return;
}
}
this.setTimeout("this.startDisplayGroupFoi()",2);
}
_f562.prototype._f571=function(x58)
{
if(this._f552._f569>=this._f394||
x58.imgurl||x58.area||this._f552.getFOIMarker())
{
x58.imgurl4Hilite=null;
x58.highlightImageWidth=x58.hiliteMW;
x58.highlightImageHeight=x58.hiliteMH;
x58.pngType4Hilite=true;
x58.normalPngType4Hilite=false;
x58.hilitePngType4Hilite=false;
x58.recalSizePos4Hilite=false;
if(this._f565==1&&this._f552._f700)
x58.imgurl4Hilite=x58.hiliteImgPref;
if(x58.highlightImageWidth&&x58.highlightImageHeight
&&(x58.width)&&(x58.height)
&&((x58.width!=x58.highlightImageWidth)
||(x58.height!=x58.highlightImageHeight)))
x58.recalSizePos4Hilite=true;
var x59=this;
var x60=null;
if(this._f552._f569<this._f394&&
this._f552._f687)
{
if(!(x58.imgurl4Hilite)&&x58.imgurl&&x58.hiliteImgPref)
{
var x61=x58.imgurl.lastIndexOf("/");
if(x61!=-1)
{
x58.imgurl4Hilite=x58.imgurl.substring(0,(x61+1))+x58.hiliteImgPref+x58.imgurl.substr((x61+1));
}
}
if(this._f552.getFOIMarker())
{
x58.imgurl=this._f552.getFOIMarker()._f141;
x58.width=this._f552.getFOIMarker().width;
x58.height=this._f552.getFOIMarker().height;
}
var x62=x58.imgurl.toLowerCase().indexOf('.png')==-1?false:true;
x58.normalPngType4Hilite=x62;
if(x58.imgurl4Hilite)
x58.hilitePngType4Hilite=x58.imgurl4Hilite.toLowerCase().indexOf('.png')==-1?false:true;
x58.pngType4Hilite=(x58.normalPngType4Hilite)?true:(x58.hilitePngType4Hilite);
if((_f15._f81=="IF"&&x62)||
(x59._f552._f681&&x58.gtype%10==1))
x60=document.createElement('div');
else
 x60=document.createElement('img');
x58.node=x60;
x60.className="noprint";
MVUtil._f405(x60);
x60.style.position="absolute";
x60.style.width=MVUtil._f246(x58.width);
x60.style.height=MVUtil._f246(x58.height);
if(x58.id&&x58.id!=null)
x60.id=x58.id;
x60._f243=x58.x;
x60._f244=x58.y;
var x63=(this.parent._f184-this._f185)*this.parent._f50;
var x64=(this.parent._f187-this._f188)*this.parent._f51;
var x65=MVUtil._f182(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this._f704,this._f705,x58.x,x58.y);
x65[0]-=x63;
x65[1]+=x64;
x65[0]+=this._f552._f183;
x65[1]+=this._f552._f186;
if(x58.gtype%10==1)
MVUtil._f178(x60,x65[0]-x58.width/2,x65[1]-x58.height/2);
else
 MVUtil._f178(x60,x65[0],x65[1]);
x60.style.zIndex=160;
}
var x66=MVSdoGeometry.createPoint(0,0);
var x67=x66;
var x68=x59._f552._f159;
var x69=function(x70)
{
x70=(x70)?x70:((window.event)?event:null);
if(x70&&!x68)
{
if(_f15._f81=="IF")
x70.cancelBubble=true;
else if(x70.stopPropagation)
x70.stopPropagation();
}
}
var x71=function(x72)
{
x72=(x72)?x72:((window.event)?event:null);
if(x72&&!x68)
{
MVUtil._f39(x72);
}
}
var x73=function(x74)
{
x66=MVUtil._f236(x74);
x71(x74);
}
var x75="";
if(x58.name&&x58.name!="null")
x75=x58.name;
if((_f15._f81=="IF"||_f15._f81=="NS")
&&x59._f552._f146&&x58.name&&x58.name!="null"&&x60)
{
x60.title=x75;
}
if(x58.name)
x58.name=MVUtil._f179(x58.name," ","&nbsp;");
if(x60&&(_f15._f81=="IF"||x58.gtype%10==1)&&
this._f552._f687)
{
this.div.appendChild(x60);
if(!x59._f552._f681)
{
if(_f15._f81=="IF"&&x62)
{
x60.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x58.imgurl+"', sizingMethod='image');";
}
if(!x59._f552._f681)
{
x60.setAttribute("id",x58.id);
x60.src=x58.imgurl;
x60.setAttribute("border",0);
}
}
if(x59._f552._f681)
{
x59._f552._f681(x58);
var x76=document.createElement("div");
x76.style.position="absolute";
var x77=x58.xoffset+x59._f552._f183;
var x78=x58.yoffset+x59._f552._f186;
x76.style.left=MVUtil._f246(x77);
x76.style.top=MVUtil._f246(x78);
x76.style.padding=MVUtil._f246(0);
x76.innerHTML=""+x58.html+"";
x60.appendChild(x76);
}
var x79=function(x80)
{
var x81=MVUtil.getMouseLocation(x59.parent,x80);
if(x59._f552._f154)
{
var x82=MVSdoGeometry.createPoint(x81.sdo_point.x,x81.sdo_point.y,x59.parent.srid);
x59._f552._f154(x82,x58,MVUtil.getEvent(x80));
}
if(x59._f552._f688&&
!(x59.parent._f211._f259()&&!x59.parent._f211.mouseOver))
{
if(x58.attrs!=null)
{
if(x58.attrs.length>=1&&x59._f552._f262)
{
x59.parent._f211._f266(x58.attrs,x58.attrnames,x58.id,
x58.name,x81.sdo_point.x,x81.sdo_point.y,null,null,
x59._f552,300,true);
}
}
}
if(x59._f552._f156)
{
x60.style.zIndex=161;
}
if(!x60.title&&x58.name&&x58.name!="null"&&x59._f552._f146)
{
x59.parent._f211.showTextTip(x58.name,x81.sdo_point.x,x81.sdo_point.y);
}
};
var x83=function(x84)
{
if(x59._f552._f155)
{
var x85=MVUtil.getMouseLocation(x59.parent,x84);
var x86=MVSdoGeometry.createPoint(x85.sdo_point.x,x85.sdo_point.y,x59.parent.srid);
x59._f552._f155(x86,x58,MVUtil.getEvent(x84));
}
if(x59._f552._f688&&
!(x59.parent._f211._f259()&&!x59.parent._f211.mouseOver))
{
if(x58.attrs!=null)
{
if(x58.attrs.length>=1&&x59._f552._f262)
{
x59.parent.removeInfoWindow();
}
}
}
x60.style.zIndex=160;
x59.parent._f211._f242();
};
x60.onmouseover=x79;
x60.onmouseout=x83;
if(this._f552._f566<=this._f394)
{
var x87=x58.x;
var x88=x58.y;
var x89=function(x90)
{
if(!x59._f552._f147||x59.parent._f238)
return ;
x67=MVUtil._f236(x90);
x90=(x90)?x90:((window.event)?event:null);
if(x90.button==2)
{
return;
}
if(x66.x==x67.x&&x66.y==x67.y)
{
x59.parent._f239();
if(x59.parent._f238)
return ;
if(x59.parent.getBrowserType()=="NS")
{
x59.parent._f429=null;
}
var x91=MVUtil.getMouseLocation(x59.parent,x90);
if(x59._f552._f152)
{
var x92=MVSdoGeometry.createPoint(x91.sdo_point.x,x91.sdo_point.y,x59.parent.srid);
x59._f552._f152(x92,x58,MVUtil.getEvent(x90));
}
else
 {
if(x58.attrs!=null)
{
if(x58.attrs.length>=1&&x59._f552._f262)
{
x59.parent._f211._f266(x58.attrs,x58.attrnames,x58.id,
x58.name,x91.sdo_point.x,x91.sdo_point.y,null,null,
x59._f552,300);
}
}
}
if(x59._f552._f693&&x58.imgurl4Hilite!=null)
{
if(!x59._f552._f681)
{
var x93=x59._f552._f695.length;
var x94=x59._f552._f694;
var x95=false;
if(x93>0)
{
var x96=x59._f552._f695;
var x97=x59._f552._f696;
var x98=x59._f552._f697;
var x99=x59._f552._f698;
var x100=null;
var x101=null;
if(x58.id!=null&&x97[x58.id]!=null)
{
x95=true;
}
if(x94==-1||x93<=x94){
var x102=x98.length;
var x103=(x102>x93?true:false);
if(x103)
{
for(var x104=0;x104<x93;++x104)
{
x100=x96[x104];
if(x100==null||x100.imgurl==null||x100.id==null
||x99[x100.id]==null)
continue;
x101=x98[x99[x100.id]];
if(x101==null)
continue;
if(_f15._f81=="IF"&&x100.pngType4Hilite)
{
if(x100.normalPngType4Hilite)
{
x101.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x100.imgurl+"', sizingMethod='image');";
x101.src=x100.imgurl;
x101.innerHTML="";
}
else
 {
x101.style.filter=null;
x101.src=null;
x101.innerHTML="<img src=\""+encodeURIComponent(x100.imgurl)+"\"/>";
}
}
else
 x101.src=x100.imgurl;
if(x100.recalSizePos4Hilite&&(x100.gtype%10==1))
{
var x105=MVUtil.getNumber(x101.style.left);
var x106=MVUtil.getNumber(x101.style.top);
x105+=(x100.highlightImageWidth-x100.width)/2;
x106+=(x100.highlightImageHeight-x100.height)/2;
MVUtil._f178(x101,x105,x106);
x101.style.width=MVUtil._f246(x100.width);
x101.style.height=MVUtil._f246(x100.height);
}
}
}
else
 {
var x107=null;
for(var x104=0;x104<x102;++x104)
{
x101=x98[x104];
if(x101==null)
continue;
x107=x101.id;
if(x107==null||x97[x107]==null)
continue;
x100=x96[x97[x107]];
if(x100!=null&&x100.imgurl!=null)
{
if(_f15._f81=="IF"&&x100.pngType4Hilite)
{
if(x100.normalPngType4Hilite)
{
x101.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x100.imgurl+"', sizingMethod='image');";
x101.src=x100.imgurl;
x101.innerHTML="";
}
else
 {
x101.style.filter=null;
x101.src=null;
x101.innerHTML="<img src=\""+encodeURIComponent(x100.imgurl)+"\"/>";
}
}
else
 x101.src=x100.imgurl;
if(x100.recalSizePos4Hilite&&(x100.gtype%10==1))
{
var x105=MVUtil.getNumber(x101.style.left);
var x106=MVUtil.getNumber(x101.style.top);
x105+=(x100.highlightImageWidth-x100.width)/2;
x106+=(x100.highlightImageHeight-x100.height)/2;
MVUtil._f178(x101,x105,x106);
x101.style.width=MVUtil._f246(x100.width);
x101.style.height=MVUtil._f246(x100.height);
}
}
}
}
x59._f552._f695=new Array();
x59._f552._f696=new Object();
x93=0;
}
else if(x94>0)
{
for(var x104=1;x104<=x94;++x104)
{
x100=x96[x93-x104];
if(x100!=null&&x100.id!=null)
{
x97[x100.id]=null;
if(x100.imgurl==null||x99[x100.id]==null)
continue;
x101=x98[x99[x100.id]];
if(x101==null)
continue;
if(_f15._f81=="IF"&&x100.pngType4Hilite)
{
if(x100.normalPngType4Hilite)
{
x101.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x100.imgurl+"', sizingMethod='image');";
x101.src=x100.imgurl;
x101.innerHTML="";
}
else
 {
x101.style.filter=null;
x101.src=null;
x101.innerHTML="<img src=\""+encodeURIComponent(x100.imgurl)+"\"/>";
}
}
else
 x101.src=x100.imgurl;
if(x100.recalSizePos4Hilite&&(x100.gtype%10==1))
{
var x105=MVUtil.getNumber(x101.style.left);
var x106=MVUtil.getNumber(x101.style.top);
x105+=(x100.highlightImageWidth-x100.width)/2;
x106+=(x100.highlightImageHeight-x100.height)/2;
MVUtil._f178(x101,x105,x106);
x101.style.width=MVUtil._f246(x100.width);
x101.style.height=MVUtil._f246(x100.height);
}
}
}
x59._f552._f695=x96.slice(0,(0-x94));
x93-=x94;
}
}
if(!x95)
{
if(x58.id!=null)
{
var x108=x59._f552._f696[x58.id];
if(x108!=null)
x59._f552._f695[x108]=null;
x59._f552._f696[x58.id]=x93;
x59._f552._f695[x93++]=x58;
}
if(_f15._f81=="IF"&&x58.pngType4Hilite)
{
if(x58.hilitePngType4Hilite)
{
x60.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x58.imgurl4Hilite+"', sizingMethod='image');";
x60.src=x58.imgurl4Hilite;
x60.innerHTML="";
}
else
 {
x60.style.filter=null;
x60.src=null;
x60.innerHTML="<img src=\""+encodeURIComponent(x58.imgurl4Hilite)+"\"/>";
}
}
else
 x60.src=x58.imgurl4Hilite;
if(x58.recalSizePos4Hilite&&(x58.gtype%10==1))
{
var x109=x65[0]-(x58.highlightImageWidth)/2;
var x110=x65[1]-(x58.highlightImageHeight)/2;
MVUtil._f178(x60,x109,x110);
x60.style.width=MVUtil._f246(x58.highlightImageWidth);
x60.style.height=MVUtil._f246(x58.highlightImageHeight);
}
}
else if(x94==0)
{
if(x58.id!=null)
{
var x108=x59._f552._f696[x58.id];
if(x108!=null)
x59._f552._f695[x108]=null;
x59._f552._f696[x58.id]=null;
}
if(_f15._f81=="IF"&&x58.pngType4Hilite)
{
if(x58.normalPngType4Hilite)
{
x60.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x58.imgurl+"', sizingMethod='image');";
x60.src=x58.imgurl;
x60.innerHTML="";
}
else
 {
x60.style.filter=null;
x60.src=null;
x60.innerHTML="<img src=\""+encodeURIComponent(x58.imgurl)+"\"/>";
}
}
else
 x60.src=x58.imgurl;
if(x58.recalSizePos4Hilite&&(x58.gtype%10==1))
{
MVUtil._f178(x60,x65[0]-x58.width/2,x65[1]-x58.height/2);
x60.style.width=MVUtil._f246(x58.width);;
x60.style.height=MVUtil._f246(x58.height);
}
}
}
}
}
x71(x90);
};
var x111=function(x112)
{
if(!x59._f552._f147)
return ;
if(x59._f552._f153)
{
var x113=MVUtil.getMouseLocation(x59.parent,x112);
var x114=MVSdoGeometry.createPoint(x113.sdo_point.x,x113.sdo_point.y,x59.parent.srid);
x59._f552._f153(x114,x58,MVUtil.getEvent(x112));
}
x71(x112);
};
if(this._f552._f566<=this._f394)
{
x60.onmousedown=x73;
x60.onmouseup=x89;
x60.oncontextmenu=x111;
}
}
if(this._f552._f566<=this._f394)
{
x60.ondblclick=x71;
x60.onclick=x69;
x60.onkeyup=x69;
}
MVUtil._f249(x60);
}
else {
var x115=x75;
var x116=Math.floor((x58.x-this.minX)*this.parent._f50+0.5);
var x117=Math.floor((this.maxY-x58.y)*this.parent._f51+0.5);
var x118="";
if(this._f552._f566<=this._f394)
{
var x119=document.createElement("area");
MVUtil._f175(x119,this._f552.cursorStyle);
x58.areaNode=x119;
this._f703=true;
x119.setAttribute("border",0);
if(_f15._f81!="OS")
{
x119.setAttribute("title",x115);
x119.setAttribute("href","javascript:void(0)");
}
if(x58.gtype%10==1)
{
var x65=MVUtil._f182(this.parent,this._f706,this._f707,
this._f708,this._f709,
this.adjustedRealWidth,this.adjustedRealHeight,
x58.x,x58.y);
x65[0]+=this.parent._f247+this._f552._f183;
x65[1]+=this.parent._f248+this._f552._f186;
x119.setAttribute("shape","rect");
var x120=(x65[0]-x58.width/2)+","+(x65[1]-x58.height/2)+","+
(x65[0]+x58.width/2)+","+(x65[1]+x58.height/2);
x119.setAttribute("coords",x120);
}
else
 {
var x121="";
if(typeof(x58.area)=='undefined')
x121="0,0";
else
 x121=x58.area;
x119.setAttribute("shape","poly");
x119.setAttribute("coords",x121);
}
var x122=function(x123)
{
if(!x59._f552._f147)
return;
if(x59._f552._f153)
{
var x124=MVUtil.getMouseLocation(x59.parent,x123);
var x125=MVSdoGeometry.createPoint(x124.sdo_point.x,x124.sdo_point.y,x59.parent.srid);
x59._f552._f153(x125,x58,MVUtil.getEvent(x123));
}
x71(x123);
};
var x126=function(x127)
{
if(!x59._f552._f147||x59.parent._f238)
return ;
x67=MVUtil._f236(x127);
x127=(x127)?x127:((window.event)?event:null);
if(x127.button==2)
{
if(_f15._f81=='IF')
x122(x127);
return false;
}
if((x66.x==x67.x&&x66.y==x67.y))
{
if(x59.parent.getBrowserType()=="NS")
{
x59.parent._f429=null;
}
if(x59._f552._f152)
{
var x128=MVUtil.getMouseLocation(x59.parent,x127);
var x129=MVSdoGeometry.createPoint(x128.sdo_point.x,x128.sdo_point.y,x59.parent.srid);
x59._f552._f152(x129,x58,MVUtil.getEvent(x127));
}
else
 {
if(x58.attrs!=null)
{
if(x58.attrs.length>=1&&x59._f552._f262)
{
var x128=MVUtil.getMouseLocation(x59.parent,x127);
x59.parent._f211._f266(x58.attrs,x58.attrnames,
x58.id,x58.name,x128.sdo_point.x,x128.sdo_point.y,null,null,
x59._f552,300);
}
}
}
if(x59._f552._f693&&x58.imgurl4Hilite!=null)
{
if(!x59._f552._f681)
{
var x130=x59._f552._f695.length;
var x131=x59._f552._f694;
var x132=false;
if(x130>0)
{
var x133=x59._f552._f695;
var x134=x59._f552._f696;
var x135=x59._f552._f697;
var x136=x59._f552._f698;
var x137=null;
var x138=null;
if(x58.id!=null&&x134[x58.id]!=null)
{
x132=true;
}
if(x131==-1||x130<=x131){
var x139=x135.length;
var x140=(x139>x130?true:false);
if(x140)
{
for(var x141=0;x141<x130;++x141)
{
x137=x133[x141];
if(x137==null||x137.id==null
||x136[x137.id]==null)
continue;
x138=x135[x136[x137.id]];
if(x138==null)
continue;
if(x137.imgurl!=null)
{
if(_f15._f81=="IF"&&x137.pngType4Hilite)
{
x138.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x137.imgurl+"', sizingMethod='image');";
}
x138.src=x137.imgurl;
}
else
 {
x135.splice(x136[x137.id],1);
x136[x137.id]=null;
}
}
}
else
 {
var x142=null;
for(var x141=0;x141<x139;++x141)
{
x138=x135[x141];
if(x138==null)
continue;
x142=x138.id;
if(x142==null||x134[x142]==null)
continue;
x137=x133[x134[x142]];
if(x137!=null&&x137.imgurl!=null)
{
if(_f15._f81=="IF"&&x137.pngType4Hilite)
{
x138.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x137.imgurl+"', sizingMethod='image');";
}
x138.src=x137.imgurl;
}
else
 {
x135.splice(x136[x142],1);
x136[x142]=null;
}
}
}
x59._f552._f695=new Array();
x59._f552._f696=new Object();
x130=0;
}
else if(x131>0)
{
for(var x141=1;x141<=x131;++x141)
{
x137=x133[x130-x141];
if(x137!=null&&x137.id!=null)
{
x134[x137.id]=null;
x138=x135[x136[x137.id]];
if(x138==null)
continue;
if(x137.imgurl!=null)
{
if(_f15._f81=="IF"&&x137.pngType4Hilite)
{
x138.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x137.imgurl+"', sizingMethod='image');";
}
x138.src=x137.imgurl;
}
else
 {
x135.splice(x136[x137.id],1);
x136[x137.id]=null;
}
}
}
x59._f552._f695=x133.slice(0,(0-x131));
x130-=x131;
}
}
if(!x132)
{
if(x58.id!=null)
{
var x143=x59._f552._f696[x58.id];
if(x143!=null)
x59._f552._f695[x143]=null;
x59._f552._f696[x58.id]=x130;
x59._f552._f695[x130++]=x58;
}
if(x60!=null)
{
if(_f15._f81=="IF"&&x58.pngType4Hilite)
{
x60.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x58.imgurl4Hilite+"', sizingMethod='image');";
}
x60.src=x58.imgurl4Hilite;
}
}
else if(x131==0)
{
if(x58.id!=null)
{
var x143=x59._f552._f696[x58.id];
if(x143!=null)
x59._f552._f695[x143]=null;
x59._f552._f696[x58.id]=null;
}
if(_f15._f81=="IF"&&x58.pngType4Hilite)
{
x60.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x58.imgurl+"', sizingMethod='image');";
}
x60.src=x58.imgurl;
}
}
}
}
x71(x127);
};
var x144=function(x145)
{
if(!x59._f552._f147)
return ;
var x146=MVUtil.getMouseLocation(x59.parent,x145);
if(x59._f552._f154)
{
var x147=MVSdoGeometry.createPoint(x146.sdo_point.x,x146.sdo_point.y,x59.parent.srid);
x59._f552._f154(x147,x58,MVUtil.getEvent(x145));
}
if(x59._f552._f688&&
!(x59.parent._f211._f259()&&!x59.parent._f211.mouseOver))
{
if(x58.attrs!=null)
{
if(x58.attrs.length>=1&&x59._f552._f262)
{
x59.parent._f211._f266(x58.attrs,x58.attrnames,x58.id,
x58.name,x146.sdo_point.x,x146.sdo_point.y,null,null,
x59._f552,300,true);
}
}
}
if(!x119.title&&x58.name&&x58.name!="null"&&x59._f552._f146)
{
x59.parent._f211.showTextTip(x58.name,x146.sdo_point.x,x146.sdo_point.y);
}
};
var x148=function(x149)
{
if(!x59._f552._f147)
return ;
if(x59._f552._f155)
{
var x150=MVUtil.getMouseLocation(x59.parent,x149);
var x151=MVSdoGeometry.createPoint(x150.sdo_point.x,x150.sdo_point.y,x59.parent.srid);
x59._f552._f155(x151,x58,MVUtil.getEvent(x149));
}
if(x59._f552._f688&&
!(x59.parent._f211._f259()&&!x59.parent._f211.mouseOver))
{
if(x58.attrs!=null)
{
if(x58.attrs.length>=1&&x59._f552._f262)
{
x59.parent.removeInfoWindow();
}
}
}
x59.parent._f211._f242();
};
x119.onmousedown=x73;
x119.onmouseup=x126;
x119.onmouseover=x144;
x119.onmouseout=x148;
if(_f15._f81=='NS')
x119.oncontextmenu=x122;
else
 x119.oncontextmenu=function(){return false;};
x119.ondblclick=x71;
x119.onclick=x69;
x119.onkeyup=x69;
MVUtil._f249(x119);
this._f714.appendChild(x119);
}
if(x60)
{
MVUtil._f178(x60,x65[0],x65[1]);
x60.style.position="absolute";
x60.style.width=MVUtil._f246(x58.width);
x60.style.height=MVUtil._f246(x58.height);
x60.id=x58.id;x60.src=x58.imgurl;
x60.style.zIndex=125;
this.div.appendChild(x60);
}
}
if(x60!=null&&x60.id!=null)
{
var x61=null;
if((x61=x59._f552._f696[x60.id])!=null)
{
x59._f552._f695[x61]=x58;
if(_f15._f81=="IF"&&x58.pngType4Hilite)
{
if(x58.hilitePngType4Hilite)
{
x60.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x58.imgurl4Hilite+"', sizingMethod='image');";
x60.src=x58.imgurl4Hilite;
x60.innerHTML="";
}
else
 {
x60.style.filter=null;
x60.src=null;
x60.innerHTML="<img src=\""+encodeURIComponent(x58.imgurl4Hilite)+"\"/>";
}
}
else
 x60.src=x58.imgurl4Hilite;
if(x58.recalSizePos4Hilite&&(x58.gtype%10==1))
{
var x152=x65[0]-(x58.highlightImageWidth)/2;
var x153=x65[1]-(x58.highlightImageHeight)/2;
MVUtil._f178(x60,x152,x153);
x60.style.width=MVUtil._f246(x58.highlightImageWidth);
x60.style.height=MVUtil._f246(x58.highlightImageHeight);
}
}
x59._f552._f698[x60.id]=x59._f552._f697.length;
x59._f552._f697.push(x60);
}
}
}
_f562.prototype.destroy=function()
{
this._f221();
if(this.request)
{
this.request.onreadystatechange=function(){};
this.request.abort();
this.request=null;
}
if(this._f552._f684&&this._f552._f684.foiarray)
{
while(this._f552._f684.foiarray.length>0)
{
var x154=this._f552._f684.foiarray.pop();
if(x154.node)
x154.node=null;
if(x154.areaNode)
x154.areaNode=null;
}
}
this._f552._f684=null;
this._f552=null;
this.parent.div.removeChild(this.div);
this.div=null;
this.parent._f506();
this.parent=null;
}
_f562.prototype.adjustBBox=function(x155)
{
var x156=false;
if(!x155&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.minX<-180)
{
this._f706=-180;
x156=true;
}
else
 this._f706=this.minX;
if(!x155&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.maxX>180)
{
this._f708=180;
x156=true;
}
else
 this._f708=this.maxX;
if(!x155&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.minY<-90)
{
this._f707=-90;
x156=true;
}
else
 this._f707=this.minY;
if(!x155&&this.parent.msi.mapConfig.coordSys.type=='GEODETIC'&&this.maxY>90)
{
this._f709=90;
x156=true;
}
else
 this._f709=this.maxY;
this.adjustedRealWidth=Math.round(this._f704*
(this._f708-this._f706)/(this.maxX-this.minX));
this.adjustedRealHeight=Math.round(this._f705*
(this._f709-this._f707)/(this.maxY-this.minY));
}
_f562.prototype._f715=function(x157)
{
if(!x157||x157.indexOf("<themes>")<0)
return x157;
return x157.substring(x157.indexOf("<themes>")+8,x157.indexOf("</themes>"));
}
_f562.prototype._f726=function(x158)
{
var x159=(this._f706-this.parent._f487)*this.parent._f50;
var x160=-(this._f709-this.parent._f488)*this.parent._f51;
x159=x159-MVUtil._f176(this.div)+this._f552._f183;
x160=x160-MVUtil._f177(this.div)+this._f552._f186;
var x161=MVUtil._f400(x158,true);
x161.style.width=MVUtil._f246(this.adjustedRealWidth);
x161.style.height=MVUtil._f246(this.adjustedRealHeight);
x161.style.position="absolute";
MVUtil._f178(x161,x159,x160);
this.div.appendChild(x161);
}
function _f254(x0,x1,x2)
{
this.minX;
this.minY;
this.maxX;
this.maxY;
this.width=x0._f53();
this.height=x0._f55();
this.parent=x0;
this._f255=null;
this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.zIndex="3000";
this.parent._f256.appendChild(this.div);
this._f146=document.createElement("div");
this._f146.style.position="absolute";
this._f146.style.backgroundColor="#FFFFDF";
this._f146.style.border="inset black 1px";
this._f146.style.visibility="hidden";
this._f146.style.zIndex="1200";
this.parent.div.appendChild(this._f146);
MVUtil._f178(this._f146,0,0);
this._f212=new Array(0);
this._f159=false;
this.mouseOver=false;
}
_f254.prototype.enableEventPropagation=function(x0)
{
this._f159=x0;
}
_f254.prototype._f257=function()
{}
_f254.prototype._f242=function()
{
this._f146.style.visibility='hidden';
}
_f254.prototype.refresh=function(x1,x2,x3,x4,x5,x6)
{
MVUtil._f178(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._f212.length;x7++)
{
var x8=MVUtil._f258(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,this._f212[x7].winX,this._f212[x7].winY);
this._f212[x7].style.visibility="hidden";
MVUtil._f178(this._f212[x7],x8.x,x8.y);
if(this._f212[x7].winX>=this.parent._f199&&this._f212[x7].winX<=this.parent._f201&&
this._f212[x7].winY>=this.parent._f200&&this._f212[x7].winY<=this.parent._f202)
this._f212[x7].style.visibility="visible";
}
}
_f254.prototype._f217=function()
{
return this.div;
}
_f254.prototype.showTextTip=function(x9,x10,x11)
{
this._f146.innerHTML=x9;
if(_f15._f81=="NS"&&navigator.userAgent.toLowerCase().indexOf("netscape")>0)
{
var x12=MVUtil._f179(x9.toLowerCase(),"&nbsp;"," ").length;
this._f146.style.width=MVUtil._f246(x12*8+8);
}
var x13=MVUtil._f258(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x10,x11);
MVUtil._f178(this._f146,x13.x+10,x13.y+5);
this._f146.style.visibility="visible";
}
_f254.prototype._f259=function()
{
return this._f212.length>0;
}
_f254.prototype._f150=function(id,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24)
{
if(MVInfoWindowStyle1._f260)
{
clearTimeout(MVInfoWindowStyle1._f260);
MVInfoWindowStyle1._f260=null;
}
if(x19==null||x19=="")
{
x19=_f15._f76;
}
if(x21)
this.mouseOver=true;
else
 this.mouseOver=false;
this._f242();
var x25=this.parent;
if(!x16)
return ;
var x26=0;
for(;x26<this._f212.length;x26++)
{
if(id&&this._f212[x26].nid==id){
this.deleteInfoWindow(this._f212[x26]);
return ;
}
}
if(this._f212.length>0)
this.deleteInfoWindow(this._f212[0]);
var x27=document.createElement("div");
var x28=this;
var x29=function(x30)
{
x30=(x30)?x30:((window.event)?event:null);
var x31=!x28._f159;
if(x30&&!x28._f159)
{
if(_f15._f81=="IF")
x30.cancelBubble=true;
else if(x30.stopPropagation)
x30.stopPropagation();
}
}
var x32=function(x33)
{
x25._f263=true;
x29(x33);
}
var x34=function(x35)
{
x25._f263=false;
x29(x35);
}
x27.id="mvinfodiv";
x27.onmousedown=MVUtil._f59(x27,x29);
x27.onmouseup=MVUtil._f59(x27,x29);
x27.onmouseover=MVUtil._f59(x27,x32);
x27.onmouseout=MVUtil._f59(x27,x34);
x27.ondblclick=MVUtil._f59(x27,x29);
x27.onclick=MVUtil._f59(x27,x29);
x27.onkeyup=MVUtil._f59(x27,x29);
if(_f15._f81=="OS")
x27.onkeypress=MVUtil._f59(x27,x29);
else
 x27.onkeydown=MVUtil._f59(x27,x29);
var x36=MVUtil._f258(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x14,x15);
x27.style.position="absolute";
var x37=document.createElement("div");
if(x17)
x37.style.width=x17;
if(x18)
x37.style.height=x18;
x37.innerHTML=x16;
this.div.appendChild(x27);
x27.style.visibility="hidden";
x27.appendChild(x37);
if(x19!=_f15._f76)
{
var x38=document.getElementById("mvinfotable");
var x39=document.getElementById("mvinfotable1");
var x40=0,x41=0;
if(x38!=null&&x39!=null)
{
if(x38.offsetWidth<=x39.offsetWidth)
x40=x39.offsetWidth+45;
else
 x40=x38.offsetWidth+45;
x17=x40;
}
if(x40>x17)
x17=x40;
if(x38!=null&&x39!=null)
{
x38.style.width=x17+"px";
if(x38.offsetHeight<=x39.offsetHeight)
x41=x39.offsetHeight+40;
else
 x41=x38.offsetHeight+40;
}
if(x41>x18)
x18=x41;
}
x27.removeChild(x37);
this._f255=null;
this._f255=new _f264(x27,0,0,x16,x17,x18,x19,x25,x21,this,x36,x22,x23);
this._f212.push(x27);
x27.nid=id;
x27.winX=x14;
x27.winY=x15;
MVUtil._f178(x27,x36.x,x36.y);
x27.style.direction="ltr";
x27.style.visibility="visible";
x27.style.zIndex="1200";
x27.style.width=MVUtil._f246(0);
x27.style.height=MVUtil._f246(0);
if(!x21)
{
var x42=0;var x43=0;
if(x19==_f15._f76)
{
var x38=document.getElementById("infowindow3table");
if(x38!=null)
{
x17=x38.offsetWidth;
x38.style.width=MVUtil._f246(x17);
x18=x38.offsetHeight;
x42=MVUtil._f176(x38);
x43=MVUtil._f177(x38);
}
}
if(x24&&x19=="MVInfoWindowStyle1")
return ;
var x44=x17;
var x45=x18;
var x46=this.parent._f247+x36.x+x42;
var x47=this.parent._f248+x36.y+x43;
var x48=0;
var x49=0;
if(x46<0)
{
if(this.parent._f247+x36.x<x46)
x48=this.parent._f247+x36.x-10;
else
 x48=x46;
}
else if(this.parent._f247+x36.x<0)
x48=this.parent._f247+x36.x-10;
else if(x46+x44>this.width)
{
if(this.parent._f247+x36.x>x46+x44)
x48=this.parent._f247+x36.x-this.width+10;
else
 x48=x46+x44-this.width;
}
else if(this.parent._f247+x36.x>this.width)
x48=this.parent._f247+x36.x-this.width+10;
if(x47<0)
{
if(this.parent._f248+x36.y<x47)
x49=this.parent._f248+x36.y-10;
else
 x49=x47;
}
else if(this.parent._f248+x36.y<0)
x49=this.parent._f248+x36.y-10;
else if(x47+x45>this.height)
{
if(this.parent._f248+x36.y>this.height)
x49=this.parent._f248+x36.y-this.height+10;
else
 x49=x47+x45-this.height;
}
else if(this.parent._f248+x36.y>this.height)
x49=this.parent._f248+x36.y-this.height+10;
if(x20)
this.setTimeout("this.parent.smoothScroll("+x48+","+x49+")",x20);
else
 this.parent.smoothScroll(x48,x49);
}
}
_f254.prototype._f240=function(x50,x51,x52,x53,x54,x55,x56,x57,x58)
{
if(x51.length==0)
return;
if(x54&&x55)
{
this._f150(x51,x52,x53,x50,x54,x55,x56,null,null,x57,x58,true);
}
else
 this._f150(x51,x52,x53,x50,_f15._f98,_f15._f99,x56,null,null,x57,x58,true);
}
_f254.prototype._f265=function(x59,x60,x61,x62,x63,x64,x65)
{
var x66=new Array(4);
if(!x60)
x60="null";
x60=MVUtil._f179(x60," &nbsp;","  ");
var x67=0;
var x68=0;
var x69="";
var x70=12;
if(x60!="null")
{
if(x64)
x66[3]=x60;
else
 {
x67=x60.length;
x68++;
x69="<tr><td>"+this.replaceWhiteSpace(x60)+"</td></tr>";
}
}
x69="<table id='mvinfotable'>"+x69;
if(x61==null||x61.length==0){
x66[0]=x69;
if(x65=="MVInfoWindowStyle1")
{
x66[1]=0;
x66[2]=0;
}
else
 {
x66[1]=x60.length*x70+36;
x66[2]=27+30;
}
return x66;
}
var x71=0;
var x72=0;
x68+=x61.length;
x69+="<tr><td><table id='mvinfotable1'>";
for(var x73=0;x73<x61.length;x73++)
{
var x74="#bbbbbb";
if(x73%2==0)
x74="#dddddd";
if(x62!=null&&x62[x73]!=null&&x62[x73].length>x71)
x71=x62[x73].length;
if(x61[x73]==null)
x61[x73]="";
if(x61[x73].length>x72)
x72=x61[x73].length;
var x75=this.replaceWhiteSpace(MVUtil._f92(x61[x73]));
x69=x69+"<tr bgcolor="+x74+">";
if(x62!=null)
{
var x76="";
if(x62[x73]==null)
x76="&nbsp;";
else
 x76=this.replaceWhiteSpace(MVUtil._f92(x62[x73]))+":";
x69=x69+"<td>"+x76+"</td>";
}
x69=x69+"<td align=left>"+x75+"</td></tr>";
}
var x77;
if(x67>(x71+x72))
x77=(x67+1)*x70+40;
else
 x77=(x71+x72+1)*x70+40;
x66[0]=x69+"</table></td></tr></table>";
if(x65=="MVInfoWindowStyle1")
{
x66[1]=0;
x66[2]=0;
}
else
 {
x66[1]=x77;
x66[2]=x68*11+80;
}
return x66;
}
_f254.prototype._f266=function(x78,x79,x80,x81,x82,x83,
x84,x85,x86,x87,
x88)
{
var x89=x86._f267;
var x90=x86._f268?x86._f268:_f15._f76;
var x91=x86._f269;
var x92=x86._f270;
var x93=x86._f164;
if(x80.length==0&&x81.length==0)
return ;
if(x84&&x85)
{
this._f150(x80,x82,x83,x78,x84,x85,x90,x87,x88,x92,x93,true);
}
else
 {
var x94=this._f265(x80,x81,x78,x79,x89,x90=="MVInfoWindowStyle1"&&x91,x90);
if(x94[1]>0&&x94[2]>0||x90=="MVInfoWindowStyle1")
{
this._f150(x80,x82,x83,x94[0],x94[1],x94[2],x90,x87,x88,x92?x92:x94[3],x93,true);
}
else
 this._f150(x80,x82,x83,x94[0],_f15._f98,
_f15._f99,x90,x87,x88,x92?x92:x94[3],x93,true);
}
}
_f254.prototype._f271=function(x95,x96,x97,x98,x99,x100,x101,x102)
{
this._f150("",x96,x97,x95,x98,x99,x100,null,null,x101,x102)
}
_f254.prototype.deleteInfoWindow=function(x103)
{
if(MVInfoWindowStyle1._f260)
{
clearTimeout(MVInfoWindowStyle1._f260);
MVInfoWindowStyle1._f260=null;
}
var x104=0;
for(x104=0;x104<this._f212.length;x104++)
{
if(this._f212[x104]==x103){
this._f212.splice(x104,1);
}
}
MVUtil._f272(x103);
MVUtil._f223(x103);
this.div.removeChild(x103);
this.parent._f263=false;
}
_f254.prototype.setTimeout=function(_f208,_f209)
{
var Ie="tempVar"+_f210;
_f210++;
eval(Ie+" = this;");
var oi=_f208.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f209);
}
_f254.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f254.prototype.scrollInfoLayer=function()
{
for(var x105=0;x105<this._f212.length;x105++)
{
document.getElementById("message").innerHTML+=this._f212[x105].winX+','+this._f212[x105].winY+":"+this.parent._f199+','+this.parent._f200+','+this.parent._f201+','+this.parent._f202+"<br>";
if(this._f212[x105].winX<this.parent._f199||this._f212[x105].winX>this.parent._f201||
this._f212[x105].winY<this.parent._f200||this._f212[x105].winY>this.parent._f202)
this._f212[x105].style.visibility="hidden";
else
 this._f212[x105].style.visibility="visible";
}
}
_f254.prototype.replaceWhiteSpace=function(x106)
{
x106=x106.replace(" ","&nbsp;");
return MVUtil._f179(x106,"  "," &nbsp;");
}
function MVFOI(x0,x1,x2,x3,x4,x5)
{
if(!x0||x0.length==0)
{
MVi18n.processLocale("MAPVIEWER-5503");
return null;
}
this.parent="";
this.id=MVUtil._f92(x0);
this._f139=x1;
this.gtype=x1.getGType();
this.style=x2;
this._f140=x3;
this._f141="";
this._f142=null;
this.html="";
this._f143="";
this._f144="";
this.area="";
this._f68=null;
this._f145=new Array(4);
this._f146=null;
this.width=0;
this.height=0;
this._f147=true;
this.visible=true;
this._f148=false;
this._f149=false;
this._f150=true;
this._f151=true;
this._f152=null;
this._f153=null;
this._f154=null;
this._f155=null
this._f156=true;
this._f157=0;
this._f158=0;
this._f159=true;
this.cursorStyle=null;
this._f160=null;
this._f161=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._f162=null;
this._f163=null;
this._f164=null;
this._f43=100;
this._f165=100;
}
MVFOI.prototype.setHTMLElement=function(x0,x1,x2)
{
this.html=x0;
if(x1)
this._f143=x1;
if(x2)
this._f144=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._f152=x15;
}
else if(x14=="mouse_right_click")
{
this._f153=x15;
}
else if(x14=="mouse_over")
{
this._f154=x15;
}
else if(x14=="mouse_out")
{
this._f155=x15;
}
if(this._f148)
{
this._f160._f166(this);
}
}
MVFOI.prototype.setBringToTopOnMouseOver=function(x16)
{
this._f156=x16;
}
MVFOI.prototype.setTopFlag=function(x17)
{
this._f149=x17;
}
MVFOI.prototype.enableInfoWindow=function(x18)
{
this._f150=x18;
}
MVFOI.prototype.enableInfoTip=function(x19)
{
this._f151=x19;
}
MVFOI.prototype.setFOIOrds=function(x20)
{
this._f68=MVUtil._f92(x20).toUpperCase();
}
MVFOI.prototype.setFOIGtype=function(x21)
{
this.gtype=x21;
}
MVFOI.prototype.setVisible=function(x22)
{
this.visible=x22;
this.parent._f167._f168(this,x22);
}
MVFOI.prototype.isVisible=function()
{
return this.visible;
}
MVFOI.prototype.getId=function()
{
return this.id;
}
MVFOI.prototype.setClickable=function(x23)
{
this._f147=x23;
}
MVFOI.prototype.setInfoTip=function(x24)
{
if(x24)
this._f147=true;
this._f146=x24;
}
MVFOI.prototype.setInfoWindow=function(x25,x26,x27,x28,x29,x30)
{
this._f142=x25;
this._f157=x26;
this._f158=x27;
this._f162=x28;
this._f163=x29;
this._f164=x30;
}
MVFOI.prototype.enableEventPropagation=function(x31)
{
this._f159=x31;
}
MVFOI.prototype.setZIndex=function(x32)
{
this._f43=x32;
if(this.node)
this.node.zIndex=x32;
}
MVFOI.prototype.getMBR=function()
{
var x33=new Array(4);
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
x33[0]=parseFloat(this._f68[4]);
x33[1]=parseFloat(this._f68[3])-
(parseFloat(this._f68[0])-parseFloat(this._f68[4]));
x33[2]=parseFloat(this._f68[0]);
x33[3]=parseFloat(this._f68[3]);
}
else
 {
x33[0]=parseFloat(this._f68[0]);
x33[1]=parseFloat(this._f68[1]);
x33[2]=parseFloat(this._f68[0]);
x33[3]=parseFloat(this._f68[1]);
for(var x34=2;x34<this._f68.length;x34=x34+2)
{
if(parseFloat(this._f68[x34])<x33[0])x33[0]=parseFloat(this._f68[x34]);
if(parseFloat(this._f68[x34])>x33[2])x33[2]=parseFloat(this._f68[x34]);
if(parseFloat(this._f68[x34+1])<x33[1])x33[1]=parseFloat(this._f68[x34+1]);
if(parseFloat(this._f68[x34+1])>x33[3])x33[3]=parseFloat(this._f68[x34+1]);
}
}
return x33;
}
MVFOI.prototype._f169=function(x35){
var x36=x35;
var x37="";
var x38=x36.length;
for(var x39=this.elemInfo.length;x39>0;x39=x39-3)
{
var x40=0;
if(this.elemInfo[x39-2]%10==3&&this.elemInfo[x39-1]==3){
for(var x41=0;x41<this.elemInfo[x39-3]-1;x41++)
x40=x36.indexOf(",",x40)+1;
var x42=x40;var x43=x40;if(x39==this.elemInfo.length){
x42=x36.length;
for(var x44=0;x44<2;x44++)
x43=x36.indexOf(",",x43)+1;
x43--;
}
else
 {
for(var x45=0;x45<4;x45++)
{
x42=x36.indexOf(",",x42)+1;
if(x45==1)
x43=x42;
}
x42--;
x43--;
}
x37=x36.substring(x40,x42);
var x46=new Array(4);
var x47=1;
var x48=1;
for(var x49=0;x49<4;x49++){
x48=x37.indexOf(",",x47);
if(x49==3)x48=x37.length;
if(x49==0)x47--;
x46[x49]=x37.substring(x47,x48);
x47=x48+1;
}
var x50=x46[0]+","+x46[3];
var x51=x46[2]+","+x46[1];
this.elemInfo[x39-1]=1;
if(x39==this.elemInfo.length){
x36=x36+","+x51;
}
else
 {
this.elemInfo[x39-3+3]=this.elemInfo[x39-3+3]*1+4;
x36=x36.substring(0,x42)+","+x51+","+
x36.substring(x42+1,x36.length);
}
x36=x36.substring(0,x43)+","+x50+","+
x36.substring(x43+1,x36.length);
}
}
return x36;
}
MVFOI.prototype._f170=function(x52){
var x53=x52[0]+","+x52[1];
var x54="";
for(var x55=this.elemInfo.length;x55>0;x55=x55-3)
{
var x56=this.elemInfo[x55-3]-1;var x57=this.elemInfo[x55]-1;if(x55==this.elemInfo.length)
{
x57=x52.length;}
var x58=x52[x56]+","+x52[x56+1];
var x59="";
var x60=x57-1;
for(var x61=x56;x61<=x60;x61++)
{
x59+=x52[x61]+",";
}
var x62=false;
if(x52[x56]!=x52[x57-1]||x52[x56+1]!=x52[x57])
{
x59+=x58;
x62=true;
}
if(this.elemInfo.length==3)
{
return x59;
}
if(x55==3){
x54=x59+","+x54;
}
else
 {
if(x62)
x59+=","+x53;
else
 x59+=x53;
if(x55==this.elemInfo.length)
{
x54=x59;
}
else
 {
x54=x59+","+x54;
}
}
}
return x54;
}
MVFOI.prototype._f171=function(x63)
{
var x64=new Array(this._f68.length);
var x65=new Array(this._f145[0],this._f145[1],this._f145[2],this._f145[3]);if(x65[0]<x63._f167.minX)x65[0]=x63._f167.minX;
if(x65[1]<x63._f167.minY)x65[1]=x63._f167.minY;
if(x65[3]>x63._f167.maxY)x65[3]=x63._f167.maxY;
var x66=x65[3]-x65[1];
for(var x67=0;x67<this._f68.length;x67++)
{
if(x67%2==0)
{
x64[x67]=Math.floor((this._f68[x67]-x65[0])*x63._f50+0.5);
}
else
 x64[x67]=Math.floor((x66-(this._f68[x67]-x65[1]))*x63._f51+0.5);
}
x65=null;
return x64;
}
function _f172(x0,x1)
{
var x2=new Array(x1[0],x1[1],x1[2],x1[3]);if(x2[0]<x0._f167.minX)x2[0]=x0._f167.minX;
if(x2[1]<x0._f167.minY)x2[1]=x0._f167.minY;
if(x2[3]>x0._f167.maxY)x2[3]=x0._f167.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._f50+0.5);
}
else
 {
x7=Math.floor((x6-(x4+x5*Math.sin((x9*x10)/90)-
x2[1]))*x0._f51+0.5);
}
if(x10==0)x8+=x7;
else
 x8+=","+x7;
}
x2=null;
return x8;
}
MVFOI.prototype._f173=function(x68)
{
if(this.area==null||this.area=="")
{
this.area="";
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
this.area=_f172(x68,this._f145);
}
else if(this.gtype%10==3||this.gtype%10==7)
{
var x69=this._f171(x68);
this.area=this._f170(x69);
}
}
}
MVFOI.prototype.animateToNewLocation=function(x70,x71)
{
var x72=this;
var x73=function(x74)
{
if(x74)
x70=x74;
if(x71==null)
x71=100;
x72.parent._f167.foiToNewLocation(x72,x70,x71);
}
if(!x70.srid)
x70.srid=this.parent.getSrid();
if(x70.srid&&(x70.srid!=this._f139.srid))
x70=this.parent.transformGeom(x70,this._f139.srid,null,x73);
else
 x73();
}
MVFOI.prototype.setMouseCursorStyle=function(x75)
{
this.cursorStyle=x75;
if(this._f174)
MVUtil._f175(this._f174,x75);
}
MVFOI.prototype.getGeometry=function()
{
return this._f139;
}
MVFOI.prototype.setRenderingStyle=function(x76,x77,x78)
{
this.style=x76;
if(typeof x77!='undefined')
{
if(x77)
this.width=x77;
else
 this.width=0;
}
if(typeof x78!='undefined')
{
if(x78)
this.height=x78;
else
 this.height=0;
}
}
MVFOI.prototype.setWidth=function(x79)
{
if(!x79)
x79=0;
this.width=x79;
}
MVFOI.prototype.setHeight=function(x80)
{
if(!x80)
x80=0;
this.height=x80;
}
MVFOI.prototype.updateImageURL=function(x81,x82,x83)
{
this._f141=x81;
var x84=0;
var x85=0;
if(x82)
{
x84=this.width-x82;
this.width=x82;
}
if(x83)
{
x85=this.height-x83;
this.height=x83;
}
if(this.node)
{
var x86=MVUtil._f176(this.node)+x84/2;
var x87=MVUtil._f177(this.node)+x85/2;
if(this._f161)
{
this._f161.src=x81;
MVUtil._f178(this._f161,x86,x87);
}
else if(this.node.src)
{
this.node.src=x81;
MVUtil._f178(this.node,x86,x87);
}
else if(this.node.style.filter)
{
var x88=MVUtil._f179(x81,"(","%28");
x88=MVUtil._f179(x88,")","%29");
this.node.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x88+"', sizingMethod='image');";
MVUtil._f178(this.node,x86,x87);
}
else
 {
this._f160._f180(this.id);
this._f160._f181(this);
}
}
}
MVFOI.prototype.updateGeometry=function(x89)
{
this._f139=x89;
if(this._f148)
{
if(!this._f139.srid)
this._f139.srid=this.parent.getSrid();
if(this._f139.getGType()==1&&x89.getGType()==1)
{
var x90=MVUtil._f182(this._f160.parent,this._f160.minX,this._f160.minY,
this._f160.maxX,this._f160.maxY,
this._f160.width,this._f160.height,
x89.getPointX(),x89.getPointY());
var x91=(this._f160.parent._f184-this._f160._f185)*this._f160.parent._f50;
var x92=(this._f160.parent._f187-this._f160._f188)*this._f160.parent._f51;
x90[0]-=x91;
x90[1]+=x92;
MVUtil._f178(this.node,x90[0]-this.width/2,x90[1]-this.height/2);
}
else
 {
this._f160._f180(this.id);
this._f160._f181(this);
}
}
}
MVFOI.prototype.reDraw=function()
{
if(this._f148)
{
this._f160._f180(this.id);
this._f160._f181(this);
}
}
MVFOI.prototype._f189=function()
{
if(this._f152||this._f153||
this._f154||this._f155||
this._f142||this._f146||this.cursorStyle)
return true;
else
 return false;
}
function _f190(x0)
{
this._f191=[];
this.parent=x0;
var x1=null;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f192=0;
this._f193=0;
this._f194=false;
this.div=document.createElement("div");
this.width=0;
this.height=0;
this.count=0;
this._f185=this.parent._f184;
this._f188=this.parent._f187;
this._f195=null;
this.div.style.position="absolute";
this.div.style.zIndex=120;
this._f196=document.createElement("div");
this._f196.style.position="absolute";
this._f196.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._f196);
}
else
 {
document.body.appendChild(this.div);
document.body.appendChild(this._f196);
}
}
_f190.prototype.setScope=function()
{
var x93=(this._f197()-this.parent._f53())*0.5/this.parent._f50;
var x94=(this._f198()-this.parent._f55())*0.5/this.parent._f51;
this.minX=this.parent._f199-x93;
this.minY=this.parent._f200-x94;
this.maxX=this.parent._f201+x93;
this.maxY=this.parent._f202+x94;
}
_f190.prototype.foiToNewLocation=function(x95,x96,x97)
{
if(x97)
x95.time=x97;
else
 x95.time=this.time;
this.parent._f203(true);
var x98=new Array();
var x99=new Array();
if(x96.getFirstPoint()){
x98.push(x96.getPointX());
x99.push(x96.getPointY());
}
else
 {
var x100=x96.getDimensions();
for(var x101=0;x101<=x96.getOrdinates().length-x100;x101=x101+x100)
{
x98.push(x96.getOrdinates()[x101]);
x99.push(x96.getOrdinates()[x101+1]);
}
}
var x102=0;
if(x98.length<=x102||x99.length<=x102)
return;
this.setScope();
var x103=MVUtil._f182(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x98[x102],x99[x102]);
var x104=Math.round(x103[0]-x95.width/2);
var x105=Math.round(x103[1]-x95.height/2);
if(!x95.move_id)
{
clearTimeout(x95.move_id);
x95.move_id=null;
}
x95.move_id=this.setTimeout("this.moveFoi(["+x98+"],["+x99+"],"+x102+","+x104+","+x105+",\""+x95.id+"\")",x95.time);
}
_f190.prototype.moveFoi=function(x106,x107,x108,x109,x110,id,x111,x112)
{
var x113=document.getElementById(id);
var x114=parseInt(x113.style.left);
var x115=parseInt(x113.style.top);
var x116=x109-x114;
var x117=x110-x115;
var x118=Math.sqrt(x116*x116+x117*x117);
var x119=5;
var x120=this._f205(id);
if(x119>x118)
{
x113.style.left=x109+"px";
x113.style.top=x110+"px";
clearTimeout(x120.move_id);
x120.move_id=null;
pointx=x106[x108];
pointy=x107[x108];
x120._f139.sdo_point.x=x106[x108];
x120._f139.sdo_point.y=x107[x108];
x120.x=x106[x108];
x120.y=x107[x108];
x108++;
if(x106.length<=x108||x107.length<=x108)
{
this.parent._f203(false);
return;
}
var x121=MVUtil._f182(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x106[x108],x107[x108]);
var x122=Math.round(x121[0]-x120.width/2);
var x123=Math.round(x121[1]-x120.height/2);
x120.move_id=this.setTimeout("this.moveFoi(["+x106+"],["+x107+"],"+x108+","+x122+","+x123+",\""+id+"\")",x120.time);
}
else
 {
var x124=Math.round(x119*x116/x118);
var x125=Math.round(x119*x117/x118);
x113.style.left=parseInt(x113.style.left)+x124+"px";
x113.style.top=parseInt(x113.style.top)+x125+"px";
x120.move_id=this.setTimeout("this.moveFoi(["+x106+"],["+x107+"],"+x108+","+x109+","+x110+",\""+id+"\")",x120.time);
}
}
_f190.prototype.setTimeout=function(_f208,_f209)
{
var Ie="tempVar"+_f210;
_f210++;
eval(Ie+" = this;");
var oi=_f208.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f209);
}
_f190.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f190.prototype.setSize=function(x126,x127)
{
this.width=x126;
this.height=x127;
}
_f190.prototype._f168=function(x128,x129)
{
var x130=x128.id;
for(var x131=0;x131<this._f191.length;x131++)
{
if(this._f191[x131].id==x130)
{
this._f191[x131].visible=x129;
if(!x129&&this.parent._f211._f212.length>0)
if(this.parent._f211._f212[0].nid==x130)
{
this.parent._f211.deleteInfoWindow(this.parent._f211._f212[0]);
}
}
}
if(x129)
x128.node.style.visibility="visible";
else
 x128.node.style.visibility="hidden";
}
_f190.prototype._f194=function()
{
return this._f194;
}
_f190.prototype._f176=function()
{
if(this._f194)
return this._f192;
else
 return MVUtil._f176(this.div);
}
_f190.prototype._f177=function()
{
if(this._f194)
return this._f193;
else
 return MVUtil._f177(this.div);
}
_f190.prototype._f197=function()
{
return this.width;
}
_f190.prototype._f198=function()
{
return this.height;
}
_f190.prototype._f213=function()
{
return this.minX;
}
_f190.prototype._f214=function()
{
return this.minY;
}
_f190.prototype._f215=function()
{
return this.maxX;
}
_f190.prototype._f216=function()
{
return this.maxY;
}
_f190.prototype._f217=function()
{
return this.div;
}
_f190.prototype.getTopContainer=function()
{
return this._f196;
}
_f190.prototype._f218=function(x132)
{
this._f195=x132;
}
_f190.prototype._f219=function(x133)
{
for(var x134=0;x134<this.div.childNodes.length;x134++)
{
if(x133==(this.div.childNodes[x134]).id)
{
var x135=this.div.childNodes[x134];
this.div.removeChild(x135);
MVUtil._f220(x135);
return;
}
}
for(var x134=0;x134<this._f196.childNodes.length;x134++)
{
if(x133==(this._f196.childNodes[x134]).id)
{
var x135=this._f196.childNodes[x134];
this._f196.removeChild(x135);
MVUtil._f220(x135);
return;
}
}
}
_f190.prototype._f221=function()
{
var x136=this._f191.length;
for(var x137=0;x137<x136;x137++)
{
var x138=this._f191.pop();
MVUtil._f222(x138);
if(this.parent._f211._f212.length>0)
if(this.parent._f211._f212[0].nid==x138.id)
{
this.parent._f211.deleteInfoWindow(this.parent._f211._f212[0]);
}
}
MVUtil._f223(this.div);
MVUtil._f223(this._f196);
}
_f190.prototype._f180=function(x139)
{
var x140=null;
for(var x141=0,x142=0,x143=0;x141<this._f191.length;x141++,x142++,x143++)
{
if(this._f191[x141].id==x139)
{
if(this.parent._f211._f212.length>0)
if(this.parent._f211._f212[0].nid==x139)
{
this.parent._f211.deleteInfoWindow(this.parent._f211._f212[0]);
}
this._f191[x141]=this._f191[this._f191.length-1];
MVUtil._f222(this._f191.pop());
x141--;
}
if(x143<this.div.childNodes.length&&this.div.childNodes[x143].id==x139)
{
var x144=this.div.childNodes[x143];
this.div.removeChild(x144);
MVUtil._f220(x144);
x144=null;
x143--;
}
if(x142<this._f196.childNodes.length&&
this._f196.childNodes[x142].id==x139)
{
var x144=this._f196.childNodes[x142];
this._f196.removeChild(x144);
MVUtil._f220(x144);
x144=null;
x142--;
}
}
return x140;
}
_f190.prototype._f205=function(x145)
{
for(var x146=0;x146<this._f191.length;x146++)
{
if(x145==this._f191[x146].id)
{
return this._f191[x146];
}
}
return null;
}
_f190.prototype._f181=function(x147)
{
this._f191.push(x147);
if(this.parent._f224&&(x147.visible==true))
{
this._f225(x147,true);
}
}
_f190.prototype._f226=function(x148)
{
var x149=x148.getMBR()[0];
var x150=x148.getMBR()[1];
var x151=x148.getMBR()[2];
var x152=x148.getMBR()[3];
var x153=(this.minX==0?x149:this.minX);
var x154=(this.minY==0?x150:this.minY);
var x155=(this.maxX==0?x151:this.maxX);
var x156=(this.maxY==0?x152:this.maxY);
var x157=x149<x153?x153:x149;
var x158=x150<x154?x154:x150;
var x159=x151<x155?x151:x155;
var x160=x152<x156?x152:x156;
var x161=Math.abs(x159-x157);
var x162=Math.abs(x160-x158);
var x163={"x":x157,"y":x160,"width":x161,"height":x162};
return x163;
}
_f190.prototype._f225=function(x164,x165)
{
if(!x164._f139.srid)
x164._f139.srid=this.parent.getSrid();
var x166=this;
var x167=function(x168)
{
if(x168)
x164._f139=x168;
if(x164.gtype%10==1)
{
x164._f68=x164._f139.getFirstPoint();
}
else
 {
x164.elemInfo=x164._f139.sdo_elem_info.toString().split(",");
var x169=x164._f139.sdo_ordinates.toString();
while(x169.indexOf(" ")!=-1)
{
x169=MVUtil._f179(x169," ","");
}
for(var x170=0;x170<x164.elemInfo.length;x170+=3){
if(x164.elemInfo[x170+2]*1==3){
x169=x164._f169(x169);
break;
}
}
x164._f68=x169.split(",");
}
x164._f145=x164.getMBR();
x164.x=x164._f145[0];
x164.y=x164._f145[3];
if(x164.gtype%10!=1)
{
x164.width=x164._f145[2]-x164._f145[0];
x164.height=x164._f145[3]-x164._f145[1];
}
x166._f227(x164,x165);
}
if(x164._f139.srid&&(x164._f139.srid!=this.parent.srid))
this.parent.transformGeom(x164._f139,this.parent.srid,null,x167);
else
 x167();
}
_f190.prototype._f227=function(foi,check)
{
var styleStr=null;
if(foi.style)
{
if(foi.style.getXMLString)
styleStr=foi.style.getXMLString();
else
 styleStr=foi.style;
}
if(foi.gtype%10==1)
{
if(styleStr)
foi._f141=foi._f140+"?request=getpoiimage&version=1.0"+
"&poistyle="+encodeURIComponent(styleStr)+
"&width="+foi.width+"&height="+foi.height;
this._f228(foi);
return;
}
if(_f15._f81=="IF")
styleStr=encodeURIComponent(styleStr);
var _f229=foi._f139.toString();var url=foi._f140+"?request=getfigimage&version=1.0"+
"&figstyle="+encodeURIComponent(styleStr)+
"&ratx="+this.parent._f50+"&raty="+
this.parent._f51+"&figord="+_f229+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY;
if(url.length<_f15._f128&&
(!foi._f189()||_f15._f81=="IF"))
{
foi._f141=url;
this._f228(foi);
return;
}
try
{
var _f230=this;
var localDomain=(MVUtil._f95(foi._f140)==MVUtil._f95(_f15._f96()));
var xmlHttp=localDomain||MVMapView._f97;
var _f231=MVUtil.getXMLHttpRequest(xmlHttp);
if(MVMapView._f97&&!localDomain)
foi._f140=_f15._f134()+"?rtarget="+foi._f140;
_f231.open("POST",foi._f140,true);
_f231.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f231.onreadystatechange=MVUtil._f59(_f231,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._f141=res.imgurl;
if(res.area&&res.area!="")
foi.area=res.area;
if(check)
{
if(foi._f149)
for(var td=0;td<_f230._f196.childNodes.length;td++)
{
if(_f230._f196.childNodes[td].id==foi.id)
{
_f230._f196.removeChild(_f230._f196.childNodes[td]);
break;
}
}
else
 for(var td=0;td<_f230.div.childNodes.length;td++)
{
if(_f230.div.childNodes[td].id==foi.id)
{
_f230.div.removeChild(_f230.div.childNodes[td]);
break;
}
}
}
_f230._f228(foi);
}
}
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5500",e+". \nFrom: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
});
_f231.send("request=getfig&version=1.0"+
"&figstyle="+encodeURIComponent(styleStr)+
"&ratx="+this.parent._f50+"&raty="+
this.parent._f51+"&figord="+_f229+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY);
}
catch(ex)
{
MVi18n.processLocale("MAPVIEWER-5500",ex+". \nFrom: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
}
_f190.prototype._f232=function()
{
return this._f191;
}
_f190.prototype._f233=function(x171,x172,x173,x174)
{
this._f194=true;
this.parent._f234();
this.minX=x171;
this.minY=x172;
this.maxX=x173;
this.maxY=x174;
this._f185=this.parent._f184;
this._f188=this.parent._f187;
this._f192=Math.ceil((this.minX-this.parent._f199)*this.parent._f50);
this._f193=-Math.ceil((this.maxY-this.parent._f202)*this.parent._f51);
MVUtil._f178(this.div,this._f192,this._f193);
MVUtil._f178(this._f196,this._f192,this._f193);
MVUtil._f223(this.div);
MVUtil._f223(this._f196);
if(this._f195)
this._f195;
var x175=this;
for(var x176=0;x176<this._f191.length;x176++)
{
var x177=this._f191[x176];
this._f225(x177,true);
}
}
_f190.prototype._f166=function(x178)
{
var x179=this;
var x180=x178._f159;
var x181=function(x182)
{
x182=(x182)?x182:((window.event)?event:null);
if(x182&&!x180)
{
if(_f15._f81=="IF")
x182.cancelBubble=true;
else if(x182.stopPropagation)
x182.stopPropagation();
}
}
var x183=function(x184)
{
x184=(x184)?x184:((window.event)?event:null);
if(x184&&!x180)
{
MVUtil._f39(x184);
}
}
var x185=function(x186)
{
mouseL1=MVUtil._f236(x186);
x181(x186);
}
var x187=function(x188)
{
mouseL2=MVUtil._f236(x188);
if(mouseL1.x==mouseL2.x&&mouseL1.y==mouseL2.y)
{
x188=(x188)?x188:((window.event)?event:null);
if(x188.button==2)
return;
if(!x178._f237&&x179.parent._f238)
return;
var x189=MVUtil.getMouseLocation(x179.parent,x188);
if(x178._f152)
{
x179.parent._f239();
var x190=MVSdoGeometry.createPoint(x189.sdo_point.x,x189.sdo_point.y,x179.parent.srid);
x178._f152(x190,x178,MVUtil.getEvent(x188));
}
else if(x178._f150&&x178._f142)
{
if(x178._f157>0&&x178._f158>0)
x179.parent._f211._f240(x178._f142,x178.id,
x189.sdo_point.x,x189.sdo_point.y,x178._f157,x178._f158,x178._f162,x178._f163);
else
 x179.parent._f211._f240(x178._f142,x178.id,
x189.sdo_point.x,x189.sdo_point.y,null,null,x178._f162,x178._f163);
}
}
x183(x188);
}
var x191=function(x192)
{
if(x178._f153)
{
var x193=MVUtil.getMouseLocation(x179.parent,x192);
var x194=MVSdoGeometry.createPoint(x193.sdo_point.x,x193.sdo_point.y,x179.parent.srid);
x178._f153(x194,x178,MVUtil.getEvent(x192));
}
x183(x192);
}
if(x178._f147)
{
if(x178._f141&&x178.gtype%10!=1&&_f15._f81!="IF")
{
var x195="0,0";
if(x178.area.length>0)
x195=x178.area;
x178._f174.setAttribute("shape","poly");
x178._f174.setAttribute("coords",x195);
if((x178._f152||((x178._f150&&x178._f142)))
&&_f15._f81!="OS")
x178._f174.setAttribute("href","javascript:void(0)");
}
if(x178._f152||(x178._f150&&x178._f142))
MVUtil._f175(x178._f174,"pointer");
x178._f174.onmousedown=x185;
x178._f174.onmouseup=x187;
x178._f174.oncontextmenu=x191;
}
if(x178.cursorStyle)
MVUtil._f175(x178._f174,x178.cursorStyle);
}
_f190.prototype._f228=function(x196)
{
x196._f148=true;
x196._f160=this;
var x197=MVUtil._f182(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x196.x,x196.y);
var x198=(this.parent._f184-this._f185)*this.parent._f50;
var x199=(this.parent._f187-this._f188)*this.parent._f51;
var x200;
var x201=MVUtil._f241(x196._f141.toLowerCase(),'png');
if(!(_f15._f81=='IF'&&(x196.style!=""||x201))&&!x196.html)
{
if(x196.gtype%10==1)
x200=document.createElement('img');
else
 x200=document.createElement('div');
}
else
 x200=document.createElement('div');
if(x196.visible)
x200.style.visibility="visible";
else
 x200.style.visibility="hidden";
x200.style.position="absolute";
var x202=this;
var x203=MVSdoGeometry.createPoint(0,0);
var x204=x203;
var x205=x196._f159;
var x206=function(x207)
{
x207=(x207)?x207:((window.event)?event:null);
if(x207&&!x205)
{
if(_f15._f81=="IF")
x207.cancelBubble=true;
else if(x207.stopPropagation)
x207.stopPropagation();
}
}
var x208=function(x209)
{
x209=(x209)?x209:((window.event)?event:null);
if(x209&&!x205)
{
MVUtil._f39(x209);
}
}
var x210=function(x211)
{
x203=MVUtil._f236(x211);
x206(x211);
}
var x212=function(x213)
{
x204=MVUtil._f236(x213);
if(x203.x==x204.x&&x203.y==x204.y)
{
x213=(x213)?x213:((window.event)?event:null);
if(x213.button==2)
return;
if(x202.parent._f238)
return;
var x214=MVUtil.getMouseLocation(x202.parent,x213);
if(x196._f152)
{
x202.parent._f239();
var x215=MVSdoGeometry.createPoint(x214.sdo_point.x,x214.sdo_point.y,x202.parent.srid);
x196._f152(x215,x196,MVUtil.getEvent(x213));
}
else if(x196._f150&&x196._f142)
{
if(x196._f157>0&&x196._f158>0)
x202.parent._f211._f240(x196._f142,x196.id,
x214.sdo_point.x,x214.sdo_point.y,x196._f157,x196._f158,x196._f162,x196._f163);
else
 x202.parent._f211._f240(x196._f142,x196.id,
x214.sdo_point.x,x214.sdo_point.y,null,null,x196._f162,x196._f163);
}
}
x208(x213);
}
var x216=function(x217)
{
var x218=MVUtil.getMouseLocation(x202.parent,x217);
if(x196._f154)
{
var x219=MVSdoGeometry.createPoint(x218.sdo_point.x,x218.sdo_point.y,x202.parent.srid);
x196._f154(x219,x196,MVUtil.getEvent(x217));
}
if(x196._f156)
{
x196._f165=x200.style.zIndex;
x200.style.zIndex=1000;
}
if(x196._f146&&x196._f151&&_f15._f81=="OS")
x202.parent._f211.showTextTip(x196._f146,x218.sdo_point.x,x218.sdo_point.y);
};
var x220=function(x221)
{
if(x196._f155)
{
var x222=MVUtil.getMouseLocation(x202.parent,x221);
var x223=MVSdoGeometry.createPoint(x222.sdo_point.x,x222.sdo_point.y,x202.parent.srid);
x196._f155(x223,x196,MVUtil.getEvent(x221));
}
if(x196._f156)
x200.style.zIndex=x196._f165;
if(x196._f146)
x202.parent._f211._f242();
};
var x224=function(x225)
{
if(x196._f153)
{
var x226=MVUtil.getMouseLocation(x202.parent,x225);
var x227=MVSdoGeometry.createPoint(x226.sdo_point.x,x226.sdo_point.y,x202.parent.srid);
x196._f153(x227,x196,MVUtil.getEvent(x225));
}
x208(x225);
}
x196._f174=x200;
if(x196._f141)
{
x200.className="noprint";
if(!x196.visible)
x200.style.visibility="hidden";
if(x196.id&&x196.id!=null)
x200.id=x196.id;
x200._f243=x196.x;
x200._f244=x196.y;
x200.style.zIndex=x196._f43;
if(x196._f149)
this._f196.appendChild(x200);
else
 this.div.appendChild(x200);
if(x196.gtype%10!=1)
{
var x228=this._f226(x196);
x200.style.width=MVUtil._f246(Math.round(x228.width*this.parent._f50+0.5));
x200.style.height=MVUtil._f246(Math.round(x228.height*this.parent._f51+0.5));
var x229;
var x230;
if(x196._f145[0]>this.maxX||x196._f145[2]<this.minX||
x196._f145[1]>this.maxY||x196._f145[3]<this.minY)
{
return;
}
if(x197[0]>-this.parent._f247&&x197[0]<-this.parent._f247+this.width)
{
x229=x197[0];
}
else if(x197[0]<-this.parent._f247)
{
x229=-this.parent._f247;
}
else {
return;
}
if(x197[1]>-this.parent._f248&&x197[1]<-this.parent._f248+this.height)
{
x230=x197[1];
}
else if(x197[1]<-this.parent._f248)
{
x230=-this.parent._f248;
}
else {
return;
}
x229=Math.floor(x229+0.5);
x230=Math.floor(x230+0.5);
x229-=x198;
x230+=x199;
MVUtil._f178(x200,x229,x230);
if(_f15._f81=="IF")
{
var x231=MVUtil._f179(x196._f141,"(","%28");
x231=MVUtil._f179(x231,")","%29");
x200.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x231+"', sizingMethod='image');";
x200.onmouseover=x216;
x200.onmouseout=x220;
if(x196._f146&&x196._f151)
{
x200.setAttribute("title",x196._f146);
}
if(x196._f147&&x196._f189())
{
if(x196._f152||((x196._f150&&x196._f142)))
MVUtil._f175(x200,"pointer");
x200.onmousedown=x210;
x200.onmouseup=x212;
x200.oncontextmenu=x224;
}
if(x196.cursorStyle)
MVUtil._f175(x200,x196.cursorStyle);
x200.ondblclick=x208;
x200.onclick=x208;
x200.onkeyup=x206;
if(_f15._f81=="OS")
x200.onkeypress=x206;
else
 x200.onkeydown=x206;
MVUtil._f249(x200);
}
else
 {
var x232=_f250(x196._f141,0,0,0,0,10);
x196._f161=x232;
x200.appendChild(x232);
x196.node=x200;
if(!x196._f189())
return ;
x196._f173(x202.parent);
var x233=document.createElement("map");var x234=document.createElement("area");
x233.setAttribute("name",x196.id);
x234.setAttribute("border",0);
if(x196._f146&&x196._f151)
{
if(_f15._f81!="OS")
x234.setAttribute("title",x196._f146);
}
x234.onmouseover=function(x235)
{
x216(x235);
};
x234.onmouseout=function(x236)
{
x220(x236);
};
x196._f174=x234;
x234.ondblclick=x208;
x234.onclick=x208;
if(x196.cursorStyle)
MVUtil._f175(x234,x196.cursorStyle);
if(x196._f147&&x196._f189())
{
var x237="0,0";
if(x196.area.length>0)
x237=x196.area;
x234.setAttribute("shape","poly");
x234.setAttribute("coords",x237);
if((x196._f152||((x196._f150&&x196._f142)))
&&_f15._f81!="OS")
x234.setAttribute("href","javascript:void(0)");
x234.onmousedown=x210;
x234.onmouseup=x212;
x234.oncontextmenu=x224;
}
else
 {
x234.setAttribute("shape","poly");
x234.setAttribute("coords","0,0");
}
x232.setAttribute("usemap","#"+x196.id);
x200.style.border=0;
x200.appendChild(x233);
x233.appendChild(x234);
}
}
else
 {
x197[0]-=x198;
x197[1]+=x199;
MVUtil._f178(x200,x197[0]-x196.width/2,x197[1]-x196.height/2);
if((_f15._f81=='IF')&&
(x196.style!=""||x201))
{
x200.style.width=MVUtil._f246(x196.width);
x200.style.height=MVUtil._f246(x196.height);
var x231=MVUtil._f179(x196._f141,"(","%28");
x231=MVUtil._f179(x231,")","%29");
if(x196._f146&&x196._f151&&_f15._f81!="OS")
{
x200.setAttribute("title",x196._f146);
}
x200.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x231+"', sizingMethod='image');";
}
else
 {
if(x196._f146&&x196._f151&&_f15._f81!="OS")
{
x200.setAttribute("title",x196._f146);
}
if(x196.html)
{
var x238=document.createElement("img");
x196._f161=x238;
x238.style.position="relative";
x238.style.left=MVUtil._f246(0);
x238.style.top=MVUtil._f246(0);
x238.setAttribute("id",x196.id);
x238.src=x196._f141;
x238.setAttribute("border",0);
x200.appendChild(x238);
var x239=document.createElement("div");
x239.style.position="absolute";
var x240=x196._f143;
var x241=x196._f144;
x239.style.left=MVUtil._f246(x240);
x239.style.top=MVUtil._f246(x241);
x239.style.padding=MVUtil._f246(0);
x196.foiDiv=x239;
x239.innerHTML=x196.html;
x200.appendChild(x239);
}
else
 {
x196._f161=x200;
x200.src=x196._f141;
x200.setAttribute("border",0);
}
}
x200.onmouseover=x216;
x200.onmouseout=x220;
x200.ondblclick=x208;
x200.onclick=x208;
if(x196._f147&&x196._f189())
{
if(x196._f152||((x196._f150&&x196._f142)))
MVUtil._f175(x200,"pointer")
x200.onmousedown=x210;
x200.onmouseup=x212;
x200.oncontextmenu=x224;
}
if(x196.cursorStyle)
MVUtil._f175(x200,x196.cursorStyle);
MVUtil._f249(x200);
}
}
else if(x196.gtype%10==1)
{
x200.id=x196.id;
x200.style.width=MVUtil._f246(x196.width);
x200.style.height=MVUtil._f246(x196.height);
x197[0]-=x198;
x197[1]+=x199;
MVUtil._f178(x200,x197[0]-x196.width/2,x197[1]-x196.height/2);
this._f196.appendChild(x200);
x200.onmouseover=x216;
x200.onmouseout=x220;
x200.ondblclick=x208;
x200.onclick=x206;
x200.onkeyup=x206;
if(_f15._f81=="OS")
x200.onkeypress=x206;
else
 {
x200.onkeydown=x206;
x200.oncontextmenu=x206;
}
if(_f15._f81=="IF")
x200.onselectstart=x206;
if(x196._f146&&x196._f151&&_f15._f81!="OS")
{
x200.title=x196._f146;
}
if(x196._f147&&x196._f189())
{
if(x196._f152||((x196._f150&&x196._f142)))
MVUtil._f175(x200,"pointer")
x200.onmousedown=x210;
x200.onmouseup=x212;
x200.oncontextmenu=x224;
}
if(x196.cursorStyle)
MVUtil._f175(x200,x196.cursorStyle);
if(x196.html)
{
var x239=document.createElement("div");
x239.style.position="absolute";
var x240=x196._f143;
var x241=x196._f144;
x239.style.left=MVUtil._f246(x240);
x239.style.top=MVUtil._f246(x241);
x239.style.padding=MVUtil._f246(0);
x196.foiDiv=x239;
x239.innerHTML=x196.html;
x200.appendChild(x239);
}
}
x196.node=x200;
}
_f190.prototype._f251=function()
{
var x242="";
for(var x243=0;x243<this._f191.length-1;x243++)
{
for(var x244=1;x244<this._f191.length;x244++)
{
if(this._f191[x243]._f149&&!this._f191[x244]._f149)
{
var x245=this._f191[x243];
this._f191[x243]=this._f191[x244];
this._f191[x244]=x245;
}
}
}
for(var x243=0;x243<this._f191.length;x243++)
{
if(this._f191[x243].style&&this._f191[x243].visible)
{
var x246=this._f191[x243].style.name==null?
MVUtil._f252(this._f191[x243].style):
this._f191[x243].style.name;
x242+=this._f253(this._f191[x243]._f139,x246);
}
}
return x242;
}
_f190.prototype._f253=function(x247,x248)
{
var x249=x247.toGML();
if(x248.getXMLString)
x248=x248.name;
var x250="<geoFeature render_style=\""+x248+"\"><geometricProperty>"+x249+"</geometricProperty></geoFeature>"
return x250;
}
_f190.prototype.destroy=function()
{
this._f221();
this._f191=null;
}
function MVRedlineTool(linestyle,areastyle,foiServerURL)
{
var _f122=eval(_f15._f122);
++_f122;
_f15._f122=_f122;
this.id=_f122;
this.parent="";
this._f140=foiServerURL;
this._f641=linestyle;
this._f21=areastyle;
this.markerStyle=null;
this._f6=0;
this._f7=0;
this._f500=0;
this._f501=0;
this._f642=new Array();
this.state=0;
this._f643=0;
this._f644=0;
this._f645=null;
this._f646=5;
this._f647=5;
this._f648=false;
this._f649=false;
this._f650=null;
var _f651=this;
this._f652=null;
this._f30=null;
this._f653=new Array();
this._f654=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if((_f15._f123)!=_f651||
(x0!=null&&x0.button==2))
return;
MVUtil._f39(x0);
_f651._f643=1;
_f651._f644=1;
if(_f15._f81=="IF")
{
_f651._f500=x0.clientX+document.body.scrollLeft;
_f651._f501=x0.clientY+document.body.scrollTop;
}
else
 {
_f651._f500=x0.pageX;
_f651._f501=x0.pageY;
}
}
this._f655=function(x1)
{
x1=(x1)?x1:((window.event)?event:null);
if((_f15._f123)!=_f651||_f651._f644!=1||
(x1!=null&&x1.button==2))
return;
_f651._f644=0;
if(_f651._f643==1&&_f651.state==1)
{
MVUtil._f39(x1);
_f651.parent._f429=null;
_f651._f643=0;
_f651._f6=_f651.parent._f45();
_f651._f7=_f651.parent._f46();
if(_f651._f648)
{
var x2=_f651.parent._f182(_f651._f6,_f651._f7);
var x3=_f651.parent._f182(_f651._f642[0],_f651._f642[1]);
if(Math.abs(x2.x-x3.x)<=5&&Math.abs(x2.y-x3.y)<=5)
{
_f651.generateArea();
if(_f651._f30)
_f651._f30();
return ;
}
}
var x4;
if(_f651._f645)
{
x4=new MVFOI("-RL8RL"+_f651.id,
MVSdoGeometry.createPoint(_f651._f6,_f651._f7,_f651.parent.srid),"",
_f651._f645,_f651._f646,_f651._f647);
}
else
 {
if(!_f651.markerStyle)
{
_f651.markerStyle=new MVStyleMarker("-redline-point-marker","vector");
_f651.markerStyle.setStrokeColor("000000");
_f651.markerStyle.setStrokeWidth(1.5);
_f651.markerStyle.setFillColor("ff5555");
_f651.markerStyle.setVectorShape("c:30");
}
x4=new MVFOI("-RL8RL"+_f651.id,MVSdoGeometry.createPoint(_f651._f6,_f651._f7,_f651.parent.srid),
_f651.markerStyle,null,12,12);
}
x4.enableInfoTip(false);
x4.setZIndex(200);
x4._f237=true;
x4.enableInfoWindow(false);
_f651.parent.addFOI(x4);
_f651._f653.push(x4);
_f651._f642.push(_f651._f6);
_f651._f642.push(_f651._f7);
var x5=(_f651._f642.length);
if(x5>=4)
{
var x6=new MVFOI("-RL6RL"+_f651.id,MVSdoGeometry.createLineString(_f651._f642.slice((x5-4)),(_f651.parent.srid)),_f651._f641,_f651._f140);
x6.setZIndex(100);
x6.enableInfoTip(false);
x6.enableInfoWindow(false);
x6.setClickable(false);
x6.setTopFlag(true);
_f651.parent.addFOI(x6);
}
if(_f651._f649&&x5>4)
{
var x7=new Array(x5+2);
for(var x8=0;x8<x5;x8++)
x7[x8]=_f651._f642[x8];
x7[x5]=_f651._f642[0];
x7[x5+1]=_f651._f642[1];
_f651._f650.updateGeometry(MVSdoGeometry.createPolygon(x7,_f651.parent.srid));
}
if(_f651._f652)
_f651._f652();
}
}
this.mouse_move=function(x9)
{
x9=(x9)?x9:((window.event)?event:null);
if((_f15._f123)!=_f651||
(x9!=null&&x9.button==2))
return;
if(_f651._f644==1)
{
var x10=0;
var x11=0;
if(_f15._f81=="IF")
{
x10=x9.clientX+document.body.scrollLeft-_f651._f500;
x11=x9.clientY+document.body.scrollTop-_f651._f501;
}
else
 {
x10=x9.pageX-_f651._f500;
x11=x9.pageY-_f651._f501;
}
var x12=_f15.redlineIgnoreMove;
if((x10*x10+x11*x11)>(x12*x12))
_f651._f644=2;
}
}
this.getStatus=function()
{
return state;
}
this.init=function()
{
this.parent._f238=true;
if(this.state==0)
{
if(_f15._f81=="IF")
{
this.parent._f57.attachEvent("onmousedown",this._f654);
this.parent._f57.attachEvent("onmouseup",this._f655);
this.parent._f57.attachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f57.addEventListener("mousedown",this._f654,false);
this.parent._f57.addEventListener("mouseup",this._f655,false);
this.parent._f57.addEventListener("mousemove",this.mouse_move,false);
}
}
_f15._f123=this;
this.parent.removeFOI("-RL2RL"+this.id);
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
this.parent.removeFOI("-RL10RL"+this.id);
if(this._f649)
{
this._f650=new MVFOI("-RL10RL"+this.id,
MVSdoGeometry.createPolygon([0,0,0,0,0,0,0,0],this.parent.srid),
this._f21,
this._f140);
this._f650.enableInfoTip(false);
this._f650.enableInfoWindow(false);
this._f650.setClickable(false);
this.parent.addFOI(this._f650);
}
this._f642=new Array();
this.state=1;
}
this.generateArea=function()
{
if(this.state==1)
{
if(this._f642.length<6)
{
MVi18n.processLocale("MAPVIEWER-5512");
return;
}
else
 {
this.state=2;
while(this._f653.length>0)
{
var x13=this._f653.pop();
this.parent.removeFOI(x13);
}
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
this.parent.removeFOI("-RL10RL"+this.id);
var x14=this._f642.length;
if(this._f642[0]!=this._f642[x14-2]||this._f642[1]!=this._f642[x14-1])
{
this._f642.push(this._f642[0]);
this._f642.push(this._f642[1]);
}
}
var x15=new MVFOI("-RL2RL"+this.id,MVSdoGeometry.createPolygon(this._f642,this.parent.srid),this._f21,this._f140);
x15.enableInfoTip(false);
x15.enableInfoWindow(false);
x15.setClickable(false);
x15.setTopFlag(true);
this.parent.addFOI(x15);
}
this.parent._f238=false;
}
this.clear=function()
{
while(this._f653.length>0)
{
var x16=this._f653.pop();
this.parent.removeFOI(x16);
}
this.parent.removeFOI("-RL6RL"+this.id);
this.parent.removeFOI("-RL8RL"+this.id);
this.parent.removeFOI("-RL2RL"+this.id);
this.parent.removeFOI("-RL10RL"+this.id);
this._f642=null;
if(_f15._f81=="IF")
{
this.parent._f57.detachEvent("onmousedown",this._f654);
this.parent._f57.detachEvent("onmouseup",this._f655);
this.parent._f57.detachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f57.removeEventListener("mousedown",this._f654,false);
this.parent._f57.removeEventListener("mouseup",this._f655,false);
this.parent._f57.removeEventListener("mousemove",this.mouse_move,false);
}
this.state=0;
this.parent._f238=false;
}
this.setMarkerImage=function(x17,x18,x19)
{
this._f645=x17;
this._f646=x18;
this._f647=x19;
}
this.setMarkerStyle=function(x20)
{
this.markerStyle=x20;
}
this.getPolygon=function()
{
var x21=this._f642.length;
if(x21>=6&&this._f642[0]==this._f642[x21-2]&&this._f642[1]==this._f642[x21-1])
{
var x22=MVSdoGeometry.createPolygon(this._f642,this.parent.srid);
return x22;
}
else
 return null;
}
this.getPolygonFOI=function()
{
return this.parent.getFOI("-RL2RL"+this.id);
}
this.getOrdinates=function()
{
return this._f642;
}
this.addEventListener=function(x23,x24)
{
this.setEventListener(x23,x24);
}
this.setEventListener=function(x25,x26)
{
if(x25=="new_shape_point"||x25=="mouse_click")
this._f652=x26;
else if(x25=="on_finish"||x25=="finish")
this._f30=x26;
}
}
MVRedlineTool.prototype.setAutoClose=function(x0)
{
this._f648=x0;
}
MVRedlineTool.prototype.setFillArea=function(x1)
{
this._f649=x1;
}
MVRedlineTool.prototype.getPointFOIs=function()
{
return this._f653;
}
function MVRectangleTool(rectStyle,_f17)
{
this.parent=null;
this._f546=document.createElement("div");
this.innerRectangleDiv=null;
this._f546.style.position="absolute";
this._f546.style.zIndex=5000;
this._f546.style.border="#FF0000 2px dashed";
this._f546.style.visibility="hidden";
this._f20=2;
this._f17=_f17;
this._f21=rectStyle;
this._f22=(rectStyle?true:false);
this._f23=0;
this._f24=0;
this._f25=0;
this._f26=0;
this._f27=0;
this._f28=0;
this._f29=null;
this._f30=null;
this._f31=null;
this._f33=null;
var _f127=eval(_f15._f127);
++_f127;
_f15._f127=_f127;
this.id=_f127;
this._f36=0;
this._f81="NS";
var rt=this;
this._f37=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(rt.parent._f38)
MVUtil._f39(x0);
};
this._f40=function()
{
if(this.netscape==null)
{
if(_f15._f41("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this._f37,false);
}
}
this._f42=function()
{
if(this.netscape==null)
{
if(_f15._f41("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this._f37,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._f20=x1;
}
var x5="dashed";
if(x2!="")
x5=x2;
this._f546.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._f546.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._f44=function()
{
this._f23=this.parent._f45();
this._f24=this.parent._f46();
}
MVRectangleTool.prototype._f47=function()
{
this._f25=this.parent._f45();
this._f26=this.parent._f46();
}
MVRectangleTool.prototype._f638=function()
{
this._f546.style.width="0px";
this._f546.style.height="0px";
this._f546.style.clip="rect(0px, 0px, 0px, 0px)";
this._f546.style.visibility="hidden";
}
MVRectangleTool.prototype._f639=function()
{
if(this._f36!=3)
{
return;
}
var x8=(this._f23-this.parent._f52())*this.parent._f50+
(this.parent._f53()/2);
var x9=(this._f24-this.parent._f54())*(-this.parent._f51)+
(this.parent._f55()/2);
var x10=(this._f25-this.parent._f52())*this.parent._f50+
(this.parent._f53()/2);
var x11=(this._f26-this.parent._f54())*(-this.parent._f51)+
(this.parent._f55()/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._f546.style.left=x14-1-MVUtil._f176(this.parent.div)+'px';
this._f546.style.top=x15-1-MVUtil._f177(this.parent.div)+'px';
if(x12>0)
x12++;
if(x13>0)
x13++;
if(this._f81=="NS")
{
if(x12==0)
x12=(2*this._f20);
if(x13==0)
x13=(2*this._f20);
this._f546.style.width=Math.abs(x12-(2*this._f20))+'px';
this._f546.style.height=Math.abs(x13-(2*this._f20))+'px';
this._f546.style.clip="rect(0px, "+(x12)+"px, "+
(x13)+"px, 0px)";
}
else
 {
this._f546.style.width=x12+'px';
this._f546.style.height=x13+'px';
this._f546.style.clip="rect(0px, "+(x12+(2*this._f20))+"px, "+
(x13+(2*this._f20))+"px, 0px)";
}
this._f546.style.visibility="visible";
}
MVRectangleTool.prototype.generateArea=function()
{
if(this._f36!=3)
return;
this.parent.removeFOI("MVRectangleTool"+this.id);
if(!this._f22)
return;
this._f638();
if(this._f23!=this._f25&&this._f24!=this._f26)
{
this._f33=MVSdoGeometry.createRectangle(
this._f23,this._f24,this._f25,this._f26,this.parent.srid);
var x16=new MVFOI("MVRectangleTool"+this.id,this._f33,
this._f21,this._f17);
x16.setClickable(false);
x16.enableInfoTip(false);
this.parent.addFOI(x16);
}
else
 this._f33=null;
}
MVRectangleTool.prototype.init=function()
{
this._f36=1;
MVUtil._f640(this._f546);
var x17=this.parent;
var x18=x17._f57;
var x19=this;
var x20;
this._f81=this.parent.getBrowserType();
var x21=function()
{
x17._f38=true;
var x22=x17._f52();
var x23=x17._f54();
if((x19._f27)!=x22||(x19._f28)!=x23)
{
if(x19._f36==2)
{
x19._f36=3;
}
x19._f25+=(x22-x19._f27);
x19._f26+=(x23-x19._f28);
x19._f27=x22;
x19._f28=x23;
x19._f639();
}
}
x18.onmousedown=MVUtil._f59(x18,function(x24)
{
x17.removeFOI("MVRectangleTool"+x19.id);
x19._f36=2;
x24=(x24)?x24:((window.event)?event:null);
var x25=x17._f610(x24);
x17.mouseDownLoc=x25;
x17._f60(x24);
x19._f44();
x19._f47();
x19._f546.style.visibility="hidden";
if(x19._f29!=null)
(x19._f29)();
x19._f27=x17._f52();
x19._f28=x17._f54();
var x26=5;
x20=setInterval(x21,x26);
x19._f40();
return false;
});
x18.onmousemove=MVUtil._f59(x18,function(x27)
{
if(x19._f36==2)
x19._f36=3;
if(x19._f36==3)
{
x27=(x27)?x27:((window.event)?event:null);
x17._f60(x27);
x19._f47();
x19._f639();
if(x19._f31)
x19._f31();
}
return false;
});
x18.onmouseup=MVUtil._f59(x18,function(x28)
{
x28=(x28)?x28:((window.event)?event:null);
var x29=x17._f610(x28);
x17.mouseUpLoc=x29;
x17._f60(x28);
x19._f47();
x19.generateArea();
clearInterval(x20);
x17._f61();
x19._f42();
if(x19._f30)
(x19._f30)();
return false;
});
x18.onmouseout=MVUtil._f59(x18,function(x30)
{
if(x19._f36!=3)
return false;
if(x19._f81=="NS"||x19._f81=="OS")
{
x30=(x30)?x30:((window.event)?event:null);
var x31=x30.clientX;
var x32=x30.clientY;
var x33=x17._f53();
var x34=x17._f55();
var x35=MVUtil._f62(this);
var x36=x30.pageX-x35.x;
var x37=x30.pageY-x35.y;
if(x36<=0||x36>=x33||
x37<=0||x37>=x34||
x31<=0||x31>=document.body.clientWidth||
x32<=0||x32>=document.body.clientHeight)
{
return this.onmouseup(x30);
}
}
});
}
MVRectangleTool.prototype.clear=function()
{
this._f638();
this.parent.removeFOI("MVRectangleTool"+this.id);
this._f36=0;
this.parent._f61();
}
MVRectangleTool.prototype.getRectangle=function()
{
if(this._f23!=this._f25&&this._f24!=this._f26)
return MVSdoGeometry.createRectangle(
this._f23,this._f24,this._f25,this._f26,this.parent.srid);
else
 return null;
}
MVRectangleTool.prototype.getRectangleFOI=function()
{
return this.parent.getFOI("MVRectangleTool"+this.id);
}
MVRectangleTool.prototype.getRectangleDIV=function()
{
return this._f546;
}
MVRectangleTool.prototype.addEventListener=function(x38,x39)
{
this.setEventListener(x38,x39);
}
MVRectangleTool.prototype.setEventListener=function(x40,x41)
{
if(x40=="on_start"||x40=="start")
this._f29=x41;
else if(x40=="on_finish"||x40=="finish")
this._f30=x41;
else if(x40=="on_drag"||x40=="drag")
this._f31=x41;
}
MVRectangleTool.prototype.getStatus=function()
{
return this._f36;
}
MVRectangleTool.prototype.getWidth=function(x42)
{
if(!x42)
return Math.abs(this._f23-this._f25);
else
 return MVSdoGeometry.getDistance(this._f23,this._f24,this._f25,this._f24,this.parent.srid,x42);
}
MVRectangleTool.prototype.getHeight=function(x43)
{
if(!x43)
return Math.abs(this._f24-this._f26);
else
 return MVSdoGeometry.getDistance(this._f23,this._f24,this._f23,this._f26,this.parent.srid,x43);
}
MVRectangleTool.prototype.setDivStyle=function(x44)
{
var x45="#FF0000";
var x46=2;
var x47="dashed";
var x48="#555555";
var x49=0.3;
if(x44.borderColor!=undefined)
x45=x44.borderColor;
if(x44.borderWidth!=undefined)
x46=x44.borderWidth;
if(x44.borderDashed!=undefined)
{
if(!x44.borderDashed)
x47="solid";
}
if(x44.fillColor!=undefined)
x48=x44.fillColor;
if(x44.fillOpacity!=undefined)
x49=x44.fillOpacity;
this.setDivFillColor(x48,x49);
this.setDivBorderStyle(x45,x46,x47);
}
function MVCircleTool(circleStyle,_f17)
{
this.parent=null;
this._f18=document.createElement("div");
this._f18.style.position="absolute";
this._f18.style.visibility="hidden";
this._f18.style.zIndex=5000;
this._f19=new Object();
this._f19._f20=2;
this._f19.divHeight=2;
this._f19.zIndex=5001;
this._f19.backgroundColor="#FF0000";
this._f19.opacity=null;
this._f17=_f17;
this._f21=circleStyle;
this._f22=(circleStyle!=null?true:false);
this._f23=0;
this._f24=0;
this._f25=0;
this._f26=0;
this.stepPx=6;
this._f27=0;
this._f28=0;
this._f29=null;
this._f30=null;
this._f31=null;
this._f32=null;
this._f33=null;
var _f34=eval(_f15._f34);
_f15._f34=(++_f34);
this.id=_f34;
this._f35="MVCircleTool";
this._f36=0;
this.refresh=false;
var ct=this;
this._f37=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(ct.parent._f38)
MVUtil._f39(x0);
};
this._f40=function()
{
if(this.netscape==null)
{
if(_f15._f41("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this._f37,false);
}
}
this._f42=function()
{
if(this.netscape==null)
{
if(_f15._f41("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this._f37,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._f19._f20=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._f19.divHeight=x1;
}
}
}
MVCircleTool.prototype.setPlotDivFillColor=function(x2,x3)
{
if(x2!=null&&x2!="")
this._f19.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._f19.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._f19.zIndex=x4;
this._f18.style.zIndex=(x4-1);
}
}
}
MVCircleTool.prototype._f44=function()
{
this._f23=this.parent._f45();
this._f24=this.parent._f46();
}
MVCircleTool.prototype._f47=function()
{
this._f25=this.parent._f45();
this._f26=this.parent._f46();
var x5=(this._f25-this._f23);
var x6=(this._f26-this._f24);
var x7=Math.sqrt(x5*x5+x6*x6);
this._f32=x7;
}
MVCircleTool.prototype._f49=function()
{
if(this._f36!=3)
{
return;
}
var x8=this.parent._f50;
var x9=this.parent._f51;
var x10=Math.round((this._f23-this.parent._f52())*x8+(this.parent._f53()/2));
var x11=Math.round((this._f24-this.parent._f54())*(-x9)+(this.parent._f55()/2));
var x12=(this._f25-this._f23)*x8;
var x13=(this._f26-this._f24)*(-x9);
var x14=Math.round(Math.sqrt(x12*x12+x13*x13));
this._f32=x14;
var x15=2*(x14+this._f19._f20);
var x16=2*(x14+this._f19.divHeight);
var x17=x10-x14-Math.round((this._f19._f20)/2);
var x18=x11-x14-Math.round((this._f19.divHeight)/2);
this._f18.style.left=x17+'px';
this._f18.style.top=x18+'px';
this._f18.style.width=x15+'px';
this._f18.style.height=x16+'px';
this._f18.style.clip="rect(0px, "+x16+"px, "+x15+"px, 0px)";
this._f18.style.visibility="visible";
var x19=(this._f35+this.id+"PlotsDiv");
var x20=document.getElementById(x19);
if(x20!=null)
this._f18.removeChild(x20);
x20=document.createElement("div");
x20.id=x19;
x20.style.position="absolute";
x20.style.left=0+'px';
x20.style.top=0+'px';
this._f18.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._f56((x14+x12),(x14+x13));
this._f56((x14+x12),(x14-x13));
this._f56((x14-x12),(x14+x13));
this._f56((x14-x12),(x14-x13));
}
}
MVCircleTool.prototype._f56=function(x29,x30)
{
var x31=(this._f35+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._f19.zIndex;
if(this._f19.backgroundColor!=null)
x33.style.backgroundColor=this._f19.backgroundColor;
if((this._f19.opacity)!=null)
{
if(window.ActiveXObject)
{
x33.style.filter="alpha(opacity="+((this._f19.opacity)*100)+")";
}
else
 {
x33.style.opacity=this._f19.opacity;
}
}
x33.style.left=x29+"px";
x33.style.top=x30+"px";
x33.style.width=(this._f19._f20)+"px";
x33.style.height=(this._f19.divHeight)+"px";
x33.style.clip="rect(0px, "+(this._f19._f20)+"px, "+
(this._f19.divHeight)+"px, 0px)";
x32.appendChild(x33);
}
MVCircleTool.prototype.generateArea=function()
{
if(this._f36!=3)
{
return;
}
var x34=this._f35+this.id;
this.parent.removeFOI(x34);
var x35=(this._f25-this._f23);
var x36=(this._f26-this._f24);
var x37=Math.sqrt(x35*x35+x36*x36);
this._f32=x37;
this._f33=MVSdoGeometry.createCircle(this._f23,this._f24,x37,this.parent.srid);
if(!(this._f22))
return;
var x38=new MVFOI(x34,this._f33,this._f21,this._f17);
x38.setClickable(false);
x38.enableInfoTip(false);
this.parent.addFOI(x38);
}
MVCircleTool.prototype.init=function()
{
this._f36=1;
var x39=this.parent;
var x40=x39._f57;
var x41=this;
var x42;
var x43=function()
{
x39._f38=true;
var x44=x39._f52();
var x45=x39._f54();
if((x41._f27)!=x44||(x41._f28)!=x45||(x41.refresh))
{
x41.refresh=false;
if(x41._f36==2)
{
x41._f36=3;
}
x41._f25+=(x44-x41._f27);
x41._f26+=(x45-x41._f28);
x41._f27=x44;
x41._f28=x45;
x41._f49();
}
}
x40.onmousedown=MVUtil._f59(x40,function(x46)
{
x39.removeFOI(x41._f35+x41.id);
x41._f36=2;
x46=(x46)?x46:((window.event)?event:null);
x39._f60(x46);
x41._f44();
x41._f47();
x41._f18.style.visibility="hidden";
if(x41._f29!=null)
(x41._f29)();
x41._f27=x39._f52();
x41._f28=x39._f54();
var x47=5;
x42=setInterval(x43,x47);
x41._f40();
return false;
});
x40.onmousemove=MVUtil._f59(x40,function(x48)
{
if(x41._f36==2)
{
x41._f36=3;
}
if(x41._f36==3)
{
x48=(x48)?x48:((window.event)?event:null);
x39._f60(x48);
x41._f47();
x41.refresh=true;
if(x41._f31)
x41._f31();
}
return false;
});
x40.onmouseup=MVUtil._f59(x40,function(x49)
{
x49=(x49)?x49:((window.event)?event:null);
x39._f60(x49);
x41._f47();
x41.generateArea();
var x50=document.getElementById(x41._f35+x41.id+"PlotsDiv");
if(x50!=null)
x41._f18.removeChild(x50);
x41._f18.style.width="0px";
x41._f18.style.height="0px";
x41._f18.style.clip="rect(0px, 0px, 0px, 0px)";
x41._f18.style.visibility="hidden";
clearInterval(x42);
x39._f61();
x41._f42();
if(x41._f30!=null)
(x41._f30)();
return false;
});
x40.onmouseout=MVUtil._f59(x40,function(x51)
{
if(x41._f36!=3)
return false;
if(!(window.ActiveXObject))
{
x51=(x51)?x51:((window.event)?event:null);
var x52=x51.clientX;
var x53=x51.clientY;
var x54=x39._f53();
var x55=x39._f55();
var x56=MVUtil._f62(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._f35+this.id);
this._f36=0;
this.parent._f61();
}
MVCircleTool.prototype.getCircle=function()
{
if(this._f36==3&&this._f32)
return MVSdoGeometry.createCircle(this._f23,this._f24,this._f32,this.parent.srid);
else if(this._f33!=null)
return (this._f33);
else
 return null;
}
MVCircleTool.prototype.getRadius=function(x59)
{
if(!x59)
return this._f32;
else
 return MVSdoGeometry.getDistance(this._f23,this._f24,this._f23,this._f24+this._f32,this.parent.srid,x59);
}
MVCircleTool.prototype.getCenter=function()
{
return MVSdoGeometry.createPoint(this._f23,this._f24,this.parent.srid);
}
MVCircleTool.prototype.getCircleFOI=function()
{
return this.parent.getFOI(this._f35+this.id);
}
MVCircleTool.prototype.addEventListener=function(x60,x61)
{
this.setEventListener(x60,x61);
}
MVCircleTool.prototype.setEventListener=function(x62,x63)
{
if(x62=="on_start"||x62=="start")
this._f29=x63;
else if(x62=="on_finish"||x62=="finish")
this._f30=x63;
else if(x62=="on_drag"||x62=="drag")
this._f31=x63;
}
MVCircleTool.prototype.getStatus=function()
{
return this._f36;
}
function MVi18n()
{
}
MVi18n._f758=null;
MVi18n._f407=null;
MVi18n._f759=null;
MVi18n.URL=null;
MVi18n.processLocale=function(x0,x1,x2,x3)
{
if(MVi18n.URL==null)
{
alert(x0);
return;
}
var x4=(MVUtil._f95(MVi18n.URL)==MVUtil._f95(_f15._f96()));
var x5=x4||MVMapView._f97;
if(MVMapView._f97&&!x4)
MVi18n.URL=_f15._f134()+"?rtarget="+MVi18n.URL;
var x6=null;
x6=encodeURI(MVi18n.URL+"/ReturnLocaleString");
var x7=x0;
var x8=MVi18n._f758;
var x9=MVi18n._f407;
var x10=MVi18n._f759;
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._f59(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._f758=x13;
MVi18n._f407=x14;
MVi18n._f759=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;
}
MVi18n.alert=function(x17)
{
if(MVi18n._f407)
{
var x18=MVi18n._f407;
x18(x17);
}
else
 alert(x17);
}
function MVMapView(x0,x1)
{
var x2=this;
if(!MVi18n._f407)
MVi18n.addBehavior("func",alert,"text");
this._f408=MVUtil._f409++;
this.center=null;
this._f184=0;
this._f187=0;
this._f50=0;
this._f51=0;
this.tileWidth=0;
this.tileHeight=0;
this._f396=200;
this._f397=200;
this._f410=0;
this._f411=0;
this._f412=1;
this._f413=0;
this._f414=0;
this._f394=0;
this._f415=false;
this._f224=false;
this._f416=0;
this._f417=0;
this._f418=null;
this._f419=null;
this._f420=0.0;
this._f421=0.0;
this._f422=0.0;
this._f423=0.0;
this._f424=0.0;
this._f425=0.0;
this._f199=0.0;
this._f200=0.0;
this._f201=0.0;
this._f202=0.0;
this._f426=false;
this.msi=null;
this._f427=false;
this._f428=true;
this._f429=null;
this._f430=new Array();
this._f431=new Array();
this._f432=null;
this._f370=new Array();
this._f433=new Array();
this._f211=null;
this._f167=null;
this._f434=null;
this._f435=2;
this._f436=4;
this._f437=4;
this._f438=null;
this._f263=false;
this._f439=0;
this._f148=false;
this._f440=new Array();
this._f340=null;
this._f342=false;
this._f441=true;
this._f442=null;
this.srid=null;
this._f443=null;
this._f444=0;
this._f445=false;
this._f446="one_time";
this._f447=false;
this._f448=null;
this._f449=false;
this._f450=false;
this._f451=false;
this._f452=false;
this._f453=null;
this._f454=1;
this.centerMarkUrl=null;
this.centerMarkW=0;
this.centerMarkH=0;
var x3=String(document.location);
var x4=x3.indexOf("//");
this._f130=_f15._f96();
this._f455=this._f130;
this._f406=this._f130;
this._f456="default";
this._f457="move";
this._f458="default";
if(x1)
{
this._f455=x1;
this._f406=x1;
if(MVUtil._f241(x1,'/'))
{
this._f455=x1.substring(0,x1.length-1);
this._f406=x1.substring(0,x1.length-1);
}
if(MVUtil._f95(this._f130)!=MVUtil._f95(this._f455))
{
this._f455=_f15._f134()+"?rtarget="+this._f455;
}
}
_f15._f129=this._f406+"/foi";
_f15._f120=this._f406+_f15._f121;
MVi18n.setURL(this._f406);
this._f459=false;
if(x0==null)
return null;
MVUtil._f223(x0);
this.real_base_div=x0;
if(this.real_base_div.style.position!="absolute")
{
this.real_base_div.style.position="relative";
}
this._f57=document.createElement("div");
this.real_base_div.appendChild(this._f57);
this._f57.style.position="absolute";
this._f57.style.left=MVUtil._f246(0);
this._f57.style.top=MVUtil._f246(0);
this._f57.style.width="100%";
this._f57.style.height="100%";
this._f57.style.overflow="hidden";
this._f388=document.createElement("img");
this._f388.src=_f15._f120+"transparent."+(_f15._f81=="IF"?"gif":"png");
this._f388.src+="?refresh="+(new Date()).getTime();
this._f388.style.position="absolute";
this._f388.style.left=MVUtil._f246(0);
this._f388.style.top=MVUtil._f246(0);
this._f388.onload=MVUtil._f59(this,function(){_f15._f138=true;});
this._f57.appendChild(this._f388);
this._f256=document.createElement("div");
this._f256.style.position="absolute";
this._f256.style.left=MVUtil._f246(0);
this._f256.style.top=MVUtil._f246(0);
this.real_base_div.appendChild(this._f256);
this.div=null;
var x5=this.getBrowserType();
this.toolBarContainer=null;
this._f460();
this._f461="";
this._f98=0;
this._f99=0;
this._f462();
this._f463=null;
this._f464=document.createElement("div");
MVUtil._f405(this._f464);
this._f464.style.position="absolute";
this._f464.style.zIndex=125;
this.div.appendChild(this._f464);
this._f465=null;
this._f466=null;
this._f303=null;
this._f467=null;
this._f468=null;
this._f469=null;
this._f470=new _f471();
this._f472=true;
this._f473="zoomin";
this._f474=null;
this._f475=true;
this._f476=null;
this._f477=false;
this._f478=null;
this._f479=null;
this._f480=0;
this._f481=0;
this._f482=false;
this._f483=0;
this._f484=null;
this._f485=5;
this._f238=false;
this._f486=new Array();
this.infoTipDiv=null;
this._f487=0;
this._f488=0;
this._f489=null;
this._f490=null;
this._f491=null;
this._f492=null;
this._f493=null;
this._f494=null;
this._f495=null;
this._f496=null;
this._f38=false;
this._f77=null;
return this;
}
MVMapView.prototype._f460=function()
{
if(_f15._f81=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
document.body.style.height="100%";
}
if(this._f57.style.backgroundColor=="")
this._f57.style.backgroundColor="lightgrey";
this.div=document.createElement("div");
this.div.style.position="absolute";
if(_f15._f81=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
this.div.style.width=MVUtil._f246(this._f53());
this.div.style.height=MVUtil._f246(this._f55());
}
else
 {
this.div.style.width="100%";
this.div.style.height="100%";
}
this.div.style.zIndex=80;
this.div.style.left=MVUtil._f246(0);
this.div.style.top=MVUtil._f246(0);
this._f256.style.left=MVUtil._f246(0);
this._f256.style.top=MVUtil._f246(0);
this._f247=0;
this._f248=0;
this._f323=this._f247;
this._f322=this._f248;
this._f497=0;
this._f498=0;
this._f57.appendChild(this.div);
var x0=document.createElement("table");
x0.style.zIndex=9999;
x0.style.height=MVUtil._f246(15);
x0.style.position="absolute";
x0.style.right=MVUtil._f246(0);
x0.style.bottom=MVUtil._f246(0);
x0.style.backgroundColor="white";
this._f57.appendChild(x0);
var x1=document.createElement("tbody");
x0.appendChild(x1);
this.toolBarContainer=document.createElement("tr");
x1.appendChild(this.toolBarContainer);
}
MVMapView.prototype._f499=function(x2,x3)
{
this._f497=x2-this._f247;
this._f498=x3-this._f248;
}
MVMapView.prototype._f502=function(x4,x5)
{
this._f247=x4-this._f497;
this._f248=x5-this._f498;
this._f323=MVUtil._f176(this.div);
this._f322=MVUtil._f177(this.div);
var x6=this._f184;
var x7=this._f187;
this._f184=this._f184+
(this._f323-this._f247)/this._f50;
this._f187=this._f187-
(this._f322-this._f248)/this._f51;
if(x6!=this._f184||x7!=this._f187)
{
this._f426=true;
}
MVUtil._f178(this.div,this._f247,this._f248);
MVUtil._f178(this._f256,this._f247,this._f248);
}
MVMapView.prototype.addEventListener=function(x8,x9)
{
this.setEventListener(x8,x9);
}
MVMapView.prototype.setEventListener=function(x10,x11)
{
if(x10=="recenter")
{
this._f467=x11;
}
else if(x10=="mouse_click")
{
this._f303=x11;
}
else if(x10=="mouse_right_click")
{
this._f468=x11;
}
else if(x10=="zoom_level_change")
{
this._f465=x11;
}
else if(x10=="before_zoom_level_change")
{
this._f466=x11;
}
else if(x10=="mouse_double_click")
{
this._f474=x11;
}
else if(x10=="initialize")
{
this.initializeListener=x11;
}
}
MVMapView.prototype.init=function()
{
MVUtil._f178(this.div,0,0);
MVUtil._f178(this._f256,0,0);
if(this._f211._f212.length>0)
this._f211.deleteInfoWindow(this._f211._f212[0]);
this._f247=0;
this._f248=0;
this._f323=this._f247;
this._f322=this._f248;
this._f497=0;
this._f498=0;
this.setZoomLevel(this._f394);
this._f480=this._f53();
this._f481=this._f55();
if(this._f484)
clearTimeout(this._f484);
this.setLoadingIconVisible(true);
this._f416=this._f413+(this._f410/2*this.tileWidth);
this._f417=this._f414+(this._f411/2*this.tileHeight);
this._f503();
if(!this._f148)
{
if(this._f504())
return ;
}
for(var x12=0;x12<this._f370.length;x12++)
{
this._f370[x12]._f390(this._f53(),this._f55(),
this._f184,this._f187);
}
if(!this._f211)
this._f211=new _f254(this);
this._f234();
this._f487=this._f199;
this._f488=this._f202;
this.refreshThemeBasedFOIs(true);
this._f233();
this._f211.refresh(this._f199,this._f200,
this._f201,this._f202,
this._f53(),this._f55());
this._f224=true;
this._f415=true;
if(this._f453!=null)
for(var x12=0;x12<this._f453.length;x12++)
if(this._f453[x12]!=null&&!this._f453[x12]._f148)
{
var id="_md_"+this._f454
this._f453[x12].init(id,this);
if(this._f453[x12]._f301)
this._f57.appendChild(this._f453[x12]._f327);
else
 this._f57.appendChild(this._f453[x12]._f300);
this._f454++;
this._f453[x12]._f148=true;
}
if(this._f340!=null&&this._f340._f341==null)
this._f340.init(this._f340._f505,this);
this._f506();
if(this._f434&&!this._f434._f299&&!this._f434._f507)
this._f508(this._f434);
if(this.navigationPanel&&!this.navigationPanel._f507)
this.navigationPanel.init(this._f57,this);
this._f484=this.setTimeout("this.checkSize()",400);
if(!this._f148&&this.initializeListener)
this.initializeListener();
}
MVMapView.prototype.destroy=function()
{
while(this._f370.length>0)
{
var x13=this._f370.pop();
x13.destroy();
}
this._f370=null;
if(!this._f211)
this._f211=null;
while(this._f433.length>0)
{
var x14=this._f433.pop();
x14.destroy();
}
this._f433=null;
this._f167.destroy();
this._f167=null;
if(this._f453)
while(this._f453.length>0)
this._f453.pop();
this._f453=null;
if(this._f340)
{
this._f340.destroy();
this._f340=null;
}
MVUtil._f223(this._f57);
this._f57=null;
}
MVMapView.prototype._f509=function()
{
this.tileWidth=this._f430[this._f394];
this.tileHeight=this._f431[this._f394];
this._f510();
}
MVMapView.prototype._f510=function()
{
this._f413=-this.tileWidth*this._f412;
this._f414=-this.tileHeight*this._f412;
var x15=this._f53()/this.tileWidth;
this._f410=parseInt(Math.ceil(x15/2)+1)*2+1;
x15=this._f55()/this.tileHeight;
this._f411=parseInt(Math.ceil(x15/2)+1)*2+1;
this._f416=this._f413+(this._f410/2*this.tileWidth);this._f417=this._f414+(this._f411/2*this.tileHeight);}
MVMapView.prototype._f503=function()
{
this._f419=new _f399(this.msi.mapConfig,this._f184,this._f187,this._f394);this._f418=new _f399(this.msi.mapConfig,this._f184,this._f187,this._f394);this._f418._f401(-(Math.ceil(this._f410/2)-1),+Math.ceil(this._f411/2)-1);
this._f50=this.tileWidth/this._f419._f392;this._f51=this.tileHeight/this._f419._f393;}
MVMapView.prototype._f234=function()
{
this._f422=this._f418.minX;
this._f423=(this._f418.minY+this._f418._f393);
this._f424=(this._f418.minX+(this._f418._f392*this._f410));
this._f425=(this._f418.minY-(this._f418._f393*(this._f411-1)));
this._f199=this._f511(this._f184);
this._f200=this._f512(this._f187);
this._f201=this._f513(this._f184);
this._f202=this._f514(this._f187);
}
MVMapView.prototype.display=function()
{
var x16=this;
var x17=function()
{
var x18=0;
if(!x16._f57)
return ;
if(x16._f57.offsetWidth)
x18=parseInt(x16._f57.offsetWidth+"");
else if(typeof(x16._f57.offsetWidth)=="undefined")
x18=x16._f53();
var x19=0;
if(x16._f57.offsetHeight)
x19=parseInt(x16._f57.offsetHeight+"");
else if(typeof(x16._f57.offsetHeight)=="undefined")
x19=x16._f55();
if(x18<=0||x19<=0||!_f15._f138||!x16.msi)
{
setTimeout(x17,200);
return ;
}
var x20=function()
{
x16.init();
if(!x16._f452)
{
x16._f61();
x16._f452=true;
}
x16._f148=true;
while(x16._f486.length>0)
{
var x21=x16._f486.shift();
if(x21.func=="refreshFOIs")
x21.obj._f515(x21.params[0],x21.params[1],x21.params[2],x21.params[3],x21.params[4],x21.params[5],x21.params[6],x21.params[7],true,x21.params[8]);
else if(x21.func=="zoomToRectangle")
x21.obj.zoomToRectangle(x21.params[0],x21.params[1]);
}
}
x16._f516(x20);
}
x17();
}
MVMapView.prototype.setCenter=function(x22,x23)
{
this.center=x22;
if(this._f148)
this._f516(null,x23);
}
MVMapView.prototype._f516=function(x24,x25)
{
if(!this.center)
{
if(x24)
x24();
return ;
}
if(!this.msi)
{
MVi18n.processLocale("MAPVIEWER-5518");
return ;
}
this.srid=this.msi.getSrid();
var x26=this.center;
if(x26)
{
if(!x26.srid)
x26.srid=this.srid;
this.center=null;
if(!(x26.sdo_point))
MVi18n.processLocale("MAPVIEWER-5505");
var x27=this;
var x28=function(x29)
{
if(x29)
x26=x29;
if(!x27._f148)
{
x27._f184=x26.getPointX();
x27._f187=x26.getPointY();
}
else
 {
x27._f517=(x27._f184-x26.getPointX())*x27._f50;
x27._f518=(x27._f187-x26.getPointY())*x27._f51*(-1);
x27._f519=x27._f53();
x27._f520=x27._f55();
if(Math.abs(x27._f517)<=(x27._f519+x27._f396)&&Math.abs(x27._f518)<=(x27._f520+x27._f397))
{
x27._f204=Math.sqrt(x27._f517*x27._f517+x27._f518*x27._f518);
x27._f521=20;
x27._f522=x27._f204>((x27._f519+x27._f520)/4)?300:200;
x27._f523=0;
x27._f524=0;
x27._f525=0;
x27.smoothPan(x25);
}
else
 {
x27._f184=x26.getPointX();
x27._f187=x26.getPointY();
x27.display();
}
if(x27._f434)
{
x27._f434._f526(x27);
}
}
if(x24)
x24();
}
if(this.srid!=x26.srid)
x26=this.transformGeom(x26,this.srid,null,x28);
else
 x28();
}
else
 {
if(x24)
x24();
}
}
MVMapView.prototype.setCenterLon=function(x30)
{
this._f184=x30;
}
MVMapView.prototype.setCenterLat=function(x31)
{
this._f187=x31;
}
MVMapView.prototype.setCenterMark=function(x32,x33,x34)
{
if(this._f527!=undefined)
{
this._f57.removeChild(this._f527);
delete this._f527;
}
if(x32==null)
return ;
this.centerMarkUrl=x32;
this.centerMarkW=x33;
this.centerMarkH=x34;
var x35=document.createElement("img");x35.src=x32;
x35.style.zIndex=2000;
x35.style.position="absolute";
x35.style.width=MVUtil._f246(x33);
x35.style.height=MVUtil._f246(x34);
x35.style.left=MVUtil._f246((this._f53()-x33)/2);
x35.style.top=MVUtil._f246((this._f55()-x34)/2);
this._f57.appendChild(x35);
this._f527=x35;
}
MVMapView.prototype.setZoomLevel=function(x36)
{
if(isNaN(x36))
{
MVi18n.processLocale("MAPVIEWER-5506");
return;
}
if(!this._f148)
{
this._f394=x36;
return ;
}
if(x36<0)
x36=0;
else if(x36>this._f439)
x36=this._f439;
if(this._f148)
this.zoomTo(x36);
else
 {
this._f394=x36;
this._f509();
}
}
MVMapView.prototype.setHomeMap=function(x37,x38)
{
this._f443=x37;
if(x38)
this._f444=x38;
}
MVMapView.prototype.setMapBuffer=function(x39,x40)
{
this._f396=x39;
this._f397=x40;
}
MVMapView.prototype._f528=function(x41,x42)
{
var x43=false;
var x44=this;
var x45=function(x46)
{
if(x46)
{
x44._f184=x46.getPointX();
x44._f187=x46.getPointY();
x44.center=x46;
}
x44.msi=x41.msi;
x44.srid=x44.msi.getSrid();
if(x44._f394>(x44.msi.zoomCount-1))
{
x44._f394=x44.mis.zoomCount-1;
}
for(var x47=0;x47<x44.msi._f360();x47++)
{
x44._f430[x47]=x44.msi._f363(x44._f394);
x44._f431[x47]=x44.msi._f364(x44._f394);
}
x44._f509();
x44._f439=x44.msi._f360()-1;
x44._f503();
x42(x43);
}
if(!x41.msi)
x41.msi=new _f345(x41._f91);
if(this.msi)
{
if(!x41.isVisible()||this.msi.getSrid()==x41.msi.getSrid())
{
x42(false);
return;
}
else
 {
x43=true;
var x48=MVSdoGeometry.createPoint(this._f184,this._f187,this.msi.getSrid());
this.transformGeom(x48,x41.msi.getSrid(),null,x45);
}
}
else
 x45();
}
MVMapView.prototype.getMapBaseURL=function()
{
return this._f406;
}
MVMapView.prototype._f53=function()
{
var x49=0;
if(this._f57.style&&this._f57.style.width)
{
var x50=this._f57.style.width+"";
if(x50.indexOf("%")<0)
{
if(x50.indexOf("px")>0)
x49=parseInt(x50.substring(0,x50.indexOf("px")));
else
 x49=parseInt(x50);
if(x49)
return x49;
}
}
if(this._f57.offsetWidth)
x49=this._f57.offsetWidth;
else if(this._f57.width)
x49=parseInt(this._f57.width+"");
return x49;
}
MVMapView.prototype._f55=function()
{
var x51=0;
if(this._f57.style&&this._f57.style.height)
{
var x52=this._f57.style.height+"";
if(x52.indexOf("%")<0)
{
if(x52.indexOf("px")>0)
x51=parseInt(x52.substring(0,x52.indexOf("px")));
else
 x51=parseInt(x52);
if(x51)
return x51;
}
}
if(this._f57.offsetHeight)
x51=this._f57.offsetHeight;
else if(this._f57.width)
x51=parseInt(this._f57.width+"");
return x51;
}
MVMapView.prototype._f511=function(x53)
{
var x54=this._f53()/2;
return (0-x54)/this._f50+x53;
}
MVMapView.prototype._f512=function(x55)
{
var x56=this._f55()/2;
return -1.0*(x56-1)/this._f51+x55;
}
MVMapView.prototype._f513=function(x57)
{
var x58=this._f53()/2;
return (x58-1)/this._f50+x57;
}
MVMapView.prototype._f514=function(x59)
{
var x60=this._f55()/2;
return -1.0*(0-x60)/this._f51+x59;
}
MVMapView.prototype.getCenter=function()
{
var x61=MVSdoGeometry.createPoint(this._f184,this._f187,this.srid);
return x61;
}
MVMapView.prototype._f52=function()
{
return this._f184;
}
MVMapView.prototype._f54=function()
{
return this._f187;
}
MVMapView.prototype.getMapWindowBBox=function()
{
this._f234();
var x62=MVSdoGeometry.createRectangle(this._f199,this._f200,
this._f201,this._f202,this.srid);
return x62;
}
MVMapView.prototype.getMouseLocation=function()
{
var x63=MVSdoGeometry.createPoint(this._f420,this._f421,this.srid);
return x63;
}
MVMapView.prototype._f45=function()
{
return this._f420;
}
MVMapView.prototype._f46=function()
{
return this._f421;
}
MVMapView.prototype.getZoomLevel=function()
{
return this._f394;
}
MVMapView.prototype.getBaseDiv=function()
{
return this._f57;
}
MVMapView.prototype._f529=function()
{
return this.div;
}
MVMapView.prototype._f530=function()
{
return this._f419._f393;
}
MVMapView.prototype._f531=function()
{
return this._f419._f392;
}
MVMapView.prototype._f532=function()
{
return this.msi;
}
MVMapView.prototype._f533=function()
{
return this._f422;
}
MVMapView.prototype._f534=function()
{
return this._f423;
}
MVMapView.prototype._f535=function()
{
return this._f424;
}
MVMapView.prototype._f536=function()
{
return this._f425;
}
MVMapView.prototype.getScreenMinLon=function()
{
return this._f199;
}
MVMapView.prototype._f537=function()
{
return this._f200;
}
MVMapView.prototype._f538=function()
{
return this._f201;
}
MVMapView.prototype._f539=function()
{
return this._f202;
}
MVMapView.prototype._f540=function()
{
return this._f50;
}
MVMapView.prototype._f541=function()
{
return this._f51;
}
MVMapView.prototype.zoomIn=function(x64)
{
this.zoomTo(this._f394+1,x64);
}
MVMapView.prototype.zoomOut=function(x65)
{
this.zoomTo(this._f394-1,x65);
}
MVMapView.prototype.zoomTo=function(x66,x67)
{
var x68=this._f394;
if(x66>=this._f439)
{
x66=this._f439;
}
else if(x66<0)
{
x66=0;
}
if(x66==this._f394&&!x67)
{
if(this.navigationPanel)
this.navigationPanel.updateSliderBar();
return false;
}
this._f329();
this._f394=x66;
if(this.navigationPanel)
this.navigationPanel.updateSliderBar();
this._f394=x66;
this._f509();
var x69=false;
var x70=this;
var x71=function(x72)
{
if(x72)
x67=x72;
if(x67)
{
if(x67.getPointX()!=x70._f184||x67.getPointY()!=x70._f187)
{
x69=true;
}
x70._f184=x67.getPointX();
x70._f187=x67.getPointY();
}
if(x70._f466&&x68!=x70._f394)
x70._f466(x68,x70._f394);
x70.display();
if(x70._f434)
{
x70._f434._f526(x70);
}
if(x69&&x70._f467)
{
x70._f467()
}
if(x70._f340)
{
x70._f340._f542(x68,x70._f394,x67);
}
if(x70._f465&&x68!=x70._f394)
{
x70._f465(x68,x70._f394);
}
}
if(x67)
{
this.srid=this.msi.getSrid();
if(!x67.srid)
x67.srid=this.srid;
if(!(x67.sdo_point))
MVi18n.processLocale("MAPVIEWER-5505");
if(x67.srid&&(this.srid!=x67.srid))
x67=this.transformGeom(x67,this.srid,null,x71);
else
 x71();
}
else
 x71();
return true;
}
MVMapView.prototype.zoomToAtLocation=function(x73,x74)
{
this.srid=this.msi.getSrid();
var x75=this;
var x76=function(x77)
{
if(x77)
x73=x77;
var x78=(x75._f184-x73.getPointX())*x75._f50;
var x79=(x75._f187-x73.getPointY())*x75._f51;
var x80=x75._f430[x74]/x75.msi._f361(x74);
var x81=x75._f431[x74]/x75.msi._f362(x74);
var x82=x78/x80+x73.getPointX();
var x83=x79/x81+x73.getPointY();
var x84=MVSdoGeometry.createPoint(x82,x83,x75.srid);
x75.zoomTo(x74,x84);
}
if(x73.srid&&(this.srid!=x73.srid))
x73=this.transformGeom(x73,this.srid,null,x76);
else
 x76();
}
MVMapView.prototype.setCenterAndZoomLevel=function(x85,x86)
{
if(!this._f148)
{
this.center=x85;
this._f394=x86;
return ;
}
this.srid=this.msi.getSrid();
if(!x85.srid)
x85.srid=this.srid;
var x87=this;
var x88=function(x89)
{
if(x89)
x85=x89;
if(x86==null)
{
x86=x87._f394;
}
if(!x87._f148)
{
x87.setCenter(x85);
x87.setZoomLevel(x86);
return ;
}
if(x86==x87._f394)
{
if(!x87._f415)
{
x87.zoomTo(x86,x85);
return;
}
else {
x87._f517=(x87._f184-x85.getPointX())*x87._f50
x87._f518=(x87._f187-x85.getPointY())*x87._f51*(-1);
x87._f519=x87._f53();
x87._f520=x87._f55();
if(Math.abs(x87._f517)<=(x87._f519+x87._f396)&&Math.abs(x87._f518)<=(x87._f520+x87._f397))
{
x87._f204=Math.sqrt(x87._f517*x87._f517+x87._f518*x87._f518);
x87._f521=20;
x87._f522=x87._f204>((x87._f519+x87._f520)/4)?300:200;
x87._f523=0;
x87._f524=0;
x87._f525=0;
x87.smoothPan();
return;
}
}
}
x87.zoomTo(x86,x85);
}
if(x85.srid&&(this.srid!=x85.srid))
x85=this.transformGeom(x85,this.srid,null,x88);
else
 x88();
}
MVMapView.prototype.addMapTileLayer=function(x90,x91)
{
if(x90._f91==undefined||
x90._f91==null||
MVUtil._f92(x90._f91)=="")
{
MVi18n.processLocale("MAPVIEWER-5507");
return ;
}
if(!this._f77&&this.compareBaseURL(x90._f90))
{
var x92=x90._f91.split(".");
if(x92.length>=2)
{
_f15._f80(x92[0]);
this._f80(x92[0]);
}
}
x90.parent=this;
if(!x90._f90)
{
if(this._f406)
{
if(MVUtil._f241(this._f406,'/'))
x90._f90=this._f406+'mcserver';
else
 x90._f90=this._f406+'/mcserver';
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
}
if(MVMapView._f97&&MVUtil._f95(x90._f90)!=MVUtil._f95(this._f130))
x90._f93=_f15._f134()+"?rtarget="+x90._f90;
else
 x90._f93=x90._f90;
var x93=this;
if(x90==null||!x90.getType)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter is not a valid MVMapTileLayer object. From: MVMapView.addMapTileLayer(...)");
return;
}
var x94=function()
{
x93._f528(x90,AfterSetProvider);
function AfterSetProvider(x0)
{
x90.config=_f15._f73[x90._f91];
var x1=false;
var x2=null;
for(var x3=0;x3<x93._f370.length;x3++)
{
if(x93._f370[x3]._f371()==x90._f90&&
x93._f370[x3]._f357()==x90._f91)
{
x1=true;
x2=x93._f370[x3];
x93._f370[x3].visible=x90.isVisible();
}
}
if(!x1)
{
x2=new _f372(x93,x90);
x93._f370.push(x2);
}
if(x93._f148)
{
if(!x0)
x2._f390(x93._f53(),x93._f55(),x93._f184,x93._f187);
else
 x93.display();
}
x2=null;
if(x91)
x91();
}
}
_f15._f89(x90,x94);
}
MVMapView.prototype.addBaseMapLayer=MVMapView.prototype.addMapTileLayer;
MVMapView.prototype.getMapTileLayerDefinition=function(x95,x96,x97)
{
if(!x97)
x97=null;
var x98=new MVMapTileLayer(x96,x97);
if(!x98._f90)
{
if(this._f406)
{
if(MVUtil._f241(this._f406,'/'))
x98._f90=this._f406+'mcserver';
else
 x98._f90=this._f406+'/mcserver';
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
}
if(MVMapView._f97&&MVUtil._f95(x98._f90)!=MVUtil._f95(this._f130))
x98._f93=_f15._f134()+"?rtarget="+x98._f90;
else
 x98._f93=x98._f90;
_f15._f89(x98,x95);
}
MVMapView.prototype.removeMapTileLayer=function(x99)
{
var x100=0;
for(;x100<this._f370.length;x100++)
{
if(this._f370[x100]._f357()==x99._f91)
{
var x101=this._f370[x100];
this._f370[x100]=this._f370[this._f370.length-1];
x101.destroy();
this._f370.pop();
return ;
}
}
}
MVMapView.prototype._f462=function()
{
if(!this._f211)
this._f211=new _f254(this);
this._f167=new _f190(this);
this._f167.setSize(Math.ceil(2*(this._f53())),
Math.ceil(2*(this._f55())));
MVUtil._f178(this._f167._f217(),
(this._f53()-this._f167._f197())/2,
(this._f55()-this._f167._f198())/2);
}
MVMapView.prototype.addGroupFOI=function(x102)
{
this._f543=0;
this._f544=x102;
this.startAddGroupFOI();
}
MVMapView.prototype.startAddGroupFOI=function()
{
for(var x103=0;x103<11000;x103++)
{
if(this._f543<this._f544.length)
{
this.addFOI(this._f544[this._f543]);
this._f543++;
}
else
 {
this._f544=null;
this._f545=null;
return;
}
}
this.setTimeout("this.startAddGroupFOI()",5);
}
MVMapView.prototype.addFOI=function(x104)
{
if(!this._f77&&this.compareBaseURL(x104._f140)&&x104.style&&x104.style.indexOf!=undefined)
{
var x105=x104.style.split(".");
if(x105.length>=2)
{
_f15._f80(x105[0]);
this._f80(x105[0]);
}
}
if(!x104||!x104.id)
return false;
if(x104.gtype%10==1)
x104._f149=true;
x104.parent=this;
if(x104.id!="")
{
var x106=x104.id.substr(0,3);
if(x106!="-RL")
{
for(var x107=0;x107<this._f167._f191.length;x107++)
{
if(this._f167._f191[x107].id==x104.id)
{
MVi18n.processLocale("MAPVIEWER-5508",x104.id);
return false;
}
}
}
}
if(x104.gtype%10==1&&!x104.style)
{
x104._f141=x104._f140;
}
if(!x104._f140)
x104._f140=_f15._f131();
this._f167._f181(x104);
return true;
}
MVMapView.prototype.getFOI=function(id)
{
return this._f167._f205(id);
}
MVMapView.prototype.removeFOI=function(x108)
{
if(!x108)
return ;
if(x108.id)
this._f167._f180(x108.id);
else
 this._f167._f180(x108);
}
MVMapView.prototype.getAllFOIs=function()
{
return this._f167._f232();
}
MVMapView.prototype._f233=function()
{
this._f234();
if(this._f167!=null)
{
var x109=(this._f167._f197()-
this._f53())*0.5/this._f50;
var x110=(this._f167._f198()-
this._f55())*0.5/this._f51;
MVUtil._f178(this._f167._f217(),
(this._f53()-this._f167._f197())/2,
(this._f55()-this._f167._f198())/2);
MVUtil._f178(this._f167.getTopContainer(),
(this._f53()-this._f167._f197())/2,
(this._f55()-this._f167._f198())/2);
this._f167._f233(this._f199-x109,
this._f200-x110,this._f201+x109,
this._f202+x110);
}
}
MVMapView.prototype.removeAllFOIs=function()
{
this._f167._f221();
}
MVMapView.prototype.addRedLineTool=function(x111)
{
if(x111==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter redlineTool is null.\n From: MVMapView.addRedLineTool(...)");
return;
}
x111.parent=this;
if(!x111._f140)
x111._f140=_f15._f131();
}
MVMapView.prototype.addCircleTool=function(x112)
{
if(x112==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter circleTool is null. \nFrom: MVMapView.addCircleTool(...)");
return;
}
this._f57.appendChild(x112._f18);
x112.parent=this;
if(!x112._f17)
x112._f17=_f15._f131();
}
MVMapView.prototype.addRectangleTool=function(x113)
{
if(x113==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter rectangleTool is null. \nFrom: MVMapView.addRectangleTool(...)");
return;
}
this.div.appendChild(x113._f546);
x113.parent=this;
if(!x113._f17)
x113._f17=_f15._f131();
}
MVMapView.prototype.stopMarqueeZoom=function()
{
this._f447=false;
if(this._f448)
this._f448.clear();
}
MVMapView.prototype.startMarqueeZoom=function(x114,x115,x116)
{
if(!x114)
x114="one_time";
if(x116&&x116>0)
this._f485=x116;
this._f447=true;
this._f446=x114;
this.marqueeZoom(x115);
}
MVMapView.prototype.marqueeZoom=function(x117)
{
if(!this._f447)
return ;
this._f449=false;
this._f451=false;
var x118=this._f448;
if(!x118)
{
x118=new MVRectangleTool(null,null);
x118.setDivFillColor("#555555",0.3);
this.addRectangleTool(x118);
this._f448=x118;
}
if(x117)
x118.setDivStyle(x117);
x118.init();
var x119=MVUtil._f59(x118,function()
{
this.clear();
var x120=null;
if(this.parent.marqueeRectGeom)
x120=this.parent.marqueeRectGeom.getMBR();
if(x120&&
(this._f446=="prompt"||
Math.abs(x120[2]-x120[0])*this.parent._f50>=this.parent._f485&&
Math.abs(x120[3]-x120[1])*this.parent._f51>=this.parent._f485))
{
var x121=document.getElementById("mv_mrqzm_msg");
if(x121)
x121.parentNode.removeChild(x121);
this.parent.zoomToRectangle(this.parent.marqueeRectGeom);
}
if(this.parent._f446!="one_time")
{
this.parent.marqueeZoom();
}
});
var x122=MVUtil._f59(x118,function()
{
this.parent._f449=true;
this.parent.marqueeRectGeom=x118.getRectangle();
x119();
});
var x123=MVUtil._f59(x118,function()
{
this.parent.marqueeRectGeom=x118.getRectangle();
x119();
this._f447=false;
});
var x124=MVUtil._f59(x118,function(x125)
{
this.parent._f450=true;
x125=(x125)?x125:((window.event)?event:null);
MVUtil._f39(x125);
});
var x126=MVUtil._f59(x118,function(x127)
{
x127=(x127)?x127:((window.event)?event:null);
if(this.parent._f450)
{
MVUtil._f39(x127);
x119();
}
});
var x128=MVUtil._f59(x118,function()
{
this.parent._f449=true;
this.parent.marqueeRectGeom=x118.getRectangle();
if(!this.parent.marqueeRectGeom)
{
this.clear();
this.parent.marqueeZoom();
return ;
}
var x129=this.parent;
var x130=x118.getRectangleDIV();
MVUtil._f175(x130,"crosshair");
if(MVMessages.marqueeZoomHint)
{
x130.onmouseover=function(x131)
{
var x132=document.getElementById("mv_mrqzm_msg");
if(x132)
x132.parentNode.removeChild(x132);
x132=MVUtil._f547(MVMessages.marqueeZoomHint);
x132.id="mv_mrqzm_msg";
x132.style.border="1px solid #000000";
x132.style.backgroundColor="#FFFFCC";
x132.style.position="absolute";
var x133=MVUtil._f548(x129,x131);
x132.style.left=x133.x+"px";
x132.style.top=x133.y+"px";
x132.style.zIndex=9999;
x129._f57.appendChild(x132);
};
x130.onmouseout=function()
{
var x134=document.getElementById("mv_mrqzm_msg");
if(x134)
x134.parentNode.removeChild(x134);
};
}
this.parent._f450=false;
x130.onmousedown=x124;
x130.onmouseup=x126;
x130.onclick=function(x135)
{
MVUtil._f39(x135);
};
});
this._f450=false;
if(this._f446=="prompt")
x118.addEventListener("on_finish",x128);
else if(this._f446=="continuous")
x118.addEventListener("on_finish",x122);
else
 x118.addEventListener("on_finish",x123);
}
MVMapView.prototype.zoomToRectangle=function(x136)
{
if(!this._f148)
{
this._f549(this,"zoomToRectangle",x136);
return ;
}
var x137=this;
var x138=function(x139)
{
var x140=x139.getMBR();
var x141=Math.abs(x140[0]-x140[2]);
var x142=Math.abs(x140[1]-x140[3]);
var x143=x141*(x137._f50);
var x144=x142*(x137._f51);
var x145=x137._f53();
var x146=x137._f55();
var x147=x137._f394;
var x148=x147;
var x149=x137._f439;
if(x145<x143||x146<x144)
{
for(var x150=(x147-1);x150>=0;--x150)
{
x148=x150;
var x151=(x137._f430[x150]/x137.msi._f361(x150))*x141;
var x152=(x137._f431[x150]/x137.msi._f362(x150))*x142;
if(x151<=x145&&x152<=x146)
break;
}
}
else if(x145>x143&&x146>x144)
{
for(var x150=(x147+1);x150<=x149;++x150)
{
var x151=(x137._f430[x150]/x137.msi._f361(x150))*x141;
var x152=(x137._f431[x150]/x137.msi._f362(x150))*x142;
if(x151<=x145&&x152<=x146)
x148=x150;
else
 break;
}
}
var x153=(x140[0]+x140[2])/2;
var x154=(x140[1]+x140[3])/2;
var x155=MVSdoGeometry.createPoint(x153,x154,x137.srid);
x137.zoomTo(x148,x155);
}
if(!x136.srid)
x136.srid=this.srid;
if(x136.srid&&this.srid!=x136.srid)
this.transformGeom(x136,this.srid,null,x138);
else
 x138(x136);
}
MVMapView.prototype._f551=function(x156)
{
var x157=(x156._f197()-this._f53())*0.5/this._f50;
var x158=(x156._f198()-this._f55())*0.5/this._f51;
var x159=new Array();
if(x156._f552._f553==1&&x156._f552._f554==1)
{
x159[0]=this._f199;
x159[1]=this._f200;
x159[2]=this._f201;
x159[3]=this._f202;
}
else
 {
var x160=this._f555(this._f199-x157,this._f200-x158);
var x161=this._f556(this._f201+x157,this._f202+x158);
x159[0]=x160.x;
x159[1]=x160.y;
x159[2]=x161.x;
x159[3]=x161.y;
}
var x162=Math.floor((x159[2]-x159[0])*this._f50+0.5);
var x163=Math.floor((x159[3]-x159[1])*this._f51+0.5);
x156._f557(x162,x163);
return x159;
}
MVMapView.prototype._f504=function()
{
this._f234();
var x164=0;
for(x164=0;x164<this._f433.length;x164++)
{
var x165=this._f433[x164];
if(x165._f552._f558)
{
x165.clearTransImageLayer();
var x166=this._f551(x165);
x165._f515(this,x166[0],x166[1],x166[2],x166[3],true,true,null,true,x165._f552._f559);
return true;
}
}
return false;
}
MVMapView.prototype._f508=function(x167,x168)
{
var x169=this;
var x170=function(x171)
{
x171.style.position="absolute";
if(x169._f435==1||x169._f435==3)
x171.style.right=MVUtil._f246(x169._f436);
else
 x171.style.left=MVUtil._f246(x169._f436);
if(x169._f435==2||x169._f435==3)
x171.style.bottom=MVUtil._f246(x169._f437);
else
 x171.style.top=MVUtil._f246(x169._f437);
}
x167._f560(this,x168,x170);
}
MVMapView.prototype.addThemeBasedFOI=function(x172)
{
if(!this._f77&&this.compareBaseURL(x172._f140)&&
x172._f267.indexOf("<jdbc_query")<0)
{
var x173=x172._f267.split(".");
if(x173.length>=2)
{
_f15._f80(x173[0]);
this._f80(x173[0]);
}
}
if(this._f477)
{
this._f561(x172);
return ;
}
if(!x172)
{
MVi18n.processLocale("MAPVIEWER-5500","Parameter themeBasedFOI is null.\n From: addThemeBasedFOI()");
return ;
}
if(!this._f211)
this._f211=new _f254(this);
for(var x174=0;x174<this._f433.length;x174++)
{
if(MVUtil._f92(this._f433[x174]._f552.name)==MVUtil._f92(x172.name))
{
MVi18n.processLocale("MAPVIEWER-5509",MVUtil._f92(x172.name));
return;
}
}
x172.parent=this;
var x175=new _f562(this,x172);
if(this._f433.length<100)
{
x175.div.style.zIndex=this._f433.length*2+130;
x175._f563=this._f433.length;
}
else
 {
x175.div.style.zIndex=100*2+130;
x175._f563=100;
}
x175.setSize(parseInt(x172._f553*(this._f53())),
parseInt(x172._f554*(this._f55())));
this._f433[this._f433.length]=x175;
if(this._f148)
{
var x176=this._f551(x175);
MVUtil._f178(x175._f217(),Math.ceil((x176[0]-this._f199)*this._f50),
-Math.ceil((x176[3]-this._f202)*this._f51));
if(x172._f558)
x175._f515(this,x176[0],x176[1],
x176[2],x176[3],false,true,false,false,x172._f559);
else
 x175._f515(this,x176[0],x176[1],
x176[2],x176[3],false,false);
}
}
MVMapView.prototype.getThemeIndex=function(x177)
{
for(var x178=0;x178<this._f433.length;x178++)
{
if(MVUtil._f92(this._f433[x178]._f552.name)==MVUtil._f92(x177.name))
{
return x178+1;
}
}
MVi18n.processLocale("MAPVIEWER-5510",MVUtil._f92(x177.name));
}
MVMapView.prototype.getOrigThemeIndex=function(x179)
{
for(var x180=0;x180<this._f433.length;x180++)
{
if(MVUtil._f92(this._f433[x180]._f552.name)==MVUtil._f92(x179.name))
{
return this._f433[x180]._f563;
}
}
MVi18n.processLocale("MAPVIEWER-5510",MVUtil._f92(x179.name));
}
MVMapView.prototype.setThemeIndex=function(x181,x182)
{
if(x182>100)
x182=100;
if(x182<1)
x182=1;
for(var x183=0;x183<this._f433.length;x183++)
{
if(MVUtil._f92(this._f433[x183]._f552.name)==MVUtil._f92(x181.name))
{
while(x183+1<this._f433.length&&x183+1<x182)
{
var x184=this._f433[x183];
this._f433[x183]=this._f433[x183+1];
this._f433[x183+1]=x184;
x183++;
}
while(x183+1>x182)
{
var x184=this._f433[x183];
this._f433[x183]=this._f433[x183-1];
this._f433[x183-1]=x184;
x183--;
}
break;
}
}
for(var x185=0;x185<this._f433.length;x185++)
{
this._f433[x185].div.style.zIndex=x185*2+130;
if(this._f433[x185]._f564)
this._f433[x185]._f564.style.zIndex=x185*2+130+1;
if(this._f433[x185]._f564&&this._f433[x185]._f565!=1&&
this._f433[x185]._f552._f566<=this._f394)
this._f464.style.zIndex=x185*2+130+1;
}
}
MVMapView.prototype.setToOrigThemeIndex=function(x186)
{
for(var x187=0;x187<this._f433.length;x187++)
{
if(MVUtil._f92(this._f433[x187]._f552.name)==MVUtil._f92(x186.name))
{
this._f433[x187].div.style.zIndex=this._f433[x187]._f563*2+130;
if(this._f433[x187]._f565==2&&_f15._f81!="IF"&&
this._f433[x187]._f564)
{
this._f433[x187]._f564.style.zIndex=this._f433[x187]._f563*2+130+1;
}
}
}
}
MVMapView.prototype.getThemeBasedFOI=function(x188)
{
for(var x189=0;x189<this._f433.length;x189++)
{
if(this._f433[x189].getThemeBasedFOI().name==x188)
{
return this._f433[x189].getThemeBasedFOI();
}
}
return null;
}
MVMapView.prototype.enableInfoWindowEventPropagation=function(x190)
{
if(!this._f211)
this._f211=new _f254(this);
this._f211.enableEventPropagation(x190);
}
MVMapView.prototype.refreshThemeBasedFOIs=function(x191)
{
if(this._f211)
this._f211._f257();
this._f234();
var x192=0;
for(x192=0;x192<this._f433.length;x192++)
{
var x193=this._f433[x192];
if(x193._f565!=1)
{
x193.clearTransImageLayer();
}
var x194=this._f551(x193);
var x195=x193._f552.getFOIData();
if(x195!=null)
{
if(!x193._f552._f568&&(x195[0].gtype%10==1)&&
(x193._f552._f569<this._f394)){
x193._f570();
x193._f552.minX=x193.minX=x194[0];
x193._f552.minY=x193.minY=x194[1];
x193._f552.maxX=x193.maxX=x194[2];
x193._f552.maxY=x193.maxY=x194[3];
x193._f394=this._f394;
var x196=Math.ceil((x193.minX-this._f199)*this._f50);
var x197=-Math.ceil((x193.maxY-this._f202)*this._f51);
MVUtil._f178(x193._f217(),x196,x197);
x193._f185=this._f184;
x193._f188=this._f187;
for(var x198=0;x198<x195.length;x198++)
{
x193._f571(x195[x198]);
}
x193._f572=false;
x193._f573=false;
continue;
}
}
x193._f515(this,x194[0],x194[1],x194[2],x194[3],x191,false,null,true);
}
}
MVMapView.prototype._f555=function(x199,x200)
{
var x201={"x":0,"y":0};
var x202=Math.floor((x199-this.msi._f213())/this.msi._f361(this._f394));
var x203=Math.floor((x200-this.msi._f214())/this.msi._f362(this._f394));
x201.x=this.msi._f213()+x202*this.msi._f361(this._f394);
x201.y=this.msi._f214()+x203*this.msi._f362(this._f394);
return x201;
}
MVMapView.prototype._f556=function(x204,x205)
{
var x206={"x":0,"y":0};
var x207=Math.floor((x204-this.msi._f213())/this.msi._f361(this._f394));
var x208=Math.floor((x205-this.msi._f214())/this.msi._f362(this._f394));
x206.x=this.msi._f213()+(x207+1)*this.msi._f361(this._f394);
x206.y=this.msi._f214()+(x208+1)*this.msi._f362(this._f394);
return x206;
}
MVMapView.prototype._f574=function()
{
if(this._f148)
{
for(var x209=0;x209<this._f433.length;x209++)
this._f433[x209].setVisible(false,false);
this.refreshThemeBasedFOIs(false);
}
while(this._f433.length>0)
{
this._f433[this._f433.length-1].destroy();
this._f433[this._f433.length-1]=null;
this._f433.pop();
}
while(this._f464.childNodes.length>0)
{
this._f464.removeChild(this._f464.childNodes[0]);
}
}
MVMapView.prototype.removeThemeBasedFOI=function(x210)
{
if(!x210)
return ;
for(var x211=0;x211<this._f433.length;x211++)
{
if(x210==this._f433[x211].getThemeBasedFOI())
{
this._f433[x211].destroy();
this._f433[x211]=this._f433[this._f433.length-1];
this._f433[this._f433.length-1]=null;
this._f433.pop();
break;
}
}
for(var x212=0;x212<this._f464.childNodes.length;x212++)
{
if(this._f464.childNodes[x212].id==x210.name)
{
this._f464.removeChild(this._f464.childNodes[x212]);
x212--;
}
}
for(var x213=0;x213<this._f433.length;x213++)
{
this._f433[x213].div.style.zIndex=x213*2+130;
if(this._f433[x213]._f564&&this._f433[x213]._f565!=1&&
this._f433[x213]._f552._f566<=this._f394)
{
this._f433[x213]._f564.style.zIndex=x213*2+130+1;
this._f464.style.zIndex=x213*2+130+1;
}
}
}
MVMapView.prototype._f575=function()
{
if(this._f211)
this._f211._f257();
this._f234();
var x214=0;
var x215=false;
for(x214=0;x214<this._f433.length;x214++)
{
var x216=this._f433[x214];
if((
this._f199<x216._f213()||
this._f200<x216._f214()||
this._f201>x216._f215()||
this._f202>x216._f216())&&x216._f552._f568)
{
if(x216._f565!=1)
{
x216.clearTransImageLayer();
}
var x217=this._f551(x216);
x216._f515(this,x217[0],x217[1],x217[2],x217[3],true,false);
}
else if(x216._f572&&x216._f552._f568)
{
x216._f515(this,0,0,0,0,true,false);
}
}
if(this._f199<this._f167.minX||
this._f200<this._f167.minY||
this._f201>this._f167.maxX||
this._f202>this._f167.maxY)
{
var x218=(this._f167._f197()-this._f53())*0.5/this._f50;
var x219=(this._f167._f198()-this._f55())*0.5/this._f51;
this._f167._f233(this._f199-x218,
this._f200-x219,
this._f201+x218,
this._f202+x219);
}
if(!x215)
{
this._f211.refresh(this._f199,this._f200,this._f201,
this._f202,this._f53(),this._f55());
x215=true;
}
}
MVMapView.prototype.getAllThemeBasedFOIs=function()
{
return this._f433;
}
MVMapView.prototype.setDefaultInfoWindowStyle=function(x220,x221)
{
_f15._f76=x220;
if(x220=="MVInfoWindowStyle1")
MVInfoWindowStyle1._f282=x221;
}
MVMapView.prototype.displayInfoWindow=function(x222,x223,x224,x225,x226,x227,x228)
{
if(this.infoWindowTimeout)
{
clearTimeout(this.infoWindowTimeout);
this.infoWindowTimeout=null;
}
var x229=this;
var x230=function(x231)
{
if(x231)
x222=x231;
x229._f211._f271(x223,x222.sdo_point.x,x222.sdo_point.y,x224,x225,x226,x227,x228);
}
var x232=function()
{
if(x229._f148)
{
if(!x222.srid)
x222.srid=x229.srid;
if(x222.srid&&(x229.srid!=x222.srid))
center=x229.transformGeom(x222,x229.srid,null,x230);
else
 x230();
}
else
 x229.infoWindowTimeout=setTimeout(x232,200);
}
x232();
}
MVMapView.prototype.setInfoWindow=function(x233,x234,x235)
{
this._f461=x233;
this._f98=x234;
this._f99=x235;
}
MVMapView.prototype._f576=function(x236,x237)
{
_f15._f98=x236;
_f15._f99=x237;
}
MVMapView.prototype.removeInfoWindow=function()
{
if(this._f211._f212.length>0)
this._f211.deleteInfoWindow(this._f211._f212[0]);
}
MVMapView.prototype.addCSTransformFunction=function(x238,x239,x240)
{
_f15._f16(x239,x240,x238);
}
MVMapView.prototype.transformGeom=function(geometry,_f9,_f90,callBack,dataSource)
{
if(!geometry.srid)
{
if(!this.srid)
{
MVi18n.processLocale("MAPVIEWER-5500","MVMapView.transformGeom() - geometry srid can not be null before the map has been initialized.")
return ;
}
geometry.srid=this.srid;
}
if(geometry.srid==_f9)
{
if(callBack)
{
callBack(geometry);
return ;
}
else
 return geometry;
}
var clientTrans=_f15._f136(geometry.srid,_f9);
if(clientTrans)
{
var _f139=null;
if(geometry.getGType()==1)
{
var result=clientTrans(geometry.getPointX(),geometry.getPointY());
_f139=MVSdoGeometry.createPoint(result.x,result.y,_f9);
}
else if((geometry.gtype%10==2||geometry.gtype%10==3)&&
geometry.sdo_elem_info.length==3&&geometry.sdo_elem_info[0]==1&&
(geometry.sdo_elem_info[1]==2||geometry.sdo_elem_info[1]==1003||geometry.sdo_elem_info[1]==2003)&&
geometry.sdo_elem_info[2]==1)
{
var ordinates=MVMapView._f577(clientTrans,geometry.sdo_ordinates);
_f139=new MVSdoGeometry(geometry.gtype,_f9,geometry.sdo_elem_info,ordinates);
}
if(_f139)
{
if(callBack)
{
callBack(_f139);
return ;
}
else
 return _f139;
}
}
if(_f90)
{}
else if(this._f406)
{
if(MVUtil._f241(this._f406,'/'))
{
_f90=this._f406+'mcserver';
}
else
 {
_f90=this._f406+'/mcserver';
}
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
var localDomain=(MVUtil._f95(_f90)==MVUtil._f95(this._f130));
var xmlHttp=localDomain||MVMapView._f97;
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 _f578;
var _f579;
var _f580;
if(dataSource)
_f580=dataSource;
else
 _f580=this._f77;
_f579=MVUtil._f179(geometry.toString(),"null","");
if(geometry.getGType()==1)
{
_f579=MVUtil._f179(_f579,"SdoPointType","");
}
else
 {
}
_f579=MVUtil._f179(_f579," ","");
if(MVMapView._f97&&!localDomain)
_f90=_f15._f134()+"?rtarget="+_f90+"&";
else
 _f90=_f90+"?";
var _f581=_f90+"request=cstransform&dstsrid="+
_f9+"&geometry="+_f579+"&datasource="+_f580;
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);
_f578=result;
if(result.length==0)
{
result=null;
return;
}
var _f139=null;
if(_f578.SDO_GTYPE==1)
{
_f139=MVSdoGeometry.createPoint(_f578.SDO_POINT.X,_f578.SDO_POINT.Y,_f578.SDO_SRID);
}
else
 {
_f139=new MVSdoGeometry(2000+_f578.SDO_GTYPE,_f578.SDO_SRID,_f578.SDO_ELEM_INFO,_f578.SDO_ORDINATES,null)
}
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5511",request.responseText);
return ;
}
if(callBack)
callBack(_f139);
if(xmlHttp)
return _f139;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=transformed;
request.open("GET",encodeURI(_f581),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._f582=function()
{
MVUtil._f175(document.body,"wait");
MVUtil._f175(this._f57,"wait");
}
MVMapView.prototype._f583=function()
{
MVUtil._f175(document.body,"");
MVUtil._f175(this._f57,this._f456);
}
MVMapView.prototype.getMapTileLayer=function(x241)
{
var x242=x241.split(".");
if(x242.length<2){
return "";
}
else
 return x242[1];
}
MVMapView.prototype.getMapAsXML=function(x243,x244,x245)
{
if(!x244)
x244=this._f53();
if(!x245)
x245=this._f55();
var x246="<?xml version=\"1.0\" standalone=\"yes\"?>"
x246=x246+"<map_request datasource=\""+this._f77+"\" format=\""+x243+"\" width=\""+
x244+"\" height=\""+x245+"\" antialiase=\"true\" "+
(this.getSrid()?"srid=\""+this.getSrid()+"\"":"")+">";
var x247=parseInt(this._f55())/this._f51;
var x248=this.getCenter();
x246=x246+"<center size=\""+x247+"\"><geoFeature><geometricProperty typeName=\"center\"><Point><coordinates>"+x248.sdo_point.x+","+x248.sdo_point.y+"</coordinates></Point></geometricProperty></geoFeature></center>";
x246=x246+"<themes>";
for(i=0;i<this._f370.length;i++)
{
if(this._f370[i].isVisible())
x246=x246+"<theme name=\"cached_basemap"+i+"\">"+this._f370[i].getXMLForPrint()+"</theme>";
}
var x249="";
var x250="";
var x251="";
for(var x252=0;x252<this._f433.length;x252++)
{
if(this._f433[x252].isVisible())
{
x249+=this._f433[x252]._f251();
if(this._f433[x252]._f552._f584!=null)
x251+=this._f433[x252]._f552._f584.getXML(this._f433[x252]._f552);
var x253=this._f433[x252]._f552._f585;
if(x253.length>0)
{
for(var x252=0;x252<x253.length;x252++)
{
x250+=x253[x252].getXMLString();
}
}
}
}
for(var x252=0;x252<this._f167._f191.length;x252++)
{
if(this._f167._f191[x252].style&&
this._f167._f191[x252].style.getXMLString&&
this._f167._f191[x252].visible)
x250+=this._f167._f191[x252].style.getXMLString();
}
x246=x246+x249+"</themes>";
if(x250!="")
x246+="<styles>"+x250+"</styles>";
if(x251!="")
x246+=x251;
x246=x246+this._f167._f251();
x246=x246+"</map_request>";
return x246;
}
MVMapView.prototype._f251=function()
{
return this.getMapAsXML("GIF_URL");
}
MVMapView.prototype._f329=function()
{
this.real_base_div.className=null;
this._f586=null;
if(this._f463)
while(this._f463.childNodes.length>0)
{
var x254=this._f463.childNodes[0];
if(x254.src)
{
}
x254.onload=null;
this._f463.removeChild(x254);
MVUtil._f220(x254);
}
}
MVMapView.prototype._f587=function()
{
this.real_base_div.className=("noprint");
}
MVMapView.prototype.print=function(x255)
{
var x256=this;
if(x255.style.position!="absolute")
x255.style.position="relative";
x255.style.width=MVUtil._f246(this._f53());
x255.style.height=MVUtil._f246(this._f55());
if(!this._f588)
{
this._f582();
this._f329();
var x257=this._f251();
var x258=(this._f406==this._f455);
var x259=x258||MVMapView._f97;
var x260="";
if(MVMapView._f97&&!x258)
x260=this._f455;
else
 x260=this._f406;
if(MVUtil._f241(x260,'/'))
x260=x260+'omserver';
else
 x260=x260+'/omserver';
_f231=MVUtil.getXMLHttpRequest(x259);
_f231.open("POST",x260,true);
_f231.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f231.send("xml_request="+encodeURIComponent(x257));
_f231.onreadystatechange=function()
{
if(_f231.readyState==4)
{
if(_f231.status==200)
{
x256._f463=x255;
var x261=document.createElement("img");
var x262=_f231.responseText;
var x263=x262.indexOf("url=\"");
if(x263<0)
{
MVi18n.alert("Error in map response:"+x262);
return ;
}
x261.src=x262.substring(x263+5,x262.indexOf("\"",x263+5));x261.style.position="absolute";
x261.style.left=MVUtil._f246(0);
x261.style.top=MVUtil._f246(0);
x256._f463.appendChild(x261);
x261.onload=MVUtil._f59(x261,function()
{
x256._f587();
if(x256._f453!=null)
for(var x264=0;x264<x256._f453.length;x264++)
{
if(x256._f453[x264]._f302&&x256._f453[x264].visible&&!x256._f453[x264].collapsed)
x256._f463.appendChild(x256._f453[x264]._f338());
}
x256._f589(true);
if(x256._f434)
{
x256._f438=new MVScaleBar(x256._f434._f590);
x256._f508(x256._f438,x256._f463)
}
x256._f583();
window.print();
x256._f588=false;
})
x256._f586=x261;
}
}
}
}
}
MVMapView.prototype._f589=function(x265)
{
var x266=document.createElement("span");
x266.className="copyright";
x266.style.zIndex=1999;
if(typeof x265=="string")
{
x266.innerHTML=" "+x265+" ";
this._f463.appendChild(x266);
}
else if(this._f591!=undefined)
{
x266.innerHTML=" "+this._f591.innerHTML+" ";
this._f463.appendChild(x266);
}
}
MVMapView.prototype.setMouseWheelZoomEnabled=function(x267)
{
this._f445=x267;
this._f61();
}
MVMapView.prototype._f61=function()
{
var x268=this;
var x269=this.getBrowserType();
this._f57.onmouseover=MVUtil._f59(this._f57,function()
{
x268._f38=true;
});
this._f57.onmouseout=MVUtil._f59(this._f57,function(x270)
{
if(x269=="NS"||x269=="OS")
{
x270=(x270)?x270:((window.event)?event:null);
var x271=x270.clientX;
var x272=x270.clientY;
var x273=x268._f53();
var x274=x268._f55();
var x275=MVUtil._f62(this);
var x276=x270.pageX-x275.x;
var x277=x270.pageY-x275.y;
if(x276<=0||x276>=x273||
x277<=0||x277>=x274||
x271<=0||x271>=document.body.clientWidth||
x272<=0||x272>=document.body.clientHeight)
{
x268._f592(x270);
x268._f38=false;
if(x268._f470.contains(37))x268._f470.remove(37);
if(x268._f470.contains(38))x268._f470.remove(38);
if(x268._f470.contains(39))x268._f470.remove(39);
if(x268._f470.contains(40))x268._f470.remove(40);
}
}
else
 {
x268._f38=false;
if(x268._f470.contains(37))x268._f470.remove(37);
if(x268._f470.contains(38))x268._f470.remove(38);
if(x268._f470.contains(39))x268._f470.remove(39);
if(x268._f470.contains(40))x268._f470.remove(40);
}
});
this.div.onclick=MVUtil._f59(this.div,function(x278)
{
if(x268.mouseDownLoc&&x268.mouseUpLoc&&
(Math.abs(x268.mouseDownLoc.left-x268.mouseUpLoc.left)>1||
Math.abs(x268.mouseUpLoc.top-x268.mouseUpLoc.top)>1))
return ;
if(x268._f303)
{
x268._f303(MVUtil.getEvent(x278));
}
else
 return;
});
if(!this._f492)
MVUtil.detachEvent(document.body,"mousedown",this._f492);
this._f492=MVUtil._f59(document.body,function()
{
x268._f38=false;
});
MVUtil.attachEvent(document.body,"mousedown",this._f492);
if(x269=="IF")
{
this._f57.onselectstart=MVUtil._f59(this._f57,function()
{
if(x268._f263)
return true;
else
 return false;
});
this._f57.oncontextmenu=MVUtil._f59(this._f57,function(x279)
{
x268._f60(window.event);
if(x268._f468)
{
x268._f468(MVUtil.getEvent(x279));
}
if(x268._f263)
return true;
else
 return false;
});
if(this._f445)
this._f57.onmousewheel=MVUtil._f59(this._f57,function()
{
return x268._f593(window.event);
});
this._f57.onmousedown=MVUtil._f59(this._f57,function()
{
MVUtil._f39(window.event);
return x268._f594(window.event);
});
this._f57.onmousemove=MVUtil._f59(this._f57,function()
{
return x268._f595(window.event);
});
this._f57.onmouseup=MVUtil._f59(this._f57,function()
{
x268._f38=true;
return x268._f592(window.event);
});
this.div.ondblclick=MVUtil._f59(this.div,function()
{
return x268._f596(window.event);
});
if(!this._f342)
{
if(!this._f495)
MVUtil.detachEvent(document.body,"keydown",this._f495);
this._f495=MVUtil._f59(document.body,function()
{
return x268._f597(window.event);
});
MVUtil.attachEvent(document.body,"keydown",this._f495);
if(!this._f496)
MVUtil.detachEvent(document.body,"keyup",this._f496);
this._f496=MVUtil._f59(document.body,function()
{
return x268._f598(window.event);
});
MVUtil.attachEvent(document.body,"keyup",this._f496);
var x280=function()
{
x268._f599(window.event);
return false;
}
var x281=function()
{
if(MVUtil._f600==document.body.offsetWidth)
{
MVUtil._f601=0;
x280();
}
else
 {
MVUtil._f602=window.setTimeout(x281,100);
}
}
if(!this._f489)
MVUtil.detachEvent(window,"resize",this._f489);
this._f489=MVUtil._f59(window,function(x282)
{
MVUtil._f601++;
MVUtil._f600=document.body.offsetWidth;
if(MVUtil._f601>1)
{
if(MVUtil._f602)
window.clearTimeout(MVUtil._f602);
MVUtil._f602=window.setTimeout(x281,100);
}
});
MVUtil.attachEvent(window,"resize",this._f489);
}
}
else if(x269=="NS")
{
this._f57.oncontextmenu=function(x283)
{
x268._f60(x283);
if(x268._f468)
{
x268._f468(MVUtil.getEvent(x283));
}
if(x268._f263)
return true;
else
 return false;
};
this._f57.onmousedown=function(x284)
{
x284.stopPropagation();
return x268._f594(x284);
};
this._f57.onmousemove=function(x285)
{
return x268._f595(x285);
};
this._f57.onmouseup=function(x286)
{
x268._f38=true;
return x268._f592(x286);
};
var x287=function(x288)
{
x288.preventDefault();
if(x288.detail<0)x268.zoomIn();
else x268.zoomOut();
}
if(this._f445)
this._f57.addEventListener("DOMMouseScroll",x287,false);
this.div.ondblclick=function(x289)
{
return x268._f596(x289);
};
if(!this._f490)
MVUtil.detachEvent(window.document,"mouseup",this._f490);
this._f490=function(x290)
{
return x268._f592(x290);
};
MVUtil.attachEvent(window.document,"mouseup",this._f490);
if(!this._f342)
{
if(!this._f493)
MVUtil.detachEvent(window.document,"keydown",this._f493);
this._f493=function(x291)
{
return x268._f597(x291);
};
MVUtil.attachEvent(window.document,"keydown",this._f493);
if(!this._f494)
MVUtil.detachEvent(window.document,"keyup",this._f494);
this._f494=function(x292)
{
return x268._f598(x292);
};
MVUtil.attachEvent(window.document,"keyup",this._f494);
if(!this._f489)
MVUtil.detachEvent(window,"resize",this._f489);
this._f489=function(x293)
{
x268._f599(x293);
return false;
};
MVUtil.attachEvent(window,"resize",this._f489);
}
}
if(x269=="OS")
{
this._f57.onmousedown=function()
{
window.event.stopPropagation();
return x268._f594(window.event);
};
this._f57.onmousemove=function()
{
return x268._f595(window.event);
};
this._f57.onmouseup=function()
{
x268._f38=true;
return x268._f592(window.event);
};
this.div.ondblclick=function()
{
return x268._f596(window.event);
};
if(!this._f490)
MVUtil.detachEvent(window.document,"mouseup",this._f490);
this._f490=function(x294)
{
return x268._f592(window.event);
};
MVUtil.attachEvent(window.document,"mouseup",this._f490);
if(!this._f342)
{
if(!this._f489)
MVUtil.detachEvent(window,"resize",this._f489);
this._f489=function(x295)
{
x268._f599(window.event);
return false;
};
MVUtil.attachEvent(window,"resize",this._f489);
}
this._f57.onkeypress=function()
{
return x268._f597(window.event);
};
this._f57.onkeyup=function()
{
return x268._f598(window.event);
};
}
}
MVMapView.prototype._f593=function(x296)
{
if(x296.wheelDelta>0)this.zoomIn();
else this.zoomOut();
return false;
}
MVMapView.prototype._f599=function(x297)
{
this._f482=false;
this._f394=this.getZoomLevel();
if(this._f394>this._f439)
{
this._f394=this._f439;
return ;
}
MVUtil._f178(this.div,0,0);
MVUtil._f178(this._f256,0,0);
this._f247=0;
this._f248=0;
this._f323=this._f247;
this._f322=this._f248;
this._f497=0;
this._f498=0;
this.setZoomLevel(this._f394);
if(this._f527)
{
if(this.centerMarkUrl)
this.setCenterMark(this.centerMarkUrl,this.centerMarkW,this.centerMarkH);
else
 this.setCenterMark(_f15._f120+"center.gif",20,20);
}
if(this.navigationPanel)
this.navigationPanel.init();
for(lc=0;lc<this._f433.length;lc++)
{
this._f433[lc].setSize(
parseInt(this._f433[lc]._f552._f553*(this._f53())),
parseInt(this._f433[lc]._f552._f554*(this._f55())));
}
this.display();
if(this._f434)
{
this._f434._f526(this);
}
if(this._f340)
{
this._f340._f344._f599();
this._f340._f343();
}
if(this._f453!=null)
for(var x298=0;x298<this._f453.length;x298++)
{
this._f453[x298]._f337();
}
return false;
}
MVMapView.prototype.getBrowserType=function()
{
return _f15._f81;
}
MVMapView.prototype.enableKeyboardPanning=function(x299)
{
this._f472=x299;
}
MVMapView.prototype._f597=function(x300)
{
if(!this._f38||!this._f472)
return true;
if(this._f603==undefined||this.scroll_up==undefined||this._f604==undefined||this._f605==undefined)
{
this._f603=0;
this.scroll_up=0;
this._f604=0;
this._f605=0;
this._f606=0;
}
var x301=(this.getBrowserType()!="OS")?96:48;
if(!x300.shiftKey)
{
switch(x300.keyCode)
{
case 37:this._f603=1;this._f470.add(x300.keyCode);break;
case 38:this.scroll_up=1;this._f470.add(x300.keyCode);break;
case 39:this._f604=1;this._f470.add(x300.keyCode);break;
case 40:this._f605=1;this._f470.add(x300.keyCode);break;
case x301+1:this._f603=1;this._f605=1;
break;
case x301+2:this._f605=1;this._f470.add(x300.keyCode);
break;
case x301+3:this._f604=1;this._f605=1;
break;
case x301+4:this._f603=1;this._f470.add(x300.keyCode);
break;
case x301+5:break;
case x301+6:this._f604=1;this._f470.add(x300.keyCode);
break;
case x301+7:this._f603=1;this.scroll_up=1;
break;
case x301+8:this.scroll_up=1;this._f470.add(x300.keyCode);
break;
case x301+9:this.scroll_up=1;this._f604=1;
break;
default:return true;
}
this._f607();
return false;
}
else
 return true;
}
MVMapView.prototype._f598=function(x302)
{
if(!this._f38)return;
var x303=(this.getBrowserType()!="OS")?96:48;
if(x302.shiftKey)
{
switch(x302.keyCode)
{
case 37:this._f470.remove(x302.keyCode);
break;
case 38:this._f470.remove(x302.keyCode);break;
case 39:this._f470.remove(x302.keyCode);
break;
case 40:this._f470.remove(x302.keyCode);break;
default:return true;
}
}
else
 {
switch(x302.keyCode)
{
case 33:this.smoothScroll(0,-this._f55()/2);break;
case 34:this.smoothScroll(0,this._f55()/2);break;
case 35:this.smoothScroll(this._f53()/2,0);break;
case 36:this.smoothScroll(-this._f53()/2,0);break;
case 37:this._f470.remove(x302.keyCode);break;
case 38:this._f470.remove(x302.keyCode);
break;
case 39:this._f470.remove(x302.keyCode);
break;
case 40:this._f470.remove(x302.keyCode);break;
case x303+1:this._f603=0;
this._f605=0;
break;
case x303+2:this._f605=0;
this._f470.remove(x302.keyCode);
break;
case x303+3:this._f604=0;
this._f605=0;
break;
case x303+4:this._f603=0;
this._f470.remove(x302.keyCode);
break;
case x303+5:this._f603=0;
this.scroll_up=0;
this._f604=0;
this._f605=0;
break;
case x303+6:this._f604=0;
this._f470.remove(x302.keyCode);
break;
case x303+7:this._f603=0;
this.scroll_up=0;
break;
case x303+8:this.scroll_up=0;
this._f470.remove(x302.keyCode);
break;
case x303+9:this.scroll_up=0;
this._f470.remove(x302.keyCode);
this._f604=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._f608=function(x304)
{
x304=(x304)?x304:((window.event)?event:null);
var x305=x304.clientX+document.body.scrollLeft-this._f57.offsetLeft;
return x305;
}
MVMapView.prototype._f609=function(x306)
{
x306=(x306)?x306:((window.event)?event:null);
var x307=x306.clientY+document.body.scrollTop-this._f57.offsetTop;
return x307;
}
MVMapView.prototype._f610=function(x308)
{
var x309={left:0,top:0};
absolutePosition=MVUtil._f62(this.real_base_div);
if(x308.pageX||x308.pageY)
{
x309.left=x308.pageX-absolutePosition.x;
x309.top=x308.pageY-absolutePosition.y;
}
else if(x308.clientX||x308.clientY)
{
x309.left=x308.clientX+document.body.scrollLeft-
document.body.clientLeft-absolutePosition.x;
x309.top=x308.clientY+document.body.scrollTop-
document.body.clientTop-absolutePosition.y;
if(document.body.parentElement&&document.body.parentElement.clientLeft)
{
var x310=document.body.parentElement;
x309.left+=x310.scrollLeft-x310.clientLeft;
x309.top+=x310.scrollTop-x310.clientTop;
}
}
return x309;
}
MVMapView.prototype._f594=function(x311)
{
x311=(x311)?x311:((window.event)?event:null);
var x312=this._f610(x311);
this.mouseDownLoc=x312;
if(this._f447&&this._f449)
{
this._f451=true;
}
if(this._f428==false)return;
if(x311.button==2)
{
return;
}
if((_f15._f81!="SF")&&(_f15._f81.indexOf("OS")!=0)&&
((_f15._f81=="IF"&&x311.button==4)||(_f15._f81!="IF"
&&x311.button==1)))
{
MVUtil._f39(x311);
return false;
}
for(var x313=0;x313<this._f433.length;x313++)
{
if(this._f433[x313]._f194())
{
MVUtil._f175(this._f57,"wait");
}
}
if((_f15._f81.indexOf("OS")==0)&&x311.button==2)
{
_f611();
}
if(this._f432!=null)
{
clearInterval(this._f432);
this._f432=null;
}
this._f429=this;
this._f499(x312.left,x312.top);
this._f60(x311);
if(_f15._f69==2)x311.returnValue=false;
if(this._f427)this._f429=null;
this._f612();
return false;
}
MVMapView.prototype._f612=function()
{
this.fetchingMapId=this.setTimeout("this.fetching()",400);
}
MVMapView.prototype.fetching=function()
{
this._f234();
for(var x314=0;x314<this._f370.length;x314++)
this._f370[x314]._f402();
this._f612();
}
function _f611(x0)
{
x0=(x0)?x0:((window.event)?event:null);
MVUtil._f39(x0);
return false;
}
MVMapView.prototype._f239=function()
{
this._f429=null;
MVUtil._f175(this._f57,this._f456);
}
MVMapView.prototype._f595=function(x315)
{
if(this._f332)
{
var x316=MVUtil._f236(x315);
this._f332._f178(
this._f332.dragStartLeft+(x316.x-this._f332.dragStartMouseLoc.x),
this._f332.dragStartTop+(x316.y-this._f332.dragStartMouseLoc.y));
if(this._f332._f309)
this._f332._f309(this._f332.getPosition());
return ;
}
if(this._f428==false)return;
if(!this._f429||this._f427)return true;
this._f329();
var x317=this._f610(x315);
if(this._f458!=this._f457)
MVUtil._f175(this._f57,this._f457);
if(this._f447&&this._f449&&this._f451)
this._f451=false;
this._f502(x317.left,x317.top);
if(this._f340)
{
this._f340._f613(this._f323-this._f247,this._f322-this._f248)
}
if(this._f469)
{
this._f469(this._f323-this._f247,this._f322-this._f248);
}
return false;
}
MVMapView.prototype._f592=function(x318)
{
x318=(x318)?x318:((window.event)?event:null);
var x319=this._f610(x318);
this.mouseUpLoc=x319;
if(this._f332)
{
this._f332._f239();
}
if(this._f447&&this._f451)
{
this._f448.clear();
this.marqueeZoom();
}
if(this._f428==false)return;
x318=(x318)?x318:((window.event)?event:null);
MVUtil._f175(this._f57,this._f456);
if(!this._f429&&!this._f427)return;
this._f429=null;
if(x318)this._f60(x318);
this._f234();
if(this._f426==true)
{
for(var x320=0;x320<this._f370.length;x320++)
this._f370[x320]._f402();
this._f575();
this._f426=false;
if(this._f340)
{
this._f340._f614();
}
if(this._f467)
{
this._f467();
}
if(this._f434)
{
this._f434._f526(this);
}
}
if(this.fetchingMapId!=null)
{
clearTimeout(this.fetchingMapId);
}
this._f329();
}
MVMapView.prototype.setDoubleClickAction=function(x321)
{
if(x321==null||(x321!='recenter'&&x321!='zoomin'))
MVi18n.processLocale("MAPVIEWER-5500","Invalid paramter 'action' specified! From: setDoubleClickAction(...) in MapView");
this._f473=x321
}
MVMapView.prototype._f596=function(x322)
{
x322=(x322)?x322:((window.event)?event:null);
if(this._f474){
this._f474(MVUtil.getEvent(x322));
return true;
}
if(!this._f342&&this._f473=="zoomin")
{
this.zoomIn(this.getMouseLocation());
return true;
}
if(this._f427)
{
this._f429=null;
this._f57.style.cursor=this._f456;
return true;
}
this._f57.style.cursor=this._f456;
if(this._f432!=null)
{
clearInterval(this._f432);
this._f432=null;
}
var x323=this._f610(x322);
var x324=x323.left;
var x325=x323.top;
this._f517=this._f53()/2-x324;
this._f518=this._f55()/2-x325;
this._f204=Math.sqrt(this._f517*this._f517+this._f518*this._f518);
this._f521=20;
this._f519=this._f53();
this._f520=this._f55();
this._f522=this._f204>((this._f519+this._f520)/4)?300:200;
this._f523=0;
this._f524=0;
this._f525=0;
this.smoothPan();
}
MVMapView.prototype.pan=function(x326,x327)
{
this.smoothScroll(x326,x327);
}
MVMapView.prototype.smoothScroll=function(x328,x329)
{
if(x328==0&&x329==0)
{
return;
}
if(this._f427)
{
this._f429=null;
this._f57.style.cursor=this._f456;
return true;
}
this._f57.style.cursor=this._f456;
if(this._f432!=null)
{
clearTimeout(this._f432);
this._f432=null;
}
this._f517=x328*(-1);
this._f518=x329*(-1);
this._f204=Math.sqrt(x328*x328+x329*x329);
this._f521=10;
this._f519=this._f53();
this._f520=this._f55();
this._f522=this._f204>((this._f519+this._f520)/4)?300:200;
this._f523=0;
this._f524=0;
this._f525=0;
this.smoothPan();
}
MVMapView.prototype.smoothPan=function(x330)
{
this._f523++;
var x331=x330?1:this._f523*this._f521/this._f522;
this.targetX=this._f517*(2*x331-x331*x331);
this.targetY=this._f518*(2*x331-x331*x331);
var x332=this._f519/2;
var x333=this._f520/2;
this._f499(x332,x333);
x332=Math.round(this.targetX-this._f524)+this._f519/2;
x333=Math.round(this.targetY-this._f525)+this._f520/2;
this._f502(x332,x333);
if(this._f340)
{
this._f340._f613(this._f323-this._f247,this._f322-this._f248)
}
if(this._f469)
{
this._f469(this._f323-this._f247,this._f322-this._f248);
}
this._f524=this.targetX;
this._f525=this.targetY;
this._f234();
for(i=0;i<this._f370.length;i++)
this._f370[i]._f402();
if(x331<1.0)
{
this._f432=this.setTimeout("this.smoothPan()",this._f521);
this._f477=true;
}
else
 {
clearTimeout(this._f432);
this._f432=null;
this._f575();
this._f426=false;
if(this._f340)
{
this._f340._f614();
}
if(this._f467)
{
this._f467();
}
if(this._f434)
{
this._f434._f526(this);
}
this._f329();
this._f477=false;
return false;
}
}
MVMapView.prototype.smoothMove=function(x334,x335)
{
this.targetX=x334*(-1);
this.targetY=x335*(-1);
var x336=this._f53()/2;
var x337=this._f55()/2;
this._f499(x336,x337);
x336=Math.round(this.targetX+this._f53()/2);
x337=Math.round(this.targetY+this._f55()/2);
this._f502(x336,x337);
if(this._f469)
{
this._f469(this._f323-this._f247,this._f322-this._f248);
}
for(i=0;i<this._f370.length;i++)
this._f370[i]._f402();
}
var _f210=0;
MVMapView.prototype.setTimeout=function(_f208,_f209)
{
var Ie="tempVar"+_f210;
_f210++;
eval(Ie+" = this;");
var oi=_f208.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f209);
}
MVMapView.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
MVMapView.prototype._f607=function(x338,x339)
{
if(!this._f432)
{
this._f432=this.setTimeout("this.arrowScroll()",5)
}
}
MVMapView.prototype.arrowScroll=function()
{
if(this._f427)
{
this._f429=null;
this._f57.style.cursor=this._f456;
return true;
}
this._f57.style.cursor=this._f456;
if(this._f432!=null)
{
clearTimeout(this._f432);
this._f432=null;
}
var x340=(this.getBrowserType()!="OS")?96:48;
if(this._f470.length>0)
{
var x341=((this._f470.contains(37)||this._f470.contains(x340+4))?1:0)+
((this._f470.contains(39)||this._f470.contains(x340+6))?-1:0);
var x342=((this._f470.contains(38)||this._f470.contains(x340+8))?1:0)+
((this._f470.contains(40)||this._f470.contains(x340+2))?-1:0);
this.moveOffsetX=(x341==1?15:0)+(x341==-1?-15:0);
this.moveOffsetY=(x342==1?15:0)+(x342==-1?-15:0);
this._f499(0,0);
this._f502(this.moveOffsetX,this.moveOffsetY);
if(this._f340)
{
this._f340._f613(this._f323-this._f247,this._f322-this._f248)
}
if(this._f469)
{
this._f469(this._f323-this._f247,this._f322-this._f248);
}
for(i=0;i<this._f370.length;i++)
this._f370[i]._f402();
this._f432=this.setTimeout("this.arrowScroll()",5)
}
else
 {
this._f329();
this._f432=null;
this._f234();
this._f575();
this._f426=false;
if(this._f340)
{
this._f340._f614();
}
if(this._f467)
{
this._f467();
}
if(this._f434)
{
this._f434._f526(this);
}
}
}
MVMapView.prototype._f615=function(x343){
var x344=this._f610(x343);
var x345=x344.left;
var x346=x344.top;
if(((_f15._f81=="NS"))&&((x345<=0)||(x345>=
this._f53())||(x346<=0)||(x346>=
this._f55()))&&(this._f429))
{
this._f592();
}
}
MVMapView.prototype._f60=function(x347)
{
var x348=MVUtil.getMouseLocation(this,x347);
var x349=x348.sdo_point.x;
var x350=x348.sdo_point.y;
this._f420=x349;
this._f421=x350;
}
MVMapView.prototype._f203=function(x351)
{
this._f427=x351;
}
MVMapView.prototype.enableDragging=function(x352)
{
this._f203(!x352);
}
function _f471(x0)
{
this.length=0;
if(x0)
{
for(var x1=x0.length-1;x1>=0;--x1)
{
this.add(x0[x1]);
this.length++;
}
}
}
_f471.prototype.add=function(x353)
{
if(!this.contains(x353))
{
this["key"+x353]=1;
this.length++;
}
}
_f471.prototype.remove=function(x354)
{
if(this.exist(x354))
{
delete this["key"+x354];
this.length--;
}
}
_f471.prototype.contains=function(x355)
{
return this["key"+x355]==1;
}
_f471.prototype.exist=function(x356)
{
return this["key"+x356]==1||this["key"+x356]==2;
}
_f471.prototype.sleep=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=2;
}
}
}
_f471.prototype.wakeup=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=1;
}
}
}
MVMapView.prototype.addMapDecoration=function(x357)
{
if(this._f453==null)
this._f453=new Array();
this._f453.push(x357);
if(this._f148)
{
var id="_md_"+this._f454
x357.init(id,this);
if(x357._f301)
{
this._f57.appendChild(x357._f327);
}
else
 this._f57.appendChild(x357._f300);
this._f454++;
x357._f148=true;
}
}
MVMapView.prototype.removeMapDecoration=function(x358)
{
if(x358==null||x358.id==null||this._f453==null)
{
return;
}
for(var x359=0;x359<this._f453.length;x359++)
if(this._f453[x359].id==x358.id)
{
if(this._f453[x359]._f302)
this._f329();
this._f453[x359]=this._f453[this._f453.length-1]
this._f453.pop();
x358._f336();
var x360=null;
if(x358._f301)
x360=x358._f327;
else
 x360=x358._f300;
x360.onclick=null;
x360.onmouseover=null;
x360.onmouseout=null;
this._f57.removeChild(x360);
MVUtil._f220(x360);
break;
}
}
MVMapView.prototype.addCopyRightNote=function(x361)
{
if(this._f591!=undefined)
{
this._f57.removeChild(this._f591);
delete this._f591;
}
var x362=document.createElement("SPAN");
x362.innerHTML=" "+x361+" ";
x362.style.zIndex=2000;
x362.style.position="absolute";
x362.style.right=MVUtil._f246(-1);
x362.style.bottom=MVUtil._f246(-1);
x362.style.fontSize=12;
x362.style.color="black";
x362.style.backgroundColor="";
this._f57.appendChild(x362);
this._f591=x362;
}
MVMapView.prototype.addOverviewMap=function(x363)
{
if(this._f340==null)
this._f340=x363;
else
 return;
if(this._f148)
this._f340.init(this._f340._f505,this);
}
function _f616(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._f246(x2);
this.div.style.height=MVUtil._f246(x3);
MVUtil._f405(this.div);
x0.appendChild(this.div);
return this.div;
}
MVMapView.prototype.addNavigationPanel=function(x364,x365,x366,x367,x368)
{
this.navigationPanel=new MVNavigationPanel(x365,x366,x367,x368);
if(!x364)
x364="WEST";
this.navigationPanel._f617=x364;
if(this._f148)
this.navigationPanel.init(this._f57,this);
}
MVMapView.prototype.addScaleBar=function(x369,x370,x371,x372)
{
if(this._f434)
return ;
this._f434=new MVScaleBar(x372);
this._f435=x369||this._f435;
this._f436=x370||this._f436;
this._f437=x371||this._f437;
if(this.msi)
this._f508(this._f434);
}
MVMapView.prototype.setMouseCursorStyle=function(x373,x374)
{
if(x374=="dragging")
this._f457=x373;
else if(x374=="default")
{
this._f456=x373;
MVUtil._f175(this._f57,x373);
}
}
MVMapView.prototype.enableLoadingIcon=function(x375)
{
this._f475=x375;
if(!x375)
this.setLoadingIconVisible(false);
}
MVMapView.prototype.setLoadingIconVisible=function(x376)
{
if(!this._f475)
x376=false;
if(!x376)
{
if(this._f476)
this._f476.style.visibility="hidden";
}
else
 {
if(!this._f476)
{
var x377=document.createElement("img");x377.src=_f15._f120+"loading.gif";
x377.style.zIndex=2001;
x377.style.position="absolute";
var x378=0,x379=0;
if(x377.width)
x378=x377.width;
if(x377.height)
x379=x377.height;
x377.style.left=MVUtil._f246((this._f53()-x378)/2);
x377.style.top=MVUtil._f246((this._f55()-x379)/2);
var x380=this;
x377.onload=function()
{
x377.style.left=MVUtil._f246((x380._f53()-x377.width)/2);
x377.style.top=MVUtil._f246((x380._f55()-x377.height)/2);
x377.onload=null;
};
this._f57.appendChild(x377);
this._f476=x377;
}
else
 {
this._f476.style.left=MVUtil._f246((this._f53()-this._f476.width)/2);
this._f476.style.top=MVUtil._f246((this._f55()-this._f476.height)/2);
this._f476.style.visibility="visible";
}
}
}
MVMapView.prototype.getMapCoordinates=function(x381)
{
return MVSdoGeometry.createPoint(x381.x/this._f50+this._f199,
this._f202-x381.y/this._f51,this.srid);
}
MVMapView.prototype._f506=function()
{
var x382=true;
for(i=0;i<this._f433.length;i++)
{
var x383=this._f433[i];
if(x383.div&&x383.isVisible()&&x383._f573)
{
x382=false;
break;
}
}
if(x382)
this.setLoadingIconVisible(false);
}
MVMapView.prototype._f561=function(x384)
{
if(!this._f478)
this._f478=new Array();
this._f478.push(x384);
var x385=this;
var x386=function()
{
if(x385._f477)
return ;
clearInterval(x385._f479);
x385._f479=null;
while(x385._f478.length>0)
{
x385.addThemeBasedFOI(x385._f478.shift());
}
}
if(!this._f479)
this._f479=setInterval(x386,50);
}
MVMapView.prototype._f80=function(x387)
{
if(!this._f77)
this._f77=x387;
}
MVMapView.prototype.compareBaseURL=function(x388)
{
if(x388&&x388!=""&&x388.indexOf(this._f406)<0)
return false;
else
 return true;
}
MVMapView.prototype.checkSize=function()
{
clearTimeout(this._f484);
if(!this._f57)
return ;
if(Math.abs(this._f480-this._f53())>3||
Math.abs(this._f481-this._f55())>3)
{
this._f482=true;
this._f483=0.4;
this._f480=this._f53();
this._f481=this._f55();
}
else
 this._f483+=0.4;
if(this._f483>0.4&&this._f482)
{
this._f599();
this._f482=false;
this._f483=0;
}
this._f484=this.setTimeout("this.checkSize()",300);
}
MVMapView.prototype._f182=function(x389,x390)
{
return {x:(x389-this._f184)*this._f50+this._f53()/2,
y:(this._f187-x390)*this._f51+this._f55()/2};
}
MVMapView.prototype.showInfoTip=function(x391,x392)
{
if(this.infoTipDiv)
this.infoTipDiv.parentNode.removeChild(this.infoTipDiv);
this.infoTipDiv=MVUtil._f547(x391);
this.infoTipDiv.id="mv_mrqzm_msg";
this.infoTipDiv.style.border="1px solid #000000";
this.infoTipDiv.style.backgroundColor="#FFFFCC";
this.infoTipDiv.style.position="absolute";
var x393=MVUtil._f548(this,x392);
this.infoTipDiv.style.left=x393.x+"px";
this.infoTipDiv.style.top=x393.y+"px";
this.infoTipDiv.style.zIndex=9999;
this._f57.appendChild(this.infoTipDiv);
};
MVMapView.prototype._f242=function()
{
if(this.infoTipDiv)
{
this.infoTipDiv.parentNode.removeChild(this.infoTipDiv);
this.infoTipDiv=null;
}
};
MVMapView.prototype._f549=function()
{
if(arguments.length<2)
return ;
var x394=new Array();
for(var x395=2;x395<arguments.length;x395++)
x394[x395-2]=arguments[x395];
var x396={obj:arguments[0],func:arguments[1],params:x394};
this._f486.push(x396);
}
MVMapView.addMapTileLayerDefinition=function(x397)
{
var x398=x397.dataSource?x397.dataSource+"."+x397.mapTileLayer:x397.mapTileLayer;
if(x397)
_f15._f86(x398,x397)
}
MVMapView._f97=false;
MVMapView.enableXMLHTTP=function(x399)
{
MVMapView._f97=x399;
}
MVMapView.setProxyPath=function(x400)
{
_f15._f132=x400;
}
MVMapView.setErrorHandler=function(x401)
{
MVi18n.addBehavior("func",x401,"text");
}
MVMapView.debug=false;
MVMapView.enableDebugMode=function(x402)
{
MVMapView.debug=x402;
}
MVMapView._f577=function(x403,x404)
{
var x405=new Array(x404.length);
for(var x406=0;x406<x404.length;x406+=2)
{
var x407=x403(x404[x406],x404[x406+1]);
x405[x406]=x407.x;
x405[x406+1]=x407.y;
}
return x405;
}
function _f264(_f273,x,y,_f142,_width,_height,style,_f261,mouseOver,parent,screenLoc,title,parameters)
{
if(_width==null||_width<0)_width=0;
if(_height==null||_height<0)_height=0;
this._f261=_f261;
if(style!="MVInfoWindowStyle1")
{
if(!_width)
_width=_f15._f98;
if(!_height)
_height=_f15._f99;
eval(style+".init()");
this._f274=eval(style+".createWindow("+x+","+y+","+_width+","+_height+")");
_f273.appendChild(this._f274);
}
var close=function(){
if(MVInfoWindowStyle1._f260)
{
clearTimeout(MVInfoWindowStyle1._f260);
MVInfoWindowStyle1._f260=null;
}
_f261._f211.deleteInfoWindow(_f273);
}
if(style=="MVInfoWindowStyle1")
{
var _f274=this._f274;
var drawInfoWindow=function()
{
if(MVInfoWindowStyle1.sizeChanged())
{
MVUtil._f275(_f273);
MVInfoWindowStyle1.init(parameters);
_f274=MVInfoWindowStyle1.createWindow(x,y,_width,_height);
_f273.appendChild(_f274);
MVInfoWindowStyle1.addContent(_f273,_f142,title);
var x0=document.getElementById("infowindow3table");
if(x0)
{
if(!isNaN(screenLoc.x))
{
var x1=x0.offsetWidth;var x2=x0.offsetHeight;
var x3=parent.parent._f247;var x4=parent.parent._f248;
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._f276-x2>=0)
x8=x8-MVInfoWindowStyle1._f276-x2;
else
 {
x8=-x4+MVInfoWindowStyle1._f276;
x11=true;
}
}
else
 {
if(x4+x8+MVInfoWindowStyle1._f276+x2<=x6)
x8=x8+MVInfoWindowStyle1._f276;
else
 {
x8=x6-x4-MVInfoWindowStyle1._f276-x2;
x11=true;
}
}
if(x9)
{
if(x3+x7+MVInfoWindowStyle1._f276+x1<=x5||x11)
x7=x7+MVInfoWindowStyle1._f276;
else
 x7=x5-x3-MVInfoWindowStyle1._f276-x1;
}
else
 {
if(x3+x7-MVInfoWindowStyle1._f276-x1>=0||x11)
x7=x7-MVInfoWindowStyle1._f276-x1;
else
 x7=-x3+MVInfoWindowStyle1._f276;
}
x0.style.left=MVUtil._f246(x7-screenLoc.x);
x0.style.top=MVUtil._f246(x8-screenLoc.y);
if(!mouseOver)
{
MVInfoWindowStyle1.addCloseButton(close);
MVInfoWindowStyle1._f277(_f273);
}
MVInfoWindowStyle1.getWindowSize();
}
else
 {
if(!mouseOver)
{
MVInfoWindowStyle1.addCloseButton(close);
MVInfoWindowStyle1._f277(_f273);
}
}
}
}
MVInfoWindowStyle1._f260=setTimeout(drawInfoWindow,500);
}
drawInfoWindow();
this._f274=_f274;
}
else
 {
div=this._f278(_f142,_width);
eval(style+".addContent(div)");
if(!mouseOver)
{
eval(style+".addCloseButton(close)");
}
}
}
_f264.prototype._f278=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._f175(x2,"auto");
return x2;
}
_f264.prototype._f279=function(){
_f261._f211.deleteInfoWindow(_f262);
}
_f264.prototype._f280=function()
{
if(this._f274){
this._f274.style.display="none";
}
}
_f264.prototype._f281=function()
{
this._f274.style.display="";
this._f274.style.visibility="visible";
}
_f264.prototype.isVisible=function()
{
return this._f274&&this._f274.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()
{
if(this.getGType()==1&&this.sdo_point)
return [this.sdo_point.x,this.sdo_point.y];
else
 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.isCircle=function()
{
return this.sdo_elem_info&&this.sdo_elem_info.length==3&&
this.sdo_elem_info[0]==1&&this.sdo_elem_info[1]==1003&&this.sdo_elem_info[2]==4;
}
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)
{
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=_f11._f65(new MVSdoPointType(x35,x36,0),x38,0);
var x41=_f11._f65(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=_f11._f65(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=_f11._f65(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=_f15._f131();
var x64="";
if(MVMapView._f97&&MVUtil._f95(x63)!=MVUtil._f95(x62))
x64=_f15._f134()+"?rtarget="+x62+"&";
else
 x64=x62+"?";
return x64;
}
MVSdoGeometry.prototype.getLength=function(unit,_f590,foiURL,callBack,dataSource)
{
if(!dataSource)
dataSource=_f15._f79();
if(!this.srid)
{
var len=MVSdoGeometry.calcLength(this.sdo_ordinates);
if(callBack)
callBack(len);
return len;
}
var srs=_f15._f88(this.srid);
var clientTransFunc=null;
if(_f590)
clientTransFunc=_f15._f136(this.srid,8307);
if(!_f590||this.srid==8307||this.srid==8265||
_f590&&clientTransFunc)
{
if((srs||this.srid==8307||this.srid==8265||_f590&&clientTransFunc)&&
(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[1]==1003||this.sdo_elem_info[1]==2003)&&
this.sdo_elem_info[2]==1)
{
var convFactor=0;
if(!unit||unit=="")
convFactor=1;
else
 {
convFactor=_f15._f85(unit);
if(srs&&srs.distConvFactor&&!_f590)
convFactor=convFactor/srs.distConvFactor;
}
var ordinates=this.sdo_ordinates;
if(clientTransFunc)
ordinates=MVMapView._f577(clientTransFunc,ordinates);
if(convFactor)
{
var len=0;
if(srs&&srs.type!='GEODETIC'&&!_f590)
len=MVSdoGeometry.calcLength(ordinates)/convFactor;
else
 len=_f11._f67(ordinates)/convFactor;
if(callBack)
callBack(len);
return len;
}
}
}
var request=null;
var _f578;
var _f579=MVUtil._f179(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
 {
_f579=MVUtil._f179(_f579," ","");
}
var _f671=this.getRequestURL(foiURL);
var localDomain=(_f671.indexOf(_f15._f134())<0&&
MVUtil._f95(_f671)==MVUtil._f95(_f15._f96()));
var xmlHttp=localDomain||MVMapView._f97;
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;
}
_f671+="request=getlength&version=1.1&figord="+_f579+"";
if(unit)
{
_f671=_f671+"&unit="+unit;
}
if(_f590)
{
var trans=(_f590==true)?"yes":"no";
_f671=_f671+"&togeodetic="+trans;
}
if(dataSource)
_f671=_f671+"&datasource="+dataSource;
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);
_f578=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(_f578);
if(xmlHttp)
return _f578;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=respLoaded;
request.open("POST",encodeURI(_f671),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,_f590,foiURL,callBack,dataSource)
{
if(!dataSource)
dataSource=_f15._f79();
var request=null;
var _f578;
var _f579=MVUtil._f179(this.toString(),"null","");
if(this.gtype%10!=3&&this.gtype%10!=7)
{
MVi18n.processLocale("MAPVIEWER-5513");
return 0;
}
else
 {
_f579=MVUtil._f179(_f579," ","");
}
var _f671=this.getRequestURL(foiURL);
var localDomain=(_f671.indexOf(_f15._f134())<0&&
MVUtil._f95(_f671)==MVUtil._f95(_f15._f96()));
var xmlHttp=localDomain||MVMapView._f97;
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;
}
_f671+="request=getarea&version=1.1&figord="+_f579+"";
if(unit)
{
_f671=_f671+"&unit="+unit;
}
if(_f590)
{
var trans=(_f590==true)?"yes":"no";
_f671=_f671+"&togeodetic="+trans;
}
if(dataSource)
_f671=_f671+"&datasource="+dataSource;
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);
_f578=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(_f578);
if(xmlHttp)
return _f578;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=respLoaded;
request.open("POST",encodeURI(_f671),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.toGML=function()
{
var x65=this.getGType();
var x66=""
switch(x65%10)
{
case 1:
x66=this._f672(this.getOrdinates());
break;
case 2:
x66=this._f673(this.getOrdinates());
break;
case 3:
if(this.sdo_elem_info[2]==4)
x66=this._f674(this.getOrdinates());
else
 x66=this._f675(this.getOrdinates());
break;
case 4:
break;
case 5:
x66=this._f672(this.getOrdinates());
break;
case 6:
x66=this._f676();
break;
case 7:
x66=this._f677();
break;
}
return x66;
}
MVSdoGeometry.prototype._f672=function(x67)
{
var x68=MVSdoGeometry._f678(x67);
var x69="<Point srsName=\"SDO:"+this.srid+"\" ><coordinates>";
x69=x69+x68+"</coordinates></Point>";
return x69;
}
MVSdoGeometry.prototype._f673=function(x70)
{
var x71=MVSdoGeometry._f678(x70);
var x72="<LineString srsName=\"SDO:"+this.srid+"\" ><coordinates>";
x72=x72+x71+"</coordinates></LineString>"
return x72;
}
MVSdoGeometry.prototype._f675=function(x73)
{
var x74=MVSdoGeometry._f678(x73);
var x75="<Polygon srsName=\"SDO:"+this.srid+"\" ><outerBoundaryIs><LinearRing><coordinates>";
x75=x75+x74+"</coordinates></LinearRing></outerBoundaryIs></Polygon>"
return x75;
}
MVSdoGeometry.prototype._f677=function()
{
var x76=this.getOrdinatesOfElements();
var x77="<MULTIPOLYGON srsName=\"SDO:"+this.srid+"\" >";
for(var x78=0;x78<x76.length;x78++)
{
x77=x77+"<polygonMember>";
x77=x77+this._f675(x76[x78]);
x77=x77+"</polygonMember>";
}
x77=x77+"</MULTIPOLYGON>";
return x77;
}
MVSdoGeometry.prototype._f676=function()
{
var x79=this.getOrdinatesOfElements();
var x80="<MultiLineString srsName=\"SDO:"+this.srid+"\" >";
for(var x81=0;x81<x79.length;x81++)
{
x80=x80+"<lineStringMember>";
x80=x80+this._f673(x79[x81]);
x80=x80+"</lineStringMember>";
}
x80=x80+"</MultiLineString>";
return x80;
}
MVSdoGeometry.prototype._f674=function(x82)
{
var x83=parseFloat(x82[2]);
var x84=parseFloat(x82[1]);
var x85=parseFloat(x82[0])-parseFloat(x82[2]);
var x86="";
var x87=2*Math.PI;
var x88=x83+x85*Math.cos((x87*0)/120);
for(var x89=1;x89<120;x89++)
{
if(x89%2==0)
{
x86=x83+x85*Math.cos((x87*x89)/120);
x88+=" "+x86;
}
else
 {
x86=x84+x85*Math.sin((x87*x89)/120);
x88+=","+x86;
}
}
var x90="<Polygon srsName=\"SDO:"+this.srid+"\" ><outerBoundaryIs><LinearRing><coordinates>";
x90+=x88+"</coordinates></LinearRing></outerBoundaryIs></Polygon>";
return x90;
}
MVSdoGeometry._f678=function(x91)
{
var x92=0;
var x93="";
for(;x92<x91.length;x92+=2)
{
if(x92>0)
x93+=" ";
x93+=x91[x92+0]+","+x91[x92+1];
}
return x93;
}
MVSdoGeometry.getDistance=function(x94,x95,x96,x97,x98,x99,x100,x101,x102)
{
var x103=new Array(x94,x95,x96,x97);
var x104=MVSdoGeometry.createLineString(x103,x98);
return x104.getLength(x99,x100,x101,x102);
}
MVSdoGeometry.calcLength=function(x105)
{
var x106=0,x107=2;
if(x105&&x105.length>3)
{
for(;x107<x105.length;x107+=2)
{
var x108=x105[x107]-x105[x107-2];
var x109=x105[x107+1]-x105[x107-1];
x106+=Math.sqrt(x108*x108+x109*x109);
}
return x106;
}
else
 return 0;
}
MVSdoGeometry.calcPolygonArea=function(x110,x111)
{
if(x110&&x110.length>=4)
{
var x112=0;
var x113=x110.length/2;
var x114;
for(x114=1;x114+1<x113;x114++)
{
var x115=x110[x114*2]-x110[0];
var x116=x110[x114*2+1]-x110[1];
var x117=x110[x114*2+2]-x110[0];
var x118=x110[x114*2+3]-x110[1];
var x119=x115*x118-x117*x116;
x112+=x119;
}
return Math.abs(x119/2.0);
}
else
 return 0;
}
function MVSdoPointType(x0,x1,x2)
{
this.x=x0;
this.y=x1;
this.z=x2;
}
MVSdoPointType.prototype.toString=function()
{
var x120="SdoPointType( ";
x120+=this.x+", ";
x120+=this.y+", ";
x120+=this.z+" )";
return x120;
}
function MVOverviewMap(x0,x1,x2)
{
if(x0&&!x0.style)
{
if(x1)
x2=x1;
x1=x0;
}
this.type="MVOverviewMap";
this._f298=true;
this._f505=x0?x0:null;
this._f341=null;
this._f630=x1;
this._f344=null;
this.overviewMapTileLayer=x2;
this._f631=false;
this._f206=0;
this._f207=0;
this.coords=null;
this._f632=false;
this._f633=false;
this.borderStyle="2px solid red";
this.backgroundColor="red";
this._f457=null;
this._f456=null;
this._f634=null;
}
MVOverviewMap.prototype.init=function(x0,x1)
{
x1._f340=this;
if(x0)
this._f505=x0;
this._f505._f342=true;
this._f341=x1;
var x2=this._f341.getZoomLevel()-this._f630;
if(x2<0)
x2=0;
this._f344=new MVMapView(this._f505,this._f341._f406);
this._f344.enableLoadingIcon(false);
if(this._f456)
this._f344.setMouseCursorStyle(this._f456,"default");
if(this._f457)
this._f344.setMouseCursorStyle(this._f457,"dragging");
if(this.overviewMapTileLayer==null)
{
var x3=this._f341._f370[0]._f371();
this.overviewMapTileLayer=new MVMapTileLayer(this._f341._f370[0]._f357(),x3);
}
this._f635=document.createElement("div");
this._f344._f57.appendChild(this._f635);
this._f635.style.zIndex=10000;
var x4=this;
var x5=function(x6,x7)
{
if(!x4._f633)
{
x4._f635.style.left=(parseInt(x4._f635.style.left)-x6)+"px";
x4._f635.style.top=(parseInt(x4._f635.style.top)-x7)+"px";
}
}
var x8=function(x9,x10)
{
var x11=x9-x10;
if(x10>x9&&x4._f341._f441)
{
x4._f344._f441=false;
x4._f341.setZoomLevel(MVOverviewMap._f636(x4._f341.getZoomLevel()-x11));
x4._f343();
}
else if(x10<x9&&x4._f341._f441)
{
x4._f344._f441=false;
if(x4._f341.getZoomLevel()-x9==x4._f630){
x4._f341.setZoomLevel(MVOverviewMap._f636(x4._f341.getZoomLevel()-x11));
}
else{
x4._f341.setZoomLevel(MVOverviewMap._f636(x9-x11+x4._f630));
}
x4._f343();
}
x4._f341._f441=true;
}
var x12=function()
{
if(!x4._f633)
{
x4._f632=true;
x4._f341.setCenter(x4._f344.getCenter());
x4._f343();
}
x4._f633=false;
}
this._f344.addEventListener("moving",x5);
this._f344.addEventListener("recenter",x12);
this._f344.addEventListener("zoom",x8);
var x13=function()
{
var x14=x4._f341.getCenter();
x4._f344.setCenter(x14);
x4._f344.setZoomLevel(MVOverviewMap._f636(x2));
x4._f344._f342=true;
function setRectangle()
{
x4._f343();
}
x4._f344.setEventListener("initialize",setRectangle);
x4._f344.display();
}
this._f344.addMapTileLayer(this.overviewMapTileLayer,x13);
}
MVOverviewMap.prototype._f336=function()
{
this.destroy();
}
MVOverviewMap.prototype.destroy=function()
{
if(this._f341)
this._f341._f340=null;
if(this._f344)
this._f344.destroy();
MVUtil._f223(this._f505);
this._f344=null;
}
MVOverviewMap.prototype._f343=function()
{
var x15=this._f341.getMapWindowBBox();
var x16=this._f344.getMapWindowBBox();
var x17=this;
var x18=function(x19)
{
var x20=x19.getMBR();
var x21=x16.getMBR();
x17.xRatio=(x20[2]-x20[0])/(x21[2]-x21[0]);
x17.yRatio=(x20[3]-x20[1])/(x21[3]-x21[1]);
var x22=x17.xRatio*x17._f344._f53();
var x23=x17.yRatio*x17._f344._f55();
x17._f635.style.position="absolute";
x17._f635.style.overflow="hidden";
x17._f635.style.zIndex=10000
x17._f635.style.left=((x17._f344._f53()-x22)/2)+"px";
x17._f635.style.top=((x17._f344._f55()-x23)/2)+"px";
x17._f635.style.width=x22+"px";
x17._f635.style.height=x23+"px";
x17._f635.style.border=x17.borderStyle;
if(_f15._f81=='NS')
x17._f635.innerHTML="<div  style='width: "+x22+"px; height: "+x23
+"px;opacity: 0.3;background-color:"+x17.backgroundColor+";'></div>";
else if(_f15._f81=='IF')
x17._f635.innerHTML="<div  style='width: "+x22+"px; height: "+x23
+"px;filter:alpha(opacity=30);background-color:"+x17.backgroundColor+";'></div>";
if(x22>x17._f344._f53()||x23>x17._f344._f55())
x17._f635.style.visibility="hidden";
else
 x17._f635.style.visibility=x17._f344._f57.style.visibility;
x17._f635.onmousedown=MVUtil._f59(x17._f635,function(x24){
x24=(x24)?x24:((window.event)?event:null);
if(x24.button==2)
{
return;
}
x17.coords=x17._f344._f610(x24)
x17._f631=true;
MVUtil._f39(x24);
x17._f206=0;
x17._f207=0;
})
x17._f635.onmouseup=MVUtil._f59(x17._f635,function(x25)
{
x25=(x25)?x25:((window.event)?event:null);
x17._f631=false;
x25.cancelBubble=true;
x17._f635._f637();
})
x17._f635._f637=MVUtil._f59(x17._f635,function()
{
var x26=parseInt(this.style.left)+parseInt(this.style.width)/2;
var x27=parseInt(this.style.top)+parseInt(this.style.height)/2;
var x28=x17._f344;
var x29=x26-x28._f53()/2;
x29=x29/x28._f50;
var x30=x27-x28._f55()/2;
x30=x30/x28._f51;
var x31=x17._f344._f52()+x29;
var x32=x17._f344._f54()-x30;
var x33=MVSdoGeometry.createPoint(x31,x32,x17._f344.srid);
x17._f344.setCenter(x33);
})
if(!x17._f634)
MVUtil.detachEvent(window.document,"mouseup",x17._f634);
x17._f634=MVUtil._f59(window.document,function(x34)
{
if(x17._f631){
x17._f631=false;
x17._f635._f637();
}
});
MVUtil.attachEvent(window.document,"mouseup",x17._f634);
x17._f635.onmousemove=MVUtil._f59(x17._f635,function(x35)
{
x35=(x35)?x35:((window.event)?event:null);
if(x17._f631)
{
var x36=x17._f344._f610(x35);
x=x36.left-x17.coords.left;
y=x36.top-x17.coords.top;
x17.coords=x36;
this.style.left=(parseInt(this.style.left)+x)+"px";
this.style.top=(parseInt(this.style.top)+y)+"px";
x35.cancelBubble=true;
}
})
}
if(x15.srid!=x16.srid)
{
this._f341.transformGeom(x15,x16.srid,null,x18);
}
else
 x18(x15);
}
MVOverviewMap.prototype._f613=function(x37,x38)
{
if(this.xRatio==undefined)
return ;
var x39=Math.round(this.xRatio*x37);
var x40=Math.round(this.yRatio*x38);
if(x39>=0)
x39=Math.floor(x39);
else
 x39=Math.ceil(x39);
if(x40>=0)
x40=Math.floor(x40);
else
 x40=Math.ceil(x40);
if(!this._f632)
{
this._f633=true;
this._f635.style.left=(parseInt(this._f635.style.left)+x39)+"px";
this._f635.style.top=(parseInt(this._f635.style.top)+x40)+"px";
}
}
MVOverviewMap.prototype._f614=function()
{
if(!this._f632)
{
this._f633=true;
this._f344.setCenter(this._f341.getCenter());
this._f343();
}
this._f632=false;
}
MVOverviewMap.prototype._f542=function(x41,x42,x43)
{
var x44=x41-x42;
if(x42>=x41&&this._f344._f441)
{
this._f341._f441=false;
if(x41-this._f344.getZoomLevel()==this._f630){
if(x43)
this._f344.setCenterAndZoomLevel(x43,MVOverviewMap._f636(this._f344.getZoomLevel()-x44));
else
 this._f344.setZoomLevel(MVOverviewMap._f636(this._f344.getZoomLevel()-x44));
}
else {
if(x43)
this._f344.setCenterAndZoomLevel(x43,MVOverviewMap._f636(x41-x44-this._f630));
else
 this._f344.setZoomLevel(MVOverviewMap._f636(x41-x44-this._f630));
}
this._f343();
}
else if(x42<x41&&this._f344._f441)
{
this._f341._f441=false;
if(x43)
this._f344.setCenterAndZoomLevel(x43,MVOverviewMap._f636(this._f344.getZoomLevel()-x44));
else
 this._f344.setZoomLevel(MVOverviewMap._f636(this._f344.getZoomLevel()-x44));
this._f343();
}
this._f344._f441=true;
}
MVOverviewMap.prototype.setRectangleStyle=function(x45,x46)
{
this.borderStyle=x45;
this.backgroundColor=x46;
}
MVOverviewMap.prototype.setMouseCursorStyle=function(x47,x48)
{
if(x48=="dragging")
this._f457=x47;
else if(x48=="default")
{
this._f456=x47;
MVUtil._f175(this._f57,x47);
}
}
MVOverviewMap._f636=function(x49)
{
if(!x49||x49<0)
return 0;
else
 return x49;
}
function MVInfoWindowStyle1()
{
}
MVInfoWindowStyle1._f282=null;
MVInfoWindowStyle1.closeButtonImgURL=null;
MVInfoWindowStyle1._f283=function(x0)
{
if(x0&&x0.closeButtonImageURL)
{
if(!this._f284||
this._f284!=x0.closeButtonImageURL)
{
this.closeButtonWidth=null;
this.closeButtonHeight=null;
}
this._f284=x0.closeButtonImageURL;
}
else
 {
if(!this._f284||
this._f284!=MVInfoWindowStyle1.closeButtonImgURL)
{
this.closeButtonWidth=null;
this.closeButtonHeight=null;
}
this._f284=MVInfoWindowStyle1.closeButtonImgURL;
}
if(x0&&x0.bodyStyle)
this._f285=x0.bodyStyle;
else
 this._f285="border:1px;border-color:#8794A3;background-color:#FFFFFF";
if(x0&&x0.titleBarStyle)
this._f286=x0.titleBarStyle;
else
 this._f286="background-color:#CFDCEB;font-weight:bold";
if(x0&&x0.coneStyle)
{
this._f287=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._f288=parseInt(x1[i+1]);
break;
}
}
}
else
 {
this._f287="background-color:#99CC33;opacity:30";
this._f288=30;
}
if(x0&&x0.offset)
MVInfoWindowStyle1._f276=x0.offset;
else
 MVInfoWindowStyle1._f276=20;
}
MVInfoWindowStyle1.init=function(x2)
{
if(!MVInfoWindowStyle1.closeButtonImgURL)
MVInfoWindowStyle1.closeButtonImgURL=_f15._f120+"infoicons/closeDialog_n.png";
if(x2)
MVInfoWindowStyle1._f283(x2);
else
 MVInfoWindowStyle1._f283(MVInfoWindowStyle1._f282);
MVInfoWindowStyle1._f98=null;
MVInfoWindowStyle1._f99=null;
MVInfoWindowStyle1._f260=null;
this._f289=null;
this._f290=null;
this.x=null;
this.y=null;
this._f291="";
this._f292=null;
this._f293=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._f285;
x8.style.borderStyle="solid";
x8.style.cellSpacing="0px";
x8.style.borderSpacing="0px";
x8.style.borderCollapse="collapse";
x8.style.padding="0px";
if(!x8.style.width||x8.style.width==""||
x8.style.width=="0"||x8.style.width=="0px")
{
if(x5)
x8.style.width=MVUtil._f246(x5);
else
 x8.style.width=MVUtil._f246(_f15._f98);
}
if(!x8.style.height||x8.style.height==""||
x8.style.height=="0"||x8.style.height=="0px")
{
if(x6)
x8.style.height=MVUtil._f246(x6);
else
 x8.style.height=MVUtil._f246(_f15._f99);
}
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._f246(10);
x9.appendChild(x10);
var x11=document.createElement("TD");
x11.align="center";
this._f293=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._f292=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._f290=x14;
x8.style.left=MVUtil._f246(x3-MVInfoWindowStyle1._f276);
x8.style.top=MVUtil._f246(x4+MVInfoWindowStyle1._f276);
x8.style.position='absolute';
x8.style.zIndex=200;
return x8;
}
MVInfoWindowStyle1.addCloseButton=function(x15)
{
var x16=document.createElement("img");
x16.src=this._f284;
x16.style.cursor='pointer';
if(this.closeButtonWidth)
{
x16.width=this.closeButtonWidth;
x16.height=this.closeButtonHeight;
}
else
 x16.onload=MVUtil._f59(x16,
function(){MVInfoWindowStyle1.setCloseButtonSize();});
x16.onclick=MVUtil._f59(x16,
function(){x15();});
this._f292.appendChild(x16);
}
MVInfoWindowStyle1.addContent=function(x17,x18,x19)
{
this._f290.innerHTML=x18;
if(x19)
{
this._f293.innerHTML=x19;
var x20=this._f293.parentNode;
x20.style.cssText=this._f286;
x20.style.border="0px";
x20.style.padding="0px";
x20.style.height=MVUtil._f246(10);
}
}
MVInfoWindowStyle1._f277=function(x21)
{
MVInfoWindowStyle1._f295(x21,this.x,this.y);
}
MVInfoWindowStyle1._f295=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._f98=x31;
MVInfoWindowStyle1._f99=x32;
var x33=0;
var x34=50;
var x35=260;
var x36=340;
var x37=50;if(this._f289)
{
MVUtil._f223(this._f289);
this._f289.parentNode.removeChild(this._f289);
}
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._f289=x38;
x22.appendChild(x38);
zcounter=0;
var x39=x37;this._f291=Math.round((this._f288/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._f287;
x47.style.position='absolute';
MVUtil._f296(x47,x45,x46,x35,x36);
x47.style.border='0px solid black';
x47.style.fontSize="1px";
x47.style.lineHeight=0;
x38.appendChild(x47);
MVInfoWindowStyle1._f297(x47);
x47.style.zIndex=zcounter;
zcounter++;
x43++;
x39-=x44;
}
coneDone=true;
}
MVInfoWindowStyle1._f297=function(x48)
{
if(document.all){
x48.style.opacity=0.05;
x48.style.filter='alpha(opacity = '+this._f291+')';
}else{
var x49=this._f291/100;
x48.style.MozOpacity=x49;
}
}
MVInfoWindowStyle1.sizeChanged=function()
{
var x50=document.getElementById("infowindow3table");
if(x50&&
MVInfoWindowStyle1._f98&&
Math.abs(MVInfoWindowStyle1._f98-x50.offsetWidth)<5&&
MVInfoWindowStyle1._f99&&
Math.abs(MVInfoWindowStyle1._f99-x50.offsetHeight)<5)
return false;
else
 return true;
}
MVInfoWindowStyle1.getWindowSize=function()
{
var x51=document.getElementById("infowindow3table");
if(x51)
{
MVInfoWindowStyle1._f98=x51.offsetWidth;
MVInfoWindowStyle1._f99=x51.offsetHeight;
}
}
MVInfoWindowStyle1.setCloseButtonSize=function()
{
if(this.closeButtonWidth||!this._f292||!this._f292.firstChild)
return ;
this.closeButtonWidth=this._f292.firstChild.offsetWidth;
this.closeButtonHeight=this._f292.firstChild.offsetHeight;
}
function MVInfoWindowStyle2()
{
}
MVInfoWindowStyle2.init=function()
{
this.window=null;
this._f294=null;
this.iw=_f15._f120+"/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=_f250(this.iw_arrow,this.arrowwidth+2,this.arrowheight,1,7,0);
this.window.e=_f250(this.iw_v,1,x3+1-this.cornerheight*2,x2+this.arrowwidth,this.cornerheight,0);
this.window.w=_f250(this.iw_v,1,x3-this.cornerheight*2-20,this.arrowwidth,this.arrowendheight+this.cornerheight,0);
this.window.wu=_f250(this.iw_nw,this.cornerwidth,this.cornerheight,this.arrowwidth,0,0);
this.window.wd=_f250(this.iw_sw,this.cornerwidth,25,this.arrowwidth,x3+1-this.cornerheight,0);
this.window.eu=_f250(this.iw_ne,this.cornerwidth,this.cornerheight,x2+this.arrowwidth+1-this.cornerwidth,0,0);
this.window.ed=_f250(this.iw_se,this.cornerwidth,25,x2+this.arrowwidth+1-this.cornerwidth,x3+1-this.cornerheight,0);
this.window.c=_f250(this.iw_c,x2-1,x3+1-this.cornerheight*2,this.arrowwidth+1,this.cornerheight,0);
this.window.cu=_f250(this.iw_c1,x2+1-this.cornerwidth*2,this.cornerheight,this.arrowwidth+this.cornerwidth,0,0);
this.window.cd=_f250(this.iw_c2,x2+1-this.cornerwidth*2,25,this.arrowwidth+this.cornerwidth,x3-this.cornerheight+1,0);
this._f294=window.document.createElement("div");
this._f294.style.position="relative";
this._f294.style.left=MVUtil._f246(x0-1);
this._f294.style.top=MVUtil._f246(x1+2);
this._f294.appendChild(this.window.e);
this._f294.appendChild(this.window.wu);
this._f294.appendChild(this.window.w);
this._f294.appendChild(this.window.cu);
this._f294.appendChild(this.window.c);
this._f294.appendChild(this.window.cd);
this._f294.appendChild(this.window.wd);
this._f294.appendChild(this.window.ed);
this._f294.appendChild(this.window.eu);
this._f294.appendChild(this.window.arrow);
this.width=x2;
return this._f294;
}
MVInfoWindowStyle2.addCloseButton=function(x4)
{
this.closeButton=_f250(this.closeImg,16,16,this.width+10,10,4);
this.closeButton.style.position="absolute";
this.closeButton.onclick=MVUtil._f59(this.closeButton,
function(){x4();});
MVUtil._f175(this.closeButton,"pointer");
this._f294.appendChild(this.closeButton);
}
MVInfoWindowStyle2.addContent=function(x5)
{
x5.style.left=MVUtil._f246(55);
x5.style.top=MVUtil._f246(17);
this._f294.appendChild(x5);
}
MVInfoWindowStyle2.getWindow=function()
{
return this._f294;
}
function MVInfoWindowStyle3()
{
}
MVInfoWindowStyle3.init=function()
{
this.window=null;
this._f294=null;
this.iw=_f15._f120+"/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._f110=600;
this._f111=600;
this._f112=30;
this._f113=16;
this._f114=600;
this._f115=1;
this._f116=1;
this._f117=600;
this._f118=1;
this._f119=10;
}
MVInfoWindowStyle3.createWindow=function(x0,x1,x2,x3)
{
this.window=new Object();
this.window.arrow=_f250(this.iw_arrow,this._f112,this._f113,1,this._f119,0);
this.window.n=_f250(this.iw_h,x2+1,1,this._f112+1,0,0);
this.window.s=_f250(this.iw_h,x2+1,1,this._f112+1,x3+1,0);
this.window.e=_f250(this.iw_v,1,x3+1,x2+this._f112+1,1,0);
this.window.wu=_f250(this.iw_v,1,this._f119,this._f112,0,0);
this.window.wd=_f250(this.iw_v,1,x3-this._f113-this._f119+2,this._f112+1,this._f113+this._f119,0);
this.window.c=_f250(this.iw_c,x2,x3,this._f112+1,1,0);
this._f294=window.document.createElement("div");
this._f294=window.document.createElement("div");
this._f294.style.position="relative";
this._f294.style.left=MVUtil._f246(x0);
this._f294.style.top=MVUtil._f246(x1);
this._f294.appendChild(this.window.n);
this._f294.appendChild(this.window.s);
this._f294.appendChild(this.window.e);
this._f294.appendChild(this.window.wu);
this._f294.appendChild(this.window.c);
this._f294.appendChild(this.window.wd);
this._f294.appendChild(this.window.arrow);
this.width=x2;
return this._f294;
}
MVInfoWindowStyle3.addCloseButton=function(x4)
{
this.closeButton=_f250(this.closeImg,15,15,this.width-1,10,4);
this.closeButton.style.position="absolute";
MVUtil._f175(this.closeButton,"pointer");
this._f294.appendChild(this.closeButton);
this.closeButton.onclick=MVUtil._f59(this.closeButton,
function(){x4();});
}
MVInfoWindowStyle3.addContent=function(x5)
{
x5.style.left=MVUtil._f246(50);
x5.style.top=MVUtil._f246(25);
this._f294.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;
}
MVNSDP.prototype.getXML=function(x9)
{
var x10="<ns_data_provider provider_id=\""+this.nsdp_id+"\" ";
x10+="time_out=\""+this.nsdp_timeout+"\">";
x10+="<for_theme name=\""+this.nsdp_theme+"\"/>";
var x11=null;
if(this.nsdp_rendersty!=null)
x11=this.nsdp_rendersty;
else if(x9&&x9._f618!=null)
x11=x9._f618;
if(x11)
x10+="<custom_rendering_style name=\""+x11+"\"/>";
x10+="<join spatial_key_column=\""+this.nsdp_keycol+"\"/>";
if(this.nsdp_smfo!=null&&this.nsdp_smfo==false)
x10+="<display_unmatched_features>true</display_unmatched_features>";
if(this.nsdp_params!=null)
{
x10+="<parameters>";
for(p in this.nsdp_params)
{
var x12=null;
if(p=="xml")
x12=this.nsdp_params[p].replace(/</g,"&lt;");
else
 x12=this.nsdp_params[p];
x10+="<parameter name=\""+p+"\" value=\""+x12+"\"/>";
}
x10+="</parameters>";
}
x10+="</ns_data_provider>";
return x10;
}
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=x2.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=x0.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=x4.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,x5,x6)
{
this.mapControl=null;
this.html=null;
if(x0)
{
if(x0._f298)
{
x0._f299=true;
this.mapControl=x0;
}
else if(x0.substr)
this.html=x0;
}
if(typeof(x1)=="number")
this.left=x1;
else
 {
this.left=1;
if(!x5&&x3)
x5=-x3;
}
if(typeof(x2)=="number")
this.top=x2;
else
 {
this.top=1;
if(!x6&&x4)
x6=-x4;
}
this.width=x3;
this.height=x4;
this._f300=document.createElement("div");
this._f300.id=null;
this._f300.isMapDecoration=true;
this.parent=null;
this._f301=false;
this._f302=false
this._f303=null;
this._f304=null;
this._f305=null;
this._f306=null;
this.afterCollapseListener=null;
this._f307=null;
this.afterRestoreListener=null;
this._f308=null;
this._f309=null;
this._f310=null;
this.id=null;
this.visible=true;
this._f183=0;
this._f186=0;
this._f311=(_f15._f81=="IF")?18:16;
this._f312=0;
this._f313=0;
this._f314=40;
this._f315=0;
this._f316=null;
this.icon=null;
this._f317=null;
this._f159=false;
this._f318=false;
this._f319=null;
this._f320=null;
this._f321=null;
this.buffer=(_f15._f81=="IF")?5:7;
this.collapsed=false;
this._f322=0;
this._f323=0;
this.setOffset(x5,x6);
this._f324=null;
this._f325=false;
this.cursorStyle=null;
}
MVMapDecoration.prototype.setOffset=function(x0,x1)
{
if(!x0)
x0=0;
if(!x1)
x1=0;
this._f183=x0;
this._f186=x1;
}
MVMapDecoration.prototype.setPosition=function(x2,x3,x4,x5)
{
if(!x4)
x4=0;
if(!x5)
x5=0;
this._f183=x4;
this._f186=x5;
if(typeof(x2)=="number")
this.left=x2;
else
 {
this.left=1;
if(!x4&&this.width)
x4=-this.width;
}
if(typeof(x3)=="number")
this.top=x3;
else
 {
this.top=1;
if(!x5&&this.height)
x5=-this.height;
}
if(!this.parent)
return ;
if(this._f301)
{
if(!this.collapsed)
this._f326(this._f327);
}
else
 this._f326(this._f300);
}
MVMapDecoration.prototype.setPrintable=function(x6)
{
this._f302=x6;
}
MVMapDecoration.prototype.setCollapsible=function(x7,x8)
{
this._f301=x7;
this._f318=x8;
}
MVMapDecoration.prototype.setTitleBar=function(x9,x10,x11)
{
if(x9)
this._f319=x9;
if(x10)
this._f320=x10;
if(!x11&&x9)
x11=x9;
this._f321=x11;
}
MVMapDecoration.prototype.setVisible=function(x12)
{
this.visible=x12;
if(this.parent!=null&&this.parent._f148)
this._f328();
if(this.parent!=null&&this._f302)
this.parent._f329();
}
MVMapDecoration.prototype.isVisible=function()
{
return this.visible;
}
MVMapDecoration.prototype.addEventListener=function(x13,x14)
{
this.setEventListener(x13,x14);
}
MVMapDecoration.prototype.setEventListener=function(x15,x16)
{
if(x15=="mouse_click")
this._f303=x16;
else if(x15=="mouse_over")
this._f304=x16;
else if(x15=="mouse_out")
this._f305=x16;
else if(x15=="collapse")
this._f306=x16;
else if(x15=="after_collapse")
this.afterCollapseListener=x16;
else if(x15=="restore")
this._f307=x16;
else if(x15=="after_restore")
this.afterRestoreListener=x16;
else if(x15=="drag_start")
this._f308=x16;
else if(x15=="drag")
this._f309=x16;
else if(x15=="drag_end")
this._f310=x16;
}
MVMapDecoration.prototype.getContainerDiv=function()
{
return this._f300;
}
MVMapDecoration.prototype.enableEventPropagation=function(x17)
{
this._f159=x17;
}
MVMapDecoration.prototype.isCollapsed=function()
{
return this.collapsed;
}
MVMapDecoration.prototype.collapse=function()
{
if(this.collapsed)
return ;
if(_f15._f81=="NS")
this._f327.style.height=MVUtil._f246(this._f311+this.buffer/2);
else
 this._f327.style.height=MVUtil._f246(this._f311+this.buffer/2);
this._f327.style.width=MVUtil._f246(this._f311+this.buffer);
this._f300.style.height="0px";
this._f300.style.visibility="hidden";
MVUtil._f178(this._f327,
this.parent._f53()-this._f311-this.buffer,
this.parent._f55()-this._f311-this.buffer);
this._f330=false;
if(this._f317)
clearTimeout(this._f317);
this._f317=null;
this.collapsed=true;
this._f327.style.visibility="hidden";
this._f331();
if(this.afterCollapseListener)
this.afterCollapseListener();
}
MVMapDecoration.prototype.setMouseCursorStyle=function(x18)
{
this.cursorStyle=x18;
if(this.contentDiv)
MVUtil._f175(this.contentDiv,x18);
else if(this._f300)
MVUtil._f175(this._f300,x18);
}
MVMapDecoration.prototype.isDraggable=function()
{
return this._f325;
}
MVMapDecoration.prototype.setDraggable=function(x19)
{
this._f325=x19;
if(this.parent&&this==this.parent._f332)
this._f239();
if(this.parent)
{
var x20=this._f300;
if(this._f301)
x20=this._f316;
if(this._f325)
MVUtil._f175(x20,"move");
else
 MVUtil._f175(x20,"default");
}
}
MVMapDecoration.prototype.getPosition=function()
{
var x21=this._f327;
if(!this._f301)
x21=this._f300;
var x22=this.collapsed?this._f323:MVUtil._f176(x21);
var x23=this.collapsed?this._f322:MVUtil._f177(x21);
return {x:x22,y:x23};
}
MVMapDecoration.prototype._f326=function(x24,x25)
{
var x26=(this.top==1)?this._f183-this.buffer/2:this._f183;
var x27=(this.top==1)?this._f186-this.buffer/2:this._f186;
this._f322=this.parent._f55()*this.top+x27;
this._f323=this.parent._f53()*this.left+x26;
if(!x25)
{
x24.style.top=MVUtil._f246(this._f322);
x24.style.left=MVUtil._f246(this._f323);
}
this._f315=this._f314*(this.parent._f55()-this._f322)/(this.parent._f53()-this._f323);
this._f312=Math.ceil(this._f314*this.width/(this.parent._f53()-this._f323));
this._f313=Math.ceil(this._f314*this.height/(this.parent._f53()-this._f323));
}
MVMapDecoration.prototype.init=function(id,x28)
{
this.id=id;
this.parent=x28;
this._f300.id=this.id;
this._f300.style.zIndex=2000;
this._f300.style.position="absolute";
if(this._f301)
{
this._f327=document.createElement("div");
this._f327.style.position="absolute";
this._f327.style.zIndex=2000;
this._f327.style.width=(this.width+this.buffer)+"px";
this._f327.style.height=(this.height+this.buffer)+"px";
this._f327.style.backgroundColor="white";
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.backgroundColor="white";
this._f327.appendChild(this.realContdiv);
var x29=document.createElement("div");
x29.style.position="absolute";
x29.style.left=MVUtil._f246(0);
x29.style.top=MVUtil._f246(0);
x29.style.width="100%";
x29.style.height=this._f311+2+"px";
x29.style.overflow="hidden";
this._f316=document.createElement("div");
this._f316.style.position="absolute";
this._f316.style.left=MVUtil._f246(-1);
this._f316.style.top=MVUtil._f246(-1);
this._f316.style.width="110%";
this._f316.style.height=this._f311+"px";
this._f316.style.border="1px solid #636661";
if(this._f321)
this._f316.title=this._f321;
x29.appendChild(this._f316);
this.realContdiv.appendChild(x29);
this.titleBg=document.createElement("img");
this.titleBg.style.width="100%";
this.titleBg.style.height="100%";
this.titleBg.src=_f15._f120+"title_bg.png";
this._f316.appendChild(this.titleBg);
var x30=this;
var x31=document.createElement("img");
this.icon=x31;
x31.style.position="absolute";
x31.style.left=MVUtil._f246(2);
x31.style.top=MVUtil._f246(1);
x31.style.height=MVUtil._f246(this._f311-3);
x31.style.width=MVUtil._f246(this._f311-3);
this._f316.appendChild(x31);
this._f316.onmousedown=function(x32)
{
if(x30._f325)
{
x30.parent._f332=x30;
x30.dragStartMouseLoc=MVUtil._f236(x32);
x30.dragStartLeft=MVUtil._f176(x30._f327);
x30.dragStartTop=MVUtil._f177(x30._f327);
MVUtil._f175(x30._f316,"move");
if(x30._f308)
x30._f308(x30.getPosition());
}
MVUtil._f39(x32);
}
if(this._f325)
MVUtil._f175(this._f316,"move");
MVUtil._f175(x31,"pointer");
this.setIconImageListeners(false);
if(this._f319)
{
var x33=document.createElement("div");
x33.style.position="absolute";
x33.style.left=MVUtil._f246(this._f311);
x33.style.top=MVUtil._f246(-1);
x33.style.width=MVUtil._f246(this.width-2*this._f311);
x33.style.height=MVUtil._f246(this._f311);
x33.style.fontSize=MVUtil._f246(this._f311-(_f15._f81=="IF"?3:2));
this._f316.appendChild(x33);
x33.innerHTML="<center>"+this._f319+"</center>";
}
this._f300.style.left=MVUtil._f246(0);
this._f300.style.top=this._f311+((_f15._f81=="IF")?-1:1)+"px";
this._f300.style.border=MVUtil._f246(0);
if(_f15._f81=="NS"||_f15._f81=="IF")
{
this._f300.style.width=this.width-2+"px"
this._f300.style.height=(this.height-this._f311-1)+"px";
}
else
 {
this._f300.style.width=this.width-2+"px"
this._f300.style.height=(this.height-this._f311-2)+"px";
}
if(this.html)
this._f300.innerHTML=this.html;
this.realContdiv.appendChild(this._f300);
this._f330=true;
this.n=(this.height-this._f311)/this._f313+1;
this._f333(this.realContdiv);
this._f326(this._f327);
if(this._f318)
this.collapse();
}
else
 {
if(this.html)
this._f300.innerHTML=this.html;
this._f326(this._f300);
if(this.width)
this._f300.style.width=MVUtil._f246(this.width);
if(this.height)
this._f300.style.height=MVUtil._f246(this.height);
this._f333(this._f300);
var x30=this;
var x34=document.createElement("img");
x34.src=_f15._f120+"pan.png";
MVUtil._f334(x34);
x34.style.zIndex=9999;
x34.style.left=MVUtil._f246(0);
x34.style.top=MVUtil._f246(-20);
x34.style.visibility="hidden";
if(_f15._f81=="NS")
{
x34.onmousedown=function(x35)
{
if(x30._f325)
{
x30.parent._f332=x30;
x30.dragStartMouseLoc=MVUtil._f236(x35);
x30.dragStartLeft=MVUtil._f176(x30._f300);
x30.dragStartTop=MVUtil._f177(x30._f300);
if(x30._f308)
x30._f308(x30.getPosition());
MVUtil._f39(x35);
}
}
}
this._f300.appendChild(x34);
var x36=this._f300.onmouseover;
this._f300.onmouseover=function(x37)
{
if(x36)
x36(x37);
if(x30._f325)
x34.style.visibility="visible";
}
var x38=this._f300.onmouseout;
this._f300.onmouseout=function(x39)
{
if(x38)
x38(x39);
if(x30.parent._f332!=x30)
x34.style.visibility="hidden";
}
if(this._f325)
MVUtil._f175(this._f300,"move");
else
 MVUtil._f175(this._f300,"default");
this._f300.onmousedown=function(x40)
{
if(x30._f325)
{
x30.parent._f332=x30;
x30.dragStartMouseLoc=MVUtil._f236(x40);
x30.dragStartLeft=MVUtil._f176(x30._f300);
x30.dragStartTop=MVUtil._f177(x30._f300);
if(x30._f308)
x30._f308(x30.getPosition());
MVUtil.trapEvent(x40);
}
else if(!x30._f159)
MVUtil.trapEvent(x40);
}
}
if(this.mapControl)
{
if(this.mapControl.setMouseCursorStyle&&this.cursorStyle)
this.mapControl.setMouseCursorStyle(this.cursorStyle,"default");
this.mapControl.init(this._f300,x28);
this.mapControl._f299=true;
}
if(!this._f318)
this._f328();
}
MVMapDecoration.prototype._f333=function(x41)
{
var x42=this;
var x43=function(x44)
{
if(!x42._f159)
MVUtil.trapEvent(x44);
}
x41.onclick=function(x45)
{
x43(x45);
if(x42._f303)
{
x42.parent._f239();
x42._f303();
}
}
x41.onmouseover=function(x46)
{
x43(x46);
if(x42._f304)
x42._f304(x46);
};
x41.onmouseout=function(x47)
{
x43(x47);
if(x42._f305)
x42._f305(x47);
}
x41.ondblclick=x43;
x41.onmousedown=x43;
x41.onmouseup=function(x48)
{
x43(x48);
if(x42._f325)
x42._f239();
}
x41.onkeyup=x43
if(_f15._f81=="OS")
x41.onkeypress=x43;
else
 x41.onkeydown=x43;
if(_f15._f81=="IF")
{
x41.oncontextmenu=x43;
x41.onselectstart=x43;
}
}
MVMapDecoration.prototype.setIconImageListeners=function(x49)
{
var x50;
if(this._f320)
x50=this._f320;
else if(x49)
x50=_f15._f120+"button_restore.gif";
else
 x50=_f15._f120+"button_minimize.gif";
var x51=null;
if(x49)
x51=this._f324;
else
 x51=this.icon;
x51.src=x50;
if(x49)
{
x51.style.height=MVUtil._f246(this._f311-3);
x51.style.width=MVUtil._f246(this._f311-3);
x51.parentNode.onmouseover=MVUtil._f59(x51.parentNode,function()
{
x51.parentNode.style.backgroundImage="url("+_f15._f120+"title_bg_over.png"+")";
x51.src=_f15._f120+"button_restore.gif";
});
x51.parentNode.onmouseout=MVUtil._f59(x51.parentNode,function()
{
x51.parentNode.style.backgroundImage="url("+_f15._f120+"title_bg.png"+")";
x51.src=x50;
});
var x52=this;
x51.parentNode.onclick=MVUtil._f59(x51.parentNode,function(x53)
{
MVUtil._f39(x53);
x51.parentNode.parentNode.removeChild(x51.parentNode);
MVUtil._f223(x51.parentNode);
x52._f324=null;
x52._f327.style.visibility="visible";
x52._f335();
});
}
else
 {
var x54=this.titleBg;
x51.parentNode.onmouseover=MVUtil._f59(x51.parentNode,function()
{
x54.src=_f15._f120+"title_bg_over.png";
if(x49)
x51.src=_f15._f120+"button_restore.gif";
else
 x51.src=_f15._f120+"button_minimize.gif";
});
x51.parentNode.onmouseout=MVUtil._f59(x51.parentNode,function()
{
x54.src=_f15._f120+"title_bg.png";
x51.src=x50;
});
var x52=this;
x51.onclick=MVUtil._f59(x51,function()
{
x52._f335();
});
}
}
MVMapDecoration.prototype._f336=function()
{
if(this.mapControl)
this.mapControl._f336();
if(this._f324)
{
this._f324.parentNode.parentNode.removeChild(this._f324.parentNode);
MVUtil._f223(this._f324.parentNode);
this._f324=null;
}
this.parent=null;
}
MVMapDecoration.prototype._f337=function()
{
this.setPosition(this.left,this.top,this._f183,this._f186);
}
MVMapDecoration.prototype._f338=function()
{
var x55=document.createElement("div");
x55.innerHTML=this.html;
x55.style.zIndex=2000;
x55.style.position="absolute";
if(this.collasible)
{
this._f339.style.right=MVUtil._f246(0);
this._f339.style.bottom=MVUtil._f246(0);
this._f339.style.width=MVUtil._f246(width);
this._f339.style.height=MVUtil._f246(height-this._f311);
this._f339.style.border="1px solid black";
this._f339.style.backgroundColor="white";
}
else{
this._f326(x55);
if(this.width)
x55.style.width=this.width;
if(this.height)
x55.style.height=this.height;
return x55;
}
}
MVMapDecoration.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
MVMapDecoration.prototype._f328=function()
{
if(this.visible)
this._f300.style.visibility="visible";
else
 this._f300.style.visibility="hidden";
if(this._f301)
{
if(this.visible&&!this.collapsed)
this._f327.style.visibility="visible";
else
 this._f327.style.visibility="hidden";
if(!this.collapsed&&this.parent._f340&&this.parent._f340._f341&&
this._f300._f342&&this.parent)
{
this.parent._f340._f343();
}
if(this._f324&&!this.visible)
{
this._f324.parentNode.parentNode.removeChild(this._f324.parentNode);
MVUtil._f223(this._f324.parentNode);
this._f324=null;
}
else if(this.visible&&this.collapsed)
this._f331();
}
}
MVMapDecoration.prototype._f335=function()
{
if(this._f317!=null&&this._f317!="")
return;
var x56=15;
if(this._f330)
{
if(this._f306)
this._f306();
this._f317=this.setTimeout("this.scrollElement(-1)",10);
}
else
 {
if(this._f307)
this._f307();
this._f326(this._f327,true);
this._f317=this.setTimeout("this.scrollElement(1)",10);
}
}
MVMapDecoration.prototype._f331=function()
{
this._f324=document.createElement("img");
var x57=document.createElement("td");
x57.style.border="1px Solid #636661";
x57.style.backgroundImage="url("+_f15._f120+"title_bg.png"+")";
x57.appendChild(this._f324);
if(this._f321)
x57.title=this._f321;
MVUtil._f175(x57,"pointer");
this.parent.toolBarContainer.appendChild(x57);
this.setIconImageListeners(true);
}
MVMapDecoration.prototype.scrollElement=function(x58)
{
var x59=parseInt(this._f327.style.height);
var x60=parseInt(this._f300.style.height);
var x61=parseInt(this._f327.style.width);
var x62=parseInt(this._f300.style.width);
var x63=MVUtil._f177(this._f327);
var x64=MVUtil._f176(this._f327);
if(x58<0)
{
if(x60>1)
{
if(x60>this._f313)
{
this._f300.style.height=x60-this._f313+"px";
this._f327.style.height=x60-this._f313+this._f311+"px";
this._f300.style.width=x62-this._f312+"px";
this._f327.style.width=x62-this._f312+"px";
if(x63<this.parent._f55())
{
MVUtil._f178(this._f327,x64+this._f314,x63+this._f315);
this._f317=this.setTimeout("this.scrollElement(-1)",20);
}
else
 this.collapse();
}
else
 this.collapse();
}
else
 this.collapse();
}
if(x58>0)
{
x60+=this._f313;
x62+=this._f312;
x59+=this._f313;
x61+=this._f312;
x63-=this._f315;
x64-=this._f314;
var x65=false;
if(x59<this.height)
{
this._f300.style.height=x60+"px";
this._f327.style.height=x59+"px";
}
else
 x65=true;
if(!x65&&x61<this.width)
{
this._f300.style.width=x62+"px";
this._f327.style.width=x61+"px";
}
else
 x65=true;
if(this._f322<x63)
MVUtil._f178(this._f327,x64,x63);
else
 x65=true;
if(x65)
{
if(_f15._f81=="NS")
{
this._f300.style.width=this.width+"px"
this._f300.style.height=(this.height-this._f311-1)+"px";
}
else
 {
this._f300.style.width=this.width-2+"px"
this._f300.style.height=(this.height-this._f311-2)+"px";
}
this._f327.style.width=(this.width+this.buffer)+"px";
this._f327.style.height=(this.height+this.buffer)+"px";
this._f330=true;
clearTimeout(this._f317);
this._f317=null;
this.setIconImageListeners(false);
if(this._f300._f342&&this.parent)
{
this.parent._f340._f344.display();
this.parent._f340._f343();
}
MVUtil._f178(this._f327,this._f323,this._f322);
this.collapsed=false;
this._f300.style.visibility="visible";
if(this.afterRestoreListener)
this.afterRestoreListener();
}
else
 {
this._f317=this.setTimeout("this.scrollElement(1)",20);
}
}
}
MVMapDecoration.prototype.setTimeout=function(_f208,_f209)
{
var Ie="tempVar"+_f210;
_f210++;
eval(Ie+" = this;");
var oi=_f208.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f209);
}
MVMapDecoration.prototype._f239=function()
{
var x66=this._f327;
if(!this._f301)
x66=this._f300;
this.left=(MVUtil._f176(x66)-this._f183)/this.parent._f53();
this.top=(MVUtil._f177(x66)-this._f186)/this.parent._f55();
this.parent._f332=null;
if(this._f310)
this._f310(this.getPosition());
}
MVMapDecoration.prototype._f178=function(x67,x68)
{
var x69=this._f327;
if(!this._f301)
x69=this._f300;
MVUtil._f178(x69,x67,x68);
}
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._f48=x1;
this.slices=x2;
}
MVPieChartStyle.prototype.getXMLString=function()
{
var x1='<style name="'+this.name+'">'+
'<AdvancedStyle><PieChartStyle '+
'pieradius="'+this._f48+'">';
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;
}
function MVScaleBar(x0,x1)
{
this.type="MVScaleBar";
this._f298=true;
this._f656=x1?x1:125;
this._f590=x0;
this._f299=false;
this.topBarHeight=10;
this.topBarLeftImg=_f15._f120+"scale/"+"bar_light_left.png";
this.topBarLeftImgWidth=5;
this.topBarBodyImg=_f15._f120+"scale/"+"bar_light_bg.png";
this.topBarRightImg=_f15._f120+"scale/"+"bar_light_right.png";
this.topBarRightImgWidth=6;
this.bottomBarHeight=10;
this.bottomBarLeftImg=_f15._f120+"scale/"+"bar_dark_left.png";
this.bottomBarLeftImgWidth=5;
this.bottomBarBodyImg=_f15._f120+"scale/"+"bar_dark_bg.png";
this.bottomBarRightImg=_f15._f120+"scale/"+"bar_dark_right.png";
this.bottomBarRightImgWidth=6;
this.textSize=11;
this._f623=null;
this._f507=false;
}
MVScaleBar.prototype.init=function(x0,x1)
{
this.div=x0;
this._f560(x1);
}
MVScaleBar.prototype._f560=function(x2,x3,x4)
{
if(!x3)
x2._f434=this;
this._f623=x2;
if(!this.div)
{
this.div=document.createElement("div");
this.div.style.zIndex=2000;
if(x3)
x3.appendChild(this.div);
else
 x2._f57.appendChild(this.div);
}
this._f657=document.createElement("div");
this._f658=document.createElement("div");
MVUtil._f334(this.div);
MVUtil._f334(this._f657);
MVUtil._f334(this._f658);
this.div.style.height=MVUtil._f246(40);
this.div.style.width=MVUtil._f246(125);
this.div.style.fontSize=MVUtil._f246(5);
var x5=this;
var x6=function(x7)
{
var x8=x7.fpsLength;
var x9=x7.metricLength;
var x10=Math.max(x8,x9);
var x11=3;
MVUtil._f296(x5._f657,8,0,x10,x11,10,11);
x5._f659(x5._f657,x7.fpsText);
var x12=x11+x5.textSize;
x5.topBar=x5._f660(x8,x5.topBarHeight,3,x12,x5.topBarLeftImg,x5.topBarLeftImgWidth,x5.topBarBodyImg,x5.topBarRightImg,x5.topBarRightImgWidth);
x5.bottomBar=x5._f660(x9,x5.bottomBarHeight,3,x12+x5.topBarHeight,x5.bottomBarLeftImg,x5.bottomBarLeftImgWidth,x5.bottomBarBodyImg,x5.bottomBarRightImg,x5.bottomBarRightImgWidth);
MVUtil._f296(x5._f658,8,x12+x5.topBarHeight+x5.bottomBarHeight-4,x10,0,10,11);
x5._f659(x5._f658,x7.metricText);
x5.div.appendChild(x5._f657);
x5.div.appendChild(x5._f658);
x5.div.title=MVMessages.scaleBarInfoTip;
x5._f661();
x5._f507=true;
if(x4)
x4(x5.div);
}
this._f662(x2,this._f656,x6);
}
MVScaleBar.prototype._f660=function(x13,x14,x15,x16,x17,x18,x19,x20,x21)
{
var x22=document.createElement("div");
x22.style.position="absolute";
MVUtil._f178(x22,x15,x16);
x22.appendChild(new _f250(x17,x18,x14,0,0,8,true));
var x23=new _f250(x19,x13-x18-x21,x14,x18,0,8,true);
x22.appendChild(x23);
x22.appendChild(new _f250(x20,x21,x14,x13-x21,0,8,true));
this.div.appendChild(x22);
return x22;
}
MVScaleBar.prototype._f661=function()
{
if(!this.div)
return ;
var x24="black";
this._f657.style.color=x24;
this._f658.style.color=x24;
}
MVScaleBar.prototype._f526=function(x25)
{
if(!this.div||!this._f507)
return ;
var x26=this;
var x27=function(x28)
{
var x29=Math.max(x28.fpsLength,x28.metricLength);
x26._f659(x26._f657,x28.fpsText);
x26._f659(x26._f658,x28.metricText);
x26.width=x29+4;
x26.topBar.childNodes[1].style.width=MVUtil._f246(x28.fpsLength-x26.topBarLeftImgWidth-x26.topBarRightImgWidth);
x26.topBar.childNodes[2].style.left=MVUtil._f246(x28.fpsLength-x26.topBarRightImgWidth);
x26.bottomBar.childNodes[1].style.width=MVUtil._f246(x28.metricLength-x26.bottomBarLeftImgWidth-x26.bottomBarRightImgWidth);
x26.bottomBar.childNodes[2].style.left=MVUtil._f246(x28.metricLength-x26.bottomBarRightImgWidth);
x26._f658.style.width=MVUtil._f246(x28.metricLength);
x26._f657.style.width=MVUtil._f246(x28.fpsLength);
}
this._f662(x25,this._f656,x27);
}
MVScaleBar.prototype._f662=function(x30,x31,x32)
{
var x33;
var x34;
var x35;
var x36;
var x37;
var x38;
var x39=x30.msi._f359();
var x40=x30.msi._f358();
var x41=this;
var x42=function()
{
x36=x41._f663(x35);
if(x36>=1000)
{
var x43=x41._f663(x35/1000);
var x44=x35/1000;
x38=Math.round(x41._f656*x43/x44);
x37=x43+" "+MVMessages.kilometers;
}
else
 {
x38=Math.round(x41._f656*x36/x35);
x37=x36+" "+MVMessages.meters;
}
var x45=x35/1609.344;
var x46=x35*3.28084;
var x47;
var x48;
if(x45>=1)
{
var x49=x41._f663(x45);
x47=Math.round(x41._f656*x49/x45);
x48=x49+" "+MVMessages.miles;
}
else
 {
var x50=x41._f663(x46);
x47=Math.round(x41._f656*x50/x46);
x48=x50+" "+MVMessages.feet;
}
return new _f664(x47,x38,x48,x37);
}
if(x40=='GEODETIC')
{
var x51=function(x52)
{
x34=x52;
var x53=6378137.0;
var x54=0.9966471893352525;
var x55=0.0033528106647474805;
x35=MVScaleBar._f665(x33,x34,x53,x54,x55);
x32(x42());
}
var x56=function(x57)
{
x33=x57;
MVScaleBar._f666(x30._f416+x31/2,x30._f417,x30,x51);
}
MVScaleBar._f666(x30._f416-x31/2,x30._f417,x30,x56);
return ;
}
else if(x40=='PROJECTED')
{
if(this._f590==true)
{
var x58=x31/2;
var x59=x30._f184-x58/x30._f50;
var x60=x58/x30._f50+x30._f184;
var x61=x30._f187;
var x62=MVSdoGeometry.createLineString([x59,x61,x60,x61],x30.srid);
var x63=function(x64)
{
x35=x64;
x32(x42());
}
x35=x62.getLength("meter",true,x30._f406+'/foi',x63);
return ;
}
else
 {
x35=x39*x31/x30._f50;
}
}
else if(x40=='LOCAL'||(x40=='UNDEFINED'&&x39!=0))
{
x35=x39*x31/x30._f50;
}
else if(x40=='UNDEFINED'&&x39==0)
{
x35=x31/x30._f50;
_f15._f667='';
_f15._f668='';
_f15._f669='';
_f15._f670='';
}
x32(x42());
}
MVScaleBar.prototype._f663=function(x65)
{
var x66=x65;
if(x66>1)
{
var x67=0;
while(x66>=10){x66=x66/10;x67=x67+1;}
if(x66>=5){x66=5;}
else if(x66>=2){x66=2;}
else {x66=1;}
while(x67>0){x66=x66*10;x67=x67-1;}
}
return x66;
}
MVScaleBar.prototype._f659=function(x68,x69)
{
x68.style.font="Bold 11px Tahoma";
if(x68.innerHTML!=x69)
{
x68.innerHTML=x69;
}
}
MVScaleBar.prototype._f336=function()
{
this._f623._f434=null;
}
MVScaleBar._f666=function(x70,x71,x72,x73)
{
var x74=MVSdoGeometry.createPoint(0,0,x72.srid);
x74.sdo_point.x=(x70-x72._f416)/x72._f50+x72._f184;
x74.sdo_point.y=x72._f187-(x71-x72._f417)/x72._f51;
var x75=function(x76)
{
if(x76)
x74=x76;
while(x74.sdo_point.x<-180)x74.sdo_point.x+=360;
while(x74.sdo_point.x>180)x74.sdo_point.x-=360;
x74.sdo_point.x=(x74.sdo_point.x)*Math.PI/180;
x74.sdo_point.y=(x74.sdo_point.y)*Math.PI/180;
x73(x74.sdo_point);
}
if(x74.srid&&x74.srid!=8307)
x74=x72.transformGeom(x74,8307,null,x75);
else
 x75();
}
MVScaleBar._f665=function(x77,x78,x79,x80,x81)
{
var x82;var x83;var x84;var x85;var x86;var x87;var x88;var x89;var x90;var x91;
var x92;var x93;var x94;var x95;var x96;
var x97;var x98;var x99;var x100;var x101;var x102;
var x103=Math.PI/2.0;
if(x103-Math.abs(x77.y)<1.e-10)
x95=x77.y;
else
 x95=Math.atan(x80*Math.tan(x77.y));
if(x103-Math.abs(x78.y)<1.e-10)
x96=x78.y;
else
 x96=Math.atan(x80*Math.tan(x78.y));
x83=(x95+x96)/2.0;
x84=(x95-x96)/2.0;
x82=Math.abs(x77.x-x78.x);
if(x82>Math.PI)
x82=2.0*Math.PI-x82;
x82/=2.0;
if(x82<5.e-8&&Math.abs(x84)<5.e-8)
return 0.0;
else if((x103-x82<5.e-8&&Math.abs(x83)<5.e-8)||
x103-Math.abs(x84)<5.e-8)
return -1.0;
x97=Math.sin(x83);
x98=Math.cos(x83);
x99=Math.sin(x84);
x100=Math.cos(x84);
x101=Math.sin(x82);
x85=x99*x99+x101*x101*(x100*x100-x97*x97);
x86=Math.acos(1.0-2.0*x85);
x102=Math.sin(x86);
x87=2.0*(1.0-2.0*x85);
x88=2.0*x97*x97*x100*x100/(1.0-x85);
x89=2.0*x99*x99*x98*x98/x85;
x90=x88+x89;
x91=x88-x89;
x92=x86/x102;
x93=4.0*x92*x92;
x94=x93*x87;
var x104=(x94+(x92-(x94-x87)/2.0)*x90);
return x79*x102*(x92-x81*(x92*x90-x91)/4.0+x81*x81*
(x90*x104-x91*(2.0*x93+x87*x91)+x93*x90*x91)/64.0);
}
function _f664(x0,x1,x2,x3)
{
this.fpsLength=x0;
this.metricLength=x1;
this.fpsText=x2;
this.metricText=x3;
}
function MVNavigationPanel(x0,x1,x2,x3)
{
this.type="MVNavigationPanel";
this._f298=true;
if(x0==undefined||
x0!=0&&x0!=4&&x0!=8)
x0=8;
this._f619=x0;
this._f620=x1;
this._f621=x2;
this.zoomLevelBars=x3;
this._f622=null;
this._f617=null;
this._f623=null;
this.containerDiv=null;
this._f507=false;
}
MVNavigationPanel.prototype.init=function(x0,x1)
{
if(x0)
this.containerDiv=x0;
if(this._f622)
{
if(this._f622.parentNode)
this._f622.parentNode.removeChild(this._f622);
MVUtil._f223(this._f622);
}
this._f622=document.createElement('div');
this._f622.style.position='absolute';
this._f622.className="noprint";
this.containerDiv.appendChild(this._f622);
if(x1)
{
this._f623=x1;
x1.navigationPanel=this;
}
if(this._f617)
{
if(this._f617.toLowerCase()=="east")
{
if(this._f619==8)
this._f622.style.left=MVUtil._f246(this._f623._f53()-80);
else if(this._f619==4)
this._f622.style.left=MVUtil._f246(this._f623._f53()-80);
else if(this._f619==0)
this._f622.style.left=MVUtil._f246(this._f623._f53()-50);
}
else
 {
if(this._f619==8)
this._f622.style.left=MVUtil._f246(10);
else if(this._f619==8)
this._f622.style.left=MVUtil._f246(10);
else if(this._f619==0)
this._f622.style.left=MVUtil._f246(30);
}
this._f622.style.top=MVUtil._f246(10);
}
else
 {
this._f622.style.left=MVUtil._f246(0);
this._f622.style.top=MVUtil._f246(0);
}
this._f622.style.zIndex=2000;
MVUtil._f175(this._f622,"pointer");
this._f104=0;
this._f105=0;
var x1=this._f623;
var x2=function(x3)
{
if(x1._f447&&x1._f451)
{
x1._f448.clear();
x1.marqueeZoom();
}
x3=(x3)?x3:((window.event)?event:null);
MVUtil._f39(x3);
}
if(this._f619!=false)
{
this._f624();
}
this._f100=0;
this._f101=0;
if(this._f620!=false)
{
this._f100=_f15._f100;
this._f101=_f15._f101;
}
this._f108=0;
this._f109=0;
if(this._f621!=false)
{
this._f108=_f15._f108;
this._f109=_f15._f109;
var x4=new _f616(this._f622,src=_f15._f120+"navicons/zoomin.gif",
this._f108,this._f109,2000,MVMessages.zoomInInfoTip);
var x5=this._f619>0?(this._f104*3-this._f108)/2+1:0;
var x6=this._f619>0?this._f105*3+3:0;
MVUtil._f178(x4,x5,x6);
x4.onmousedown=MVUtil._f59(x4,function(x7)
{
x7=(x7)?x7:((window.event)?event:null);
MVUtil._f39(x7);
if(x1._f447&&x1._f449)
x1._f451=true;
x1.zoomIn();
});
x4.onmouseup=MVUtil._f59(x4,function(x8)
{
x2(x8);
});
var x9=new _f616(this._f622,_f15._f120+"navicons/zoomout.gif",
this._f108,this._f109,2000,MVMessages.zoomOutInfoTip);
MVUtil._f178(x9,x5,x6+this._f109+this._f101+1);
x9.onmousedown=MVUtil._f59(x9,function(x10)
{
x10=(x10)?x10:((window.event)?event:null);
MVUtil._f39(x10);
if(x1._f447&&x1._f449)
x1._f451=true;
x1.zoomOut();
});
x9.onmouseup=MVUtil._f59(x9,function(x11)
{
x2(x11);
});
}
if(this._f620!=false)
{
this._f625=new MVZoomBarAndPin(this);
}
this._f507=true;
}
MVNavigationPanel.prototype._f624=function()
{
this._f104=_f15._f104;
this._f105=_f15._f105;
var x12=this._f623;
var x13=function(x14)
{
if(x12._f447&&x12._f451)
{
x12._f448.clear();
x12.marqueeZoom();
}
x14=(x14)?x14:((window.event)?event:null);
MVUtil._f39(x14);
}
var x15=new _f616(this._f622,_f15._f120+"navicons/north.gif",
this._f104,this._f105,2000,MVMessages.panNInfoTip);
MVUtil._f178(x15,this._f104+1,0);
x15.onmousedown=MVUtil._f59(x15,function(x16)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll(0,(x12._f53()+x12._f55())*(-0.25));
x16=(x16)?x16:((window.event)?event:null);
MVUtil._f39(x16);
});
x15.onmouseup=MVUtil._f59(x15,function(x17)
{
x13(x17);
});
var x18=new _f616(this._f622,_f15._f120+"navicons/west.gif",
this._f104,this._f105,2000,MVMessages.panWInfoTip);
MVUtil._f178(x18,0,this._f105+1);
x18.onmousedown=MVUtil._f59(x18,function(x19)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll((x12._f53()+x12._f55())*(-0.25),0);
x19=(x19)?x19:((window.event)?event:null);
MVUtil._f39(x19);
});
x18.onmouseup=MVUtil._f59(x18,function(x20)
{
x13(x20);
});
var x21=new _f616(this._f622,_f15._f120+"navicons/east.gif",
this._f104,this._f105,2000,MVMessages.panEInfoTip);
MVUtil._f178(x21,this._f104*2+2,this._f105+1);
x21.onmousedown=MVUtil._f59(x21,function(x22)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll((x12._f53()+x12._f55())*(0.25),0);
x22=(x22)?x22:((window.event)?event:null);
MVUtil._f39(x22);
});
x21.onmouseup=MVUtil._f59(x21,function(x23)
{
x13(x23);
});
var x24=new _f616(this._f622,_f15._f120+"navicons/south.gif",
this._f104,this._f105,2000,MVMessages.panSInfoTip);
MVUtil._f178(x24,this._f104+1,this._f105*2+2);
x24.onmousedown=MVUtil._f59(x24,function(x25)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll(0,(x12._f53()+x12._f55())*(0.25));
x25=(x25)?x25:((window.event)?event:null);
MVUtil._f39(x25);
});
x24.onmouseup=MVUtil._f59(x24,function(x26)
{
x13(x26);
});
if(this._f619==4)
return ;
var x27=new _f616(this._f622,_f15._f120+"navicons/nw.gif",
this._f104,this._f105,200,MVMessages.panNWInfoTip);
MVUtil._f178(x27,0,0);
x27.onmousedown=MVUtil._f59(x27,function(x28)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll((x12._f53()+x12._f55())*(-0.18),(x12._f53()+x12._f55())*(-0.18));
x28=(x28)?x28:((window.event)?event:null);
MVUtil._f39(x28);
});
x27.onmouseup=MVUtil._f59(x27,function(x29)
{
x13(x29);
});
var x30=new _f616(this._f622,_f15._f120+"navicons/ne.gif",
this._f104,this._f105,2000,MVMessages.panNEInfoTip);
MVUtil._f178(x30,this._f104*2+2,0);
x30.onmousedown=MVUtil._f59(x30,function(x31)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll((x12._f53()+x12._f55())*(0.18),(x12._f53()+x12._f55())*(-0.18));
x31=(x31)?x31:((window.event)?event:null);
MVUtil._f39(x31);
});
x30.onmouseup=MVUtil._f59(x30,function(x32)
{
x13(x32);
});
var x33=new _f616(this._f622,_f15._f120+"navicons/sw.gif",
this._f104,this._f105,2000,MVMessages.panSWInfoTip);
MVUtil._f178(x33,0,this._f105*2+2);
x33.onmousedown=MVUtil._f59(x33,function(x34)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll((x12._f53()+x12._f55())*(-0.18),(x12._f53()+x12._f55())*(0.18));
x34=(x34)?x34:((window.event)?event:null);
MVUtil._f39(x34);
});
x33.onmouseup=MVUtil._f59(x33,function(x35)
{
x13(x35);
});
var x36=new _f616(this._f622,_f15._f120+"navicons/se.gif",
this._f104,this._f105,2000,MVMessages.panSEInfoTip)
MVUtil._f178(x36,this._f104*2+2,this._f105*2+2);
x36.onmousedown=MVUtil._f59(x36,function(x37)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.smoothScroll((x12._f53()+x12._f55())*(0.18),(x12._f53()+x12._f55())*(0.18));
x37=(x37)?x37:((window.event)?event:null);
MVUtil._f39(x37);
});
x36.onmouseup=MVUtil._f59(x36,function(x38)
{
x13(x38);
});
if(x12._f443){
var x39=new _f616(this._f622,_f15._f120+"navicons/center.gif",
this._f104,this._f105,2000,MVMessages.panCenterInfoTip)
MVUtil._f178(x39,this._f104+1,this._f105+1);
x39.onmousedown=MVUtil._f59(x39,function(x40)
{
if(x12._f447&&x12._f449)
x12._f451=true;
x12.setCenterAndZoomLevel(x12._f443,x12._f444);
x40=(x40)?x40:((window.event)?event:null);
MVUtil._f39(x40);
});
x39.onmouseup=MVUtil._f59(x39,function(x41)
{
x13(x41);
});
}
}
MVNavigationPanel.prototype.updateSliderBar=function()
{
if(!this._f507)
return ;
if(this._f625&&this._f625._f626)
this._f625._f626.style.top=
MVUtil._f246(this._f105*3+3+this._f109+
(this._f101-_f15._f103)*
(this._f623._f439-this._f623._f394)/this._f623._f439);
}
MVNavigationPanel.prototype._f336=function()
{
this._f623.navigationPanel=null;
}
function MVZoomBarAndPin(x0)
{
var x1=x0;
this.div=document.createElement("div");
var x2=x1._f619>0?(x1._f104*3-x1._f100)/2+1:0;
var x3=x1._f619>0?x1._f105*3+3+x1._f109:x1._f109;
this._f627=new _f616(this.div,_f15._f120+"navicons/zoombar.gif",
x1._f100,x1._f101,2000,MVMessages.sliderBarInfoTip);
MVUtil._f178(this._f627,x2,x3);
if(x0.zoomLevelBars!=false)
{
for(var x4=0;x4<=x1._f623._f439;x4++)
{
var x5=x1._f100-4;
var x6=new _f616(this.div,_f15._f120+"navicons/zoomBarHoriz.gif",
x5,10,1999);
MVUtil._f178(x6,x2+2,x3+2+x4*(x1._f101-14)/x1._f623._f439);
}
}
this._f626=new _f616(this.div,_f15._f120+"navicons/slider.gif",_f15._f102,
_f15._f103,2002);MVUtil._f178(this._f626,x2,x3+
(x1._f101-_f15._f103)*
(x1._f623._f439-x1._f623._f394)/x1._f623._f439);
x1._f622.appendChild(this.div);
this._f628=Math.floor(_f15._f103/2);
var x7=0;
var x8=0;
var x9=function(x10)
{
x1._f623._f428=false;
x10=(x10)?x10:((window.event)?event:null);
var x11=x1._f623._f610(x10);
var x12=x11.top-x1._f625._f628;var x13=x1._f105*3+3+x1._f109;
if(x12<=x13)
x12=x13;
else if(x12>=x13+x1._f101-_f15._f103)
x12=x13+x1._f101-_f15._f103;
var x14=(x1._f101-_f15._f103);
x14=x14/x1._f623._f439;
var x15=Math.floor((x12-x13)/x14);
x12=x15*x14+x13;
var x16=x1._f623._f439-x15;
x1._f623.zoomTo(x16);
MVUtil._f39(x10);
if(x1._f623._f447&&x1._f623._f449)
{
x1._f623._f451=true;
x1._f623._f448.clear();
}
x1._f625._f626.style.top=MVUtil._f246(x12);
}
var x17=function(x18)
{
x18=(x18)?x18:((window.event)?event:null);
x1._f623._f428=false;
if(!x1._f625._f629)return;
var x19=x1._f623._f610(x18);
var x20=x19.top-x7+x8;
if(x20<=x1._f105*3+3+x1._f109)
x20=x1._f105*3+3+x1._f109;
else if(x20>=x1._f105*3+3+x1._f109+
x1._f101-_f15._f103)
x20=x1._f105*3+3+x1._f109+
x1._f101-_f15._f103;
x1._f625._f626.style.top=MVUtil._f246(x20);
MVUtil._f39(x18);
}
var x21=function(x22)
{
if(!x1._f625._f629)
return ;
x22=(x22)?x22:((window.event)?event:null);
x1._f623._f428=true;
x1._f625._f629=false;
var x23=x1._f623._f610(x22);
var x24=MVUtil._f177(x1._f625._f626);
var x25=x1._f105*3+3+x1._f109;
var x26=(x1._f101-_f15._f103);
x26=x26/x1._f623._f439;
var x27=Math.round((x24-x25)/x26);
x24=x27*x26+x25;
var x28=x1._f623._f439-x27;
x1._f623.zoomTo(x28);
x1._f625._f626.style.top=MVUtil._f246(x24);
x1._f623.zoomTo(x28);
MVUtil._f39(x22);
if(x1._f623._f447&&x1._f623._f451)
x1._f623.marqueeZoom();
}
var x29=function(x30)
{
x30=(x30)?x30:((window.event)?event:null);
x1._f623._f428=true;
if(x1._f625._f629)
{
x21(x30);
}
return false;
}
var x31=function(x32)
{
x32=(x32)?x32:((window.event)?event:null);
var x33=x1._f623._f610(x32);
x7=x33.top;
x8=MVUtil._f177(x1._f625._f626);
x1._f625._f629=true;
MVUtil._f39(x32);
}
this.div.onmousedown=MVUtil._f59(this.div,x9);
this.div.onmouseup=MVUtil._f59(this.div,x21);
this.div.onmousemove=MVUtil._f59(this.div,x17);
this.div.onmouseout=MVUtil._f59(this.div,x29);
this._f626.onmousedown=MVUtil._f59(this._f626,x31);
this._f629=false;
}
function _f3()
{
}
_f3._f4=[
{srid:54004,params:[0,0,1,0,0]},
{srid:8307,params:[6378137,298.257223563]}
];
_f3._f5=function(x0,x1,x2,x3)
{
var x4=_f3._f10(x3);
var x5=_f3._f10(x2);
if(!x4||!x5)
{
alert("Coordinate system parameter not found for "+x3+" or "+x2);
return null;
}
var x6=_f11._f12({x:x0,y:x1});
x0=x6.x;
x1=x6.y;
var x7=x4[3];
var x8=x4[4];
var x9=x4[2];
var x10=x4[1];
var x11=x5[0];
var x12=1/x5[1];
var x13=Math.sqrt(2*x12-x12*x12);
var x14=x7+x11*x9*(x0-x10);
var x15=Math.sin(x1);
var x16=Math.tan(Math.PI/4+x1/2);
var x17=(1-x13*x15)/(1+x13*x15);
var x18=x13/2;
var x19=Math.pow(x17,x18);
var x20=x8+x11*x9*Math.log(x16*x19);
return {x:x14,y:x20};
}
_f3._f13=function(x21,x22,x23,x24)
{
var x25=_f3._f10(x23);
var x26=_f3._f10(x24);
if(!x25||!x26)
{
alert("Coordinate system parameter not found for "+x24+" or "+x23);
return null;
}
var x27=x25[3];
var x28=x25[4];
var x29=x25[2];
var x30=x25[1];
var x31=x26[0];
var x32=1/x26[1];
var x33=Math.sqrt(2*x32-x32*x32);
var x34=x22;
var x35=x21;
var x36=Math.E;
var x37=Math.pow(x36,((x28-x34)/(x31*x29)));
var x38=Math.PI/2-2*Math.atan2(x37,1.0);
var x39=Math.pow(x33,4.0);
var x40=Math.pow(x33,6.0);
var x41=Math.pow(x33,8.0);
var x42=x33*x33/2;
var x43=5*x39/24;
var x44=x40/12;
var x45=13*x41/360;
var x46=Math.sin(2*x38);
var x47=7*x39/48;
var x48=29*x40/240;
var x49=811*x41/11520;
var x50=Math.sin(2*x38);
var x51=7*x40/120;
var x52=81*x41/1120;
var x53=Math.sin(6*x38);
var x54=4279*x41/161280;
var x55=Math.sin(8*x38);
var x56=x38+(x42+x43+x44+x45)*x46+(x47+x48+x49)*x50+(x51+x52)*x53+x54*x55;
var x57=((x35-x27)/(x31*x29))+x30;
return _f11._f14({x:x57,y:x56});
}
_f3._f10=function(x58)
{
for(var x59=0;x59<_f3._f4.length;x59++)
{
if(_f3._f4[x59].srid==x58)
return _f3._f4[x59].params;
}
return null;
}
_f15._f16(54004,8307,function(x60,x61){
return _f3._f13(x60,x61,54004,8307);
});
_f15._f16(8307,54004,function(x62,x63){
return _f3._f5(x62,x63,8307,54004);
});
