var myFlag=false;

//Version: Ver1033p5_B081010
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._f794=0;
this.url=null;
this.status=0;
this.readyState=0;
this._f795=null;
this.responseText=null;
}
MVXMLHttpRequest._f796=new Array();
MVXMLHttpRequest._f797=0;
MVXMLHttpRequest._f798=Math.round(Math.random()*10000);
MVXMLHttpRequest.callBack=function(id,x0,x1)
{
while(MVXMLHttpRequest._f796.length>0)
{
var x2=MVXMLHttpRequest._f796[0];
if(!x2.onreadystatechange)
{
if(x2._f795)
{
document.body.removeChild(x2._f795);
x2._f795=null;
}
MVXMLHttpRequest._f796.shift();
}
else
 break;
}
var x3=0;
for(;x3<MVXMLHttpRequest._f796.length;x3++)
{
if(MVXMLHttpRequest._f796[x3]._f794==id)
{
var x2=MVXMLHttpRequest._f796[x3];
x2.status=200;
x2.readyState=4;
x2.responseText=x0;
if(x2.onreadystatechange&&!x1)
x2.onreadystatechange();
x2.onreadystatechange=null;
document.body.removeChild(x2._f795);
x2._f795=null;
if(x3==0)
MVXMLHttpRequest._f796.shift();
return ;
}
}
}
MVXMLHttpRequest.prototype.abort=function()
{
MVXMLHttpRequest.callBack(this._f794,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._f794=MVXMLHttpRequest._f798+"_"+MVXMLHttpRequest._f797++;
var x8=this.url;
if(x8.indexOf("?")>0)
x8+="&";
else
 x8+="?";
x8+="callback_id="+this._f794;
x8+="&"+x7;
if(x8.length>_f15._f135)
{
MVi18n.processLocale("MAPVIEWER-5517");
return ;
}
var x9=document.createElement("script");
x9.src=x8;
x9.type='text/javascript';
x9.charset='utf-8';
this._f795=x9;
MVXMLHttpRequest._f796.push(this);
document.body.appendChild(x9);
if(MVMapView.debug)
MVi18n.alert("MVXMLHttpRequest. URL:"+x8);
}
MVXMLHttpRequest.prototype.setRequestHeader=function(x10)
{
}
function MVUtil(){}
MVUtil._f418=0;
MVUtil._f264=function(x0,x1,x2,x3,x4,x5,x6,x7,x8)
{
var x9=(x7-x1)*x5/(x3-x1)-x0._f251;
var x10=(x4-x8)*x6/(x4-x2)-x0._f252;
var x11=MVSdoGeometry.createPoint(x9,x10);
return x11.sdo_point;
}
MVUtil._f189=function(x12,x13,x14,x15,x16,x17,x18,x19,x20)
{
var x21=(x19-x13)*x17/(x15-x13)-x12._f251;
var x22=(x16-x20)*x18/(x16-x14)-x12._f252;
return [x21,x22];
}
MVUtil._f183=function(x23)
{
var x24=x23.style.left;
if(x24.indexOf("px")>0)
x24=x24.substring(0,x24.length-2);
return parseInt(""+x24);
}
MVUtil._f184=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._f185=function(x29,x30,x31)
{
if(_f15._f74==2)
{
x29.style.pixelLeft=x30;
x29.style.pixelTop=x31;
}
else
 {
x29.style.left=MVUtil._f250(x30);
x29.style.top=MVUtil._f250(x31);
}
}
MVUtil._f304=function(x32,x33,x34,x35,x36,x37,x38)
{
x32.style.left=MVUtil._f250(x33);
x32.style.top=MVUtil._f250(x34);
x32.style.width=MVUtil._f250(x35);
x32.style.height=MVUtil._f250(x36);
if(x37)
x32.style.zIndex=x37;
if(x38)
x32.style.fontSize=MVUtil._f250(x38);
}
MVUtil._f342=function(x39)
{
x39.style.position="absolute";
x39.unselectable="on";
x39.onselectstart=MVUtil._f775;
x39.style.fontFamily="Arial, sans serif";
x39.style.MozUserSelect="none";
x39.align="left";
}
MVUtil._f775=function()
{
return false;
}
MVUtil._f182=function(x40,x41)
{
try
{
if(x41.indexOf(".")>-1)
{
x41="url(\""+x41+"\")"
}
x40.style.cursor=x41;
}
catch(_exception)
{
if(x41=="pointer")
{
MVUtil._f182(x40,"hand");
}
}
}
MVUtil._f64=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 _f254(x0,x1,x2,x3,x4,x5,x6)
{
var x7=null;
if(x6&&_f15._f89())
{
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._f250(x1);
x7.style.height=MVUtil._f250(x2);
x7.width=x1;
x7.height=x2;
}
if(x4||(x3||(x4==0||x3==0)))
{
x7.style.position="absolute";
x7.style.left=MVUtil._f250(x3);
x7.style.top=MVUtil._f250(x4);
}
if(x5||x5==0)
{
x7.style.zIndex=x5;
}
if(_f15._f86=="IF"){
x7.unselectable="on";
x7.onselectstart=MVUtil._f775;}
else{
x7.style.MozUserSelect="none";
}
if(_f15._f86=="IF")
{
x7.galleryImg="no"}
x7.style.border="0";
x7.style.padding="0";
x7.style.margin="0";
x7.oncontextmenu=MVUtil._f775;
return x7;
}
MVUtil._f556=function(x45,x46)
{
if(x46)
{
var x47=x45._f617(x46);
var x48=MVSdoGeometry.createPoint(x47.left,x47.top);
return x48.sdo_point;
}
else
 {
var x47=x45._f617(window.event);
var x48=MVSdoGeometry.createPoint(x47.left,x47.top);
return x48.sdo_point;
}
}
MVUtil.getMouseLocation=function(x49,x50)
{
var x51=MVUtil._f556(x49,x50);
var x52=x51.x-x49._f55()/2;
var x53=x52/x49._f52+x49._f191;
x52=x51.y-x49._f57()/2;
var x54=((-1.0)*x52)/x49._f53+x49._f194;
var x55=MVSdoGeometry.createPoint(x53,x54);
return x55;
}
MVUtil._f239=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._f776=0;
MVUtil._f777=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._f776++)*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._f41=function(x63)
{
if(x63)
{
if(_f15._f86=="IF")
x63.cancelBubble=true;
else if(x63.stopPropagation)
x63.stopPropagation();
if(x63.preventDefault)
x63.preventDefault();
else
 x63.returnValue=false;
}
}
MVUtil._f250=function(x64)
{
return Math.round(x64)+"px";
}
MVUtil._f778=function(x65,x66)
{
var x67=0;
var x68=-1;
while((x68=x65.indexOf(x66,x68+1))!=-1)
{
x67++;
}
return x67;
}
MVUtil._f779=function(x69)
{
var x70=x69.indexOf('<');
if(x70==-1)
return "";
var x71=x69.indexOf(' ',x70+1);
if(x71==-1)
return "";
return '</'+MVUtil._f97(x69.substring(x70+1,x71))+'>';
}
MVUtil._f97=function(x72)
{
return x72.replace(/(^[\s]*)|([\s]*$)/g,"");
}
MVUtil._f780=function(x73,x74)
{
return x73.substring(0,x74.length)==x74;
}
MVUtil._f244=function(x75,x76)
{
return x75.substring(x75.length-x76.length,x75.length)==x76;
}
MVUtil._f781=function(x77,x78)
{
return x78+x77+MVUtil._f779(x78);
}
MVUtil._f186=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._f186(x84,x80,x81);
}
return x79;
}
MVUtil._f755=function(x85)
{
if(x85.indexOf(".")>=0)
return x85.substring(0,x85.indexOf("."));
else
 return x85;
}
MVUtil._f256=function(x86)
{
if(x86.indexOf(".")>=0)
return x86.substring(x86.indexOf(".")+1,x86.length);
else
 return x86;
}
MVUtil.objArray=new Array();
MVUtil._f673=new Array();
MVUtil._f782=new Array();
MVUtil._f253=function(x87)
{
if(_f15._f86!="IF")
return;
var x88=MVUtil._f673.length;
if(x87._f783)
{
x88=(x87._f783);
}
else
 x87._f783=-1;
if((x87._f783)==-1&&(MVUtil._f782.length)>0)
x88=MVUtil._f782.pop();
x87._f783=x88;
MVUtil._f673[x88]=x87;
}
MVUtil.MVUnload=function()
{
if(typeof(MVUtil._f673)!="undefined"&&(MVUtil._f673!=null))
{
for(var x89=0;MVUtil._f673&&x89<MVUtil._f673.length;x89++)
{
if(MVUtil._f673[x89])
{
MVUtil._f224(MVUtil._f673[x89]);
MVUtil._f673[x89]=null;
}
}
}
while(MVUtil.objArray.length>0)
{
var x90=MVUtil.objArray.pop();
x90.destroy();
}
}
window.onunload=function()
{
MVUtil.MVUnload();
}
MVUtil._f61=function(x91,x92)
{
if(_f15._f86!="IF")
{
return function()
{
return x92.apply(x91,arguments);
}
}
if(!(MVUtil._f784))
{
MVUtil._f784=new Array();
MVUtil._f785=new Array();
MVUtil._f786=new Array();
}
if(!(MVUtil._f787))
{
MVUtil._f787=new Array();
MVUtil._f788=new Array();
MVUtil._f789=new Array();
}
try
{
var x93=(MVUtil._f784.length);
if(x91._f783)
{
x93=(x91._f783);
}
else
 x91._f783=-1;
if((x91._f783)==-1&&(MVUtil._f786.length)>0)
x93=MVUtil._f786.pop();
MVUtil._f784[x93]=x91;
MVUtil._f784[x93]._f783=x93;
if(!(MVUtil._f785[x93]))
MVUtil._f785[x93]=new Array();
var x94=(MVUtil._f785[x93].length);
MVUtil._f785[x93][x94]=x92;
x91=null;
x92=null;
return function()
{
return MVUtil._f785[x93][x94].apply(MVUtil._f784[x93],arguments);
}
}
catch(e)
{
var x93=(MVUtil._f787.length);
if((MVUtil._f789.length)>0)
x93=MVUtil._f789.pop();
MVUtil._f787[x93]=x91;
MVUtil._f788[x93]=x92;
x91=null;
x92=null;
return function()
{
return MVUtil._f788[x93].apply(MVUtil._f787[x93],arguments);
}
}
}
MVUtil._f280=function(x95)
{
if(_f15._f86=="IF")
{
if(x95._f783)
{
var x96=(x95._f783);
for(var x97=(MVUtil._f785[x96].length);x97>0;--x97)
{
MVUtil._f785[x96][x97-1]=null;
MVUtil._f785[x96].pop();
}
MVUtil._f785[x96]=null;
x95._f783=null;
x95=null;
MVUtil._f784[x96]=null;
MVUtil._f786.push(x96);
}
}
}
MVUtil.gc=function()
{
if(_f15._f86=="IF"&&MVUtil._f787)
{
var x98=0;
if(MVUtil._f790)
x98=(MVUtil._f790);
if((MVUtil._f787.length)<x98)
return;
for(var x99=0;x99<(MVUtil._f787.length);++x99)
{
if((MVUtil._f787[x99])&&(MVUtil._f787[x99].readyState)&&(MVUtil._f787[x99].readyState)==4)
{
MVUtil._f787[x99]=null;
MVUtil._f788[x99]=null;
MVUtil._f789.push(x99);
}
}
}
}
MVUtil._f791=function(x100,x101)
{
if(_f15._f86!="IF")
return;
if(x100=="time")
{
if(MVUtil._f792)
{
clearInterval(MVUtil._f792);
MVUtil._f792=setInterval(MVUtil.gc,x101);
}
else
 MVUtil._f792=setInterval(MVUtil.gc,x101);
}
if(x100=="totalNum")
{
MVUtil._f790=x101;
}
}
MVUtil._f223=function(x102)
{
if(x102!=null)
{
delete x102;
}
}
MVUtil._f413=function(x103)
{
if(_f15._f86=="NS")
{
x103.style.MozUserSelect="none";
}
else if(_f15._f86=="SF")
{
x103.style.KhtmlUserSelect="none";
}
else if(_f15._f86=="IF")
{
x103.unselectable="on";
}
else
 {
return false;
}
return true;
}
MVUtil._f793=function(x104)
{
if(_f15._f86=="NS")
{
x104.style.MozUserSelect="";
}
else if(_f15._f86=="SF")
{
x104.style.KhtmlUserSelect="";
}
else if(_f15._f86=="IF")
{
x104.unselectable="off";
}
else
 {
return false;
}
return true;
}
MVUtil._f101=function(x105)
{
if(!x105)
return null;
var x106=x105.indexOf("://");
if(x106>0)
{
x106+=3;
var x107=x105.indexOf("/",x106);
if(x107>0)
return x105.substring(x106,x107);
else
 return x105.substring(x106);
}
else
 return null;
}
MVUtil._f608=0;
MVUtil._f607=0;
MVUtil._f609=0;
MVUtil._f283=function(x108)
{
if(!x108)
return ;
var x109=x108.childNodes;
if(x109!=null)
{
while(x109.length>0)
{
MVUtil._f224(x109[0]);
x108.removeChild(x109[0]);
}
}
}
MVUtil._f224=function(x110)
{
if(!x110)
return ;
var x111=x110.childNodes;
if(x111!=null)
{
while(x111.length>0)
{
MVUtil._f224(x111[0]);
x110.removeChild(x111[0]);
}
}
MVUtil._f650(x110);
}
MVUtil._f650=function(x112)
{
if(!x112)
return ;
try
{
if(x112.onload)
x112.onload=null;
if(x112.onmouseover)
x112.onmouseover=null;
if(x112.onmouseout)
x112.onmouseout=null;
if(x112.onmousedown)
x112.onmousedown=null;
if(x112.onmouseup)
x112.onmouseup=null;
if(x112.oncontextmenu)
x112.oncontextmenu=null;
if(x112.ondblclick)
x112.ondblclick=null;
if(x112.onclick)
x112.onclick=null;
if(x112.onkeyup)
x112.onkeyup=null;
if(x112.onkeydown)
x112.onkeydown=null;
if(x112.onkeypressed)
x112.onkeypressed=null;
if(_f15._f86=="IF")
{
if(x112.style&&x112.style.filter)
x112.style.filter=null;
if(x112._f783)
{
MVUtil._f782.push(x112._f783)
MVUtil._f673[x112._f783]=null;
}
}
}catch(error)
{
MVi18n.processLocale("MAPVIEWER-5500",x112.nodeName+","+x112.nodeType+","+x112.nodeValue);
}
}
MVUtil._f221=MVUtil._f224;
MVUtil._f555=function(x113)
{
var x114=document.createElement("table");
var x115=document.createElement("tr");
var x116=document.createElement("td");
x116.innerHTML=x113;
x115.appendChild(x116);
x114.appendChild(x115);
return x114;
}
MVUtil.getEvent=function(x117)
{
return x117?x117:((window.event)?event:null);
}
MVUtil.isIE7=function()
{
if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE 7")>=0)
return true;
else
 return false;
}
MVUtil.getNumber=function(x118)
{
var x119=0;
if(typeof(x118)=="string")
{
if(x118.indexOf("px")>0)
x118=x118.substring(0,x118.length-2);
if(x118.indexOf(".")>0)
x119=parseFloat(x118);
else
 x119=parseInt(x118);
if(isNaN(x119))
x119=0;
return x119;
}
else if(typeof(x118)=="number")
x119=x118;
return x119;
}
MVUtil.trapEvent=function(x120)
{
x120=(x120)?x120:((window.event)?event:null);
if(_f15._f86=="IF")
x120.cancelBubble=true;
else if(x120.stopPropagation)
x120.stopPropagation();
}
MVUtil._f407=function(x121,x122)
{
var x123=(_f15._f89()&&x122)?
document.createElement('div'):document.createElement('img');
if(_f15._f89()&&x122)
{
if(x121)
x123.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x121+"', sizingMethod='image');";
}
else
 {
x123.src=x121;
}
if(_f15._f86=="IF"&&!x122)
{
x123.galleryImg="no"}
return x123;
}
MVUtil.attachEvent=function(x124,x125,x126)
{
if(_f15._f86=="IF")
{
x125="on"+x125;
x124.attachEvent(x125,x126);
}
else
 {
x124.addEventListener(x125,x126,"false");
}
}
MVUtil.detachEvent=function(x127,x128,x129)
{
if(_f15._f86=="IF")
{
x128="on"+x128;
x127.detachEvent(x128,x129);
}
else
 {
x127.removeEventListener(x128,x129,"false");
}
}
function _f11()
{
}
_f11._f18=6372795;
_f11._f71=function(x0,x1,x2)
{
var x0=_f11._f12(x0);
var x3=x0.x;
var x4=x0.y;
var x5=x1/_f11._f18;
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._f72=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._f18;
}
_f11._f73=function(x22)
{
var x23=0;
for(i=0;i<x22.length-2;i+=2)
{
x23+=_f11._f72(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._f74=document.all?(document.getElementById?2:1):(document.layers?3:0);
_f15._f75=navigator.userAgent.toLowerCase();
_f15._f76=null;
_f15._f77=null;
_f15._f78=new Array(30);
_f15._f79=new Array(30);
_f15._f80=new Array(30);
_f15._f81="MVInfoWindowStyle1";
_f15._f82=null;
_f15._f83=new Array(30);
_f15._f84=function()
{
return _f15._f82;
}
_f15._f85=function(x0)
{
if(!_f15._f82)
_f15._f82=x0;
}
_f15._f43=function(x1)
{
_f15._f76=_f15._f75.indexOf(x1)+1;
_f15._f77=x1;
return _f15._f76;
}
if(_f15._f43('safari'))
_f15._f86="SF";
else if(_f15._f43('opera'))
_f15._f86="OS";
else if(_f15._f43('msie'))
_f15._f86="IF";
else if(!_f15._f43('compatible'))
{
_f15._f86="NS";
_f15._f87=_f15._f75.substring(8,11);}
else _f15._f86="unknown";
if(!_f15._f87)
_f15._f87=_f15._f75.substring(_f15._f76+_f15._f77.length,
_f15._f76+_f15._f77.length+3);
_f15._f88=0;
if(_f15._f87)
{
var i=_f15._f87.indexOf(".");
if(i>=0)
_f15._f88=parseInt(_f15._f87.substring(0,i));
else
 _f15._f88=parseInt(_f15._f87);
}
_f15._f89=function()
{
return _f15._f86=="IF"&&_f15._f88<7;
}
_f15._f80["SQ_MM"]=.000001;
_f15._f80["SQ_KILOMETER"]=1000000;
_f15._f80["SQ_CENTIMETER"]=.0001;
_f15._f80["SQ_MILLIMETER"]=.000001;
_f15._f80["SQ_CH"]=404.6856;
_f15._f80["SQ_FT"]=.09290304;
_f15._f80["SQ_IN"]=.00064516;
_f15._f80["SQ_LI"]=.04046856;
_f15._f80["SQ_CHAIN"]=404.6856;
_f15._f80["SQ_FOOT"]=.09290304;
_f15._f80["SQ_INCH"]=.00064516;
_f15._f80["SQ_LINK"]=.04046856;
_f15._f80["SQ_MILE"]=2589988;
_f15._f80["SQ_ROD"]=25.29285;
_f15._f80["SQ_SURVEY_FOOT"]=.09290341;
_f15._f80["SQ_YARD"]=.8361274;
_f15._f80["ACRE"]=4046.856;
_f15._f80["HECTARE"]=10000;
_f15._f80["PERCH"]=25.29285;
_f15._f80["ROOD"]=1011.714;
_f15._f80["M"]=1;
_f15._f80["METER"]=1;
_f15._f80["KM"]=1000;
_f15._f80["KILOMETER"]=1000;
_f15._f80["CM"]=.01;
_f15._f80["CENTIMETER"]=.01;
_f15._f80["MM"]=.001;
_f15._f80["MILLIMETER"]=.001;
_f15._f80["MILE"]=1609.344;
_f15._f80["NAUT_MILE"]=1852;
_f15._f80["SURVEY_FOOT"]=.3048006096012;
_f15._f80["FOOT"]=.3048;
_f15._f80["INCH"]=.0254;
_f15._f80["YARD"]=.9144;
_f15._f80["CHAIN"]=20.1168;
_f15._f80["ROD"]=5.0292;
_f15._f80["LINK"]=.201166195;
_f15._f80["MOD_USFT"]=.304812253;
_f15._f80["CL_FT"]=.304797265;
_f15._f80["IND_FT"]=.304799518;
_f15._f80["LINK_BEN"]=.201167651;
_f15._f80["LINK_SRS"]=.201167651;
_f15._f80["CHN_BEN"]=20.1167825;
_f15._f80["CHN_SRS"]=20.1167651;
_f15._f80["IND_YARD"]=.914398554;
_f15._f80["SRS_YARD"]=.914398415;
_f15._f80["FATHOM"]=1.8288;
_f15._f80["SQ_M"]=1;
_f15._f80["SQ_METER"]=1;
_f15._f80["SQ_KM"]=1000000;
_f15._f80["SQ_CM"]=.0001;
_f15._f90=function(x2)
{
if(x2)
x2=x2.toUpperCase();
else
 return 0;
if(_f15._f80[x2])
return _f15._f80[x2];
else
 return 0;
}
_f15._f91=function(x3,x4)
{
x3=x3.toUpperCase();
_f15._f78[x3]=x4;
if(x4.coordSys.srid)
_f15._f79[x4.coordSys.srid]=x4.coordSys;
}
_f15._f93=function(x5)
{
if(x5&&_f15._f79[x5])
return _f15._f79[x5];
else
 return null;
}
_f15._f94=function(basemap,callBack)
{
if(basemap._f95==null||basemap._f96==null||MVUtil._f97(basemap._f96)=="")
{
basemap._f96="null";
_f15._f78[basemap._f96]=null;return;
}
basemap._f96=basemap._f96.toUpperCase();
if(_f15._f78[basemap._f96])
{
if(_f15._f78[basemap._f96].transparent)
basemap._f98=true;
if(callBack)
callBack(_f15._f78[basemap._f96]);
return _f15._f78[basemap._f96];
}
var conStr=basemap._f99.indexOf("?")>=0?"&":"?";
var formatStr;
var _f100=basemap._f99+conStr+"xml_request=<?xml+version=\"1.0\"+standalone=\"yes\"?>"
+"<map_cache_admin_request><get_client_config+map_cache_names=\""+basemap._f96
+"\"+format=\"JSON\"/></map_cache_admin_request>";
var request=null;
var localDomain=(MVUtil._f101(basemap._f95)==MVUtil._f101(_f15._f102()));
var xmlHttp=localDomain||MVMapView._f103;
var configLoaded=function()
{
try
{
var resp=xmlHttp?request.responseText:this.responseText;
eval("var result="+resp);
if(result.length==0)
{
MVi18n.processLocale("MAPVIEWER-5501",basemap._f96);
_f15._f78[basemap._f96]=null;result=null;
return;
}
if(result[0].transparent)
basemap._f98=true;
_f15._f91(basemap._f96,result[0]);
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5502",basemap._f96,request.responseText);
return ;
}
if(callBack)
callBack(_f15._f78[basemap._f96]);
}
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(!xmlHttp)
request.onreadystatechange=configLoaded;
request.open("GET",_f100,!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._f78[basemap._f96]=null;MVi18n.processLocale("MAPVIEWER-5502",basemap._f96,request.responseText);
}
}
request=null;
}
_f15._f104=180;
_f15._f105=100;
_f15._f106=14;
_f15._f107=112;
_f15._f108=14;
_f15._f109=14;
_f15._f110=14;
_f15._f111=14;
_f15._f112=14;
_f15._f113=14;
_f15._f114=14;
_f15._f115=14;
_f15._f116=600;
_f15._f117=600;
_f15._f118=30;
_f15._f119=16;
_f15._f120=600;
_f15._f121=1;
_f15._f122=1;
_f15._f123=600;
_f15._f124=1;
_f15._f125=10;
_f15._f40=true;
_f15._f126="/fsmc/images/";
_f15._f127="/fsmc/images/";
_f15._f128=0;
_f15._f129=null;
_f15._f130="bulls-eye.png";
_f15._f131=38;
_f15._f132=38;
_f15._f133=5;
_f15._f36=0;
_f15._f134=0;
_f15._f135=2000;
_f15._f136=null;
_f15._f137=null;
_f15._f138=function()
{
if(!_f15._f136)
_f15._f136=document.location.protocol+"//"+document.location.host+"/mapviewer/foi";
return _f15._f136;
}
_f15._f102=function()
{
if(!_f15._f137)
_f15._f137=document.location.protocol+"//"+document.location.host+"/mapviewer";
return _f15._f137;
}
_f15._f139="/mapviewer/proxy";
_f15._f140=null;
_f15._f141=function()
{
if(!_f15._f140)
_f15._f140=document.location.protocol+"//"+document.location.host+"/"+_f15._f139;
return _f15._f140;
}
if(document.getElementsByTagName("html")[0].getAttribute("xmlns")=="http://www.w3.org/1999/xhtml")
_f15._f142=true;
else
 _f15._f142=false;
_f15._f16=function(x6,x7,x8)
{
var x9=_f15._f83[x6];
if(!x9)
x9=_f15._f83[x6]=new Array();
x9[x7]=x8;
}
_f15._f143=function(x10,x11)
{
var x12=_f15._f83[x10];
if(x12)
return x12[x11];
else
 return null;
}
_f15._f144=0;
_f15._f145=false;
function _f353(x0)
{
this._f354=x0;
this.mapConfig=_f15._f78[x0];
this._f355=this._f214();
this._f356=this._f215();
this._f357=this._f216();
this._f358=this._f217();
this._f359=this._f216()-this._f214();
this._f360=this._f217()-this._f215();
this.zoomCount=_f15._f78[this._f354].zoomLevels.length;
}
_f353.prototype._f361=function()
{
return this._f354;
}
_f353.prototype._f362=function(x0)
{
return _f15._f78[x0].format;
}
_f353.prototype._f363=function()
{
return this._f359;
}
_f353.prototype._f364=function()
{
return this._f360;
}
_f353.prototype._f214=function()
{
return _f15._f78[this._f354].coordSys.minX;
}
_f353.prototype._f215=function()
{
return _f15._f78[this._f354].coordSys.minY;
}
_f353.prototype._f216=function()
{
return _f15._f78[this._f354].coordSys.maxX;
}
_f353.prototype._f217=function()
{
return _f15._f78[this._f354].coordSys.maxY;
}
_f353.prototype._f365=function()
{
return _f15._f78[this._f354].mapCache;
}
_f353.prototype.getSrid=function()
{
return _f15._f78[this._f354].coordSys.srid;
}
_f353.prototype._f366=function()
{
return _f15._f78[this._f354].coordSys.type;
}
_f353.prototype._f367=function()
{
return _f15._f78[this._f354].coordSys.distConvFactor;
}
_f353.prototype._f368=function()
{
return _f15._f78[this._f354].zoomLevels.length;
}
_f353.prototype._f369=function(x1)
{
return _f15._f78[this._f354].zoomLevels[x1].tileWidth;
}
_f353.prototype._f370=function(x2)
{
return _f15._f78[this._f354].zoomLevels[x2].tileHeight;
}
_f353.prototype._f371=function(x3)
{
return _f15._f78[this._f354].zoomLevels[x3].tileImageWidth;
}
_f353.prototype._f372=function(x4)
{
return _f15._f78[this._f354].zoomLevels[x4].tileImageHeight;
}
_f353.prototype._f373=function(x5)
{
return _f15._f78[this._f354].zoomLevels[x5]._f374;
}
_f353.prototype._f375=function(x6,x7,x8,x9)
{
this._f355=x6;
this._f356=x7;
this._f357=x8;
this._f358=x9;
}
function _f406(x0,x1,x2,x3)
{
this._f399=x0.zoomLevels[x3].tileWidth;
this._f400=x0.zoomLevels[x3].tileHeight;this._f410=Math.floor((x1-x0.coordSys.minX)/this._f399);
this._f411=Math.floor((x2-x0.coordSys.minY)/this._f400);
this._f402=x3;
this.minX=this._f410*this._f399+x0.coordSys.minX;
this.minY=this._f411*this._f400+x0.coordSys.minY;}
_f406.prototype._f408=function(x0,x1)
{
this._f410=this._f410+x0;
this._f411=this._f411+x1;
}
function MVMapTileLayer(x0,x1)
{
this._f96=x0;
this._f95="";
this._f99="";
if(x1)
{
this._f95=x1;
this._f99=x1;
if(MVUtil._f244(x1,'/'))
{
this._f95=x1.substring(0,x1.length-1);
this._f99=x1.substring(0,x1.length-1);
}
}
this.parent="";
this._f98=false;
this.visible=true;
this._f376="PNG";
this.minVisibleLevel=null;
this.maxVisibleLevel=null;
this._f377=null;
}
MVMapTileLayer.prototype.getType=function()
{
return "MVMapTileLayer";
}
MVMapTileLayer.prototype.setTransparent=function(x0)
{
this._f98=x0;
}
MVMapTileLayer.prototype.setVisible=function(x1)
{
if(this.parent)
{
for(var x2=0;x2<this.parent._f245.length;x2++)
{
if(this.parent._f245[x2]._f378()==this._f95&&
this.parent._f245[x2]._f365()==this._f96)
{
this.parent._f245[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.refresh=function(x5)
{
if(!x5)
this._f377=Math.round(Math.random()*10000000000);
if(this.parent)
{
for(var x6=0;x6<this.parent._f245.length;x6++)
{
if(this.parent._f245[x6]._f378()==this._f95&&
this.parent._f245[x6]._f365()==this._f96)
{
var x7=this.parent;
if(x7._f245[x6].zoomControl)
x7._f245[x6].zoomControl.removeCloneTiles();
x7._f245[x6]._f379(x7._f55(),x7._f57(),x7._f191,x7._f194);
return;
}
}
}
}
MVMapTileLayer.prototype._f365=function()
{
return this._f96;
}
MVBaseMap=MVMapTileLayer;
function MVCustomMapTileLayer(x0,x1)
{
var x2=x0.dataSource?x0.dataSource+"."+x0.mapTileLayer:x0.mapTileLayer;
MVMapView.addMapTileLayerDefinition(x0);
this._f65=MVMapTileLayer;
this._f65(x2);
this.tileURLProvider=x1;
}
MVCustomMapTileLayer.prototype=new MVMapTileLayer;
MVCustomMapTileLayer.prototype.getType=function()
{
return "MVCustomMapTileLayer";
}
function _f380(x0,x1)
{
this.basemap=x1;
this.mapConfig=x1.config;
this.visible=true;
this._f381;
this._f382;
this._f95="";
if(x1._f95)
{
this._f95=x1._f95;
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
this.parent=x0;
this._f96=x1._f96;
this._f376=this.parent.msi._f362(this._f96);
this._f98=x1._f98;
this._f383;
this._f384;
this._f331;
this._f330;
this._f385;
this._f386;
this.tileWidth;
this.tileHeight;
this._f387=true;
this._f388=[];
this._f389=0;
this._f390=0;
this._f391;
this._f392;
this._f192;
this._f195;
this._f393=null;
this._f394=document.createElement("div");
this._f394.style.position="absolute";
this.zIndex=x1.zIndex;this.parent.div.appendChild(this._f394);
this._f395=x0._f396.src;
this.visible=x1.isVisible();
this.minVisibleLevel=x1.minVisibleLevel;
this.maxVisibleLevel=x1.maxVisibleLevel;
this.zoomControl=new MVZoomControl(x0,this);
}
_f380.prototype._f378=function()
{
return this._f95;
}
_f380.prototype._f365=function()
{
return this._f96;
}
_f380.prototype._f397=function()
{
return this._f394;
}
_f380.prototype.setVisible=function(x0)
{
this.visible=x0;
if(!this.visible)
this._f394.style.visibility="hidden";
else
 {
this._f394.style.visibility="visible";
if(this.parent._f154)
this._f379(this.parent._f55(),this.parent._f57(),this.parent._f191,this.parent._f194);
}
}
_f380.prototype.isVisible=function()
{
return this.visible;
}
_f380.prototype._f398=function(x1,x2)
{
if(x1<0||x1>=(this.mapConfig.coordSys.maxX-this.mapConfig.coordSys.minX)/this._f393._f399||
x2<0||x2>=(this.mapConfig.coordSys.maxY-this.mapConfig.coordSys.minY)/this._f393._f400)
return this._f395;
var x3=this._f393._f402;
if(this.basemap.tileURLProvider)
{
var x4=this.basemap.tileURLProvider(
this.mapConfig.coordSys.minX+x1*this._f393._f399,
this.mapConfig.coordSys.minY+x2*this._f393._f400,
this._f393._f399,this._f393._f400,x3);
if(!x4)
return this._f395;
else
 return x4;
}
else
 return String(this._f95+"?request=gettile&format="+this._f376+"&zoomlevel="+x3+"&mapcache="+this._f96+"&mx="+x1+"&my="+x2);
}
_f380.prototype._f379=function(x5,x6,x7,x8)
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f401)
{
this._f394.style.visibility="hidden";
return ;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f401)
{
this._f394.style.visibility="hidden";
return ;
}
this.tileWidth=this.mapConfig.zoomLevels[this.parent._f401].tileImageWidth;
this.tileHeight=this.mapConfig.zoomLevels[this.parent._f401].tileImageHeight;
this._f383=x7;this._f384=x8;
this._f381=Math.max(this.parent._f403,this.tileWidth*1);
this._f382=Math.max(this.parent._f404,this.tileHeight*1);
this._f391=x5;this._f392=x6;
this._f192=x7;this._f195=x8;
this._f385=Math.ceil((x5+this._f381*2)/this.tileWidth);
this._f386=Math.ceil((x6+this._f382*2)/this.tileHeight);
this._f389=0;this._f390=0;
this.origParLeft=this.parent._f251;this.origParTop=this.parent._f252;
this._f405();
var x9=Math.floor(this._f385/2);
var x10=Math.floor(this._f386/2);
this._f393=null;
this._f393=new _f406(this.mapConfig,x7,x8,this.parent._f401);
this.parent._f52=this.tileWidth/this._f393._f399;this.parent._f53=this.tileHeight/this._f393._f400;var x11=this._f391/2.0-(x7-this._f393.minX)*this.parent._f52;
var x12=this._f392/2.0+(x8-this._f393.minY)*this.parent._f53-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._f385-x9)*this.tileWidth-this._f391;
if(x15<0)
{
x9--;
continue;
}
var x16=x12+(this._f386-x10)*this.tileHeight-this._f392;
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._f331=x11-x9*this.tileWidth-this.parent._f251;
this._f330=x12-x10*this.tileHeight-this.parent._f252;
MVUtil._f185(this._f394,this._f331,this._f330);
this._f407(x9,x10,
this.tileWidth,this.tileHeight,
x9*this.tileWidth,x10*this.tileHeight);
this._f393._f408(-1,1);
var x19=Math.max(x9,this._f385-x9);
var x20=Math.max(x10,this._f386-x10);
for(_f50=1;_f50<=Math.max(x19,x20);_f50++)
{
for(xx=x9-_f50,yy=x10-_f50;
xx<=x9+_f50;xx++)
{
if(!(xx<0||xx>=this._f385||yy<0||yy>=this._f386))
{
this._f407(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f393._f408(1,0);
}
this._f393._f408(-(_f50*2+1),-1);
for(xx=x9-_f50,yy=x10-_f50+1;
yy<=x10+_f50-1;yy++)
{
if(!(xx<0||xx>=this._f385||yy<0||yy>=this._f386))
{
this._f407(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f393._f408(0,-1);
}
for(xx=x9-_f50,yy=x10+_f50;
xx<=x9+_f50;xx++)
{
if(!(xx<0||xx>=this._f385||yy<0||yy>=this._f386))
{
this._f407(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f393._f408(1,0);
}
this._f393._f408(-1,1);
for(xx=x9+_f50,yy=x10+_f50-1;
yy>=x10-_f50+1;yy--)
{
if(!(xx<0||xx>=this._f385||yy<0||yy>=this._f386))
{
this._f407(xx,yy,
this.tileWidth,this.tileHeight,
xx*this.tileWidth,yy*this.tileHeight);
}
this._f393._f408(0,1);
}
this._f393._f408(-(_f50*2+1),1);
}
this._f393._f408(_f50,-(_f50));
this._f393._f408(-x9+Math.floor(this._f385/2),
x10-Math.floor(this._f386/2));
}
_f380.prototype._f409=function()
{
if(!this.visible)
return ;
if(this.minVisibleLevel!=null&&this.minVisibleLevel>this.parent._f401)
{
this._f394.style.visibility="hidden";
return;
}
if(this.maxVisibleLevel!=null&&this.maxVisibleLevel<this.parent._f401)
{
this._f394.style.visibility="hidden";
return;
}
var x21=this.parent._f251+this._f389+this._f331;
var x22=this.parent._f252+this._f390+this._f330;
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._f385-x23)*this.tileWidth-this._f391;
if(x27<0)
{
x23--;
continue;
}
var x28=x22+(this._f386-x24)*this.tileHeight-this._f392;
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._f385/2);
var x32=Math.floor(this._f386/2);
var x33=this._f393._f410-x31;
var x34=this._f393._f411+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._f389-(x35+1)*this.tileWidth;
else
 x37=this._f389+(this._f385-x35)*this.tileWidth;
if(x23>0)
{
x36=this._f388[this._f388.length-1];
this._f388.pop();
for(var x38=0;x38<x36.length;x38++)
{
this._f412(x36[x38],null);
x36[x38].style.left=MVUtil._f250(x37);
if(x24==0||
(x24>0&&x38<x36.length-x24)||
(x24<0&&x38>=-x24))
{
this._f412(x36[x38],this._f398(x33-x35-1,x34-x38));
}}
this._f388.unshift(x36);
}
else
 {
x36=this._f388[0];
this._f388.shift();
for(var x38=0;x38<x36.length;x38++)
{
this._f412(x36[x38],null);
x36[x38].style.left=MVUtil._f250(x37);
if(x24==0||
(x24>0&&x38<x36.length-x24)||
(x24<0&&x38>=-x24))
{
this._f412(x36[x38],this._f398(x33+this._f385-x35,x34-x38));
}
}
this._f388.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._f390-(x39+1)*this.tileHeight;
else
 x40=this._f390+(this._f386-x39)*this.tileHeight;
for(x35=0;x35<this._f388.length;x35++)
{
var x36=this._f388[x35];
var x41;
if(x24>0)
{
x41=x36[x36.length-1];
this._f412(x41,null);
x36.pop();
x36.unshift(x41);
x41.style.top=MVUtil._f250(x40);
this._f412(x41,this._f398(x33-x23+x35,x34+x39+1));
}
else
 {
x41=x36[0];
this._f412(x41,null);
x36.shift();
x36.push(x41);
x41.style.top=MVUtil._f250(x40);
this._f412(x41,this._f398(x33-x23+x35,x34-this._f386+x39));
}
}
}
}
this._f389=this._f389-x23*this.tileWidth;
this._f390=this._f390-x24*this.tileHeight;
this._f393._f408(-x23,x24);
}
_f380.prototype._f407=function(x42,x43,x44,x45,x46,x47)
{
var x48=this._f398(this._f393._f410,this._f393._f411);
var x49=this._f388[x42][x43];
if(x49==null)
{
x49=(_f15._f89()&&this._f98)?
document.createElement('div'):document.createElement('img');
this._f394.appendChild(x49);
this._f388[x42][x43]=x49;
}
_f15.c=0;
if(_f15._f86=="IF"&&!this._f98)
{
x49.galleryImg="no"}
else
 {
x49.style.MozUserSelect="none";
}
MVUtil._f413(x49);
x49.style.position="absolute";
x49.style.left=MVUtil._f250(x46);
x49.style.top=MVUtil._f250(x47);
if(_f15._f86=="IF")
{
x49.style.width=MVUtil._f250(x44);
x49.style.height=MVUtil._f250(x45);
}
if((this.zoomControl)&&(this.zoomControl.zooming))
x49.style.display='none';
var x50=this;
x49.imgLoadFinished=false;
x49.onload=function()
{
x49.imgLoadFinished=true;
x49.onload=null;
x49.style.display='';
};
this._f412(x49,x48);
return x49;
}
_f380.prototype._f405=function()
{
if(!(this._f394.zooming))
{
this._f394.parentNode.removeChild(this._f394);
MVUtil._f221(this._f394);
}
this._f394=document.createElement("div");
this._f394.style.position="absolute";
this.parent.div.appendChild(this._f394);
this._f394.style.zIndex=100+this.zIndex;
this._f388=new Array();
for(var x51=0;x51<this._f385;x51++)
{
var x52=new Array();
for(var x53=0;x53<this._f386;x53++)
{
var x54;
if(_f15._f89())
{
x54=MVUtil._f407(null,this._f98);
}
else
 {
x54=MVUtil._f407(this._f395,this._f98);
}
this._f394.appendChild(x54);
x52.push(x54);
}
this._f388.push(x52);
}
}
_f380.prototype.destroy=function()
{
while(this._f388.length>0)
{
var x55=this._f388.pop();
while(x55.length>0)
{
if(_f15._f89()&&this._f98)
{
MVUtil._f221(x55.pop());
}
else
 {
var x56=x55.pop();
if(x56!=null)
{
this._f394.removeChild(x56);
delete x56;
}
}}}
this._f394.parentNode.removeChild(this._f394);
this._f394=null;
}
_f380.prototype.getXMLForPrint=function()
{
var x57="<map_cache_theme map_cache_name=\""+this._f96+"\" snap_to_cache_scale=\"true\" ";
if(this._f95!="")
{
var x58=this._f95.substring(0,this._f95.lastIndexOf("/"));
if(x58.indexOf(this.parent._f414)<0)
{
x58+="/";
x57+="mapviewer_url=\""+x58+"\"";
}
}
return x57+"/>";
}
_f380.prototype._f412=function(x59,x60)
{
if(x60)
{
x59.imgSrc=x60;
if(this.basemap._f377)
{
x60=x60+"&reload="+this.basemap._f377;
}
}
if(_f15._f89()&&this._f98)
{
if(x60)
x59.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x60+"', sizingMethod='image');";
else
 x59.style.filter="";
}
else
 {
if(x60)
x59.src=x60;
else
 x59.src=this._f395;
}
}
_f380.prototype._f415=function()
{
for(var x61=0;x61<this._f385;x61++)
for(var x62=0;x62<this._f386;x62++)
{
var x63=this._f388[x61][x62];
this._f412(x63,x63.imgSrc);
}
}
_f380.zIndexCount=1;
function MVThemeBasedFOI(x0,x1,x2)
{
this.name=x0;
this.parent="";
this._f67=x2;
this._f709=-1;
this._f558=100;
this._f162=true;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f202=null;
this._f710=null;
this._f158=null;
this._f159=null;
this._f160=null;
this._f161=null;
this._f711=null;
this._f275=null;
this._f561=2;
this._f562=2;
this._f152=true;
this._f270=true;
this._f153=true;
this._f712=null;
this._f713=null;
this._f714=null;
this._f276=null;
this._f592=null;
this._f578=-1;
this._f574=-1;
this._f566=false;
this._f567=false;
this._f593=new Array();
this._f628=null;
this._f577=true;
this.visible=true;
this._f165=true;
this.cursorStyle="pointer";
this._f715=false;
this._f716=null;
this._f717=true;
this.renderLabels=false;
this._f718=false;
this._f719=true;
this._f277=true;
this._f278=null;
this._f170=null;
this._f720=false;
if(x1!=null)
{
this._f275=x1;
if(x1.indexOf("</jdbc_query>")>=0)
this._f720=true;
}
this._f721=null;
this._f722=null;
this._f190=0;
this._f193=0;
this._f723=false;
this._f724=0;
this._f725=new Array();
this._f726=new Object();
this._f727=new Array();
this._f728=new Object();
this._f729=null;
this._f730=null;
this.queryParameterArray=null;
this._f172=null;
this.bgColor=null;
this._f731=false;
this._f732=-1;
this._f733=-1;
this._f734=false;
this._f735="N";
}
MVThemeBasedFOI.prototype.setLayoutCustomizer=function(x0)
{
this._f711=x0;
}
MVThemeBasedFOI.prototype.enableHighlight=function(x1)
{
if(!x1)
this.deHighlight();
this._f723=x1;
}
MVThemeBasedFOI.prototype.setHighlightMode=function(x2)
{
switch(x2)
{
case "single":
this._f724=-1;
break;
case "multiple":
this._f724=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._f729=encodeURIComponent(x3.getXMLString());
else if(typeof(x3)=="string")
this._f729=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._f730=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._f730=new _f736(x5,x6,x7);
else
 MVi18n.processLocale("Parameter error. Error occurs at MVThemeBasedFOI.setHighlightMarkerImage(...)");
}
MVThemeBasedFOI.prototype.highlight=function(x9)
{
if(!this._f723)
{
MVi18n.processLocale("Highlighting feature is disabled for this theme based FOI. Error occurs at MVThemeBasedFOI.highlight(...)");
return;
}
var x10=this._f714;
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._f725;
var x18=this._f726;
var x19=this._f727;
var x20=this._f728;
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._f86=="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._f185(x29,x30,x31);
x29.style.width=MVUtil._f250(x23);
x29.style.height=MVUtil._f250(x24);
}
}
}
}
}
MVThemeBasedFOI.prototype.deHighlight=function(x32)
{
if(!this._f723)
{
MVi18n.processLocale("Highlighting feature is disabled for this theme based FOI. Error occurs at MVThemeBasedFOI.deHighlight(...)");
return;
}
var x33=this._f725;
var x34=this._f726;
var x35=this._f727;
var x36=this._f728;
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._f86=="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._f185(x41,x49,x50);
x41.style.width=MVUtil._f250(x39.width);
x41.style.height=MVUtil._f250(x39.height);
}
}
this._f725=new Array();
this._f726=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._f86=="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._f185(x41,x49,x50);
x41.style.width=MVUtil._f250(x39.width);
x41.style.height=MVUtil._f250(x39.height);
}
}
}
}
MVThemeBasedFOI.prototype.getHighlightedFOIData=function()
{
var x51=new Array();
if(this._f725!=null)
{
for(var x52=0;x52<this._f725.length;x52++)
if(this._f725[x52]!=null)
x51.push(this._f725[x52]);
}
return x51;
}
MVThemeBasedFOI.prototype.setQueryParameters=function()
{
if(arguments.length<=0)
return ;
this._f712="&paramnum="+arguments.length;
this.queryParameterArray=new Array(arguments.length);
for(var x53=0;x53<arguments.length;x53++)
{
if(typeof arguments[x53]=="object")
{
this._f712+=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._f712+="&param"+(x53+1)+"="+encodeURIComponent(arguments[x53]);
this.queryParameterArray[x53]={value:arguments[x53]};
}
}
return this._f712;
}
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._f712;
}
MVThemeBasedFOI.prototype.setMinVisibleZoomLevel=function(x58)
{
this._f709=x58;
}
MVThemeBasedFOI.prototype.setMaxVisibleZoomLevel=function(x59)
{
this._f558=x59;
}
MVThemeBasedFOI.prototype.setBringToTopOnMouseOver=function(x60)
{
this._f162=x60;
}
MVThemeBasedFOI.prototype.setMaxWholeImageLevel=function(x61)
{
this._f578=x61;
this._f731=false;
}
MVThemeBasedFOI.prototype.setMinClickableZoomLevel=function(x62)
{
this._f574=x62;
}
MVThemeBasedFOI.prototype.enableInfoTip=function(x63)
{
this._f152=x63;
}
MVThemeBasedFOI.prototype.enableInfoWindow=function(x64)
{
this._f270=x64;
}
MVThemeBasedFOI.prototype.enableInfoWindowForMouseOver=function(x65)
{
this._f718=x65;
}
MVThemeBasedFOI.prototype.enableInfoWindow=function(x66)
{
this._f270=x66;
}
MVThemeBasedFOI.prototype.setClickable=function(x67)
{
this._f153=x67;
if(this._f722)
{
this._f722._f737();
if(this._f722._f572)
{
if(x67&&this.isVisible())
this._f722._f572.style.visibility="visible";
else if(!x67)
this._f722._f572.style.visibility="hidden";
}
}
}
MVThemeBasedFOI.prototype.addEventListener=function(x68,x69)
{
this.setEventListener(x68,x69);
}
MVThemeBasedFOI.prototype.setEventListener=function(x70,x71)
{
if(x70=="before_refresh")
{
this._f202=x71;
}
else if(x70=="after_refresh")
{
this._f710=x71;
}
else if(x70=="mouse_click")
{
this._f158=x71;
}
else if(x70=="mouse_right_click")
{
this._f159=x71;
}
else if(x70=="mouse_over")
{
this._f160=x71;
}
else if(x70=="mouse_out")
{
this._f161=x71;
}
}
MVThemeBasedFOI.prototype.setQueryWindowMultiplier=function(x72)
{
this._f561=x72;
this._f562=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._f721)
return MVSdoGeometry.createRectangle(this._f721[0],this._f721[1],this._f721[2],this._f721[3],this.parent.srid);
else
 return null;
}
MVThemeBasedFOI.prototype.setMarkerImage=function(x74,x75,x76)
{
this._f713=new _f736(x74,x75,x76);
}
MVThemeBasedFOI.prototype.getThemeName=function()
{
return this._f275;
}
function _f736(x0,x1,x2)
{
this._f147=x0;
this.width=x1;
this.height=x2;
}
MVThemeBasedFOI.prototype.getFOIMarker=function()
{
return this._f713;
}
MVThemeBasedFOI.prototype.setVisible=function(x77)
{
this.visible=x77;
if(this.parent._f210)
this.parent._f210._f263();
if(this._f722)
this._f722.setVisible(this.parent,x77);
}
MVThemeBasedFOI.prototype.setInfoWindowStyle=function(x78,x79)
{
this._f276=x78;
this._f170=x79;
}
MVThemeBasedFOI.prototype.isVisible=function()
{
if(this._f722)
{
return this._f722.isVisible();
}
else
 return this.visible;
}
MVThemeBasedFOI.prototype.refresh=function(x80)
{
this.parent._f235();
if(this._f722)
{
var x81=this._f722;
var x82=this.parent._f559(x81);
if(x80)
x80=true;
else
 x80=false;
x81._f523(this.parent,x82[0],x82[1],x82[2],x82[3],true,x80,!x80);
}
}
MVThemeBasedFOI.prototype.getFOIData=function()
{
if(this._f714==null||this._f714.foiarray==null)
{
return null;
}
else
 return this._f714.foiarray;
}
MVThemeBasedFOI.prototype.setNSDP=function(x83)
{
this._f592=x83;
}
MVThemeBasedFOI.prototype.setBoundingTheme=function(x84,x85)
{
this._f566=x84;
if(x85)
this._f567=true;
else
 this._f567=false;
}
MVThemeBasedFOI.prototype.zoomToTheme=function()
{
this.refresh(true);
}
MVThemeBasedFOI.prototype.centerToTheme=function()
{
this.parent._f235();
if(this._f722)
{
var x86=this._f722;
var x87=this.parent._f559(x86);
x86._f523(this.parent,x87[0],x87[1],x87[2],x87[3],true,true,false,false,true);
}
}
MVThemeBasedFOI.prototype.addStyle=function(x88)
{
var x89=this._f593.concat(x88);
this._f593=null;
this._f593=x89;
}
MVThemeBasedFOI.prototype.deleteStyle=function(x90)
{
var x91=-1;
for(var x92=0;x92<this._f593.length;x92++)
{
var x93=this._f593[x92];
if(x93!=null&&x93==x90)
{
x91=x92;
break;
}
}
if(x91<0)
return;
var x94=0;
var x95=new Array(this._f593.length-1);
for(var x92=0;x92<this._f593.length;x92++)
{
if(x92!=x91)
{
x95[x94]=this._f593[x92];
x94++;
}
}
this._f593=null;
this._f593=x95;
}
MVThemeBasedFOI.prototype.deleteAllStyles=function()
{
for(var x96=0;x96<this._f593.length;x96++)
this._f593[x96]=null;
this._f593=new Array();
}
MVThemeBasedFOI.prototype.setRenderingStyle=function(x97)
{
this._f628=x97;
}
MVThemeBasedFOI.prototype.setAutoRefresh=function(x98)
{
this._f577=x98;
}
MVThemeBasedFOI.prototype.enableEventPropagation=function(x99)
{
this._f165=x99;
}
MVThemeBasedFOI.prototype.setMouseCursorStyle=function(x100)
{
this.cursorStyle=x100;
if(this._f722)
{
MVUtil._f182(this._f722.div,x100);
if(this._f714&&this._f714.foiarray&&this._f722._f738)
{
for(var x101=0;x101<this._f714.foiarray.length;x101++)
{
if(this._f714.foiarray[x101]&&this._f714.foiarray[x101].areaNode)
MVUtil._f182(this._f714.foiarray[x101].areaNode,x100);
}
}
}
}
MVThemeBasedFOI.prototype.setHighlightOnly=function(x102)
{
this._f715=x102;
}
MVThemeBasedFOI.prototype.setFilteringGeom=function(x103)
{
this._f716=x103;
}
MVThemeBasedFOI.prototype.getFilteringGeom=function()
{
return this._f716;
}
MVThemeBasedFOI.prototype.enableImageRendering=function(x104)
{
this._f717=x104;
}
MVThemeBasedFOI.prototype.enableLabels=function(x105)
{
this.renderLabels=x105;
}
MVThemeBasedFOI.prototype.enableImageCaching=function(x106)
{
this._f719=x106;
}
MVThemeBasedFOI.prototype.getLayerName=function()
{
return this.name;
}
MVThemeBasedFOI.prototype.setInfoWindowTitle=function(x107)
{
this._f278=x107;
}
MVThemeBasedFOI.prototype.setScreenOffset=function(x108,x109)
{
this._f190=x108;
this._f193=x109;
}
MVThemeBasedFOI.prototype.setNameAsInfoWindowTitle=function(x110)
{
this._f277=x110;
}
MVThemeBasedFOI.prototype.setImageFormat=function(x111,x112)
{
if(x111)
{
this._f172=x111.toUpperCase();
if(this._f172=="PNG8"&&x112)
this.bgColor=x112;
}
}
MVThemeBasedFOI.prototype.enableAutoWholeImage=function(x113,x114,x115)
{
if(x114!=undefined)
this._f732=x114;
if(x115!=undefined)
this._f733=x115;
this._f731=x113;
}
MVThemeBasedFOI.prototype.abort=function()
{
if(this._f722)
this._f722.abort();
}
MVThemeBasedFOI.prototype.enableMarkerSequence=function(x116,x117)
{
this._f734=x116;
if(x116)
{
if(x117)
this._f735=x117;
}
}
MVThemeBasedFOI.prototype.escapeQuote=function(x118)
{
if(x118&&x118.length>0&&x118.indexOf==undefined)
{
for(var x119=0;x119<x118.length;x119++)
{
if(x118[x119]&&x118[x119].length!=undefined)
x118[x119]=MVUtil._f186(x118[x119],"\"","\\\"");
}
}
}
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;
}
MVThemeBasedFOI.prototype.getAllStyles=function()
{
return this._f593;
}
MVThemeBasedFOI.prototype.getStyleByName=function(x120)
{
if(x120==null||x120=="")
return;
for(var x121=0;x121<this._f593.length;x121++)
{
var x122=this._f593[x121];
if(x122!=null&&x122.name==x120)
{
return x122;
break;
}
}
}
function _f570(x0,x1)
{
this.parent=x0;
this._f576=false;
if(!x1._f67)
{
if(this.parent._f414)
{
if(MVUtil._f244(this.parent._f414,'/'))
x1._f67=this.parent._f414+'foi';
else
 x1._f67=this.parent._f414+'/foi';
}
else
 MVi18n.processLocale("MAPVIEWER-5504");}
if(MVMapView._f103&&MVUtil._f101(x1._f67)!=MVUtil._f101(this.parent._f137))
x1._f67=_f15._f141()+"?rtarget="+x1._f67;
x1._f722=this;
this._f560=x1;
this._f739=0;
this._f740=0;
this.width=0;
this.height=0;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f741=0;
this._f742=0;
this._f743=0;
this._f744=0;
this._f575=true;
this._f401=0;
this._f745=true;
this._f746=false;
this._f199=0;
this._f200=0;
this._f747=0;
this._f748=0;
this._f192=0;
this._f195=0;
this._f581=false;
this._f573=1;this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.left=MVUtil._f250(0);
this.div.style.top=MVUtil._f250(0);
this._f571=0;
if(!x1.visible)
this.div.style.visibility="hidden";
this.parent.div.appendChild(this.div);
this._f572=null;
this._f749=null;
this._f750=false;
this.themeId=null;
this.abortionSupported=true;
this._f751();
this._f752=true;
this._f753=false;
this.t1=0;
this.t2=0;
this.t3=0
}
_f570.prototype._f255=function()
{
if(this._f560._f720)
return this._f754(this._f560._f275);
else if(this._f560._f712==null)
return "<theme name=\""+MVUtil._f256(this._f560._f275)+
"\" render_labels=\""+this._f560.renderLabels+"\" datasource=\""+
MVUtil._f755(this._f560._f275)+"\"/>";
else
 {
var x0="<theme name=\""+MVUtil._f256(this._f560._f275)+
"\" render_labels=\""+this._f560.renderLabels+"\" datasource=\""+
MVUtil._f755(this._f560._f275)+"\">\n"+
"  <binding_parameters>\n";
for(var x1=0;x1<this._f560.queryParameterArray.length;x1++)
{
var x2=this._f560.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._f186(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;
}
}
_f570.prototype.setSize=function(x8,x9)
{
this.width=x8;
this.height=x9;
}
_f570.prototype._f565=function(x10,x11)
{
if(!this._f576)
{
if(this._f560._f561==1&&this._f560._f562==1)
{
this._f739=this.width;
this._f740=this.height;
}
else
 {
this._f739=x10;
this._f740=x11;
}
}
}
_f570.prototype._f201=function()
{
return this._f581;
}
_f570.prototype._f756=function()
{
return this.request;
}
_f570.prototype._f214=function()
{
return this.minX;
}
_f570.prototype._f215=function()
{
return this.minY;
}
_f570.prototype._f216=function()
{
return this.maxX;
}
_f570.prototype._f217=function()
{
return this.maxY;
}
_f570.prototype.isVisible=function()
{
if(this._f401<this._f560._f709||this._f401>this._f560._f558)
return false;
else
 return !(this.div.style.visibility=='hidden');
}
_f570.prototype._f218=function()
{
return this.div;
}
_f570.prototype.getThemeBasedFOI=function()
{
return this._f560;
}
_f570.prototype._f757=function()
{
return this._f747;
}
_f570.prototype._f758=function()
{
return this._f748;
}
_f570.prototype._f759=function(x12)
{
this._f747=x12;
}
_f570.prototype._f760=function(x13)
{
this._f748=x13;
}
_f570.prototype._f258=function()
{
return this._f560._f172?this._f560._f172:this.parent._f259;
}
_f570.prototype._f89=function()
{
return _f15._f86=="IF"&&this._f258()=="PNG24";
}
_f570.prototype._f761=function()
{
return this._f560._f578>=this._f401||this._f750;
}
_f570.prototype.setVisible=function(x14,x15)
{
if(x15)
{
if(!this.isVisible())
{
if(this._f746)
{
if((!this._f89()&&this._f560.getFOIData()!=null&&
this._f560.getFOIData()[0].gtype%10!=1)||
this._f761()||!this._f560._f717)
{
if(this._f560._f153&&this._f572)
this._f572.style.visibility="visible";
}
}
this.div.style.visibility="visible";
if(!this._f745)
{
MVUtil._f185(this.div,Math.ceil((this.minX-this.parent._f236)*this.parent._f52),
-Math.ceil((this.maxY-this.parent._f237)*this.parent._f53));
this._f523(this.parent,this.minX,this.minY,this.maxX,this.maxY,true);
}
}
}
else
 {
if(this._f746)
{
if((!this._f89()&&this._f560.getFOIData()!=null&&
this._f560.getFOIData()[0].gtype%10!=1)||
this._f761()||!this._f560._f717)
{
if(this._f572)
this._f572.style.visibility="hidden";
if(this.parent._f210._f211.length>0)
{
for(var x16=0;x16<this.parent._f473.childNodes.length;x16++)
{
if(this.parent._f210._f211[0].nid==this.parent._f473.childNodes[x16].id)
{
this.parent._f210.deleteInfoWindow(this.parent._f210._f211[0]);
break;
}
}
}
}
else if(this.parent._f210._f211.length>0)
{
for(var x17=0;x17<this.div.childNodes.length;x17++)
{
if(this.parent._f210._f211[0].nid==this.div.childNodes[x17].id)
{
this.parent._f210.deleteInfoWindow(this.parent._f210._f211[0]);
break;
}
}
}
}
this.div.style.visibility="hidden";
this._f581=false;
this.parent._f516();
}
}
_f570.prototype._f183=function()
{
if(this._f581)
return this._f199;
else
 return MVUtil._f183(this.div);
}
_f570.prototype._f184=function()
{
if(this._f581)
return this._f200;
else
 return MVUtil._f184(this.div);
}
_f570.prototype._f762=function(x18)
{
if(this._f581)
this._f199=x18;
}
_f570.prototype._f763=function(x19)
{
if(this._f581)
this._f200=x19;
}
_f570.prototype._f212=function()
{
return this.width;
}
_f570.prototype._f213=function()
{
return this.height;
}
_f570.prototype._f222=function()
{
this._f579();
while(this.div.childNodes.length>0)
{
var x20=this.div.childNodes[0];
this.div.removeChild(x20);
if(this.parent._f210._f211.length>0)
if(this.parent._f210._f211[0].nid==x20.id)
{
this.parent._f210.deleteInfoWindow(this.parent._f210._f211[0]);
}
MVUtil._f221(x20);
}
}
_f570.prototype._f579=function(x21)
{
this.clearAllStarted=true;
var x22=null;
if(this.div.parentNode)
{
x22=this.div.parentNode;
x22.removeChild(this.div);
}
while(this.div.childNodes.length>0)
{
var x23=this.div.childNodes[0];
this.div.removeChild(x23);
while(x23.childNodes.length>0)
{
var x24=x23.childNodes[0];
x23.removeChild(x24);
MVUtil._f221(x24);
}
MVUtil._f221(x23);
}
this.wholeImage=null;
if(this._f573!=1&&!x21)
{
this.clearTransImageLayer();
}
if(x22)
x22.appendChild(this.div);
this.clearAllStarted=false;
}
_f570.prototype.clearTransImageLayer=function()
{
if(this._f572&&this._f572.parentNode)
{
this._f572.parentNode.removeChild(this._f572);
MVUtil._f221(this._f572);
}
this._f572=null;
this._f749=null;
}
_f570.prototype.getImageParameters=function()
{
var x25="";
var x26=this._f258();
if(x26=="PNG8")
x25+="&format="+x26;
if(this._f560.bgColor)
x25+="&bgcolor="+this._f560.bgColor;
return x25;
}
_f570.prototype._f523=function(x27,x28,x29,x30,x31,x32,
x33,x34,x35,x36)
{
this._f753=false;
this._f750=false;
var x37=this;
var x38=function()
{
if(!x37.themeId&&x37.abortionSupported)
{
setTimeout(x38,50);
return ;
}
if(!x36)
x36=false;
if(!x35&&!x27._f154)
{
var x39=[x27,x28,x29,x30,x31,x32,x33,x34,x36];
var x40=x37._f523;
var x41={obj:x37,func:"refreshFOIs",params:x39};
x27._f494.push(x41);
return ;
}
x37._f581=true;
if(!x37._f576)
{
x37._f560.minX=x37.minX=x28;
x37._f560.minY=x37.minY=x29;
x37._f560.maxX=x37.maxX=x30;
x37._f560.maxY=x37.maxY=x31;
}
x37._f199=Math.ceil((x37.minX-x37.parent._f236)*x37.parent._f52);
x37._f200=-Math.ceil((x37.maxY-x37.parent._f237)*x37.parent._f53);
MVUtil._f185(x37.div,x37._f199,x37._f200);
x37.div.style.display='none';
x37._f192=x37.parent._f191;
x37._f195=x37.parent._f194;
if(x37._f560._f202)
{
x37._f560._f202();
}
x37._f575=x32;
x37._f401=x37.parent._f401;
if(!x37._f560.visible||
!x33&&(x37._f401<x37._f560._f709||x37._f401>x37._f560._f558))
{
x37._f745=false;
x37._f576=false;
x37._f579();
return;
}
x37._f745=true;
if(x37._f576)
{
x37._f764();
return ;
}
x37.adjustBBox(x33);
var x42="request=getfoi&version=1.0"+x37.getImageParameters()+
"&theme="+encodeURIComponent(x37._f560._f275)+"&bbox="+
x37._f741+":"+x37._f742+":"+
x37._f743+":"+x37._f744+
"&width="+x37.adjustedRealWidth+"&height="+x37.adjustedRealHeight;
if(x37._f560._f729!=null)
x42+="&hilitestyle="+x37._f560._f729;
if(x37._f560._f715==true){
if(!x37._f560._f716)
{
MVi18n.processLocale("MAPVIEWER-5514");
return;
}
x37._f560.setQueryParameters(x37._f560._f716);
x42+="&hilite=yes";
}
if(x37._f560.getQueryParameters())
{
x42+=x37._f560.getQueryParameters();
}
if(x37._f560.getFOIMarker()||
!x37._f560._f717)
{
x42+="&renderimg=no";
}
if(x37._f560._f574<=x37._f401)
{
x42+="&clickable=yes";
}
else
 {
x42+="&clickable=no";
}
if(!x37._f89()||
x37._f560._f578>=x37._f401||
!x37._f560._f717)
{
x42+="&area=yes";
}
else
 {
x42+="&area=no";
}
x42+="&dstsrid="+x37.parent.srid;
if(x37._f560._f592!=null)
{
x42+="&nsdp="+encodeURIComponent(x37._f560._f592.getFlatString());
}
if(x37._f560._f578>=x37._f401)
x42+="&wholeimage=yes";
if(x37._f560.renderLabels)
x42+="&renderlabels=yes";
x37.startLoad=MVUtil._f61(this,function()
{
x37._f764();
});
if(x33){
x42+="&boundingtheme=yes&mapcache="+encodeURI(x37.parent._f245[0]._f96)+
"&mapwinwidth="+x37.parent._f55()+
"&mapwinheight="+x37.parent._f57()+
"&wholeimagelevel="+x37._f560._f578;
if(x36)
x42+="&recenteronly=yes";
}
if(x37._f560._f628!=null)
{
x42+="&trs="+encodeURIComponent(x37._f560._f628);
}
var x43=x37._f560._f593;
if(x43.length>0)
{
x42+="&tempstyles=";
var x44="<styles>";
for(var x45=0;x45<x43.length;x45++)
{
x44+=x43[x45].getXMLString();
}
x44+="</styles>";
x42+=encodeURIComponent(x44);
}
if(!x37._f560._f719||x34)
x42+="&refresh="+Math.round(Math.random()*100000);
if(x37._f560._f719&&x37._f560._f578<x37._f401)
x42+="&cachefoi=yes";
if(x37.abortionSupported)
x42+="&tid="+x37.themeId;
if(!x37._f560._f731)
x42+="&aw=no";
if(x37._f560._f732>0)
x42+="&mw="+x37._f560._f732;
if(x37._f560._f733>0)
x42+="&mu="+x37._f560._f733;
if(x37._f560._f734)
{
x42+="&sq=y";
x42+="&st="+x37._f560._f735;
}
var x46=(x37._f560._f67.indexOf(_f15._f141())<0&&
MVUtil._f101(x37._f560._f67)==MVUtil._f101(_f15._f102()));
var x47=x46||MVMapView._f103;
if(MVMapView._f627)
x37.t1=new Date();
if(MVMapView.debug)
MVi18n.alert("Sending Theme Based FOI request. URL:"+x37._f560._f67+" Parameters:"+x42);
try
{
x37.parent.setLoadingIconVisible(true);
if(x37.request)
{
x37.request.onreadystatechange=null;
x37.request.abort();
x37.request=null;
}
}
catch(e)
{
}
try
{
x37.request=MVUtil.getXMLHttpRequest(x47);
x37.request.onreadystatechange=x37.startLoad;
x37.request.open("POST",x37._f560._f67,true);
x37.request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
x37.request.send(x42);
}
catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
x37._f581=false;
x37.parent._f516();
}
}
x38();
}
_f570.prototype.clearAllParallelly=function(){
this._f579();
}
_f570.prototype.getElementByIdInDiv=function(id){
var x48=[];
var x49=document.getElementById(id);
if(!x49)return x49;
while(x49&&((x49.parentNode!=this.div)||(x49.id!=id))){
x48.push({i:x49.id,e:x49});
x49.id='';
x49=document.getElementById(id);
}
for(j=0,jj=x48.length;j<jj;j++)x48[j].e.id=x48[j].i;
x48=null;
return x49;
}
_f570.prototype._f764=function()
{
if(this.request.readyState==4||this._f576)
{
if(this.request.status==200||this._f576)
{
if(this._f753)
{
this._f581=false;
this.parent._f516();
return ;
}
var oldFois=new Object();
if(this._f560.getFOIData())
{
for(var i=0;i<this._f560.getFOIData().length;i++)
{
var foi=this._f560.getFOIData()[i];
oldFois['_'+foi.id]=foi;
oldFois['_'+foi.id].shown=false;
}
}
var result=null;
if(MVMapView._f627)
this.t2=new Date();
if(!this._f576)
{
try
{
eval("result="+this.request.responseText);
if(MVMapView._f627)
{
this.t3=new Date();
alert("Time taken to fetch "+this._f560.name+":"+(this.t2-this.t1)+".\n"+
"Time taken to load the FOI data:"+(this.t3-this.t2)+".");
}
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5511",this.request.responseText);
this._f581=false;
this.parent._f516();
return ;
}
this.boundingThemeResult=result;
}
else
 result=this.boundingThemeResult;
if(MVMapView._f626&&this._f752&&this._f560._f717&&
!this._f560._f731&&!this._f761()&&result.foiarray.length>50)
{
var maxFOINum=0;
if(result.foiarray[0].gtype%10==1)
maxFOINum=750;
else
 maxFOINum=200;
if(result.foiarray.length>maxFOINum)
{
var answer=confirm("You are showing too many FOIs for theme "+this._f560.name+" at the current level.\n"+
"It might take a long time to render these FOIs. You might want to consider rendering\n"+
"these FOIs as a whole image by invoking methods MVThemeBasedFOI.enableAutoWholeImage\n"+
"or MVThemeBasedFOI.setMaxWholeImageLevel.\n\n"+
"Do you want to continue to render the FOIs and ignore this message from now on?\n\n"+
"   Note: You can permanently disable warnings like this by invoking method\n"+
"   MVMapView.enableCodingHints(false).");
if(!answer)
{
this._f581=false;
this.parent._f516();
return ;
}
else
 this._f752=false;
}
}
if(this._f560)
this._f560._f721=result.themeMBR;
else
 return ;
if(result.isWholeImg)
this._f750=true;
else
 this._f750=false;
if(result.minx!=undefined&&!this._f576)
{
this._f576=true;
var tcx=(result.minx+result.maxx)/2;
var tcy=(result.miny+result.maxy)/2;
var _f401=this._f401;
if(result.adjlevel!=undefined)
_f401=result.adjlevel;
this._f560.minX=this.minX=this._f741=result.minx;
this._f560.minY=this.minY=this._f742=result.miny;
this._f560.maxX=this.maxX=this._f743=result.maxx;
this._f560.maxY=this.maxY=this._f744=result.maxy;
this.parent.setCenterAndZoomLevel(MVSdoGeometry.createPoint(tcx,tcy,this.parent.srid),_f401);
return ;
}
this._f513=true;
this._f576=false;
if(!this.div)
return ;
this._f737();
if(MVMapView._f627)
this.t1=new Date();
if(result.foiarray.length>=1)
{
this._f560._f714=result;
this.parent._f235();
if(this._f761()||!this._f560._f717||
(!this._f89()&&result.foiarray[0].gtype%10!=1))
{
this._f573=2;
if(this._f560._f574<=this._f401)
{
this._f765(result);
}
}
else
 {
this._f573=1;
}
this._f560._f728=new Object();
this._f560._f727=new Array();
if(this.wholeImage!=null)
{
this.div.removeChild(this.wholeImage);
MVUtil._f221(this.wholeImage);
this.wholeImage=null;
}
if(this._f761()&&this._f560._f717)
{
this._f766(result.foiarray[0].imgurl);
}
if(!this._f761()||
this._f560._f574<=this._f401&&result.foiarray.length>1)
{
var divParent=this.div.parentNode;
divParent.removeChild(this.div);
for(var i=0;i<result.foiarray.length;i++)
{
if(this._f753)
{
this._f581=false;
this.parent._f516();
return ;
}
result.foiarray[i].hiliteImgPref=result.hiliteImgPref;
result.foiarray[i].hiliteMW=result.hiliteMW;
result.foiarray[i].hiliteMH=result.hiliteMH;
result.foiarray[i].attrnames=result.attrnames;
if(this._f573==1&&!this._f89()&&result.foiarray[i].gtype%10!=1)
{
this._f573=3;
this._f765(result);
}
if(this._f573==1&&this._f560._f730)
{
result.foiarray[i].hiliteImgPref=this._f560._f730._f147;
result.foiarray[i].hiliteMW=this._f560._f730.width;
result.foiarray[i].hiliteMH=this._f560._f730.height;
}
var cfoi=result.foiarray[i];
var ofoi=oldFois['_'+cfoi.id];
if(ofoi)
{
ofoi.shown=true;
this._f580(cfoi,ofoi);
}
else
 {
this._f580(cfoi);
}
}
divParent.appendChild(this.div);
for(key in oldFois)
{
foi=oldFois[key];
if(foi.shown==false)
{
var node=this.getElementByIdInDiv(foi.id);
if(node)
{
MVUtil._f224(node);
}
if(node)
{
node.parentNode.removeChild(node);
}
}
}
}
else
 {
for(key in oldFois)
{
foi=oldFois[key];
var node=this.getElementByIdInDiv(foi.id);
if(node)
{
MVUtil._f224(node);
}
if(node)
{
node.parentNode.removeChild(node);
}
}
}
this.makeFOIsVisiable();
this._f746=true;
}
else
 {
this._f560._f714=null;
this._f579();
}
if(MVMapView._f627)
{
this.t2=new Date();
alert("Time taken to render "+this._f560.name+":"+(this.t2-this.t1)+".\n"+
"wholeImage:"+this._f761()+", clickable:"+(this._f560._f574<=this._f401));
}
this.addTransparentLayer();
this._f581=false;
this.parent._f516();
if(this._f560._f710)
{
this._f560._f710();
}
this.request=null;
}
}
}
_f570.prototype.makeFOIsVisiable=function(){
var x50=true;
for(var x51=0;x51<this.parent._f245.length;x51++)
{
if(!this.parent._f245[x51].zoomControl.hasZoomFinished())
{
x50=false;
break;
}
}
if(x50)
{
this.div.style.display='';
}
else
 {
var x52=this;
setTimeout(function(){x52.makeFOIsVisiable.apply(x52)},70);
}
}
_f570.prototype._f765=function(x53)
{
this.clearTransImageLayer();
this._f572=document.createElement("div");
var x54=this.adjustedRealWidth;
var x55=this.adjustedRealHeight;
MVUtil._f185(this.parent._f473,0,0);
if(this._f560.visible&&this._f560._f153)
this._f572.style.visibility="visible";
else
 this._f572.style.visibility="hidden";
this._f572.style.position="absolute";
this._f572.id=this._f560.name;
var x56=(this._f741-this.minX)*this.parent._f52;
var x57=(this.maxY-this._f744)*this.parent._f53;
var x58=(this.parent._f191-this._f192)*this.parent._f52;
var x59=(this.parent._f194-this._f195)*this.parent._f53;
MVUtil._f185(this._f572,this._f199-this.parent._f251-x58+x56,
this._f200-this.parent._f252+x59+x57);
this._f572.style.zIndex=this.div.style.zIndex;
var x60=_f15._f126+"transparent.gif";
if(this._f560._f574>this._f401)
return ;
if(_f15._f86=="IF"&&
(!this._f89()||this._f761()||
!this._f560._f717))
{
var x61=document.createElement("div");
x61.style.zIndex="127";
var x62=document.createElement("img");
x62.width=MVUtil._f250(x54)
x62.height=MVUtil._f250(x55);
x62.style.width=MVUtil._f250(x54);
x62.style.height=MVUtil._f250(x55);
x62.style.border=0;
x62.src=_f15._f126+"transparent.gif";
x62.setAttribute("usemap","#polygonMap"+this._f571,0);
x61.style.position="absolute";
x61.appendChild(x62);
this._f572.appendChild(x61);
}
else
 {
this._f771=document.createElement("img");
this._f771.src=x60;
this._f771.setAttribute("usemap","#polygonMap"+this._f571);
this._f771.width=x54;
this._f771.height=x55;
this._f771.style.width=MVUtil._f250(x54);
this._f771.style.height=MVUtil._f250(x55);
this._f771.style.border=0;
this._f572.appendChild(this._f771);
}
this._f749=document.createElement("map");
this._f749.setAttribute("name","polygonMap"+this._f571);
this._f749.setAttribute("id","polygonMap"+this._f571);
this._f572.setAttribute("theme",this._f560.name);
if(_f15._f86=="SF")
{
this._f571++;
}
this._f572.appendChild(this._f749);
}
_f570.prototype.addTransparentLayer=function()
{
if(this._f572)
{
this.parent._f473.style.zIndex=Math.max(MVUtil.getZIndex(this.div)+1,MVUtil.getZIndex(this.parent._f473));
this.parent._f473.appendChild(this._f572);
}
}
var _f772=0;
_f570.prototype.setTimeout=function(_f207,_f208)
{
var Ie="tempVar"+_f772;
_f772++;
eval(Ie+" = this;");
var oi=_f207.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f208);
}
_f570.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f570.prototype._f773=function(x63)
{
this._f551=0;
this.result=x63;
this.startDisplayGroupFoi();
}
_f570.prototype.startDisplayGroupFoi=function()
{
for(var x64=0;x64<180;x64++)
{
if(this._f551<this.result.foiarray.length)
{
this.result.foiarray[this._f551].attrnames=this.result.attrnames;
this._f580(this.result.foiarray[this._f551]);
this._f551++;
}
else
 {
return;
}
}
this.setTimeout("this.startDisplayGroupFoi()",2);
}
_f570.prototype._f580=function(x65,x66)
{
if(!(this._f560._f717)&&(x66)&&(x66.node))
{
node=x66.node;
x65._f656=x66._f656;
x66.shown=false;
}
if(this._f761()||x65.imgurl||x65.area||
this._f560.getFOIMarker())
{
x65.imgurl4Hilite=null;
x65.highlightImageWidth=x65.hiliteMW;
x65.highlightImageHeight=x65.hiliteMH;
x65.pngType4Hilite=true;
x65.normalPngType4Hilite=false;
x65.hilitePngType4Hilite=false;
x65.recalSizePos4Hilite=false;
if(this._f573==1&&this._f560._f730)
x65.imgurl4Hilite=x65.hiliteImgPref;
if(x65.highlightImageWidth&&x65.highlightImageHeight
&&(x65.width)&&(x65.height)
&&((x65.width!=x65.highlightImageWidth)
||(x65.height!=x65.highlightImageHeight)))
x65.recalSizePos4Hilite=true;
var x67=this;
var x68=null;
if(!this._f761()&&this._f560._f717)
{
if(!(x65.imgurl4Hilite)&&x65.imgurl&&x65.hiliteImgPref)
{
var x69=x65.imgurl.lastIndexOf("/");
if(x69!=-1)
{
x65.imgurl4Hilite=x65.imgurl.substring(0,(x69+1))+x65.hiliteImgPref+x65.imgurl.substr((x69+1));
}
}
if(this._f560.getFOIMarker())
{
x65.imgurl=this._f560.getFOIMarker()._f147;
x65.width=this._f560.getFOIMarker().width;
x65.height=this._f560.getFOIMarker().height;
}
var x70=x65.imgurl.toLowerCase().indexOf('.png')==-1?false:true;
x65.normalPngType4Hilite=x70;
if(x65.imgurl4Hilite)
x65.hilitePngType4Hilite=x65.imgurl4Hilite.toLowerCase().indexOf('.png')==-1?false:true;
x65.pngType4Hilite=(x65.normalPngType4Hilite)?true:(x65.hilitePngType4Hilite);
if((x66)&&(x66.node))
{
x68=x66.node;
x65._f656=x66._f656;
}
else
 {
if((this._f89()&&x70)||
(x67._f560._f711&&x65.gtype%10==1)||x67._f560._f711)
x68=document.createElement('div');
else
 x68=document.createElement('img');
}
x65.node=x68;
x68.className="noprint";
MVUtil._f413(x68);
x68.style.position="absolute";
if(_f15._f86=="IF"&&!x67._f560._f711)
{
x68.style.width=MVUtil._f250(x65.width);
x68.style.height=MVUtil._f250(x65.height);
}
if(x65.id&&x65.id!=null)
x68.id=x65.id;
x68._f247=x65.x;
x68._f248=x65.y;
var x71=(this.parent._f191-this._f192)*this.parent._f52;
var x72=(this.parent._f194-this._f195)*this.parent._f53;
var x73=MVUtil._f189(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this._f739,this._f740,x65.x,x65.y);
x73[0]-=x71;
x73[1]+=x72;
x73[0]+=this._f560._f190;
x73[1]+=this._f560._f193;
if(_f15._f86=="IF")
{
x73[1]++;}
else
 {
}
if(x65.height%2==0)
x73[1]--;
if(x65.gtype%10==1)
MVUtil._f185(x68,Math.ceil(x73[0]-x65.width/2.0),Math.ceil(x73[1]-x65.height/2.0));
else
 MVUtil._f185(x68,x73[0],x73[1]);
x68.style.zIndex=160;
}
var x74=MVSdoGeometry.createPoint(0,0);
var x75=x74;
var x76=x67._f560._f165;
var x77=function(x78)
{
x78=(x78)?x78:((window.event)?event:null);
if(x78&&!x76)
{
if(_f15._f86=="IF")
x78.cancelBubble=true;
else if(x78.stopPropagation)
x78.stopPropagation();
}
}
var x79=function(x80)
{
x80=(x80)?x80:((window.event)?event:null);
if(x80&&!x76)
{
MVUtil._f41(x80);
}
}
var x81=function(x82)
{
x65._f656=true;x74=MVUtil._f239(x82);
x79(x82);
}
var x83="";
if(x65.name&&x65.name!="null")
x83=x65.name;
if((_f15._f86=="IF"||_f15._f86=="NS")
&&x67._f560._f152&&x65.name&&x65.name!="null"&&x68)
{
x68.title=x83;
}
if(x65.name)
x65.name=MVUtil._f186(x65.name," ","&nbsp;");
if(x68&&(this._f89()||x65.gtype%10==1)&&
this._f560._f717)
{
this.div.appendChild(x68);
if(!x67._f560._f711)
{
if(this._f89()&&x70)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl+"', sizingMethod='image');";
}
if(!x67._f560._f711)
{
x68.setAttribute("id",x65.id);
x68.src=x65.imgurl;
x68.setAttribute("border",0);
}
}
if(x67._f560._f711)
{
x67._f560._f711(x65);
if(x65.xoffset==undefined||isNaN(x65.xoffset))
x65.xoffset=0;
else
 x65.xoffset=parseInt(x65.xoffset);
if(x65.yoffset==undefined||isNaN(x65.yoffset))
x65.yoffset=0;
else
 x65.yoffset=parseInt(x65.yoffset);
this._f774(x65,x66,x68);
}
var x84=function(x85)
{
var x86=MVUtil.getMouseLocation(x67.parent,x85);
if(x67._f560._f160)
{
var x87=MVSdoGeometry.createPoint(x86.sdo_point.x,x86.sdo_point.y,x67.parent.srid);
x67._f560._f160(x87,x65,MVUtil.getEvent(x85));
}
if(x67._f560._f718&&
!(x67.parent._f210._f267()&&!x67.parent._f210.mouseOver))
{
if(x65.attrs!=null)
{
if(x65.attrs.length>=1&&x67._f560._f270)
{
x67.parent._f210._f274(x65.attrs,x65.attrnames,x65.id,
x65.name,x86.sdo_point.x,x86.sdo_point.y,null,null,
x67._f560,300,true);
}
}
}
if(x67._f560._f162)
{
x68.style.zIndex=161;
}
if(!x68.title&&x65.name&&x65.name!="null"&&x67._f560._f152)
{
x67.parent._f210.showTextTip(x65.name,x86.sdo_point.x,x86.sdo_point.y);
}
if(x67._f560.enableMouseOverHighlightMode&&x67._f560._f723&&(x65.imgurl4Hilite)){
if(x67._f89()&&x65.pngType4Hilite)
{
if(x65.hilitePngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl4Hilite+"', sizingMethod='image');";
x68.src=x65.imgurl4Hilite;
x68.innerHTML="";
}
else
 {
x68.style.filter=null;
x68.src=null;
x68.innerHTML="<img src=\""+encodeURIComponent(x65.imgurl4Hilite)+"\"/>";
}
}
else
 {
x68.src=x65.imgurl4Hilite;
}
if(x65.recalSizePos4Hilite&&(x65.gtype%10==1))
{
var x88=x73[0]-(x65.highlightImageWidth)/2;
var x89=x73[1]-(x65.highlightImageHeight)/2;
MVUtil._f185(x68,x88,x89);
x68.style.width=MVUtil._f250(x65.highlightImageWidth);
x68.style.height=MVUtil._f250(x65.highlightImageHeight);
}
}
};
var x90=function(x91)
{
if(x67._f560._f161)
{
var x92=MVUtil.getMouseLocation(x67.parent,x91);
var x93=MVSdoGeometry.createPoint(x92.sdo_point.x,x92.sdo_point.y,x67.parent.srid);
x67._f560._f161(x93,x65,MVUtil.getEvent(x91));
}
if(x67._f560._f718&&
!(x67.parent._f210._f267()&&!x67.parent._f210.mouseOver))
{
if(x65.attrs!=null)
{
if(x65.attrs.length>=1&&x67._f560._f270)
{
x67.parent.removeInfoWindow();
}
}
}
x68.style.zIndex=160;
x67.parent._f210._f246();
if(x67._f560.enableMouseOverHighlightMode&&x67._f560._f723&&x65.imgurl4Hilite!=null&&!(x65._f656))
{
if(x67._f89()&&x65.pngType4Hilite)
{
if(x65.normalPngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl+"', sizingMethod='image');";
x68.src=x65.imgurl;
x68.innerHTML="";
}
else
 {
x68.style.filter=null;
x68.src=null;
x68.innerHTML="<img src=\""+encodeURIComponent(x65.imgurl)+"\"/>";
}
}
else
 x68.src=x65.imgurl;
if(x65.recalSizePos4Hilite&&(x65.gtype%10==1))
{
MVUtil._f185(x68,x73[0]-x65.width/2,x73[1]-x65.height/2);
x68.style.width=MVUtil._f250(x65.width);;
x68.style.height=MVUtil._f250(x65.height);
}
}
};
x68.onmouseover=x84;
x68.onmouseout=x90;
if(this._f560._f574<=this._f401)
{
var x94=x65.x;
var x95=x65.y;
var x96=function(x97)
{
if(!x67._f560._f153||x67.parent._f241)
return ;
x75=MVUtil._f239(x97);
x97=(x97)?x97:((window.event)?event:null);
if(x97.button==2)
{
return;
}
if(x74.x==x75.x&&x74.y==x75.y)
{
x67.parent._f242();
if(x67.parent._f241)
return ;
if(x67.parent.getBrowserType()=="NS")
{
x67.parent._f438=null;
}
var x98=MVUtil.getMouseLocation(x67.parent,x97);
if(x67._f560._f158)
{
var x99=MVSdoGeometry.createPoint(x98.sdo_point.x,x98.sdo_point.y,x67.parent.srid);
x67._f560._f158(x99,x65,MVUtil.getEvent(x97));
}
else
 {
if(x65.attrs!=null)
{
if(x65.attrs.length>=1&&x67._f560._f270)
{
x67.parent._f210._f274(x65.attrs,x65.attrnames,x65.id,
x65.name,x98.sdo_point.x,x98.sdo_point.y,null,null,
x67._f560,300);
}
}
}
if(!x67._f560)
{
x79(x97);
return ;
}
if(x67._f560._f723&&x65.imgurl4Hilite!=null)
{
if(!x67._f560._f711)
{
var x100=x67._f560._f725.length;
var x101=x67._f560._f724;
var x102=false;
if(x100>0)
{
var x103=x67._f560._f725;
var x104=x67._f560._f726;
var x105=x67._f560._f727;
var x106=x67._f560._f728;
var x107=null;
var x108=null;
if(x65.id!=null&&x104[x65.id]!=null)
{
x102=true;
}
if(x101==-1||x100<=x101){
var x109=x105.length;
var x110=(x109>x100?true:false);
if(x110)
{
for(var x111=0;x111<x100;++x111)
{
x107=x103[x111];
x107._f656=false;
if(x107==null||x107.imgurl==null||x107.id==null
||x106[x107.id]==null)
continue;
x108=x105[x106[x107.id]];
if(x108==null)
continue;
if(x67._f89()&&x107.pngType4Hilite)
{
if(x107.normalPngType4Hilite)
{
x108.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x107.imgurl+"', sizingMethod='image');";
x108.src=x107.imgurl;
x108.innerHTML="";
}
else
 {
x108.style.filter=null;
x108.src=null;
x108.innerHTML="<img src=\""+encodeURIComponent(x107.imgurl)+"\"/>";
}
}
else
 x108.src=x107.imgurl;
if(x107.recalSizePos4Hilite&&(x107.gtype%10==1))
{
var x112=MVUtil.getNumber(x108.style.left);
var x113=MVUtil.getNumber(x108.style.top);
x112+=(x107.highlightImageWidth-x107.width)/2;
x113+=(x107.highlightImageHeight-x107.height)/2;
MVUtil._f185(x108,x112,x113);
x108.style.width=MVUtil._f250(x107.width);
x108.style.height=MVUtil._f250(x107.height);
}
}
}
else
 {
var x114=null;
for(var x111=0;x111<x109;++x111)
{
x108=x105[x111];
if(x108==null)
continue;
x114=x108.id;
if(x114==null||x104[x114]==null)
continue;
x107=x103[x104[x114]];
x107._f656=false;
if(x107!=null&&x107.imgurl!=null)
{
if(x67._f89()&&x107.pngType4Hilite)
{
if(x107.normalPngType4Hilite)
{
x108.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x107.imgurl+"', sizingMethod='image');";
x108.src=x107.imgurl;
x108.innerHTML="";
}
else
 {
x108.style.filter=null;
x108.src=null;
x108.innerHTML="<img src=\""+encodeURIComponent(x107.imgurl)+"\"/>";
}
}
else
 x108.src=x107.imgurl;
if(x107.recalSizePos4Hilite&&(x107.gtype%10==1))
{
var x112=MVUtil.getNumber(x108.style.left);
var x113=MVUtil.getNumber(x108.style.top);
x112+=(x107.highlightImageWidth-x107.width)/2;
x113+=(x107.highlightImageHeight-x107.height)/2;
MVUtil._f185(x108,x112,x113);
x108.style.width=MVUtil._f250(x107.width);
x108.style.height=MVUtil._f250(x107.height);
}
}
}
}
x67._f560._f725=new Array();
x67._f560._f726=new Object();
x100=0;
}
else if(x101>0)
{
for(var x111=1;x111<=x101;++x111)
{
x107=x103[x100-x111];
x107._f656=false;
if(x107!=null&&x107.id!=null)
{
x104[x107.id]=null;
if(x107.imgurl==null||x106[x107.id]==null)
continue;
x108=x105[x106[x107.id]];
if(x108==null)
continue;
if(x67._f89()&&x107.pngType4Hilite)
{
if(x107.normalPngType4Hilite)
{
x108.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x107.imgurl+"', sizingMethod='image');";
x108.src=x107.imgurl;
x108.innerHTML="";
}
else
 {
x108.style.filter=null;
x108.src=null;
x108.innerHTML="<img src=\""+encodeURIComponent(x107.imgurl)+"\"/>";
}
}
else
 x108.src=x107.imgurl;
if(x107.recalSizePos4Hilite&&(x107.gtype%10==1))
{
var x112=MVUtil.getNumber(x108.style.left);
var x113=MVUtil.getNumber(x108.style.top);
x112+=(x107.highlightImageWidth-x107.width)/2;
x113+=(x107.highlightImageHeight-x107.height)/2;
MVUtil._f185(x108,x112,x113);
x108.style.width=MVUtil._f250(x107.width);
x108.style.height=MVUtil._f250(x107.height);
}
}
}
x67._f560._f725=x103.slice(0,(0-x101));
x100-=x101;
}
}
if(!x102)
{
if(x65.id!=null)
{
var x115=x67._f560._f726[x65.id];
x65._f656=true;
if(x115!=null)
x67._f560._f725[x115]=null;
x67._f560._f726[x65.id]=x100;
x67._f560._f725[x100++]=x65;
}
if(x65.imgurl4Hilite)
{
if(x67._f89()&&x65.pngType4Hilite)
{
if(x65.hilitePngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl4Hilite+"', sizingMethod='image');";
x68.src=x65.imgurl4Hilite;
x68.innerHTML="";
}
else
 {
x68.style.filter=null;
x68.src=null;
x68.innerHTML="<img src=\""+encodeURIComponent(x65.imgurl4Hilite)+"\"/>";
}
}
else
 {
x68.src=x65.imgurl4Hilite;
}
if(x65.recalSizePos4Hilite&&(x65.gtype%10==1))
{
var x116=x73[0]-(x65.highlightImageWidth)/2;
var x117=x73[1]-(x65.highlightImageHeight)/2;
MVUtil._f185(x68,x116,x117);
x68.style.width=MVUtil._f250(x65.highlightImageWidth);
x68.style.height=MVUtil._f250(x65.highlightImageHeight);
}
}
}
else if(x101==0)
{
if(x65.id!=null)
{
var x115=x67._f560._f726[x65.id];
x115._f656=false;
if(x115!=null)
x67._f560._f725[x115]=null;
x67._f560._f726[x65.id]=null;
}
if(x67._f89()&&x65.pngType4Hilite)
{
if(x65.normalPngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl+"', sizingMethod='image');";
x68.src=x65.imgurl;
x68.innerHTML="";
}
else
 {
x68.style.filter=null;
x68.src=null;
x68.innerHTML="<img src=\""+encodeURIComponent(x65.imgurl)+"\"/>";
}
}
else
 x68.src=x65.imgurl;
if(x65.recalSizePos4Hilite&&(x65.gtype%10==1))
{
MVUtil._f185(x68,x73[0]-x65.width/2,x73[1]-x65.height/2);
x68.style.width=MVUtil._f250(x65.width);;
x68.style.height=MVUtil._f250(x65.height);
}
}
}
}
}
x79(x97);
};
var x118=function(x119)
{
if(!x67._f560._f153)
return ;
if(x67._f560._f159)
{
var x120=MVUtil.getMouseLocation(x67.parent,x119);
var x121=MVSdoGeometry.createPoint(x120.sdo_point.x,x120.sdo_point.y,x67.parent.srid);
x67._f560._f159(x121,x65,MVUtil.getEvent(x119));
}
x79(x119);
};
if(this._f560._f574<=this._f401)
{
x68.onmousedown=x81;
x68.onmouseup=x96;
x68.oncontextmenu=x118;
}
}
if(this._f560._f574<=this._f401)
{
x68.ondblclick=x79;
x68.onclick=x77;
x68.onkeyup=x77;
}
else
 {
x68.onmousedown=null;
x68.onmouseup=null;
x68.oncontextmenu=null;
x68.ondblclick=null;
x68.onclick=null;
x68.onkeyup=null;
}
MVUtil._f253(x68);
}
else {
var x122=x83;
var x123=Math.floor((x65.x-this.minX)*this.parent._f52+0.5);
var x124=Math.floor((this.maxY-x65.y)*this.parent._f53+0.5);
var x125="";
if(this._f560._f574<=this._f401)
{
var x126=null;
if((x66)&&(x66.areaNode))
{
x65._f656=x66._f656;
}
x126=document.createElement("area");
MVUtil._f182(x126,this._f560.cursorStyle);
x65.areaNode=x126;
this._f738=true;
x126.setAttribute("border",0);
if(_f15._f86!="OS")
{
x126.setAttribute("title",x122);
x126.setAttribute("href","javascript:void(0)");
}
if(x65.gtype%10==1)
{
var x73=MVUtil._f189(this.parent,this._f741,this._f742,
this._f743,this._f744,
this.adjustedRealWidth,this.adjustedRealHeight,
x65.x,x65.y);
x73[0]+=this.parent._f251+this._f560._f190;
x73[1]+=this.parent._f252+this._f560._f193;
x126.setAttribute("shape","rect");
var x127=(x73[0]-x65.width/2)+","+(x73[1]-x65.height/2)+","+
(x73[0]+x65.width/2)+","+(x73[1]+x65.height/2);
x126.setAttribute("coords",x127);
}
else
 {
var x128="";
if(typeof(x65.area)=='undefined')
x128="0,0";
else
 {
x128=x65.area;
if(x67._f560._f711&&!this._f761())
{
x67._f560._f711(x65);
if(x65.xoffset==undefined||isNaN(x65.xoffset))
x65.xoffset=0;
else
 x65.xoffset=parseInt(x65.xoffset);
if(x65.yoffset==undefined||isNaN(x65.yoffset))
x65.yoffset=0;
else
 x65.yoffset=parseInt(x65.yoffset);
if(x65.xoffset!=0||x65.yoffset!=0)
{
var x129=x128.split(",");
x128="";
for(var x130=0;x130<x129.length;x130++){
x129[x130]=parseInt(x129[x130])+x65.xoffset;
x129[x130+1]=parseInt(x129[x130+1])+x65.yoffset;
x128+=x129[x130]+","+x129[++x130]+",";
}
if(x128.length>0)
x128=x128.substring(0,x128.length-1);
}
}
}
x126.setAttribute("shape","poly");
x126.setAttribute("coords",x128);
}
var x131=function(x132)
{
if(!x67._f560._f153)
return;
if(x67._f560._f159)
{
var x133=MVUtil.getMouseLocation(x67.parent,x132);
var x134=MVSdoGeometry.createPoint(x133.sdo_point.x,x133.sdo_point.y,x67.parent.srid);
x67._f560._f159(x134,x65,MVUtil.getEvent(x132));
}
x79(x132);
};
var x135=function(x136)
{
if(!x67._f560._f153||x67.parent._f241)
return ;
x75=MVUtil._f239(x136);
x136=(x136)?x136:((window.event)?event:null);
if(x136.button==2)
{
if(_f15._f86=='IF')
x131(x136);
return false;
}
if((x74.x==x75.x&&x74.y==x75.y))
{
x67.parent._f242();
if(x67.parent.getBrowserType()=="NS")
{
x67.parent._f438=null;
}
if(x67._f560._f158)
{
var x137=MVUtil.getMouseLocation(x67.parent,x136);
var x138=MVSdoGeometry.createPoint(x137.sdo_point.x,x137.sdo_point.y,x67.parent.srid);
x67._f560._f158(x138,x65,MVUtil.getEvent(x136));
}
else
 {
if(x65.attrs!=null)
{
if(x65.attrs.length>=1&&x67._f560._f270)
{
var x137=MVUtil.getMouseLocation(x67.parent,x136);
x67.parent._f210._f274(x65.attrs,x65.attrnames,
x65.id,x65.name,x137.sdo_point.x,x137.sdo_point.y,null,null,
x67._f560,300);
}
}
}
if(!x67._f560)
{
x79(x136);
return ;
}
if(x67._f560._f723&&x65.imgurl4Hilite!=null)
{
if(!x67._f560._f711)
{
var x139=x67._f560._f725.length;
var x140=x67._f560._f724;
var x141=false;
if(x139>0)
{
var x142=x67._f560._f725;
var x143=x67._f560._f726;
var x144=x67._f560._f727;
var x145=x67._f560._f728;
var x146=null;
var x147=null;
if(x65.id!=null&&x143[x65.id]!=null)
{
x141=true;
}
if(x140==-1||x139<=x140){
var x148=x144.length;
var x149=(x148>x139?true:false);
if(x149)
{
for(var x150=0;x150<x139;++x150)
{
x146=x142[x150];
x146._f656=false;
if(x146==null||x146.id==null
||x145[x146.id]==null)
continue;
x147=x144[x145[x146.id]];
if(x147==null)
continue;
if(x146.imgurl!=null)
{
if(x67._f89()&&x146.pngType4Hilite)
{
x147.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x146.imgurl+"', sizingMethod='image');";
}
x147.src=x146.imgurl;
}
else
 {
x144.splice(x145[x146.id],1);
x145[x146.id]=null;
}
}
}
else
 {
var x151=null;
for(var x150=0;x150<x148;++x150)
{
x147=x144[x150];
if(x147==null)
continue;
x151=x147.id;
if(x151==null||x143[x151]==null)
continue;
x146=x142[x143[x151]];
x146._f656=false;
if(x146!=null&&x146.imgurl!=null)
{
if(x67._f89()&&x146.pngType4Hilite)
{
x147.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x146.imgurl+"', sizingMethod='image');";
}
x147.src=x146.imgurl;
}
else
 {
x144.splice(x145[x151],1);
x145[x151]=null;
}
}
}
x67._f560._f725=new Array();
x67._f560._f726=new Object();
x139=0;
}
else if(x140>0)
{
for(var x150=1;x150<=x140;++x150)
{
x146=x142[x139-x150];
x146._f656=false;
if(x146!=null&&x146.id!=null)
{
x143[x146.id]=null;
x147=x144[x145[x146.id]];
if(x147==null)
continue;
if(x146.imgurl!=null)
{
if(x67._f89()&&x146.pngType4Hilite)
{
x147.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x146.imgurl+"', sizingMethod='image');";
}
x147.src=x146.imgurl;
}
else
 {
x144.splice(x145[x146.id],1);
x145[x146.id]=null;
}
}
}
x67._f560._f725=x142.slice(0,(0-x140));
x139-=x140;
}
}
if(!x141)
{
if(x65.id!=null)
{
var x152=x67._f560._f726[x65.id];
x65._f656=true;
if(x152!=null)
x67._f560._f725[x152]=null;
x67._f560._f726[x65.id]=x139;
x67._f560._f725[x139++]=x65;
}
if(x68!=null&&(x65.imgurl4Hilite))
{
if(x67._f89()&&x65.pngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl4Hilite+"', sizingMethod='image');";
}
x68.src=x65.imgurl4Hilite;
}
}
else if(x140==0)
{
if(x65.id!=null)
{
var x152=x67._f560._f726[x65.id];
x152._f656=false;
if(x152!=null)
x67._f560._f725[x152]=null;
x67._f560._f726[x65.id]=null;
}
if(x67._f89()&&x65.pngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl+"', sizingMethod='image');";
}
x68.src=x65.imgurl;
}
}
}
}
x79(x136);
};
var x153=function(x154)
{
if(!x67._f560._f153)
return ;
var x155=MVUtil.getMouseLocation(x67.parent,x154);
if(x67._f560._f160)
{
var x156=MVSdoGeometry.createPoint(x155.sdo_point.x,x155.sdo_point.y,x67.parent.srid);
x67._f560._f160(x156,x65,MVUtil.getEvent(x154));
}
if(x67._f560._f718&&
!(x67.parent._f210._f267()&&!x67.parent._f210.mouseOver))
{
if(x65.attrs!=null)
{
if(x65.attrs.length>=1&&x67._f560._f270)
{
x67.parent._f210._f274(x65.attrs,x65.attrnames,x65.id,
x65.name,x155.sdo_point.x,x155.sdo_point.y,null,null,
x67._f560,300,true);
}
}
}
if(!x126.title&&x65.name&&x65.name!="null"&&x67._f560._f152)
{
x67.parent._f210.showTextTip(x65.name,x155.sdo_point.x,x155.sdo_point.y);
}
if(x68!=null&&x67._f560.enableMouseOverHighlightMode&&(x65.imgurl4Hilite))
{
if(x67._f89()&&x65.pngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl4Hilite+"', sizingMethod='image');";
}
x68.src=x65.imgurl4Hilite;
}
};
var x157=function(x158)
{
if(!x67._f560._f153)
return ;
if(x67._f560._f161)
{
var x159=MVUtil.getMouseLocation(x67.parent,x158);
var x160=MVSdoGeometry.createPoint(x159.sdo_point.x,x159.sdo_point.y,x67.parent.srid);
x67._f560._f161(x160,x65,MVUtil.getEvent(x158));
}
if(x67._f560._f718&&
!(x67.parent._f210._f267()&&!x67.parent._f210.mouseOver))
{
if(x65.attrs!=null)
{
if(x65.attrs.length>=1&&x67._f560._f270)
{
x67.parent.removeInfoWindow();
}
}
}
x67.parent._f210._f246();
if(x68!=null&&x67._f560.enableMouseOverHighlightMode&&!(x65._f656))
{
if(x67._f89()&&x65.pngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl+"', sizingMethod='image');";
}
x68.src=x65.imgurl;
}
};
x126.onmousedown=x81;
x126.onmouseup=x135;
x126.onmouseover=x153;
x126.onmouseout=x157;
if(_f15._f86=='NS'||_f15._f86=='SF')
x126.oncontextmenu=x131;
else
 x126.oncontextmenu=function(){return false;};
x126.ondblclick=x79;
x126.onclick=x77;
x126.onkeyup=x77;
MVUtil._f253(x126);
this._f749.appendChild(x126);
}
else
 {
x126.onmousedown=null;
x126.onmouseup=null;
x126.onmouseover=null;
x126.onmouseout=null;
x126.oncontextmenu=null;
x126.ondblclick=null;
x126.onclick=null;
x126.onkeyup=null;
}
if(x68)
{
MVUtil._f185(x68,x73[0],x73[1]);
x68.style.position="absolute";
x68.style.width=MVUtil._f250(x65.width);
x68.style.height=MVUtil._f250(x65.height);
x68.id=x65.id;
if(x67._f560._f711)
this._f774(x65,x66,x68);
else
 x68.src=x65.imgurl;
x68.style.zIndex=125;
this.div.appendChild(x68);
}
}
if(x68!=null&&x68.id!=null)
{
var x69=null;
if((x69=x67._f560._f726[x68.id])!=null)
{
x67._f560._f725[x69]=x65;
if(x65.imgurl4Hilite)
{
if(x67._f89()&&x65.pngType4Hilite)
{
if(x65.hilitePngType4Hilite)
{
x68.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x65.imgurl4Hilite+"', sizingMethod='image');";
x68.src=x65.imgurl4Hilite;
x68.innerHTML="";
}
else
 {
x68.style.filter=null;
x68.src=null;
x68.innerHTML="<img src=\""+encodeURIComponent(x65.imgurl4Hilite)+"\"/>";
}
}
else
 x68.src=x65.imgurl4Hilite;
if(x65.recalSizePos4Hilite&&(x65.gtype%10==1))
{
var x161=x73[0]-(x65.highlightImageWidth)/2;
var x162=x73[1]-(x65.highlightImageHeight)/2;
MVUtil._f185(x68,x161,x162);
x68.style.width=MVUtil._f250(x65.highlightImageWidth);
x68.style.height=MVUtil._f250(x65.highlightImageHeight);
}
}
}
x67._f560._f728[x68.id]=x67._f560._f727.length;
x67._f560._f727.push(x68);
}
}
}
_f570.prototype.destroy=function()
{
this._f222();
if(this.request)
{
this.request.onreadystatechange=function(){};
this.request.abort();
this.request=null;
}
if(this._f560._f714&&this._f560._f714.foiarray)
{
while(this._f560._f714.foiarray.length>0)
{
var x163=this._f560._f714.foiarray.pop();
if(x163.node)
x163.node=null;
if(x163.areaNode)
x163.areaNode=null;
}
}
this._f560._f714=null;
this._f560=null;
this.parent.div.removeChild(this.div);
this.div=null;
this.parent._f516();
this.parent=null;
this._f749=null;
this._f572=null;
this._f771=null;
}
_f570.prototype.adjustBBox=function(x164)
{
var x165=false;
var x166=this.parent.msi.mapConfig.coordSys;
if(!x164&&this.minX<x166.minX)
{
this._f741=x166.minX;
x165=true;
}
else
 this._f741=this.minX;
if(!x164&&this.maxX>x166.maxX)
{
this._f743=x166.maxX;
x165=true;
}
else
 this._f743=this.maxX;
if(!x164&&this.minY<x166.minY)
{
this._f742=x166.minY;
x165=true;
}
else
 this._f742=this.minY;
if(!x164&&this.maxY>x166.maxY)
{
this._f744=x166.maxY;
x165=true;
}
else
 this._f744=this.maxY;
this.adjustedRealWidth=Math.round(this._f739*
(this._f743-this._f741)/(this.maxX-this.minX));
this.adjustedRealHeight=Math.round(this._f740*
(this._f744-this._f742)/(this.maxY-this.minY));
}
_f570.prototype._f754=function(x167)
{
if(!x167||x167.indexOf("<themes>")<0)
return x167;
return x167.substring(x167.indexOf("<themes>")+8,x167.indexOf("</themes>"));
}
_f570.prototype._f766=function(x168)
{
this._f579(true);
var x169=(this._f741-this.parent._f495)*this.parent._f52;
var x170=-(this._f744-this.parent._f496)*this.parent._f53;
x169=x169-MVUtil._f183(this.div)+this._f560._f190;
x170=x170-MVUtil._f184(this.div)+this._f560._f193;
var x171=MVUtil._f407(x168,true);
x171.style.width=MVUtil._f250(this.adjustedRealWidth);
x171.style.height=MVUtil._f250(this.adjustedRealHeight);
x171.style.position="absolute";
MVUtil._f185(x171,x169,x170);
this.wholeImage=x171;
this.div.appendChild(x171);
}
_f570.prototype._f751=function(x172)
{
var x173="request=getthemeid";
var x174=(this._f560._f67.indexOf(_f15._f141())<0&&
MVUtil._f101(this._f560._f67)==MVUtil._f101(_f15._f102()));
var x175=x174||MVMapView._f103;
var x176=null;
var x177=this;
var x178=function()
{
if(x176.readyState==4&&x176.status==200)
{
x177.themeId=x176.responseText;
if(x177.themeId.lastIndexOf("\n")==x177.themeId.length-1)
x177.themeId=x177.themeId.substr(0,x177.themeId.length-1);
if(x177.themeId&&x177.themeId.indexOf("MAPVIEWER-06011")>=0)
{
x177.abortionSupported=false;
}
if(x172)
x172();
x176=null;
}
}
try
{
x176=MVUtil.getXMLHttpRequest(x175);
x176.onreadystatechange=x178;
x176.open("POST",this._f560._f67,true);
x176.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
x176.send(x173);
}
catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
}
}
_f570.prototype.abort=function()
{
if(!this.abortionSupported)
return ;
var x179="request=abort&tid="+this.themeId;
var x180=(this._f560._f67.indexOf(_f15._f141())<0&&
MVUtil._f101(this._f560._f67)==MVUtil._f101(_f15._f102()));
var x181=x180||MVMapView._f103;
var x182=null;
var x183=this;
this._f753=true;
try
{
x182=MVUtil.getXMLHttpRequest(x181);
x182.open("POST",this._f560._f67,true);
x182.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
x182.send(x179);
x182=null;
}
catch(e)
{
if(e.name)
MVi18n.processLocale("MAPVIEWER-5500","Error name: "+e.name+". Error message: "+e.message);
else
 MVi18n.processLocale("MAPVIEWER-5500",e);
}
}
_f570.prototype._f737=function()
{
if(this._f560._f574<=this._f401&&this._f560._f153)
MVUtil._f182(this.div,this._f560.cursorStyle);
else
 MVUtil._f182(this.div,"default");
}
_f570.prototype._f774=function(x184,x185,x186)
{
if(x185!=null&&x185.layoutListenerDiv!=null){
x186.removeChild(x185.layoutListenerDiv);
MVUtil._f221(x185.layoutListenerDiv);
}
var x187=document.createElement("div");
x187.style.position="absolute";
var x188=this;
var x189=x184.xoffset+x188._f560._f190;
var x190=x184.yoffset+x188._f560._f193;
x187.style.left=MVUtil._f250(x189);
x187.style.top=MVUtil._f250(x190);
x187.style.padding=MVUtil._f250(0);
x187.innerHTML=""+x184.html+"";
x186.appendChild(x187);
x184.layoutListenerDiv=x187;
}
function _f260(x0,x1,x2)
{
this.minX;
this.minY;
this.maxX;
this.maxY;
this.width=x0._f55();
this.height=x0._f57();
this.parent=x0;
this._f261=null;
this.div=document.createElement("div");
this.div.style.position="absolute";
this.div.style.zIndex="3000";
this.parent._f262.appendChild(this.div);
this._f152=document.createElement("div");
this._f152.style.position="absolute";
this._f152.style.backgroundColor="#FFFFDF";
this._f152.style.border="inset black 1px";
this._f152.style.visibility="hidden";
this._f152.style.zIndex="1200";
this.parent.div.appendChild(this._f152);
MVUtil._f185(this._f152,0,0);
this._f211=new Array(0);
this._f165=false;
this.mouseOver=false;
}
_f260.prototype.enableEventPropagation=function(x0)
{
this._f165=x0;
}
_f260.prototype._f263=function()
{}
_f260.prototype._f246=function()
{
this._f152.style.visibility='hidden';
}
_f260.prototype.refresh=function(x1,x2,x3,x4,x5,x6)
{
MVUtil._f185(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._f211.length;x7++)
{
var x8=MVUtil._f264(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,this._f211[x7].winX,this._f211[x7].winY);
this._f211[x7].style.visibility="hidden";
MVUtil._f185(this._f211[x7],x8.x,x8.y);
if(this._f211[x7].winX>=this.parent._f236&&this._f211[x7].winX<=this.parent._f265&&
this._f211[x7].winY>=this.parent._f266&&this._f211[x7].winY<=this.parent._f237)
this._f211[x7].style.visibility="visible";
}
}
_f260.prototype._f218=function()
{
return this.div;
}
_f260.prototype.showTextTip=function(x9,x10,x11)
{
this._f152.innerHTML=x9;
if(_f15._f86=="NS"&&navigator.userAgent.toLowerCase().indexOf("netscape")>0)
{
var x12=MVUtil._f186(x9.toLowerCase(),"&nbsp;"," ").length;
this._f152.style.width=MVUtil._f250(x12*8+8);
}
var x13=MVUtil._f264(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x10,x11);
MVUtil._f185(this._f152,x13.x+10,x13.y+5);
this._f152.style.visibility="visible";
}
_f260.prototype._f267=function()
{
return this._f211.length>0;
}
_f260.prototype._f156=function(id,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24)
{
if(MVInfoWindowStyle1._f268)
{
clearTimeout(MVInfoWindowStyle1._f268);
MVInfoWindowStyle1._f268=null;
}
if(x19==null||x19=="")
{
x19=_f15._f81;
}
if(x21)
this.mouseOver=true;
else
 this.mouseOver=false;
this._f246();
var x25=this.parent;
if(!x16)
return ;
var x26=0;
for(;x26<this._f211.length;x26++)
{
if(id&&this._f211[x26].nid==id){
this.deleteInfoWindow(this._f211[x26]);
return ;
}
}
if(this._f211.length>0)
this.deleteInfoWindow(this._f211[0]);
var x27=document.createElement("div");
var x28=this;
var x29=function(x30)
{
x30=(x30)?x30:((window.event)?event:null);
var x31=!x28._f165;
if(x30&&!x28._f165)
{
if(_f15._f86=="IF")
x30.cancelBubble=true;
else if(x30.stopPropagation)
x30.stopPropagation();
}
}
var x32=function(x33)
{
x25._f271=true;
x29(x33);
}
var x34=function(x35)
{
x25._f271=false;
x29(x35);
}
x27.id="mvinfodiv";
x27.onmousedown=MVUtil._f61(x27,x29);
x27.onmouseup=MVUtil._f61(x27,x29);
x27.onmouseover=MVUtil._f61(x27,x32);
x27.onmouseout=MVUtil._f61(x27,x34);
x27.ondblclick=MVUtil._f61(x27,x29);
x27.onclick=MVUtil._f61(x27,x29);
x27.onkeyup=MVUtil._f61(x27,x29);
if(_f15._f86=="OS")
x27.onkeypress=MVUtil._f61(x27,x29);
else
 x27.onkeydown=MVUtil._f61(x27,x29);
var x36=MVUtil._f264(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._f81)
{
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._f261=null;
this._f261=new _f272(x27,0,0,x16,x17,x18,x19,x25,x21,this,x36,x22,x23);
this._f211.push(x27);
x27.nid=id;
x27.winX=x14;
x27.winY=x15;
MVUtil._f185(x27,x36.x,x36.y);
x27.style.direction="ltr";
x27.style.visibility="visible";
x27.style.zIndex="1200";
x27.style.width=MVUtil._f250(0);
x27.style.height=MVUtil._f250(0);
if(!x21)
{
var x42=0;var x43=0;
if(x19==_f15._f81)
{
var x38=document.getElementById("infowindow3table");
if(x38!=null)
{
x17=x38.offsetWidth;
x38.style.width=MVUtil._f250(x17);
x18=x38.offsetHeight;
x42=MVUtil._f183(x38);
x43=MVUtil._f184(x38);
}
}
if(x24&&x19=="MVInfoWindowStyle1")
return ;
var x44=x17;
var x45=x18;
var x46=this.parent._f251+x36.x+x42;
var x47=this.parent._f252+x36.y+x43;
var x48=0;
var x49=0;
if(x46<0)
{
if(this.parent._f251+x36.x<x46)
x48=this.parent._f251+x36.x-10;
else
 x48=x46;
}
else if(this.parent._f251+x36.x<0)
x48=this.parent._f251+x36.x-10;
else if(x46+x44>this.width)
{
if(this.parent._f251+x36.x>x46+x44)
x48=this.parent._f251+x36.x-this.width+10;
else
 x48=x46+x44-this.width;
}
else if(this.parent._f251+x36.x>this.width)
x48=this.parent._f251+x36.x-this.width+10;
if(x47<0)
{
if(this.parent._f252+x36.y<x47)
x49=this.parent._f252+x36.y-10;
else
 x49=x47;
}
else if(this.parent._f252+x36.y<0)
x49=this.parent._f252+x36.y-10;
else if(x47+x45>this.height)
{
if(this.parent._f252+x36.y>this.height)
x49=this.parent._f252+x36.y-this.height+10;
else
 x49=x47+x45-this.height;
}
else if(this.parent._f252+x36.y>this.height)
x49=this.parent._f252+x36.y-this.height+10;
if(x20)
this.setTimeout("this.parent.smoothScroll("+x48+","+x49+")",x20);
else
 this.parent.smoothScroll(x48,x49);
}
}
_f260.prototype._f243=function(x50,x51,x52,x53,x54,x55,x56,x57,x58)
{
if(x51.length==0)
return;
if(x54&&x55)
{
this._f156(x51,x52,x53,x50,x54,x55,x56,null,null,x57,x58,true);
}
else
 this._f156(x51,x52,x53,x50,_f15._f104,_f15._f105,x56,null,null,x57,x58,true);
}
_f260.prototype._f273=function(x59,x60,x61,x62,x63,x64,x65)
{
var x66=new Array(4);
if(!x60)
x60="null";
x60=MVUtil._f186(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._f97(x61[x73]));
x69=x69+"<tr bgcolor="+x74+">";
if(x62!=null)
{
var x76="";
if(x62[x73]==null)
x76="&nbsp;";
else
 x76=this.replaceWhiteSpace(MVUtil._f97(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;
}
_f260.prototype._f274=function(x78,x79,x80,x81,x82,x83,
x84,x85,x86,x87,
x88)
{
var x89=x86._f275;
var x90=x86._f276?x86._f276:_f15._f81;
var x91=x86._f277;
var x92=x86._f278;
var x93=x86._f170;
if(x80.length==0&&x81.length==0)
return ;
if(x84&&x85)
{
this._f156(x80,x82,x83,x78,x84,x85,x90,x87,x88,x92,x93,true);
}
else
 {
var x94=this._f273(x80,x81,x78,x79,x89,x90=="MVInfoWindowStyle1"&&x91,x90);
if(x94[1]>0&&x94[2]>0||x90=="MVInfoWindowStyle1")
{
this._f156(x80,x82,x83,x94[0],x94[1],x94[2],x90,x87,x88,x92?x92:x94[3],x93,true);
}
else
 this._f156(x80,x82,x83,x94[0],_f15._f104,
_f15._f105,x90,x87,x88,x92?x92:x94[3],x93,true);
}
}
_f260.prototype._f279=function(x95,x96,x97,x98,x99,x100,x101,x102)
{
this._f156("",x96,x97,x95,x98,x99,x100,null,null,x101,x102)
}
_f260.prototype.deleteInfoWindow=function(x103)
{
if(MVInfoWindowStyle1._f268)
{
clearTimeout(MVInfoWindowStyle1._f268);
MVInfoWindowStyle1._f268=null;
}
var x104=0;
for(x104=0;x104<this._f211.length;x104++)
{
if(this._f211[x104]==x103){
this._f211.splice(x104,1);
}
}
MVUtil._f280(x103);
MVUtil._f224(x103);
this.div.removeChild(x103);
this.parent._f271=false;
}
_f260.prototype.setTimeout=function(_f207,_f208)
{
var Ie="tempVar"+_f209;
_f209++;
eval(Ie+" = this;");
var oi=_f207.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f208);
}
_f260.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f260.prototype.scrollInfoLayer=function()
{
for(var x105=0;x105<this._f211.length;x105++)
{
document.getElementById("message").innerHTML+=this._f211[x105].winX+','+this._f211[x105].winY+":"+this.parent._f236+','+this.parent._f266+','+this.parent._f265+','+this.parent._f237+"<br>";
if(this._f211[x105].winX<this.parent._f236||this._f211[x105].winX>this.parent._f265||
this._f211[x105].winY<this.parent._f266||this._f211[x105].winY>this.parent._f237)
this._f211[x105].style.visibility="hidden";
else
 this._f211[x105].style.visibility="visible";
}
}
_f260.prototype.replaceWhiteSpace=function(x106)
{
x106=x106.replace(" ","&nbsp;");
return MVUtil._f186(x106,"  "," &nbsp;");
}
_f260.prototype.destroy=function()
{
MVUtil._f224(this.div);
MVUtil._f224(this._f152);
this._f152=null;
this.div=null;
if(this._f211&&this._f211.length>0)
this._f211.pop();
}
function MVFOI(x0,x1,x2,x3,x4,x5)
{
if(!x0||x0.length==0)
{
MVi18n.processLocale("MAPVIEWER-5503");
return null;
}
this.parent="";
this.id=MVUtil._f97(x0);
this._f146=x1;
this.gtype=x1.getGType();
this.style=x2;
this._f67=x3;
this._f147="";
this._f148=null;
this.html="";
this._f149="";
this._f150="";
this.area="";
this._f69=null;
this._f151=new Array(4);
this._f152=null;
this.width=0;
this.height=0;
this._f153=true;
this.visible=true;
this._f154=false;
this._f155=false;
this._f156=true;
this._f157=true;
this._f158=null;
this._f159=null;
this._f160=null;
this._f161=null
this._f162=true;
this._f163=0;
this._f164=0;
this._f165=true;
this.cursorStyle=null;
this._f166=null;
this._f167=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._f168=null;
this._f169=null;
this._f170=null;
this._f45=100;
this._f171=100;
this._f172=null;
this.bgColor=null;
}
MVFOI.prototype.setHTMLElement=function(x0,x1,x2)
{
this.html=x0;
if(x1)
this._f149=x1;
if(x2)
this._f150=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._f158=x15;
}
else if(x14=="mouse_right_click")
{
this._f159=x15;
}
else if(x14=="mouse_over")
{
this._f160=x15;
}
else if(x14=="mouse_out")
{
this._f161=x15;
}
if(this._f154)
{
this._f166._f173(this);
}
}
MVFOI.prototype.setBringToTopOnMouseOver=function(x16)
{
this._f162=x16;
}
MVFOI.prototype.setTopFlag=function(x17)
{
this._f155=x17;
}
MVFOI.prototype.enableInfoWindow=function(x18)
{
this._f156=x18;
}
MVFOI.prototype.enableInfoTip=function(x19)
{
this._f157=x19;
}
MVFOI.prototype.setFOIOrds=function(x20)
{
this._f69=MVUtil._f97(x20).toUpperCase();
}
MVFOI.prototype.setFOIGtype=function(x21)
{
this.gtype=x21;
}
MVFOI.prototype.setVisible=function(x22)
{
this.visible=x22;
this.parent._f174._f175(this,x22);
}
MVFOI.prototype.isVisible=function()
{
return this.visible;
}
MVFOI.prototype.getId=function()
{
return this.id;
}
MVFOI.prototype.setClickable=function(x23)
{
this._f153=x23;
}
MVFOI.prototype.setInfoTip=function(x24)
{
if(x24)
this._f153=true;
this._f152=x24;
}
MVFOI.prototype.setInfoWindow=function(x25,x26,x27,x28,x29,x30)
{
this._f148=x25;
this._f163=x26;
this._f164=x27;
this._f168=x28;
this._f169=x29;
this._f170=x30;
}
MVFOI.prototype.enableEventPropagation=function(x31)
{
this._f165=x31;
}
MVFOI.prototype.setZIndex=function(x32)
{
this._f45=x32;
if(this.node)
this.node.zIndex=x32;
}
MVFOI.prototype.setImageFormat=function(x33,x34)
{
if(x33)
{
this._f172=x33.toUpperCase();
if(this._f172=="PNG8"&&x34)
this.bgColor=x34;
}
}
MVFOI.prototype.getMBR=function()
{
var x35=new Array(4);
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
x35[0]=parseFloat(this._f69[4]);
x35[1]=parseFloat(this._f69[3])-
(parseFloat(this._f69[0])-parseFloat(this._f69[4]));
x35[2]=parseFloat(this._f69[0]);
x35[3]=parseFloat(this._f69[3]);
}
else
 {
x35[0]=parseFloat(this._f69[0]);
x35[1]=parseFloat(this._f69[1]);
x35[2]=parseFloat(this._f69[0]);
x35[3]=parseFloat(this._f69[1]);
for(var x36=2;x36<this._f69.length;x36=x36+2)
{
if(parseFloat(this._f69[x36])<x35[0])x35[0]=parseFloat(this._f69[x36]);
if(parseFloat(this._f69[x36])>x35[2])x35[2]=parseFloat(this._f69[x36]);
if(parseFloat(this._f69[x36+1])<x35[1])x35[1]=parseFloat(this._f69[x36+1]);
if(parseFloat(this._f69[x36+1])>x35[3])x35[3]=parseFloat(this._f69[x36+1]);
}
}
return x35;
}
MVFOI.prototype._f176=function(x37){
var x38=x37;
var x39="";
var x40=x38.length;
for(var x41=this.elemInfo.length;x41>0;x41=x41-3)
{
var x42=0;
if(this.elemInfo[x41-2]%10==3&&this.elemInfo[x41-1]==3){
for(var x43=0;x43<this.elemInfo[x41-3]-1;x43++)
x42=x38.indexOf(",",x42)+1;
var x44=x42;var x45=x42;if(x41==this.elemInfo.length){
x44=x38.length;
for(var x46=0;x46<2;x46++)
x45=x38.indexOf(",",x45)+1;
x45--;
}
else
 {
for(var x47=0;x47<4;x47++)
{
x44=x38.indexOf(",",x44)+1;
if(x47==1)
x45=x44;
}
x44--;
x45--;
}
x39=x38.substring(x42,x44);
var x48=new Array(4);
var x49=1;
var x50=1;
for(var x51=0;x51<4;x51++){
x50=x39.indexOf(",",x49);
if(x51==3)x50=x39.length;
if(x51==0)x49--;
x48[x51]=x39.substring(x49,x50);
x49=x50+1;
}
var x52=x48[0]+","+x48[3];
var x53=x48[2]+","+x48[1];
this.elemInfo[x41-1]=1;
if(x41==this.elemInfo.length){
x38=x38+","+x53;
}
else
 {
this.elemInfo[x41-3+3]=this.elemInfo[x41-3+3]*1+4;
x38=x38.substring(0,x44)+","+x53+","+
x38.substring(x44+1,x38.length);
}
x38=x38.substring(0,x45)+","+x52+","+
x38.substring(x45+1,x38.length);
}
}
return x38;
}
MVFOI.prototype._f177=function(x54){
var x55=x54[0]+","+x54[1];
var x56="";
for(var x57=this.elemInfo.length;x57>0;x57=x57-3)
{
var x58=this.elemInfo[x57-3]-1;var x59=this.elemInfo[x57]-1;if(x57==this.elemInfo.length)
{
x59=x54.length;}
var x60=x54[x58]+","+x54[x58+1];
var x61="";
var x62=x59-1;
for(var x63=x58;x63<=x62;x63++)
{
x61+=x54[x63]+",";
}
var x64=false;
if(x54[x58]!=x54[x59-1]||x54[x58+1]!=x54[x59])
{
x61+=x60;
x64=true;
}
if(this.elemInfo.length==3)
{
return x61;
}
if(x57==3){
x56=x61+","+x56;
}
else
 {
if(x64)
x61+=","+x55;
else
 x61+=x55;
if(x57==this.elemInfo.length)
{
x56=x61;
}
else
 {
x56=x61+","+x56;
}
}
}
return x56;
}
MVFOI.prototype._f178=function(x65)
{
var x66=new Array(this._f69.length);
var x67=new Array(this._f151[0],this._f151[1],this._f151[2],this._f151[3]);if(x67[0]<x65._f174.minX)x67[0]=x65._f174.minX;
if(x67[1]<x65._f174.minY)x67[1]=x65._f174.minY;
if(x67[3]>x65._f174.maxY)x67[3]=x65._f174.maxY;
var x68=x67[3]-x67[1];
for(var x69=0;x69<this._f69.length;x69++)
{
if(x69%2==0)
{
x66[x69]=Math.floor((this._f69[x69]-x67[0])*x65._f52+0.5);
}
else
 x66[x69]=Math.floor((x68-(this._f69[x69]-x67[1]))*x65._f53+0.5);
}
x67=null;
return x66;
}
function _f179(x0,x1)
{
var x2=new Array(x1[0],x1[1],x1[2],x1[3]);if(x2[0]<x0._f174.minX)x2[0]=x0._f174.minX;
if(x2[1]<x0._f174.minY)x2[1]=x0._f174.minY;
if(x2[3]>x0._f174.maxY)x2[3]=x0._f174.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._f52+0.5);
}
else
 {
x7=Math.floor((x6-(x4+x5*Math.sin((x9*x10)/90)-
x2[1]))*x0._f53+0.5);
}
if(x10==0)x8+=x7;
else
 x8+=","+x7;
}
x2=null;
return x8;
}
MVFOI.prototype._f180=function(x70)
{
if(this.area==null||this.area=="")
{
this.area="";
if(this.gtype%10==3&&this.elemInfo[2]==4)
{
this.area=_f179(x70,this._f151);
}
else if(this.gtype%10==3||this.gtype%10==7)
{
var x71=this._f178(x70);
this.area=this._f177(x71);
}
}
}
MVFOI.prototype.animateToNewLocation=function(x72,x73)
{
var x74=this;
var x75=function(x76)
{
if(x76)
x72=x76;
if(x73==null)
x73=100;
x74.parent._f174.foiToNewLocation(x74,x72,x73);
}
if(!x72.srid)
x72.srid=this.parent.getSrid();
if(x72.srid&&(x72.srid!=this._f146.srid))
x72=this.parent.transformGeom(x72,this._f146.srid,null,x75);
else
 x75();
}
MVFOI.prototype.stopAnimation=function()
{
if(this.move_id!=null){
clearTimeout(this.move_id);
this.move_id=null;
var x77=this;
}
}
MVFOI.prototype.setMouseCursorStyle=function(x78)
{
this.cursorStyle=x78;
if(this._f181)
MVUtil._f182(this._f181,x78);
}
MVFOI.prototype.getGeometry=function()
{
return this._f146;
}
MVFOI.prototype.setRenderingStyle=function(x79,x80,x81)
{
this.style=x79;
if(typeof x80!='undefined')
{
if(x80)
this.width=x80;
else
 this.width=0;
}
if(typeof x81!='undefined')
{
if(x81)
this.height=x81;
else
 this.height=0;
}
}
MVFOI.prototype.setWidth=function(x82)
{
if(!x82)
x82=0;
this.width=x82;
}
MVFOI.prototype.setHeight=function(x83)
{
if(!x83)
x83=0;
this.height=x83;
}
MVFOI.prototype.updateImageURL=function(x84,x85,x86)
{
this._f147=x84;
var x87=0;
var x88=0;
if(x85)
{
x87=this.width-x85;
this.width=x85;
}
if(x86)
{
x88=this.height-x86;
this.height=x86;
}
if(this.node)
{
var x89=MVUtil._f183(this.node)+x87/2;
var x90=MVUtil._f184(this.node)+x88/2;
if(this._f167)
{
this._f167.src=x84;
MVUtil._f185(this._f167,x89,x90);
}
else if(this.node.src)
{
this.node.src=x84;
MVUtil._f185(this.node,x89,x90);
}
else if(this.node.style.filter)
{
var x91=MVUtil._f186(x84,"(","%28");
x91=MVUtil._f186(x91,")","%29");
this.node.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x91+"', sizingMethod='image');";
MVUtil._f185(this.node,x89,x90);
}
else
 {
this._f166._f187(this.id);
this._f166._f188(this);
}
}
}
MVFOI.prototype.updateGeometry=function(x92)
{
this._f146=x92;
if(this._f154)
{
if(!this._f146.srid)
this._f146.srid=this.parent.getSrid();
if(this._f146.getGType()==1&&x92.getGType()==1)
{
var x93=MVUtil._f189(this._f166.parent,this._f166.minX,this._f166.minY,
this._f166.maxX,this._f166.maxY,
this._f166.width,this._f166.height,
x92.getPointX(),x92.getPointY());
var x94=(this._f166.parent._f191-this._f166._f192)*this._f166.parent._f52;
var x95=(this._f166.parent._f194-this._f166._f195)*this._f166.parent._f53;
x93[0]-=x94;
x93[1]+=x95;
MVUtil._f185(this.node,x93[0]-this.width/2,x93[1]-this.height/2);
}
else
 {
this._f166._f187(this.id);
this._f166._f188(this);
}
}
}
MVFOI.prototype.reDraw=function()
{
if(this._f154)
{
this._f166._f187(this.id);
this._f166._f188(this);
}
}
MVFOI.prototype._f196=function()
{
if(this._f158||this._f159||
this._f160||this._f161||
this._f148||this._f152||this.cursorStyle)
return true;
else
 return false;
}
MVFOI.prototype.destroy=function()
{
this.node=null;
this._f181=null;
this._f167=null;
}
function _f197(x0)
{
this._f198=[];
this.parent=x0;
var x1=null;
this.minX=0;
this.minY=0;
this.maxX=0;
this.maxY=0;
this._f199=0;
this._f200=0;
this._f201=false;
this.div=document.createElement("div");
this.width=0;
this.height=0;
this.count=0;
this._f192=this.parent._f191;
this._f195=this.parent._f194;
this._f202=null;
this.div.style.position="absolute";
this.div.style.zIndex=120;
this._f203=document.createElement("div");
this._f203.style.position="absolute";
this._f203.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._f203);
}
else
 {
document.body.appendChild(this.div);
document.body.appendChild(this._f203);
}
}
_f197.prototype.foiToNewLocation=function(x96,x97,x98)
{
if(x98)
x96.time=x98;
else
 x96.time=this.time;
var x99=new Array();
var x100=new Array();
if(x97.getFirstPoint()){
x99.push(x97.getPointX());
x100.push(x97.getPointY());
}
else
 {
var x101=x97.getDimensions();
for(var x102=0;x102<=x97.getOrdinates().length-x101;x102=x102+x101)
{
x99.push(x97.getOrdinates()[x102]);
x100.push(x97.getOrdinates()[x102+1]);
}
}
var x103=0;
if(x99.length<=x103||x100.length<=x103)
return;
var x104=MVUtil._f189(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x99[x103],x100[x103]);
var x105=(this.parent._f191-this._f192)*this.parent._f52;
var x106=(this.parent._f194-this._f195)*this.parent._f53;
var x107=Math.round(x104[0]-x105-x96.width/2);
var x108=Math.round(x104[1]+x106-x96.height/2);
if(!x96.move_id)
{
clearTimeout(x96.move_id);
x96.move_id=null;
}
x96.startX=x96.x;
x96.startY=x96.y;
x96.move_xarray=x99;
x96.move_yarray=x100;
x96.move_seq=x103;
x96.move_id=this.setTimeout("this.moveFoi(\""+x96.id+"\")",x96.time);
}
_f197.prototype.moveFoi=function(id)
{
var x109=this._f204(id);
var x110=x109.node;
var x111=parseInt(x110.style.left);
var x112=parseInt(x110.style.top);
var x113=x109.move_seq;
var x114=x109.move_xarray;
var x115=x109.move_yarray;
var x116=MVUtil._f189(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x114[x113],x115[x113]);
var x117=(this.parent._f191-this._f192)*this.parent._f52;
var x118=(this.parent._f194-this._f195)*this.parent._f53;
x116[0]=Math.round(x116[0]-x117-x109.width/2);
x116[1]=Math.round(x116[1]+x118-x109.height/2);
var x119=x116[0]-x111;
var x120=x116[1]-x112;
var x121=Math.sqrt(x119*x119+x120*x120);
var x122=3;
if(x122>x121)
{
x110.style.left=x116[0]+"px";
x110.style.top=x116[1]+"px";
clearTimeout(x109.move_id);
x109.move_id=null;
x109._f146.sdo_point.x=x114[x113];
x109._f146.sdo_point.y=x115[x113];
x109.x=x114[x113];
x109.y=x115[x113];
x113++;
if(x114.length<=x113||x115.length<=x113)
{
return;
}
if(x114.length>1)
x109.startX=x114[x113-1];
if(x115.length>1)
x109.startY=x115[x113-1];
x109.move_seq=x113;
x109.move_id=this.setTimeout("this.moveFoi(\""+id+"\")",x109.time);
}
else
 {
var x123=Math.round(x122*x119/x121);
var x124=Math.round(x122*x120/x121);
var x125=parseInt(x110.style.left)+x123;
var x126=parseInt(x110.style.top)+x124;
x110.style.left=x125+"px";
x110.style.top=x126+"px";
x109.x=(x114[x113]-x109.x)/x119*x123+x109.x;
x109.y=(x115[x113]-x109.startY)*(x109.x-x109.startX)/(x114[x113]-x109.startX)+x109.startY;
x109._f146.sdo_point.x=x109.x;
x109._f146.sdo_point.y=x109.y;
x109.move_id=this.setTimeout("this.moveFoi(\""+id+"\")",x109.time);
}
}
_f197.prototype.setTimeout=function(_f207,_f208)
{
var Ie="tempVar"+_f209;
_f209++;
eval(Ie+" = this;");
var oi=_f207.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f208);
}
_f197.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
_f197.prototype.setSize=function(x127,x128)
{
this.width=x127;
this.height=x128;
}
_f197.prototype._f175=function(x129,x130)
{
var x131=x129.id;
for(var x132=0;x132<this._f198.length;x132++)
{
if(this._f198[x132].id==x131)
{
this._f198[x132].visible=x130;
if(!x130&&this.parent._f210._f211.length>0)
if(this.parent._f210._f211[0].nid==x131)
{
this.parent._f210.deleteInfoWindow(this.parent._f210._f211[0]);
}
}
}
if(x130)
x129.node.style.visibility="visible";
else
 x129.node.style.visibility="hidden";
}
_f197.prototype._f201=function()
{
return this._f201;
}
_f197.prototype._f183=function()
{
if(this._f201)
return this._f199;
else
 return MVUtil._f183(this.div);
}
_f197.prototype._f184=function()
{
if(this._f201)
return this._f200;
else
 return MVUtil._f184(this.div);
}
_f197.prototype._f212=function()
{
return this.width;
}
_f197.prototype._f213=function()
{
return this.height;
}
_f197.prototype._f214=function()
{
return this.minX;
}
_f197.prototype._f215=function()
{
return this.minY;
}
_f197.prototype._f216=function()
{
return this.maxX;
}
_f197.prototype._f217=function()
{
return this.maxY;
}
_f197.prototype._f218=function()
{
return this.div;
}
_f197.prototype.getTopContainer=function()
{
return this._f203;
}
_f197.prototype._f219=function(x133)
{
this._f202=x133;
}
_f197.prototype._f220=function(x134)
{
for(var x135=0;x135<this.div.childNodes.length;x135++)
{
if(x134==(this.div.childNodes[x135]).id)
{
var x136=this.div.childNodes[x135];
this.div.removeChild(x136);
MVUtil._f221(x136);
return;
}
}
for(var x135=0;x135<this._f203.childNodes.length;x135++)
{
if(x134==(this._f203.childNodes[x135]).id)
{
var x136=this._f203.childNodes[x135];
this._f203.removeChild(x136);
MVUtil._f221(x136);
return;
}
}
}
_f197.prototype._f222=function()
{
var x137=this._f198.length;
for(var x138=0;x138<x137;x138++)
{
var x139=this._f198.pop();
MVUtil._f223(x139);
if(this.parent._f210._f211.length>0)
if(this.parent._f210._f211[0].nid==x139.id)
{
this.parent._f210.deleteInfoWindow(this.parent._f210._f211[0]);
}
}
MVUtil._f224(this.div);
MVUtil._f224(this._f203);
}
_f197.prototype._f187=function(x140)
{
var x141=null;
for(var x142=0;x142<this._f198.length;x142++)
{
if(this._f198[x142].id==x140)
{
x141=this._f198[x142];
if(this.parent._f210._f211.length>0)
if(this.parent._f210._f211[0].nid==x140)
{
this.parent._f210.deleteInfoWindow(this.parent._f210._f211[0]);
}
this._f198[x142]=this._f198[this._f198.length-1];
MVUtil._f223(this._f198.pop());
break;
}
}
if(x141)
{
if(x141.move_id!=null){
clearTimeout(x141.move_id);
x141.move_id=null;
}
if(x141.node)
{
x141.node.parentNode.removeChild(x141.node);
MVUtil._f221(x141.node);
}
x141.destroy();
for(var x143=0;x143<this._f203.childNodes.length;x143++)
{
if(this._f203.childNodes[x143].id==x140)
{
var x144=this._f203.childNodes[x143];
this._f203.removeChild(x144);
MVUtil._f221(x144);
x144=null;
break;
}
}
}
return x141;
}
_f197.prototype._f204=function(x145)
{
for(var x146=0;x146<this._f198.length;x146++)
{
if(x145==this._f198[x146].id)
{
return this._f198[x146];
}
}
return null;
}
_f197.prototype._f188=function(x147)
{
this._f198.push(x147);
if(this.parent._f225&&(x147.visible==true))
{
this._f226(x147,true);
}
}
_f197.prototype._f227=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;
}
_f197.prototype._f226=function(x164,x165)
{
if(!x164._f146.srid)
x164._f146.srid=this.parent.getSrid();
var x166=this;
var x167=function(x168)
{
if(x168)
x164._f146=x168;
if(x164.gtype%10==1)
{
x164._f69=x164._f146.getFirstPoint();
}
else
 {
x164.elemInfo=x164._f146.sdo_elem_info.toString().split(",");
var x169=x164._f146.sdo_ordinates.toString();
while(x169.indexOf(" ")!=-1)
{
x169=MVUtil._f186(x169," ","");
}
for(var x170=0;x170<x164.elemInfo.length;x170+=3){
if(x164.elemInfo[x170+2]*1==3){
x169=x164._f176(x169);
break;
}
}
x164._f69=x169.split(",");
}
x164._f151=x164.getMBR();
x164.x=x164._f151[0];
x164.y=x164._f151[3];
if(x164.gtype%10!=1)
{
x164.width=x164._f151[2]-x164._f151[0];
x164.height=x164._f151[3]-x164._f151[1];
}
x166._f228(x164,x165);
}
if(x164._f146.srid&&(x164._f146.srid!=this.parent.srid))
this.parent.transformGeom(x164._f146,this.parent.srid,null,x167);
else
 x167();
}
_f197.prototype._f228=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._f147=foi._f67+"?request=getpoiimage&version=1.0"+
"&poistyle="+encodeURIComponent(styleStr)+
"&width="+foi.width+"&height="+foi.height+
this.getImageParameters(foi);
this._f229(foi);
return;
}
if(_f15._f86=="IF")
styleStr=encodeURIComponent(styleStr);
var _f230=foi._f146.toString();var url=foi._f67+"?request=getfigimage&version=1.0"+
"&figstyle="+encodeURIComponent(styleStr)+
"&ratx="+this.parent._f52+"&raty="+
this.parent._f53+"&figord="+_f230+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY+
this.getImageParameters(foi);
if(url.length<_f15._f135&&
(!foi._f196()||this._f89(foi))){
foi._f147=url;
this._f229(foi);
return;
}
try
{
var _f231=this;
var localDomain=(MVUtil._f101(foi._f67)==MVUtil._f101(_f15._f102()));
var xmlHttp=localDomain||MVMapView._f103;
var _f232=MVUtil.getXMLHttpRequest(xmlHttp);
if(MVMapView._f103&&!localDomain)
foi._f67=_f15._f141()+"?rtarget="+foi._f67;
_f232.open("POST",foi._f67,true);
_f232.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f232.onreadystatechange=MVUtil._f61(_f232,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._f147=res.imgurl;
if(res.area&&res.area!="")
foi.area=res.area;
if(check)
{
if(foi._f155)
for(var td=0;td<_f231._f203.childNodes.length;td++)
{
if(_f231._f203.childNodes[td].id==foi.id)
{
_f231._f203.removeChild(_f231._f203.childNodes[td]);
break;
}
}
else
 for(var td=0;td<_f231.div.childNodes.length;td++)
{
if(_f231.div.childNodes[td].id==foi.id)
{
_f231.div.removeChild(_f231.div.childNodes[td]);
break;
}
}
}
_f231._f229(foi);
}
}
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5500",e+". \nFrom: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
});
_f232.send("request=getfig&version=1.0"+
"&figstyle="+encodeURIComponent(styleStr)+
"&ratx="+this.parent._f52+"&raty="+
this.parent._f53+"&figord="+_f230+'&bbox='+
this.minX+':'+this.minY+':'+this.maxX+':'+this.maxY+
_f231.getImageParameters(foi));
}
catch(ex)
{
MVi18n.processLocale("MAPVIEWER-5500",ex+". \nFrom: MVIndFOIsControl.prototype.addAndDisplayIndFOI(...)");
}
}
_f197.prototype._f233=function()
{
return this._f198;
}
_f197.prototype._f234=function(x171,x172,x173,x174)
{
this._f201=true;
this.parent._f235();
this.minX=x171;
this.minY=x172;
this.maxX=x173;
this.maxY=x174;
this._f192=this.parent._f191;
this._f195=this.parent._f194;
this._f199=Math.ceil((this.minX-this.parent._f236)*this.parent._f52);
this._f200=-Math.ceil((this.maxY-this.parent._f237)*this.parent._f53);
MVUtil._f185(this.div,this._f199,this._f200);
MVUtil._f185(this._f203,this._f199,this._f200);
MVUtil._f224(this.div);
MVUtil._f224(this._f203);
if(this._f202)
this._f202;
var x175=this;
for(var x176=0;x176<this._f198.length;x176++)
{
var x177=this._f198[x176];
if(x177.move_id!=null){
clearTimeout(x177.move_id);
}
this._f226(x177,true);
}
}
_f197.prototype._f173=function(x178)
{
var x179=this;
var x180=x178._f165;
var x181=function(x182)
{
x182=(x182)?x182:((window.event)?event:null);
if(x182&&!x180)
{
if(_f15._f86=="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._f41(x184);
}
}
var x185=function(x186)
{
mouseL1=MVUtil._f239(x186);
x181(x186);
}
var x187=function(x188)
{
mouseL2=MVUtil._f239(x188);
if(mouseL1.x==mouseL2.x&&mouseL1.y==mouseL2.y)
{
x188=(x188)?x188:((window.event)?event:null);
if(x188.button==2)
return;
if(!x178._f240&&x179.parent._f241)
return;
var x189=MVUtil.getMouseLocation(x179.parent,x188);
if(x178._f158)
{
x179.parent._f242();
var x190=MVSdoGeometry.createPoint(x189.sdo_point.x,x189.sdo_point.y,x179.parent.srid);
x178._f158(x190,x178,MVUtil.getEvent(x188));
}
else if(x178._f156&&x178._f148)
{
if(x178._f163>0&&x178._f164>0)
x179.parent._f210._f243(x178._f148,x178.id,
x189.sdo_point.x,x189.sdo_point.y,x178._f163,x178._f164,x178._f168,x178._f169);
else
 x179.parent._f210._f243(x178._f148,x178.id,
x189.sdo_point.x,x189.sdo_point.y,null,null,x178._f168,x178._f169);
}
}
x183(x188);
}
var x191=function(x192)
{
if(x178._f159)
{
var x193=MVUtil.getMouseLocation(x179.parent,x192);
var x194=MVSdoGeometry.createPoint(x193.sdo_point.x,x193.sdo_point.y,x179.parent.srid);
x178._f159(x194,x178,MVUtil.getEvent(x192));
}
x183(x192);
}
if(x178._f153)
{
if(x178._f147&&x178.gtype%10!=1&&!this._f89(x178))
{
var x195="0,0";
if(x178.area.length>0)
x195=x178.area;
x178._f181.setAttribute("shape","poly");
x178._f181.setAttribute("coords",x195);
if((x178._f158||((x178._f156&&x178._f148)))
&&_f15._f86!="OS")
x178._f181.setAttribute("href","javascript:void(0)");
}
if(x178._f158||(x178._f156&&x178._f148))
MVUtil._f182(x178._f181,"pointer");
x178._f181.onmousedown=x185;
x178._f181.onmouseup=x187;
x178._f181.oncontextmenu=x191;
}
if(x178.cursorStyle)
MVUtil._f182(x178._f181,x178.cursorStyle);
}
_f197.prototype._f229=function(x196)
{
x196._f154=true;
x196._f166=this;
var x197=MVUtil._f189(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x196.x,x196.y);
var x198=(this.parent._f191-this._f192)*this.parent._f52;
var x199=(this.parent._f194-this._f195)*this.parent._f53;
var x200;
var x201=MVUtil._f244(x196._f147.toLowerCase(),'png');
if(!(_f15._f86=='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=false;
for(var x203=0;x203<this.parent._f245.length;x203++)
{
if((this.parent._f245[x203].zoomControl)&&!this.parent._f245[x203].zoomControl.hasZoomFinished())
{
x202=true;
x200.style.display='none';
break;
}
}
var x204=this;
var x205=MVSdoGeometry.createPoint(0,0);
var x206=x205;
var x207=x196._f165;
var x208=function(x209)
{
x209=(x209)?x209:((window.event)?event:null);
if(x209&&!x207)
{
if(_f15._f86=="IF")
x209.cancelBubble=true;
else if(x209.stopPropagation)
x209.stopPropagation();
}
}
var x210=function(x211)
{
x211=(x211)?x211:((window.event)?event:null);
if(x211&&!x207)
{
MVUtil._f41(x211);
}
}
var x212=function(x213)
{
x205=MVUtil._f239(x213);
x208(x213);
}
var x214=function(x215)
{
x206=MVUtil._f239(x215);
if(x205.x==x206.x&&x205.y==x206.y)
{
x215=(x215)?x215:((window.event)?event:null);
if(x215.button==2)
return;
if(!x196._f240&&x204.parent._f241)
return;
var x216=MVUtil.getMouseLocation(x204.parent,x215);
if(x196._f158)
{
x204.parent._f242();
var x217=MVSdoGeometry.createPoint(x216.sdo_point.x,x216.sdo_point.y,x204.parent.srid);
x196._f158(x217,x196,MVUtil.getEvent(x215));
}
else if(x196._f156&&x196._f148)
{
if(x196._f163>0&&x196._f164>0)
x204.parent._f210._f243(x196._f148,x196.id,
x216.sdo_point.x,x216.sdo_point.y,x196._f163,x196._f164,x196._f168,x196._f169);
else
 x204.parent._f210._f243(x196._f148,x196.id,
x216.sdo_point.x,x216.sdo_point.y,null,null,x196._f168,x196._f169);
}
}
x210(x215);
}
var x218=function(x219)
{
var x220=MVUtil.getMouseLocation(x204.parent,x219);
if(x196._f160)
{
var x221=MVSdoGeometry.createPoint(x220.sdo_point.x,x220.sdo_point.y,x204.parent.srid);
x196._f160(x221,x196,MVUtil.getEvent(x219));
}
if(x196._f162)
{
x196._f171=x200.style.zIndex;
x200.style.zIndex=1000;
}
if(x196._f152&&x196._f157&&_f15._f86=="OS")
x204.parent._f210.showTextTip(x196._f152,x220.sdo_point.x,x220.sdo_point.y);
};
var x222=function(x223)
{
if(x196._f161)
{
var x224=MVUtil.getMouseLocation(x204.parent,x223);
var x225=MVSdoGeometry.createPoint(x224.sdo_point.x,x224.sdo_point.y,x204.parent.srid);
x196._f161(x225,x196,MVUtil.getEvent(x223));
}
if(x196._f162)
x200.style.zIndex=x196._f171;
if(x196._f152)
x204.parent._f210._f246();
};
var x226=function(x227)
{
if(x196._f159)
{
var x228=MVUtil.getMouseLocation(x204.parent,x227);
var x229=MVSdoGeometry.createPoint(x228.sdo_point.x,x228.sdo_point.y,x204.parent.srid);
x196._f159(x229,x196,MVUtil.getEvent(x227));
}
x210(x227);
}
x196._f181=x200;
if(x196._f147)
{
x200.className="noprint";
if(!x196.visible)
x200.style.visibility="hidden";
if(x196.id&&x196.id!=null)
x200.id=x196.id;
x200._f247=x196.x;
x200._f248=x196.y;
x200.style.zIndex=x196._f45;
if(x196._f155)
this._f203.appendChild(x200);
else
 this.div.appendChild(x200);
if(x196.gtype%10!=1)
{
var x230=this._f227(x196);
x200.style.width=MVUtil._f250(Math.round(x230.width*this.parent._f52+0.5));
x200.style.height=MVUtil._f250(Math.round(x230.height*this.parent._f53+0.5));
var x231;
var x232;
if(x196._f151[0]>this.maxX||x196._f151[2]<this.minX||
x196._f151[1]>this.maxY||x196._f151[3]<this.minY)
{
return;
}
if(x197[0]>-this.parent._f251&&x197[0]<-this.parent._f251+this.width)
{
x231=x197[0];
}
else if(x197[0]<-this.parent._f251)
{
x231=-this.parent._f251;
}
else {
return;
}
if(x197[1]>-this.parent._f252&&x197[1]<-this.parent._f252+this.height)
{
x232=x197[1];
}
else if(x197[1]<-this.parent._f252)
{
x232=-this.parent._f252;
}
else {
return;
}
x231=Math.floor(x231+0.5);
x232=Math.floor(x232+0.5);
x231-=x198;
x232+=x199;
MVUtil._f185(x200,x231,x232);
if(this._f89(x196))
{
var x233=MVUtil._f186(x196._f147,"(","%28");
x233=MVUtil._f186(x233,")","%29");
x200.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x233+"', sizingMethod='image');";
x200.onmouseover=x218;
x200.onmouseout=x222;
if(x196._f152&&x196._f157)
{
x200.setAttribute("title",x196._f152);
}
if(x196._f153&&x196._f196())
{
if(x196._f158||((x196._f156&&x196._f148)))
MVUtil._f182(x200,"pointer");
x200.onmousedown=x212;
x200.onmouseup=x214;
x200.oncontextmenu=x226;
}
if(x196.cursorStyle)
MVUtil._f182(x200,x196.cursorStyle);
x200.ondblclick=x210;
x200.onclick=x210;
x200.onkeyup=x208;
if(_f15._f86=="OS")
x200.onkeypress=x208;
else
 x200.onkeydown=x208;
MVUtil._f253(x200);
}
else
 {
var x234=_f254(x196._f147,0,0,0,0,10);
x196._f167=x234;
x200.appendChild(x234);
x196.node=x200;
if(!x196._f196())
return ;
x196._f180(x204.parent);
var x235=document.createElement("map");var x236=document.createElement("area");
x235.setAttribute("name","f"+x196.id);
x235.setAttribute("id","f"+x196.id);
x236.setAttribute("border",0);
if(x196._f152&&x196._f157)
{
if(_f15._f86!="OS")
x236.setAttribute("title",x196._f152);
}
x236.onmouseover=function(x237)
{
x218(x237);
};
x236.onmouseout=function(x238)
{
x222(x238);
};
x196._f181=x236;
x236.ondblclick=x210;
x236.onclick=x210;
if(x196.cursorStyle)
MVUtil._f182(x236,x196.cursorStyle);
if(x196._f153&&x196._f196())
{
var x239="0,0";
if(x196.area.length>0)
x239=x196.area;
x236.setAttribute("shape","poly");
x236.setAttribute("coords",x239);
if((x196._f158||((x196._f156&&x196._f148)))
&&_f15._f86!="OS")
x236.setAttribute("href","javascript:void(0)");
x236.onmousedown=x212;
x236.onmouseup=x214;
x236.oncontextmenu=x226;
}
else
 {
x236.setAttribute("shape","poly");
x236.setAttribute("coords","0,0");
}
x234.setAttribute("usemap","#f"+x196.id,0);
x200.style.border=0;
x200.appendChild(x235);
x235.appendChild(x236);
}
}
else
 {
x197[0]-=x198;
x197[1]+=x199;
MVUtil._f185(x200,x197[0]-x196.width/2,x197[1]-x196.height/2);
if((_f15._f86=='IF')&&
(x196.style!=""||x201))
{
x200.style.width=MVUtil._f250(x196.width);
x200.style.height=MVUtil._f250(x196.height);
var x233=MVUtil._f186(x196._f147,"(","%28");
x233=MVUtil._f186(x233,")","%29");
if(x196._f152&&x196._f157&&_f15._f86!="OS")
{
x200.setAttribute("title",x196._f152);
}
x200.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
x233+"', sizingMethod='image');";
}
else
 {
if(x196._f152&&x196._f157&&_f15._f86!="OS")
{
x200.setAttribute("title",x196._f152);
}
if(x196.html)
{
var x240=document.createElement("img");
x196._f167=x240;
x240.style.position="relative";
x240.style.left=MVUtil._f250(0);
x240.style.top=MVUtil._f250(0);
x240.setAttribute("id",x196.id);
x240.src=x196._f147;
x240.setAttribute("border",0);
x200.appendChild(x240);
var x241=document.createElement("div");
x241.style.position="absolute";
var x242=x196._f149;
var x243=x196._f150;
x241.style.left=MVUtil._f250(x242);
x241.style.top=MVUtil._f250(x243);
x241.style.padding=MVUtil._f250(0);
x196.foiDiv=x241;
x241.innerHTML=x196.html;
x200.appendChild(x241);
}
else
 {
x196._f167=x200;
x200.src=x196._f147;
x200.setAttribute("border",0);
}
}
x200.onmouseover=x218;
x200.onmouseout=x222;
x200.ondblclick=x210;
x200.onclick=x210;
if(x196._f153&&x196._f196())
{
if(x196._f158||((x196._f156&&x196._f148)))
MVUtil._f182(x200,"pointer")
x200.onmousedown=x212;
x200.onmouseup=x214;
x200.oncontextmenu=x226;
}
if(x196.cursorStyle)
MVUtil._f182(x200,x196.cursorStyle);
MVUtil._f253(x200);
}
}
else if(x196.gtype%10==1)
{
x200.id=x196.id;
x200.style.width=MVUtil._f250(x196.width);
x200.style.height=MVUtil._f250(x196.height);
x197[0]-=x198;
x197[1]+=x199;
MVUtil._f185(x200,x197[0]-x196.width/2,x197[1]-x196.height/2);
this._f203.appendChild(x200);
x200.onmouseover=x218;
x200.onmouseout=x222;
x200.ondblclick=x210;
x200.onclick=x208;
x200.onkeyup=x208;
if(_f15._f86=="OS")
x200.onkeypress=x208;
else
 {
x200.onkeydown=x208;
x200.oncontextmenu=x208;
}
if(_f15._f86=="IF")
x200.onselectstart=x208;
if(x196._f152&&x196._f157&&_f15._f86!="OS")
{
x200.title=x196._f152;
}
if(x196._f153&&x196._f196())
{
if(x196._f158||((x196._f156&&x196._f148)))
MVUtil._f182(x200,"pointer")
x200.onmousedown=x212;
x200.onmouseup=x214;
x200.oncontextmenu=x226;
}
if(x196.cursorStyle)
MVUtil._f182(x200,x196.cursorStyle);
if(x196.html)
{
var x241=document.createElement("div");
x241.style.position="absolute";
var x242=x196._f149;
var x243=x196._f150;
x241.style.left=MVUtil._f250(x242);
x241.style.top=MVUtil._f250(x243);
x241.style.padding=MVUtil._f250(0);
x196.foiDiv=x241;
x241.innerHTML=x196.html;
x200.appendChild(x241);
}
}
x196.node=x200;
if(x196.move_id!=null){
var x244=MVUtil._f189(this.parent,this.minX,this.minY,this.maxX,this.maxY,
this.width,this.height,x196.move_xarray[x196.move_seq],x196.move_yarray[x196.move_seq]);
var x245=Math.round(x244[0]-x196.width/2);
var x246=Math.round(x244[1]-x196.height/2);
x196.move_id=this.setTimeout("this.moveFoi(\""+x196.id+"\")",x196.time);
}
}
_f197.prototype._f255=function()
{
var x247="";
for(var x248=0;x248<this._f198.length-1;x248++)
{
for(var x249=1;x249<this._f198.length;x249++)
{
if(this._f198[x248]._f155&&!this._f198[x249]._f155)
{
var x250=this._f198[x248];
this._f198[x248]=this._f198[x249];
this._f198[x249]=x250;
}
}
}
for(var x248=0;x248<this._f198.length;x248++)
{
if(this._f198[x248].style&&this._f198[x248].visible)
{
var x251=this._f198[x248].style.name==null?
MVUtil._f256(this._f198[x248].style):
this._f198[x248].style.name;
x247+=this._f257(this._f198[x248]._f146,x251);
}
}
return x247;
}
_f197.prototype._f257=function(x252,x253)
{
var x254=x252.toGML();
if(x253.getXMLString)
x253=x253.name;
var x255="<geoFeature render_style=\""+x253+"\"><geometricProperty>"+x254+"</geometricProperty></geoFeature>"
return x255;
}
_f197.prototype.destroy=function()
{
this._f222();
this._f198=null;
this.div=null;
this._f203=null;
}
_f197.prototype._f258=function(x256)
{
return x256._f172?x256._f172:this.parent._f259;
}
_f197.prototype._f89=function(x257)
{
return _f15._f86=="IF"&&this._f258(x257)=="PNG24";
}
_f197.prototype.getImageParameters=function(x258)
{
var x259="";
var x260=this._f258(x258);
if(x260=="PNG8")
x259+="&format="+x260;
if(x258.bgColor)
x259+="&bgcolor="+x258.bgColor;
return x259;
}
function MVRedlineTool(linestyle,areastyle,foiServerURL)
{
var _f128=eval(_f15._f128);
_f15._f128=(++_f128);
this.id=_f128;
this._f651=0;
this._f652=0;
this.parent="";
this._f67=foiServerURL;
this._f653=null;
this._f654=linestyle;
this._f23=areastyle;
this._f6=0;
this._f7=0;
this._f508=0;
this._f509=0;
this.mouseDownX=0;
this.mouseDownY=0;
this.pointdx=0;
this.pointdy=0;
this._f655=new Array();
this.state=0;
this._f656=0;
this._f657=0;
this._f658=0;
this._f659=null;
this._f660=5;
this._f661=5;
this._f662=false;
this._f663=false;
this._f664=null;
var _f665=this;
this._f666=null;
this._f32=null;
this._f667=new Array();
this._f668=new Array();
this.gtype=3;
this._f669=null;
this._f670=null;
this._f671=null;
this.afterMove=null;
this.generatePolygonTop=false;
this._f672=function(x0,x1,x2)
{
_f665._f669=x1;
var x3=new MVMenu(_f665.parent,x0);
_f665._f671=x3.menuFOIId;
var x4=x1.objType4RedLineTool;
switch(x4)
{
case -1:
x3.addMenuItem("Delete",_f665._f674);
break;
case -2:
_f665._f670=x0;
x3.addMenuItem("Delete",_f665._f675);
x3.addMenuItem("Add Point",_f665._f676);
break;
}
MVUtil._f41(x2);
}
this._f677=function(x5,x6,x7)
{
if(_f665._f658!=0&&_f665._f658!=1)
return;
_f665._f658=1;
_f665._f669=x6;
MVUtil._f41(x7);
}
this._f678=function(x8,x9,x10)
{
if(_f665._f658!=1)
return;
_f665._f658=0;
_f665._f669=null;
MVUtil._f41(x10);
}
this._f675=function()
{
var x11=_f665._f669;
if(!x11)
return;
var x12=x11.objType4RedLineTool;
if(x12==-2)
{
_f665.removeEdge(x11);
}
}
this._f674=function()
{
var x13=_f665._f669;
if(!x13)
return;
var x14=x13.objType4RedLineTool;
if(x14==-1)
{
_f665.removeVertex(x13);
}
}
this._f676=function()
{
var x15=_f665._f669;
if(!x15)
return;
var x16=x15.objType4RedLineTool;
if(x16==-2)
{
var x17=_f665._f679(x15);
if(x17[0])
{
var x18=_f665._f670;
var x19=null;
var x20=null;
if(x18)
{
x19=x18.getPointX();
x20=x18.getPointY();
}
if(x19&&x20)
_f665.addVertex(x17[1]+1,x19,x20);
}
}
}
this._f680=function(x21)
{
x21=(x21)?x21:((window.event)?event:null);
if(_f15._f86=="IF")
{
_f665.mouseDownX=x21.clientX+document.body.scrollLeft;
_f665.mouseDownY=x21.clientY+document.body.scrollTop;
}
else
 {
_f665.mouseDownX=x21.pageX;
_f665.mouseDownY=x21.pageY;
}
if(_f665._f658==1)
{
_f15._f129=_f665;
_f665._f658=2;
_f665.parent._f601(x21);
_f665._f6=_f665.parent._f47();
_f665._f7=_f665.parent._f48();
MVUtil._f41(x21);
return;
}
if((_f15._f129)!=_f665||
(x21!=null&&x21.button==2))
return;
MVUtil._f41(x21);
_f665._f656=1;
_f665._f657=1;
if(_f15._f86=="IF")
{
_f665._f508=x21.clientX+document.body.scrollLeft;
_f665._f509=x21.clientY+document.body.scrollTop;
}
else
 {
_f665._f508=x21.pageX;
_f665._f509=x21.pageY;
}
}
this._f681=function(x22)
{
if(_f665._f658==3)
{
_f665.parent._f63();
}
_f665._f658=0;
x22=(x22)?x22:((window.event)?event:null);
if((_f15._f129)!=_f665||_f665._f657!=1||
(x22!=null&&x22.button==2))
{
if(_f665.afterMove)
{
_f665.afterMove();
_f665.afterMove=null;
}
return;
}
_f665._f657=0;
if(_f665._f656==1&&_f665.state==1)
{
MVUtil._f41(x22);
_f665.parent._f438=null;
_f665._f656=0;
_f665._f6=_f665.parent._f47();
_f665._f7=_f665.parent._f48();
if(_f665.gtype==1)
{
while(_f665._f667.length>0)
{
var x23=_f665._f667.pop();
_f665.parent.removeFOI(x23);
}
while(_f665._f668.length>0)
{
var x23=_f665._f668.pop();
_f665.parent.removeFOI(x23);
}
_f665._f667=new Array();
_f665._f668=new Array();
_f665.parent.removeFOI("-RL2RL"+_f665.id);
_f665.parent.removeFOI("-RL10RL"+_f665.id);
_f665._f655=new Array();
}
var x24=null;
var x25="-RL8RL"+_f665.id+"_"+(++_f665._f651);
if(_f665._f659)
{
x24=new MVFOI(x25,
MVSdoGeometry.createPoint(_f665._f6,_f665._f7,_f665.parent.srid),"",
_f665._f659,_f665._f660,_f665._f661);
}
else
 {
if(!_f665._f653)
{
_f665._f653=new MVStyleMarker("-redline-point-marker","vector");
_f665._f653.setStrokeColor("000000");
_f665._f653.setStrokeWidth(1.5);
_f665._f653.setFillColor("ff5555");
_f665._f653.setVectorShape("c:30");
}
x24=new MVFOI(x25,MVSdoGeometry.createPoint(_f665._f6,_f665._f7,_f665.parent.srid),
_f665._f653,null,12,12);
}
x24.enableInfoTip(false);
x24._f240=true;
x24.enableInfoWindow(false);
x24.objType4RedLineTool=-1;
x24.setEventListener("mouse_over",_f665._f677);
x24.setEventListener("mouse_out",_f665._f678);
x24.setMouseCursorStyle("pointer");
x24.setBringToTopOnMouseOver(false);
x24.setTopFlag(true);
if(_f665._f662&&_f665._f667.length==0)
{
x24.setEventListener("mouse_click",function()
{
_f665._f655.push(_f665._f655[0]);
_f665._f655.push(_f665._f655[1]);
_f665.generate();
if(_f665._f32)
_f665._f32();
return ;
});
}
_f665.parent.addFOI(x24);
_f665._f667.push(x24);
_f665._f655.push(_f665._f6);
_f665._f655.push(_f665._f7);
FOILineLen=(_f665._f655.length);
if(FOILineLen>=4)
{
var x26=new MVFOI(("-RL6RL"+_f665.id+"_"+(++_f665._f652)),
MVSdoGeometry.createLineString(_f665._f655.slice((FOILineLen-4)),
(_f665.parent.srid)),_f665._f654,_f665._f67);
x26.enableInfoTip(false);
x26.enableInfoWindow(false);
x26.objType4RedLineTool=-2;
x26.setEventListener("mouse_over",_f665._f677);
x26.setEventListener("mouse_out",_f665._f678);
x26.setMouseCursorStyle("pointer");
x26.setBringToTopOnMouseOver(false);
_f665.parent.addFOI(x26);
_f665._f668.push(x26);
}
if(_f665._f663&&FOILineLen>4)
{
var x27=new Array(FOILineLen+2);
for(var x28=0;x28<FOILineLen;x28++)
x27[x28]=_f665._f655[x28];
x27[FOILineLen]=_f665._f655[0];
x27[FOILineLen+1]=_f665._f655[1];
_f665._f664.updateGeometry(MVSdoGeometry.createPolygon(x27,_f665.parent.srid));
}
if(_f665._f666)
_f665._f666();
}
}
this.mouse_move=function(x29)
{
x29=(x29)?x29:((window.event)?event:null);
if((_f665._f658==2)||(_f665._f658==3))
{
_f15._f129=_f665;
_f665.parent._f601(x29);
var x30=_f665._f669;
var x31=x30.objType4RedLineTool;
switch(x31)
{
case -1:
_f665.moveVertex(x30,(_f665.parent._f47()),(_f665.parent._f48()));
break;
case -2:
var x32=(_f665.parent._f47());
var x33=(_f665.parent._f48());
var x34=x32-(_f665._f6);
var x35=x33-(_f665._f7);
_f665._f6=x32;
_f665._f7=x33;
if(_f15._f86=="IF")
{
_f665.pointdx=x29.clientX+document.body.scrollLeft-_f665.mouseDownX;
_f665.pointdy=x29.clientY+document.body.scrollTop-_f665.mouseDownY;
}
else
 {
_f665.pointdx=x29.pageX-_f665.mouseDownX;
_f665.pointdy=x29.pageY-_f665.mouseDownY;
}
_f665.moveEdge(x30,x34,x35);
break;
}
MVUtil._f41(x29);
if(_f665._f658==2)
{
_f665._f658=3;
_f665.parent._f59.onmousemove=function(x36){};
if(_f665.parent._f59.attached!=true)
{
if(_f15._f86=="IF")
{
_f665.parent._f59.attachEvent("onmousemove",_f665.mouse_move);
_f665.parent._f59.attached=true;
}
else
 {
_f665.parent._f59.addEventListener("mousemove",_f665.mouse_move,false);
_f665.parent._f59.attached=true;
}
}
}
return;
}
if((_f15._f129)!=_f665||
(x29!=null&&x29.button==2))
return;
if(_f665._f657==1)
{
var x34=0;
var x35=0;
if(_f15._f86=="IF")
{
x34=x29.clientX+document.body.scrollLeft-_f665._f508;
x35=x29.clientY+document.body.scrollTop-_f665._f509;
}
else
 {
x34=x29.pageX-_f665._f508;
x35=x29.pageY-_f665._f509;
}
var x37=_f15._f133;
if((x34*x34+x35*x35)>(x37*x37))
_f665._f657=2;
}
}
this.getStatus=function()
{
return this.state;
}
this.init=function(x38)
{
switch(x38)
{
case 1:
this.gtype=x38;
break;
case 2:
this.gtype=x38;
break;
default:
this.gtype=x38=3;
}
if(!this._f653)
this.setRenderingStyle("point",null);
if(!this._f654)
this.setRenderingStyle("line",null);
if(!this._f23)
this.setRenderingStyle("area",null);
this.parent._f241=true;
if(this.state==0)
{
if(_f15._f86=="IF")
{
this.parent._f59.attachEvent("onmousedown",this._f680);
this.parent._f59.attachEvent("onmouseup",this._f681);
this.parent._f59.attachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f59.addEventListener("mousedown",this._f680,false);
this.parent._f59.addEventListener("mouseup",this._f681,false);
this.parent._f59.addEventListener("mousemove",this.mouse_move,false);
}
}
_f15._f129=this;
if(this._f663)
{
this._f664=new MVFOI("-RL10RL"+this.id,
MVSdoGeometry.createPolygon([0,0,0,0,0,0,0,0],this.parent.srid),
this._f23,
this._f67);
this._f664.enableInfoTip(false);
this._f664.enableInfoWindow(false);
this._f664.setClickable(false);
this.parent.addFOI(this._f664);
}
while(this._f667.length>0)
{
var x39=this._f667.pop();
this.parent.removeFOI(x39);
}
while(this._f668.length>0)
{
var x39=this._f668.pop();
this.parent.removeFOI(x39);
}
this._f667=new Array();
this._f668=new Array();
this.parent.removeFOI("-RL2RL"+this.id);
this.parent.removeFOI("-RL10RL"+this.id);
if(this._f671!=null)
this.parent.removeFOI(this._f671);
this._f655=new Array();
this.state=1;
}
this.generate=function()
{
var x40=this.gtype;
if(this.state==1)
{
if(x40==3&&this._f655.length<6)
{
MVi18n.processLocale("MAPVIEWER-5512");
return;
}
else if(x40==2&&this._f655.length<4)
{
MVi18n.processLocale("Please draw at least 2 points to form a line. ");
return;
}
else if(x40==1&&this._f655.length<2)
{
MVi18n.processLocale("Please draw at least one point. ");
return;
}
var x41=this;
var x42=function()
{
if(x41._f668.length>0)
{
if(!x41._f668[x41._f668.length-1].node)
{
setTimeout(x42,50);
return ;
}
}
x41.state=2;
while(x41._f667.length>0)
{
var x43=x41._f667.pop();
x41.parent.removeFOI(x43);
}
while(x41._f668.length>0)
{
var x43=x41._f668.pop();
x41.parent.removeFOI(x43);
}
x41._f667=new Array();
x41._f668=new Array();
if(x41._f671!=null)
x41.parent.removeFOI(x41._f671);
x41.parent.removeFOI("-RL10RL"+x41.id);
var x44=x41._f655.length;
if(x40==3&&(x41._f655[0]!=x41._f655[x44-2]||x41._f655[1]!=x41._f655[x44-1]))
{
x41._f655.push(x41._f655[0]);
x41._f655.push(x41._f655[1]);
}
var x45=null;
switch(x40)
{
case 1:
if(x41._f659)
x45=new MVFOI("-RL2RL"+x41.id,MVSdoGeometry.createPoint(x41._f655[0],x41._f655[1],x41.parent.srid),"",x41._f659,x41._f660,x41._f661);
else
 x45=new MVFOI("-RL2RL"+x41.id,MVSdoGeometry.createPoint(x41._f655[0],x41._f655[1],x41.parent.srid),x41._f653,x41._f67);
break;
case 2:
x45=new MVFOI("-RL2RL"+x41.id,MVSdoGeometry.createLineString(x41._f655,x41.parent.srid),x41._f654,x41._f67);
break;
case 3:
x45=new MVFOI("-RL2RL"+x41.id,MVSdoGeometry.createPolygon(x41._f655,x41.parent.srid),x41._f23,x41._f67);
break;
}
x45.enableInfoTip(false);
x45.enableInfoWindow(false);
x45.setClickable(false);
x45.setTopFlag(x41.generatePolygonTop);
x41.parent.addFOI(x45);
x41.parent._f241=false;
}
x42();
}
}
this.generateArea=this.generate;
this.clear=function()
{
while(this._f667.length>0)
{
var x46=this._f667.pop();
this.parent.removeFOI(x46);
}
while(this._f668.length>0)
{
var x46=this._f668.pop();
this.parent.removeFOI(x46);
}
this._f667=new Array();
this._f668=new Array();
this.parent.removeFOI("-RL2RL"+this.id);
this.parent.removeFOI("-RL10RL"+this.id);
if(this._f671!=null)
this.parent.removeFOI(this._f671);
this._f655=new Array();
if(_f15._f86=="IF")
{
this.parent._f59.detachEvent("onmousedown",this._f680);
this.parent._f59.detachEvent("onmouseup",this._f681);
this.parent._f59.detachEvent("onmousemove",this.mouse_move);
}
else
 {
this.parent._f59.removeEventListener("mousedown",this._f680,false);
this.parent._f59.removeEventListener("mouseup",this._f681,false);
this.parent._f59.removeEventListener("mousemove",this.mouse_move,false);
}
this.state=0;
this.parent._f241=false;
}
this.setMarkerImage=function(x47,x48,x49)
{
this._f659=x47;
this._f660=x48;
this._f661=x49;
}
this.getPolygon=function()
{
var x50=this._f655.length;
if(x50>=6&&this._f655[0]==this._f655[x50-2]&&this._f655[1]==this._f655[x50-1])
{
var x51=MVSdoGeometry.createPolygon(this._f655,this.parent.srid);
return x51;
}
else
 return null;
}
this.getSdoGeometry=function()
{
var x52=this._f655.length;
var x53=null;
if(x52>=6&&this._f655[0]==this._f655[x52-2]&&this._f655[1]==this._f655[x52-1])
x53=MVSdoGeometry.createPolygon(this._f655,this.parent.srid);
else if(x52>=4)
x53=MVSdoGeometry.createLineString(this._f655,this.parent.srid);
else if(x52==2)
x53=MVSdoGeometry.createPoint(this._f655,this.parent.srid);
return x53;
}
this.getPolygonFOI=function()
{
if(this.gtype==3)
return this.parent.getFOI("-RL2RL"+this.id);
else
 return null;
}
this.getFOI=function()
{
return this.parent.getFOI("-RL2RL"+this.id);
}
this.getOrdinates=function()
{
return this._f655;
}
this.addEventListener=function(x54,x55)
{
this.setEventListener(x54,x55);
}
this.setEventListener=function(x56,x57)
{
if(x56=="new_shape_point"||x56=="mouse_click")
this._f666=x57;
else if(x56=="on_finish"||x56=="finish")
this._f32=x57;
}
}
MVRedlineTool.prototype.setAutoClose=function(x0)
{
this._f662=x0;
}
MVRedlineTool.prototype.setGeneratePolygonTop=function(x1)
{
this.generatePolygonTop=x1;
}
MVRedlineTool.prototype.setFillArea=function(x2)
{
this._f663=x2;
}
MVRedlineTool.prototype.getPointNumber=function()
{
return this._f667.length;
}
MVRedlineTool.prototype.getPointFOIs=function()
{
return this._f667;
}
MVRedlineTool.prototype.setRenderingStyle=function(x3,x4)
{
if(x4&&!(typeof(x4)=="string"||(typeof(x4)=="object"
&&x4.getXMLString!=null)))
{
MVi18n.processLocale("Parameter error, and it should be a string or style object. Error occurs at MVRedlineTool.setRenderingStyle(...)");
}
else
 {
switch(x3)
{
case "point":
if(!x4)
{
var x5=new MVStyleMarker(_f15._f682,"vector");
x5.setStrokeColor("000000");
x5.setStrokeWidth(1.5);
x5.setFillColor("ff5555");
x5.setVectorShape("c:30");
this._f653=x5;
}
else
 this._f653=x4;
break;
case "line":
if(!x4)
{
var x6='<svg width="1in" height="1in"><desc/><g class="line" style="stroke-width:1.0">'+
'<line class="base" style="fill:#000066;stroke-width:1.0" dash="5.0,3.0"/></g></svg>';
var x7=new MVXMLStyle(_f15._f683,x6);
this._f654=x7;}
else
 this._f654=x4;
break;
case "area":
if(!x4)
{
var x7=new MVStyleColor(_f15._f684,"FF0000","FF0000");
x7.setFillOpacity(100);
this._f23=x7;
}
else
 this._f23=x4;
break;
}
}
}
MVRedlineTool.prototype._f685=function(x8)
{
var x9=this._f667.length;
var x10=null;
var x11=null;
if(x8!=null)
{
if(isNaN(x8))
{
var x12=0;
for(;x12<x9;++x12)
{
if(this._f667[x12]==x8)
{
x10=x8;
x11=x12;
break;
}
}
}
else if(x8<x9&&x8>=0)
{
x10=this._f667[x8];
x11=x8;
}
else if(x8==x9)
{
x11=x8;
}
}
return [x10,x11];
}
MVRedlineTool.prototype._f679=function(x13)
{
var x14=this._f668.length;
var x15=null;
var x16=-1;
if(x13!=null)
{
if(isNaN(x13))
{
var x17=0;
for(;x17<x14;++x17)
{
if(this._f668[x17]==x13)
{
x15=x13;
x16=x17;
break;
}
}
}
else if(x13<x14&&x13>=0)
{
x15=this._f667[x13];
x16=x13;
}
}
return [x15,x16];
}
MVRedlineTool.prototype.removeVertex=function(x18)
{
var x19=this._f685(x18);
if(!x19||!x19[0])
return;
var x20=x19[0];
var x21=x19[1];
var x22=this._f667.length;
this._f667.splice(x21,1);
var x23=(x21*2);
this._f655.splice(x23,2);
this.parent.removeFOI(x20);
var x24=x21>0?true:false;
var x25=(x21<(x22-1))?true:false;
var x26=null;
if(x24&&x25)
{
x26=this._f668[x21-1];
x26.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice((x23-2),(x23+2)),
(this.parent.srid)));
x26=this._f668[x21];
this.parent.removeFOI(x26);
this._f668.splice(x21,1);
}
else if(x24)
{
x26=this._f668[x21-1];
this.parent.removeFOI(x26);
this._f668.splice((x21-1),1);
}
else if(x25)
{
x26=this._f668[x21];
this.parent.removeFOI(x26);
this._f668.splice(x21,1);
}
}
MVRedlineTool.prototype.removeEdge=function(x27,x28)
{
var x29=this._f679(x27);
if(!x29||!x29[0])
return;
var x30=x29[0];
var x31=x29[1];
if(x28=="left")
this.removeVertex(x31);
else
 this.removeVertex(x31+1);
}
MVRedlineTool.prototype.moveVertex=function(x32,x33,x34)
{
var x35=this._f685(x32);
if(!x35||!x35[0])
return;
var x36=x35[0];
var x37=x35[1];
x36.updateGeometry(MVSdoGeometry.createPoint(x33,x34,
(this.parent.srid)));
var x38=(x37*2);
this._f655[x38]=x33;
this._f655[x38+1]=x34;
var x39=this._f667.length;
var x40=x37>0?true:false;
var x41=(x37<(x39-1))?true:false;
var x42=null;
var x43=this;
this.afterMove=function()
{
x43.moveToNewEdge(x40,x41,x37,x38,x36,x33,x34);
};
}
MVRedlineTool.prototype.moveToNewEdge=function(x44,x45,x46,x47,x48,x49,x50){
x48.updateGeometry(MVSdoGeometry.createPoint(x49,x50,
(this.parent.srid)));
if(x44)
{
var x51=this._f668[x46-1];
x51.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice((x47-2),(x47+2)),
(this.parent.srid)));
}
if(x45)
{
var x51=this._f668[x46];
x51.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice(x47,(x47+4)),
(this.parent.srid)));
}
}
MVRedlineTool.prototype.moveEdge=function(x52,x53,x54)
{
var x55=this._f679(x52);
if(!x55||!x55[0])
return;
var x56=x55[0];
var x57=x55[1];
var x58=(x57*2);
this._f655[x58]=this._f655[x58]+x53;
this._f655[x58+1]=this._f655[x58+1]+x54;
this._f655[x58+2]=this._f655[x58+2]+x53;
this._f655[x58+3]=this._f655[x58+3]+x54;
var x59=x56.node;
if(_f15._f74==2)
{
if(!(x52.mouseDownX))
{
x52.mouseDownX=x59.style.pixelLeft;
x52.mouseDownY=x59.style.pixelTop;
}
x59.style.pixelLeft=x52.mouseDownX+this.pointdx;
x59.style.pixelTop=x52.mouseDownY+this.pointdy;
}
else
 {
if(!(x52.mouseDownX))
{
x52.mouseDownX=MVUtil._f183(x59);
x52.mouseDownY=MVUtil._f184(x59);
}
x59.style.left=(x52.mouseDownX+this.pointdx)+'px';
x59.style.top=(x52.mouseDownY+this.pointdy)+'px';
}
var x60=this._f667.length;
var x61=x57>0?true:false;
var x62=(x57<(x60-2))?true:false;
var x63=null;
var x64=this;
this.afterMove=function()
{
x64.moveToNewEdge2(x61,x62,x57,x58,x56);
};
}
MVRedlineTool.prototype.moveToNewEdge2=function(x65,x66,x67,x68,x69){
this._f667[x67].updateGeometry(MVSdoGeometry.createPoint(this._f655[x68],this._f655[x68+1],
(this.parent.srid)));
this._f667[x67+1].updateGeometry(MVSdoGeometry.createPoint(this._f655[x68+2],this._f655[x68+3],
(this.parent.srid)));
x69.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice(x68,(x68+4)),
(this.parent.srid)));
if(x65)
{
var x70=this._f668[x67-1];
x70.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice((x68-2),(x68+2)),
(this.parent.srid)));
}
if(x66)
{
var x70=this._f668[x67+1];
x70.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice(x68+2,(x68+6)),
(this.parent.srid)));
}
x69.mouseDownX=null;
x69.mouseDownY=null;
}
MVRedlineTool.prototype.addVertex=function(x71,x72,x73)
{
var x74=this._f685(x71);
if(!x74||!x74[1])
return;
var x75=x74[0];
var x76=x74[1];
if(x76==0)
return ;
var x77=this._f667.length;
var x78=null;
var x79="-RL8RL"+this.id+"_"+(++this._f651);
if(this._f659)
x78=new MVFOI(x79,MVSdoGeometry.createPoint(x72,x73,this.parent.srid),
"",this._f659,this._f660,this._f661);
else
 x78=new MVFOI(x79,MVSdoGeometry.createPoint(x72,x73,this.parent.srid),
this._f653);
x78.enableInfoTip(false);
x78._f240=true;
x78.enableInfoWindow(false);
x78.objType4RedLineTool=-1;
x78.setEventListener("mouse_over",this._f677);
x78.setEventListener("mouse_out",this._f678);
x78.setMouseCursorStyle("pointer");
x78.setBringToTopOnMouseOver(false);
x78.setTopFlag(true);
this.parent.addFOI(x78);
this._f667.splice(x76,0,x78);
var x80=x76*2;
this._f655.splice(x80,0,x72,x73);
var x81=x76<x77?true:false;
var x82=null;
if(x81)
{
x82=this._f668[x76-1];
x82.updateGeometry(MVSdoGeometry.createLineString(this._f655.slice((x80-2),(x80+2)),
(this.parent.srid)));
x82=new MVFOI(("-RL6RL"+this.id+"_"+(++this._f652)),
MVSdoGeometry.createLineString(this._f655.slice(x80,(x80+4)),
(this.parent.srid)),this._f654,this._f67);
x82.enableInfoTip(false);
x82.enableInfoWindow(false);
x82.objType4RedLineTool=-2;
x82.setEventListener("mouse_over",this._f677);
x82.setEventListener("mouse_out",this._f678);
x82.setMouseCursorStyle("pointer");
x82.setBringToTopOnMouseOver(false);
this.parent.addFOI(x82);
this._f668.splice(x76,0,x82);
}
else
 {
x82=new MVFOI(("-RL6RL"+this.id+"_"+(++this._f652)),
MVSdoGeometry.createLineString(this._f655.slice(x80-2,(x80+2)),
(this.parent.srid)),this._f654,this._f67);
x82.enableInfoTip(false);
x82.enableInfoWindow(false);
x82.objType4RedLineTool=-2;
x82.setEventListener("mouse_over",this._f677);
x82.setEventListener("mouse_out",this._f678);
x82.setMouseCursorStyle("pointer");
x82.setBringToTopOnMouseOver(false);
this.parent.addFOI(x82);
this._f668.push(x82);
}
}
function MVRectangleTool(rectStyle,_f19)
{
this.parent=null;
this._f554=document.createElement("div");
this.innerRectangleDiv=null;
this._f554.style.position="absolute";
this._f554.style.zIndex=5000;
this._f554.style.border="#FF0000 2px dashed";
this._f554.style.visibility="hidden";
this._f22=2;
this._f19=_f19;
this._f23=rectStyle;
this._f24=(rectStyle?true:false);
this._f25=0;
this._f26=0;
this._f27=0;
this._f28=0;
this._f29=0;
this._f30=0;
this._f31=null;
this._f32=null;
this._f33=null;
this._f35=null;
var _f134=eval(_f15._f134);
++_f134;
_f15._f134=_f134;
this.id=_f134;
this._f38=0;
this._f86="NS";
var rt=this;
this._f39=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(rt.parent._f40)
MVUtil._f41(x0);
};
this._f42=function()
{
if(this.netscape==null)
{
if(_f15._f43("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this._f39,false);
}
}
this._f44=function()
{
if(this.netscape==null)
{
if(_f15._f43("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this._f39,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._f22=x1;
}
var x5="dashed";
if(x2!="")
x5=x2;
this._f554.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._f554.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._f46=function()
{
this._f25=this.parent._f47();
this._f26=this.parent._f48();
}
MVRectangleTool.prototype._f49=function()
{
this._f27=this.parent._f47();
this._f28=this.parent._f48();
}
MVRectangleTool.prototype._f648=function()
{
this._f554.style.width="0px";
this._f554.style.height="0px";
this._f554.style.clip="rect(0px, 0px, 0px, 0px)";
this._f554.style.visibility="hidden";
}
MVRectangleTool.prototype._f649=function()
{
if(this._f38!=3)
{
return;
}
var x8=(this._f25-this.parent._f54())*this.parent._f52+
(this.parent._f55()/2);
var x9=(this._f26-this.parent._f56())*(-this.parent._f53)+
(this.parent._f57()/2);
var x10=(this._f27-this.parent._f54())*this.parent._f52+
(this.parent._f55()/2);
var x11=(this._f28-this.parent._f56())*(-this.parent._f53)+
(this.parent._f57()/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._f554.style.left=x14-1-MVUtil._f183(this.parent.div)+'px';
this._f554.style.top=x15-1-MVUtil._f184(this.parent.div)+'px';
if(x12>0)
x12++;
if(x13>0)
x13++;
if(this._f86=="NS")
{
if(x12==0)
x12=(2*this._f22);
if(x13==0)
x13=(2*this._f22);
this._f554.style.width=Math.abs(x12-(2*this._f22))+'px';
this._f554.style.height=Math.abs(x13-(2*this._f22))+'px';
this._f554.style.clip="rect(0px, "+(x12)+"px, "+
(x13)+"px, 0px)";
}
else
 {
this._f554.style.width=x12+'px';
this._f554.style.height=x13+'px';
this._f554.style.clip="rect(0px, "+(x12+(2*this._f22))+"px, "+
(x13+(2*this._f22))+"px, 0px)";
}
this._f554.style.visibility="visible";
}
MVRectangleTool.prototype.generateArea=function()
{
if(this._f38!=3)
return;
this.parent.removeFOI("MVRectangleTool"+this.id);
if(!this._f24)
return;
this._f648();
if(this._f25!=this._f27&&this._f26!=this._f28)
{
this._f35=MVSdoGeometry.createRectangle(
this._f25,this._f26,this._f27,this._f28,this.parent.srid);
var x16=new MVFOI("MVRectangleTool"+this.id,this._f35,
this._f23,this._f19);
x16.setClickable(false);
x16.enableInfoTip(false);
this.parent.addFOI(x16);
}
else
 this._f35=null;
}
MVRectangleTool.prototype.init=function()
{
this._f38=1;
MVUtil._f650(this._f554);
var x17=this.parent;
var x18=x17._f59;
var x19=this;
var x20;
this._f86=this.parent.getBrowserType();
var x21=function()
{
x17._f40=true;
var x22=x17._f54();
var x23=x17._f56();
if((x19._f29)!=x22||(x19._f30)!=x23)
{
if(x19._f38==2)
{
x19._f38=3;
}
x19._f27+=(x22-x19._f29);
x19._f28+=(x23-x19._f30);
x19._f29=x22;
x19._f30=x23;
x19._f649();
}
}
x18.onmousedown=MVUtil._f61(x18,function(x24)
{
x17.removeFOI("MVRectangleTool"+x19.id);
x19._f38=2;
x24=(x24)?x24:((window.event)?event:null);
var x25=x17._f617(x24);
x17.mouseDownLoc=x25;
x17._f62(x24);
x19._f46();
x19._f49();
x19._f554.style.visibility="hidden";
if(x19._f31!=null)
(x19._f31)();
x19._f29=x17._f54();
x19._f30=x17._f56();
var x26=5;
x20=setInterval(x21,x26);
x19._f42();
return false;
});
x18.onmousemove=MVUtil._f61(x18,function(x27)
{
if(x19._f38==2)
x19._f38=3;
if(x19._f38==3)
{
x27=(x27)?x27:((window.event)?event:null);
x17._f62(x27);
x19._f49();
x19._f649();
if(x19._f33)
x19._f33();
}
return false;
});
var x28=MVUtil._f61(x18,function(x29)
{
x29=(x29)?x29:((window.event)?event:null);
var x30=x17._f617(x29);
x17.mouseUpLoc=x30;
x17._f62(x29);
x19._f49();
x19.generateArea();
clearInterval(x20);
if(_f15._f86=="IF")
{
x18.detachEvent("onmouseup",x28);
}
else
 {
x18.removeEventListener("mouseup",x28,true);
}
x17._f63();
x19._f44();
if(x19._f32){
(x19._f32)();
}
return false;
});
if(_f15._f86=="IF")
{
x18.attachEvent("onmouseup",x28);
}
else
 {
x18.addEventListener("mouseup",x28,true);
}
x18.onmouseout=MVUtil._f61(x18,function(x31)
{
if(x19._f38!=3)
return false;
if(x19._f86=="NS"||x19._f86=="OS")
{
x31=(x31)?x31:((window.event)?event:null);
var x32=x31.clientX;
var x33=x31.clientY;
var x34=x17._f55();
var x35=x17._f57();
var x36=MVUtil._f64(this);
var x37=x31.pageX-x36.x;
var x38=x31.pageY-x36.y;
if(x37<=0||x37>=x34||
x38<=0||x38>=x35||
x32<=0||x32>=document.body.clientWidth||
x33<=0||x33>=document.body.clientHeight)
{
return this.onmouseup(x31);
}
}
});
}
MVRectangleTool.prototype.clear=function()
{
this._f648();
this.parent.removeFOI("MVRectangleTool"+this.id);
this._f38=0;
this.parent._f63();
}
MVRectangleTool.prototype.getRectangle=function()
{
if(this._f25!=this._f27&&this._f26!=this._f28)
return MVSdoGeometry.createRectangle(
this._f25,this._f26,this._f27,this._f28,this.parent.srid);
else
 return null;
}
MVRectangleTool.prototype.getRectangleFOI=function()
{
return this.parent.getFOI("MVRectangleTool"+this.id);
}
MVRectangleTool.prototype.getRectangleDIV=function()
{
return this._f554;
}
MVRectangleTool.prototype.addEventListener=function(x39,x40)
{
this.setEventListener(x39,x40);
}
MVRectangleTool.prototype.setEventListener=function(x41,x42)
{
if(x41=="on_start"||x41=="start")
this._f31=x42;
else if(x41=="on_finish"||x41=="finish")
this._f32=x42;
else if(x41=="on_drag"||x41=="drag")
this._f33=x42;
}
MVRectangleTool.prototype.getStatus=function()
{
return this._f38;
}
MVRectangleTool.prototype.getWidth=function(x43)
{
if(!x43)
return Math.abs(this._f25-this._f27);
else
 return MVSdoGeometry.getDistance(this._f25,this._f26,this._f27,this._f26,this.parent.srid,x43);
}
MVRectangleTool.prototype.getHeight=function(x44)
{
if(!x44)
return Math.abs(this._f26-this._f28);
else
 return MVSdoGeometry.getDistance(this._f25,this._f26,this._f25,this._f28,this.parent.srid,x44);
}
MVRectangleTool.prototype.setDivStyle=function(x45)
{
var x46="#FF0000";
var x47=2;
var x48="dashed";
var x49="#555555";
var x50=0.3;
if(x45.borderColor!=undefined)
x46=x45.borderColor;
if(x45.borderWidth!=undefined)
x47=x45.borderWidth;
if(x45.borderDashed!=undefined)
{
if(!x45.borderDashed)
x48="solid";
}
if(x45.fillColor!=undefined)
x49=x45.fillColor;
if(x45.fillOpacity!=undefined)
x50=x45.fillOpacity;
this.setDivFillColor(x49,x50);
this.setDivBorderStyle(x46,x47,x48);
}
function MVCircleTool(circleStyle,_f19)
{
this.parent=null;
this._f20=document.createElement("div");
this._f20.style.position="absolute";
this._f20.style.visibility="hidden";
this._f20.style.zIndex=5000;
this._f21=new Object();
this._f21._f22=2;
this._f21.divHeight=2;
this._f21.zIndex=5001;
this._f21.backgroundColor="#FF0000";
this._f21.opacity=null;
this._f19=_f19;
this._f23=circleStyle;
this._f24=(circleStyle!=null?true:false);
this._f25=0;
this._f26=0;
this._f27=0;
this._f28=0;
this.stepPx=6;
this._f29=0;
this._f30=0;
this._f31=null;
this._f32=null;
this._f33=null;
this._f34=null;
this._f35=null;
var _f36=eval(_f15._f36);
_f15._f36=(++_f36);
this.id=_f36;
this._f37="MVCircleTool";
this._f38=0;
this.refresh=false;
var ct=this;
this._f39=function(x0)
{
x0=(x0)?x0:((window.event)?event:null);
if(ct.parent._f40)
MVUtil._f41(x0);
};
this._f42=function()
{
if(this.netscape==null)
{
if(_f15._f43("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
{
window.addEventListener("keypress",this._f39,false);
}
}
this._f44=function()
{
if(this.netscape==null)
{
if(_f15._f43("netscape"))
this.netscape=true;
else
 this.netscape=false;
}
if(this.netscape)
window.removeEventListener("keypress",this._f39,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._f21._f22=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._f21.divHeight=x1;
}
}
}
MVCircleTool.prototype.setPlotDivFillColor=function(x2,x3)
{
if(x2!=null&&x2!="")
this._f21.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._f21.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._f21.zIndex=x4;
this._f20.style.zIndex=(x4-1);
}
}
}
MVCircleTool.prototype._f46=function()
{
this._f25=this.parent._f47();
this._f26=this.parent._f48();
}
MVCircleTool.prototype._f49=function()
{
this._f27=this.parent._f47();
this._f28=this.parent._f48();
var x5=(this._f27-this._f25);
var x6=(this._f28-this._f26);
var x7=Math.sqrt(x5*x5+x6*x6);
this._f34=x7;
}
MVCircleTool.prototype._f51=function()
{
if(this._f38!=3)
{
return;
}
var x8=this.parent._f52;
var x9=this.parent._f53;
var x10=Math.round((this._f25-this.parent._f54())*x8+(this.parent._f55()/2));
var x11=Math.round((this._f26-this.parent._f56())*(-x9)+(this.parent._f57()/2));
var x12=(this._f27-this._f25)*x8;
var x13=(this._f28-this._f26)*(-x9);
var x14=Math.round(Math.sqrt(x12*x12+x13*x13));
this._f34=x14;
var x15=2*(x14+this._f21._f22);
var x16=2*(x14+this._f21.divHeight);
var x17=x10-x14-Math.round((this._f21._f22)/2);
var x18=x11-x14-Math.round((this._f21.divHeight)/2);
this._f20.style.left=x17+'px';
this._f20.style.top=x18+'px';
this._f20.style.width=x15+'px';
this._f20.style.height=x16+'px';
this._f20.style.clip="rect(0px, "+x16+"px, "+x15+"px, 0px)";
this._f20.style.visibility="visible";
var x19=(this._f37+this.id+"PlotsDiv");
var x20=document.getElementById(x19);
if(x20!=null)
this._f20.removeChild(x20);
x20=document.createElement("div");
x20.id=x19;
x20.style.position="absolute";
x20.style.left=0+'px';
x20.style.top=0+'px';
this._f20.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._f58((x14+x12),(x14+x13));
this._f58((x14+x12),(x14-x13));
this._f58((x14-x12),(x14+x13));
this._f58((x14-x12),(x14-x13));
}
}
MVCircleTool.prototype._f58=function(x29,x30)
{
var x31=(this._f37+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._f21.zIndex;
if(this._f21.backgroundColor!=null)
x33.style.backgroundColor=this._f21.backgroundColor;
if((this._f21.opacity)!=null)
{
if(window.ActiveXObject)
{
x33.style.filter="alpha(opacity="+((this._f21.opacity)*100)+")";
}
else
 {
x33.style.opacity=this._f21.opacity;
}
}
x33.style.left=x29+"px";
x33.style.top=x30+"px";
x33.style.width=(this._f21._f22)+"px";
x33.style.height=(this._f21.divHeight)+"px";
x33.style.clip="rect(0px, "+(this._f21._f22)+"px, "+
(this._f21.divHeight)+"px, 0px)";
x32.appendChild(x33);
}
MVCircleTool.prototype.generateArea=function()
{
if(this._f38!=3)
{
return;
}
var x34=this._f37+this.id;
this.parent.removeFOI(x34);
var x35=(this._f27-this._f25);
var x36=(this._f28-this._f26);
var x37=Math.sqrt(x35*x35+x36*x36);
this._f34=x37;
this._f35=MVSdoGeometry.createCircle(this._f25,this._f26,x37,this.parent.srid);
if(!(this._f24))
return;
var x38=new MVFOI(x34,this._f35,this._f23,this._f19);
x38.setClickable(false);
x38.enableInfoTip(false);
this.parent.addFOI(x38);
}
MVCircleTool.prototype.init=function()
{
this._f38=1;
var x39=this.parent;
var x40=x39._f59;
var x41=this;
var x42;
var x43=function()
{
x39._f40=true;
var x44=x39._f54();
var x45=x39._f56();
if((x41._f29)!=x44||(x41._f30)!=x45||(x41.refresh))
{
x41.refresh=false;
if(x41._f38==2)
{
x41._f38=3;
}
x41._f27+=(x44-x41._f29);
x41._f28+=(x45-x41._f30);
x41._f29=x44;
x41._f30=x45;
x41._f51();
}
}
x40.onmousedown=MVUtil._f61(x40,function(x46)
{
x39.removeFOI(x41._f37+x41.id);
x41._f38=2;
x46=(x46)?x46:((window.event)?event:null);
x39._f62(x46);
x41._f46();
x41._f49();
x41._f20.style.visibility="hidden";
if(x41._f31!=null)
(x41._f31)();
x41._f29=x39._f54();
x41._f30=x39._f56();
var x47=5;
x42=setInterval(x43,x47);
x41._f42();
return false;
});
x40.onmousemove=MVUtil._f61(x40,function(x48)
{
if(x41._f38==2)
{
x41._f38=3;
}
if(x41._f38==3)
{
x48=(x48)?x48:((window.event)?event:null);
x39._f62(x48);
x41._f49();
x41.refresh=true;
if(x41._f33)
x41._f33();
}
return false;
});
x40.onmouseup=MVUtil._f61(x40,function(x49)
{
x49=(x49)?x49:((window.event)?event:null);
x39._f62(x49);
x41._f49();
x41.generateArea();
var x50=document.getElementById(x41._f37+x41.id+"PlotsDiv");
if(x50!=null)
x41._f20.removeChild(x50);
x41._f20.style.width="0px";
x41._f20.style.height="0px";
x41._f20.style.clip="rect(0px, 0px, 0px, 0px)";
x41._f20.style.visibility="hidden";
clearInterval(x42);
x39._f63();
x41._f44();
if(x41._f32!=null)
(x41._f32)();
return false;
});
x40.onmouseout=MVUtil._f61(x40,function(x51)
{
if(x41._f38!=3)
return false;
if(!(window.ActiveXObject))
{
x51=(x51)?x51:((window.event)?event:null);
var x52=x51.clientX;
var x53=x51.clientY;
var x54=x39._f55();
var x55=x39._f57();
var x56=MVUtil._f64(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._f37+this.id);
this._f38=0;
this.parent._f63();
}
MVCircleTool.prototype.getCircle=function()
{
if(this._f38==3&&this._f34)
return MVSdoGeometry.createCircle(this._f25,this._f26,this._f34,this.parent.srid);
else if(this._f35!=null)
return (this._f35);
else
 return null;
}
MVCircleTool.prototype.getCirclePolygon=function()
{
if(this._f38==3&&this._f34)
return MVSdoGeometry.createCirclePolygon(this._f25,this._f26,this._f34,this.parent.srid);
else if(this._f35!=null)
return (this._f35);
else
 return null;
}
MVCircleTool.prototype.getRadius=function(x59)
{
if(!x59)
return this._f34;
else
 return MVSdoGeometry.getDistance(this._f25,this._f26,this._f25,this._f26+this._f34,this.parent.srid,x59);
}
MVCircleTool.prototype.getCenter=function()
{
return MVSdoGeometry.createPoint(this._f25,this._f26,this.parent.srid);
}
MVCircleTool.prototype.getCircleFOI=function()
{
return this.parent.getFOI(this._f37+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._f31=x63;
else if(x62=="on_finish"||x62=="finish")
this._f32=x63;
else if(x62=="on_drag"||x62=="drag")
this._f33=x63;
}
MVCircleTool.prototype.getStatus=function()
{
return this._f38;
}
function MVi18n()
{
}
MVi18n._f799=null;
MVi18n._f416=null;
MVi18n._f800=null;
MVi18n.URL=null;
MVi18n.processLocale=function(x0,x1,x2,x3)
{
if(MVi18n.URL==null)
{
alert(x0);
return;
}
var x4=(MVUtil._f101(MVi18n.URL)==MVUtil._f101(_f15._f102()));
var x5=x4||MVMapView._f103;
if(MVMapView._f103&&!x4)
MVi18n.URL=_f15._f141()+"?rtarget="+MVi18n.URL;
var x6=null;
x6=encodeURI(MVi18n.URL+"/ReturnLocaleString");
var x7=x0;
var x8=MVi18n._f799;
var x9=MVi18n._f416;
var x10=MVi18n._f800;
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._f61(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._f799=x13;
MVi18n._f416=x14;
MVi18n._f800=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._f416)
{
var x18=MVi18n._f416;
x18(x17);
}
else
 alert(x17);
}
function MVMapView(x0,x1)
{
MVUtil.objArray.push(this);
var x2=this;
if(!MVi18n._f416)
MVi18n.addBehavior("func",alert,"text");
this._f417=MVUtil._f418++;
this.center=null;
this._f191=0;
this._f194=0;
this._f52=0;
this._f53=0;
this.tileWidth=0;
this.tileHeight=0;
this._f403=200;
this._f404=200;
this._f419=0;
this._f420=0;
this._f421=1;
this._f422=0;
this._f423=0;
this._f401=0;
this._f424=false;
this._f225=false;
this._f425=0;
this._f426=0;
this._f427=null;
this._f428=null;
this._f429=0.0;
this._f430=0.0;
this._f431=0.0;
this._f432=0.0;
this._f433=0.0;
this._f434=0.0;
this._f236=0.0;
this._f266=0.0;
this._f265=0.0;
this._f237=0.0;
this._f435=false;
this.msi=null;
this._f436=false;
this._f437=true;
this._f438=null;
this._f439=new Array();
this._f440=new Array();
this._f441=null;
this._f245=new Array();
this.mapLayerNumber=0;
this._f442=new Array();
this._f210=null;
this._f174=null;
this._f443=null;
this._f444=2;
this._f445=4;
this._f446=4;
this._f447=null;
this._f271=false;
this._f448=0;
this._f154=false;
this._f449=new Array();
this._f348=null;
this._f350=false;
this._f450=true;
this._f451=null;
this.srid=null;
this._f452=null;
this._f453=0;
this._f454=false;
this._f455="one_time";
this._f456=false;
this._f457=null;
this._f458=false;
this._f459=false;
this._f460=false;
this._f461=false;
this._f462=null;
this._f463=1;
this.centerMarkUrl=null;
this.centerMarkW=0;
this.centerMarkH=0;
var x3=String(document.location);
var x4=x3.indexOf("//");
this._f137=_f15._f102();
this._f464=this._f137;
this._f414=this._f137;
this._f465="default";
this._f466="move";
this._f467="default";
if(x1)
{
this._f464=x1;
this._f414=x1;
if(MVUtil._f244(x1,'/'))
{
this._f464=x1.substring(0,x1.length-1);
this._f414=x1.substring(0,x1.length-1);
}
if(MVUtil._f101(this._f137)!=MVUtil._f101(this._f464))
{
this._f464=_f15._f141()+"?rtarget="+this._f464;
}
}
_f15._f136=this._f414+"/foi";
_f15._f126=this._f414+_f15._f127;
MVi18n.setURL(this._f414);
this._f468=false;
if(x0==null)
return null;
MVUtil._f224(x0);
this.real_base_div=x0;
if(this.real_base_div.style.position!="absolute")
{
this.real_base_div.style.position="relative";
}
this._f59=document.createElement("div");
this.real_base_div.appendChild(this._f59);
this._f59.style.position="absolute";
this._f59.style.left=MVUtil._f250(0);
this._f59.style.top=MVUtil._f250(0);
this._f59.style.width="100%";
this._f59.style.height="100%";
this._f59.style.overflow="hidden";
this._f396=document.createElement("img");
this._f396.src=_f15._f126+"transparent."+(_f15._f86=="IF"?"gif":"png");
this._f396.src+="?refresh="+(new Date()).getTime();
this._f396.style.position="absolute";
this._f396.style.left=MVUtil._f250(0);
this._f396.style.top=MVUtil._f250(0);
this._f396.onload=MVUtil._f61(this,function(){_f15._f145=true;});
this._f59.appendChild(this._f396);
this._f262=document.createElement("div");
this._f262.style.position="absolute";
this._f262.style.left=MVUtil._f250(0);
this._f262.style.top=MVUtil._f250(0);
this.real_base_div.appendChild(this._f262);
this.div=null;
var x5=this.getBrowserType();
this.toolBarContainer=null;
this._f469();
this._f470="";
this._f104=0;
this._f105=0;
this._f471();
this._f472=null;
this._f473=document.createElement("div");
MVUtil._f413(this._f473);
this._f473.style.position="absolute";
this._f473.style.zIndex=125;
this.div.appendChild(this._f473);
this._f474=null;
this._f475=null;
this._f311=null;
this._f476=null;
this._f477=null;
this._f478=null;
this._f479=new _f480();
this._f481=true;
this._f482="zoomin";
this._f68=null;
this._f483=true;
this._f484=null;
this._f485=false;
this._f486=null;
this._f487=null;
this._f488=0;
this._f489=0;
this._f490=false;
this._f491=0;
this._f492=null;
this._f493=5;
this._f241=false;
this._f494=new Array();
this.infoTipDiv=null;
this._f495=0;
this._f496=0;
this._f497=null;
this._f498=null;
this._f499=null;
this._f500=null;
this._f501=null;
this._f502=null;
this._f503=null;
this._f504=null;
this._f40=false;
this._f82=null;
this._f259="PNG24";
this.foiBgColor=null;
this.zoomAnimationEnabled=true;
return this;
}
MVMapView.prototype._f469=function()
{
if(_f15._f86=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
document.body.style.height="100%";
}
if(this._f59.style.backgroundColor=="")
this._f59.style.backgroundColor="lightgrey";
this.div=document.createElement("div");
this.div.style.position="absolute";
if(_f15._f86=="IF"&&document.compatMode&&document.compatMode!="BackCompat")
{
this.div.style.width=MVUtil._f250(this._f55());
this.div.style.height=MVUtil._f250(this._f57());
}
else
 {
this.div.style.width="100%";
this.div.style.height="100%";
}
this.div.style.zIndex=80;
this.div.style.left=MVUtil._f250(0);
this.div.style.top=MVUtil._f250(0);
this._f262.style.left=MVUtil._f250(0);
this._f262.style.top=MVUtil._f250(0);
this._f251=0;
this._f252=0;
this._f331=this._f251;
this._f330=this._f252;
this._f505=0;
this._f506=0;
this._f59.appendChild(this.div);
var x0=document.createElement("table");
x0.style.zIndex=9999;
x0.style.height=MVUtil._f250(15);
x0.style.position="absolute";
x0.style.right=MVUtil._f250(0);
x0.style.bottom=MVUtil._f250(0);
x0.style.backgroundColor="white";
this._f59.appendChild(x0);
var x1=document.createElement("tbody");
x0.appendChild(x1);
this.toolBarContainer=document.createElement("tr");
x1.appendChild(this.toolBarContainer);
}
MVMapView.prototype._f507=function(x2,x3)
{
this._f505=x2-this._f251;
this._f506=x3-this._f252;
}
MVMapView.prototype._f510=function(x4,x5)
{
this._f251=x4-this._f505;
this._f252=x5-this._f506;
this._f331=MVUtil._f183(this.div);
this._f330=MVUtil._f184(this.div);
var x6=this._f191;
var x7=this._f194;
this._f191=this._f191+
(this._f331-this._f251)/this._f52;
this._f194=this._f194-
(this._f330-this._f252)/this._f53;
if(x6!=this._f191||x7!=this._f194)
{
this._f435=true;
}
MVUtil._f185(this.div,this._f251,this._f252);
MVUtil._f185(this._f262,this._f251,this._f252);
}
MVMapView.prototype.addEventListener=function(x8,x9)
{
this.setEventListener(x8,x9);
}
MVMapView.prototype.setEventListener=function(x10,x11)
{
if(x10=="recenter")
{
this._f476=x11;
}
else if(x10=="mouse_click")
{
this._f311=x11;
}
else if(x10=="mouse_right_click")
{
this._f477=x11;
}
else if(x10=="zoom_level_change")
{
this._f474=x11;
}
else if(x10=="before_zoom_level_change")
{
this._f475=x11;
}
else if(x10=="mouse_double_click")
{
this._f68=x11;
}
else if(x10=="initialize")
{
this.initializeListener=x11;
}
}
MVMapView.prototype.init=function()
{
MVUtil._f185(this.div,0,0);
MVUtil._f185(this._f262,0,0);
if(this._f210._f211.length>0)
this._f210.deleteInfoWindow(this._f210._f211[0]);
this._f251=0;
this._f252=0;
this._f331=this._f251;
this._f330=this._f252;
this._f505=0;
this._f506=0;
this.setZoomLevel(this._f401);
this._f488=this._f55();
this._f489=this._f57();
if(this._f492)
clearTimeout(this._f492);
this.setLoadingIconVisible(true);
this._f425=this._f422+(this._f419/2*this.tileWidth);
this._f426=this._f423+(this._f420/2*this.tileHeight);
this._f511();
if(!this._f154)
{
if(this._f512())
return ;
}
if(this._f443&&!this._f443._f307&&!this._f443._f513)
this._f514(this._f443);
if(this.navigationPanel&&!this.navigationPanel._f513)
this.navigationPanel.init(this._f59,this);
for(var x12=0;x12<this._f245.length;x12++)
{
this._f245[x12]._f379(this._f55(),this._f57(),
this._f191,this._f194);
}
if(!this._f210)
this._f210=new _f260(this);
this._f235();
this._f495=this._f236;
this._f496=this._f237;
this.refreshThemeBasedFOIs(true);
this._f234();
this._f210.refresh(this._f236,this._f266,
this._f265,this._f237,
this._f55(),this._f57());
this._f225=true;
this._f424=true;
if(this._f462!=null)
for(var x12=0;x12<this._f462.length;x12++)
if(this._f462[x12]!=null&&!this._f462[x12]._f154)
{
var id="_md_"+this._f463
this._f462[x12].init(id,this);
if(this._f462[x12]._f309)
this._f59.appendChild(this._f462[x12]._f335);
else
 this._f59.appendChild(this._f462[x12]._f308);
this._f463++;
this._f462[x12]._f154=true;
}
if(this._f348!=null&&this._f348._f349==null)
this._f348.init(this._f348._f515,this);
this._f516();
this._f492=this.setTimeout("this.checkSize()",400);
if(!this._f154&&this.initializeListener)
this.initializeListener();
}
MVMapView.prototype.destroy=function()
{
while(this._f245&&this._f245.length>0)
{
var x13=this._f245.pop();
x13.destroy();
}
this._f245=null;
if(!this._f210)
{
this._f210.destroy();
this._f210=null;
}
while(this._f442&&this._f442.length>0)
{
var x14=this._f442.pop();
x14.destroy();
}
this._f442=null;
if(this._f174)
this._f174.destroy();
this._f174=null;
if(this._f462)
while(this._f462.length>0)
this._f462.pop();
this._f462=null;
if(this._f348)
{
this._f348.destroy();
this._f348=null;
}
MVUtil._f224(this._f59);
this._f396=null;
this._f59=null;
this._f262=null;
this._f473=null;
this.div=null;
}
MVMapView.prototype._f517=function()
{
this.tileWidth=this._f439[this._f401];
this.tileHeight=this._f440[this._f401];
this._f518();
}
MVMapView.prototype._f518=function()
{
this._f422=-this.tileWidth*this._f421;
this._f423=-this.tileHeight*this._f421;
var x15=this._f55()/this.tileWidth;
this._f419=parseInt(Math.ceil(x15/2)+1)*2+1;
x15=this._f57()/this.tileHeight;
this._f420=parseInt(Math.ceil(x15/2)+1)*2+1;
this._f425=this._f422+(this._f419/2*this.tileWidth);this._f426=this._f423+(this._f420/2*this.tileHeight);}
MVMapView.prototype._f511=function()
{
this._f428=new _f406(this.msi.mapConfig,this._f191,this._f194,this._f401);this._f427=new _f406(this.msi.mapConfig,this._f191,this._f194,this._f401);this._f427._f408(-(Math.ceil(this._f419/2)-1),+Math.ceil(this._f420/2)-1);
this._f52=this.tileWidth/this._f428._f399;this._f53=this.tileHeight/this._f428._f400;}
MVMapView.prototype._f235=function()
{
this._f431=this._f427.minX;
this._f432=(this._f427.minY+this._f427._f400);
this._f433=(this._f427.minX+(this._f427._f399*this._f419));
this._f434=(this._f427.minY-(this._f427._f400*(this._f420-1)));
this._f236=this._f519(this._f191);
this._f266=this._f520(this._f194);
this._f265=this._f521(this._f191);
this._f237=this._f522(this._f194);
}
MVMapView.prototype.display=function()
{
var x16=this;
var x17=function()
{
var x18=0;
if(!x16._f59)
return ;
if(x16._f59.offsetWidth)
x18=parseInt(x16._f59.offsetWidth+"");
else if(typeof(x16._f59.offsetWidth)=="undefined")
x18=x16._f55();
var x19=0;
if(x16._f59.offsetHeight)
x19=parseInt(x16._f59.offsetHeight+"");
else if(typeof(x16._f59.offsetHeight)=="undefined")
x19=x16._f57();
if(x18<=0||x19<=0||!_f15._f145||!x16.msi)
{
setTimeout(x17,200);
return ;
}
var x20=function()
{
x16.init();
if(!x16._f461)
{
x16._f63();
x16._f461=true;
}
x16._f154=true;
while(x16._f494.length>0)
{
var x21=x16._f494.shift();
if(x21.func=="refreshFOIs")
x21.obj._f523(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._f524(x20);
}
x17();
}
MVMapView.prototype.setCenter=function(x22,x23)
{
this.center=x22;
if(this._f154)
this._f524(null,x23);
}
MVMapView.prototype._f524=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._f154)
{
x27._f191=x26.getPointX();
x27._f194=x26.getPointY();
}
else
 {
x27._f525=(x27._f191-x26.getPointX())*x27._f52;
x27._f526=(x27._f194-x26.getPointY())*x27._f53*(-1);
x27._f527=x27._f55();
x27._f528=x27._f57();
if(Math.abs(x27._f525)<=(x27._f527+x27._f403)&&Math.abs(x27._f526)<=(x27._f528+x27._f404))
{
x27._f66=Math.sqrt(x27._f525*x27._f525+x27._f526*x27._f526);
x27._f529=20;
x27._f530=x27._f66>((x27._f527+x27._f528)/4)?300:200;
x27._f531=0;
x27._f532=0;
x27._f533=0;
x27.smoothPan(x25);
}
else
 {
x27._f191=x26.getPointX();
x27._f194=x26.getPointY();
x27.display();
if(x27._f476)
{
x27._f476();
}
}
if(x27._f443)
{
x27._f443._f534(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._f191=x30;
}
MVMapView.prototype.setCenterLat=function(x31)
{
this._f194=x31;
}
MVMapView.prototype.setCenterMark=function(x32,x33,x34)
{
if(this._f535!=undefined)
{
this._f59.removeChild(this._f535);
delete this._f535;
}
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._f250(x33);
x35.style.height=MVUtil._f250(x34);
x35.style.left=MVUtil._f250((this._f55()-x33)/2);
x35.style.top=MVUtil._f250((this._f57()-x34)/2);
this._f59.appendChild(x35);
this._f535=x35;
}
MVMapView.prototype.setZoomLevel=function(x36)
{
if(isNaN(x36))
{
MVi18n.processLocale("MAPVIEWER-5506");
return;
}
if(!this._f154)
{
this._f401=x36;
return ;
}
if(x36<0)
x36=0;
else if(x36>this._f448)
x36=this._f448;
if(this._f154)
this.zoomTo(x36);
else
 {
this._f401=x36;
this._f517();
}
}
MVMapView.prototype.setHomeMap=function(x37,x38)
{
this._f452=x37;
if(x38)
this._f453=x38;
}
MVMapView.prototype.setMapBuffer=function(x39,x40)
{
this._f403=x39;
this._f404=x40;
}
MVMapView.prototype._f536=function(x41,x42)
{
var x43=false;
var x44=this;
var x45=function(x46)
{
if(x46)
{
x44._f191=x46.getPointX();
x44._f194=x46.getPointY();
x44.center=x46;
}
x44.msi=x41.msi;
x44.srid=x44.msi.getSrid();
if(x44._f401>(x44.msi.zoomCount-1))
{
x44._f401=x44.mis.zoomCount-1;
}
for(var x47=0;x47<x44.msi._f368();x47++)
{
x44._f439[x47]=x44.msi._f371(x44._f401);
x44._f440[x47]=x44.msi._f372(x44._f401);
}
x44._f517();
x44._f448=x44.msi._f368()-1;
x44._f511();
x42(x43);
}
if(!x41.msi)
x41.msi=new _f353(x41._f96);
if(this.msi)
{
if(!x41.isVisible()||this.msi.getSrid()==x41.msi.getSrid())
{
x42(false);
return;
}
else
 {
x43=true;
var x48=MVSdoGeometry.createPoint(this._f191,this._f194,this.msi.getSrid());
this.transformGeom(x48,x41.msi.getSrid(),null,x45);
}
}
else
 x45();
}
MVMapView.prototype.getMapBaseURL=function()
{
return this._f414;
}
MVMapView.prototype._f55=function()
{
var x49=0;
if(this._f59.style&&this._f59.style.width)
{
var x50=this._f59.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._f59.offsetWidth)
x49=this._f59.offsetWidth;
else if(this._f59.width)
x49=parseInt(this._f59.width+"");
return x49;
}
MVMapView.prototype._f57=function()
{
var x51=0;
if(this._f59.style&&this._f59.style.height)
{
var x52=this._f59.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._f59.offsetHeight)
x51=this._f59.offsetHeight;
else if(this._f59.width)
x51=parseInt(this._f59.width+"");
return x51;
}
MVMapView.prototype._f519=function(x53)
{
var x54=this._f55()/2;
return (0-x54)/this._f52+x53;
}
MVMapView.prototype._f520=function(x55)
{
var x56=this._f57()/2;
return -1.0*(x56-1)/this._f53+x55;
}
MVMapView.prototype._f521=function(x57)
{
var x58=this._f55()/2;
return (x58-1)/this._f52+x57;
}
MVMapView.prototype._f522=function(x59)
{
var x60=this._f57()/2;
return -1.0*(0-x60)/this._f53+x59;
}
MVMapView.prototype.getCenter=function()
{
var x61=MVSdoGeometry.createPoint(this._f191,this._f194,this.srid);
return x61;
}
MVMapView.prototype._f54=function()
{
return this._f191;
}
MVMapView.prototype._f56=function()
{
return this._f194;
}
MVMapView.prototype.getMapWindowBBox=function()
{
this._f235();
var x62=MVSdoGeometry.createRectangle(this._f236,this._f266,
this._f265,this._f237,this.srid);
return x62;
}
MVMapView.prototype.getMouseLocation=function()
{
var x63=MVSdoGeometry.createPoint(this._f429,this._f430,this.srid);
return x63;
}
MVMapView.prototype._f47=function()
{
return this._f429;
}
MVMapView.prototype._f48=function()
{
return this._f430;
}
MVMapView.prototype.getZoomLevel=function()
{
return this._f401;
}
MVMapView.prototype.getBaseDiv=function()
{
return this._f59;
}
MVMapView.prototype._f537=function()
{
return this.div;
}
MVMapView.prototype._f538=function()
{
return this._f428._f400;
}
MVMapView.prototype._f539=function()
{
return this._f428._f399;
}
MVMapView.prototype._f540=function()
{
return this.msi;
}
MVMapView.prototype._f541=function()
{
return this._f431;
}
MVMapView.prototype._f542=function()
{
return this._f432;
}
MVMapView.prototype._f543=function()
{
return this._f433;
}
MVMapView.prototype._f544=function()
{
return this._f434;
}
MVMapView.prototype.getScreenMinLon=function()
{
return this._f236;
}
MVMapView.prototype._f545=function()
{
return this._f266;
}
MVMapView.prototype._f546=function()
{
return this._f265;
}
MVMapView.prototype._f547=function()
{
return this._f237;
}
MVMapView.prototype._f548=function()
{
return this._f52;
}
MVMapView.prototype._f549=function()
{
return this._f53;
}
MVMapView.prototype.zoomIn=function(x64)
{
this.zoomTo(this._f401+1,x64);
}
MVMapView.prototype.zoomOut=function(x65)
{
this.zoomTo(this._f401-1,x65);
}
MVMapView.prototype.setZoomAnimationEnabled=function(x66)
{
this.zoomAnimationEnabled=x66;
}
MVMapView.prototype.zoomTo=function(x67,x68)
{
var x69=this._f401;
if(x67>=this._f448)
{
x67=this._f448;
}
else if(x67<0)
{
x67=0;
}
if(x67==this._f401&&!x68)
{
if(this.navigationPanel)
this.navigationPanel.updateSliderBar();
return false;
}
this._f337();
this._f401=x67;
if(this.navigationPanel)
this.navigationPanel.updateSliderBar();
this._f401=x67;
this._f517();
var x70=false;
var x71=MVSdoGeometry.createPoint(this._f191,this._f194,this.srid);
var x72=this;
var x73=function(x74)
{
if(x74)
x68=x74;
if(x68)
{
if(x68.getPointX()!=x72._f191||x68.getPointY()!=x72._f194)
{
x70=true;
}
x72._f191=x68.getPointX();
x72._f194=x68.getPointY();
}
if(x72._f475&&x69!=x72._f401)
x72._f475(x69,x72._f401);
if(x69!=x72._f401&&x72.zoomAnimationEnabled)
{
for(var x75=0;x75<x72._f245.length;x75++)
{
x72._f245[x75].zoomControl.showTiles(x69,x72._f401,x71,x68);
}
}
x72.display();
if(x72._f443)
{
x72._f443._f534(x72);
}
if(x70&&x72._f476)
{
x72._f476()
}
if(x72._f348)
{
x72._f348._f550(x69,x72._f401,x68);
}
if(x72._f474&&x69!=x72._f401)
{
x72._f474(x69,x72._f401);
}
}
if(x68)
{
this.srid=this.msi.getSrid();
if(!x68.srid)
x68.srid=this.srid;
if(!(x68.sdo_point))
MVi18n.processLocale("MAPVIEWER-5505");
if(x68.srid&&(this.srid!=x68.srid))
x68=this.transformGeom(x68,this.srid,null,x73);
else
 x73();
}
else
 x73();
return true;
}
MVMapView.prototype.zoomToAtLocation=function(x76,x77)
{
this.srid=this.msi.getSrid();
var x78=this;
var x79=function(x80)
{
if(x80)
x76=x80;
var x81=(x78._f191-x76.getPointX())*x78._f52;
var x82=(x78._f194-x76.getPointY())*x78._f53;
var x83=x78._f439[x77]/x78.msi._f369(x77);
var x84=x78._f440[x77]/x78.msi._f370(x77);
var x85=x81/x83+x76.getPointX();
var x86=x82/x84+x76.getPointY();
var x87=MVSdoGeometry.createPoint(x85,x86,x78.srid);
x78.zoomTo(x77,x87);
}
if(x76.srid&&(this.srid!=x76.srid))
x76=this.transformGeom(x76,this.srid,null,x79);
else
 x79();
}
MVMapView.prototype.setCenterAndZoomLevel=function(x88,x89)
{
if(!this._f154)
{
this.center=x88;
this._f401=x89;
return ;
}
this.srid=this.msi.getSrid();
if(!x88.srid)
x88.srid=this.srid;
var x90=this;
var x91=function(x92)
{
if(x92)
x88=x92;
if(x89==null)
{
x89=x90._f401;
}
if(!x90._f154)
{
x90.setCenter(x88);
x90.setZoomLevel(x89);
return ;
}
if(x89==x90._f401)
{
if(!x90._f424)
{
x90.zoomTo(x89,x88);
return;
}
else {
x90._f525=(x90._f191-x88.getPointX())*x90._f52
x90._f526=(x90._f194-x88.getPointY())*x90._f53*(-1);
x90._f527=x90._f55();
x90._f528=x90._f57();
if(Math.abs(x90._f525)<=(x90._f527+x90._f403)&&Math.abs(x90._f526)<=(x90._f528+x90._f404))
{
x90._f66=Math.sqrt(x90._f525*x90._f525+x90._f526*x90._f526);
x90._f529=20;
x90._f530=x90._f66>((x90._f527+x90._f528)/4)?300:200;
x90._f531=0;
x90._f532=0;
x90._f533=0;
x90.smoothPan();
return;
}
}
}
x90.zoomTo(x89,x88);
}
if(x88.srid&&(this.srid!=x88.srid))
x88=this.transformGeom(x88,this.srid,null,x91);
else
 x91();
}
MVMapView.prototype.addMapTileLayer=function(x93,x94)
{
if(x93._f96==undefined||
x93._f96==null||
MVUtil._f97(x93._f96)=="")
{
MVi18n.processLocale("MAPVIEWER-5507");
return ;
}
if(!this._f82&&this.compareBaseURL(x93._f95))
{
var x95=x93._f96.split(".");
if(x95.length>=2)
{
_f15._f85(x95[0]);
this._f85(x95[0]);
}
}
x93.parent=this;
if(!x93._f95)
{
if(this._f414)
{
if(MVUtil._f244(this._f414,'/'))
x93._f95=this._f414+'mcserver';
else
 x93._f95=this._f414+'/mcserver';
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
}
if(MVMapView._f103&&MVUtil._f101(x93._f95)!=MVUtil._f101(this._f137))
x93._f99=_f15._f141()+"?rtarget="+x93._f95;
else
 x93._f99=x93._f95;
var x96=this;
if(x93==null||!x93.getType)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter is not a valid MVMapTileLayer object. From: MVMapView.addMapTileLayer(...)");
return;
}
for(var x97=0;x97<x96._f245.length;x97++)
{
if(x96._f245[x97]._f378()==x93._f95&&
x96._f245[x97]._f365()==x93._f96)
{
if(x94)
x94();
return ;
}
}
var x98=function()
{
x96.mapLayerNumber++;
if(!x93.zIndex)
x93.zIndex=x96.mapLayerNumber;
x96._f536(x93,AfterSetProvider);
function AfterSetProvider(x0)
{
x93.config=_f15._f78[x93._f96];
var x1=null;
x1=new _f380(x96,x93);
x96._f245.push(x1);
if(x96._f154)
{
if(!x0)
x1._f379(x96._f55(),x96._f57(),x96._f191,x96._f194);
else
 x96.display();
}
x1=null;
if(x94)
x94();
}
}
_f15._f94(x93,x98);
}
MVMapView.prototype.addBaseMapLayer=MVMapView.prototype.addMapTileLayer;
MVMapView.prototype.getMapTileLayerDefinition=function(x99,x100,x101)
{
if(!x101)
x101=null;
var x102=new MVMapTileLayer(x100,x101);
if(!x102._f95)
{
if(this._f414)
{
if(MVUtil._f244(this._f414,'/'))
x102._f95=this._f414+'mcserver';
else
 x102._f95=this._f414+'/mcserver';
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
}
if(MVMapView._f103&&MVUtil._f101(x102._f95)!=MVUtil._f101(this._f137))
x102._f99=_f15._f141()+"?rtarget="+x102._f95;
else
 x102._f99=x102._f95;
_f15._f94(x102,x99);
}
MVMapView.prototype.removeMapTileLayer=function(x103)
{
var x104=0;
for(;x104<this._f245.length;x104++)
{
if(this._f245[x104]._f365()==x103._f96)
{
var x105=this._f245[x104];
this._f245[x104]=this._f245[this._f245.length-1];
x105.destroy();
this._f245.pop();
this.mapLayerNumber--;
return ;
}
}
}
MVMapView.prototype._f471=function()
{
if(!this._f210)
this._f210=new _f260(this);
this._f174=new _f197(this);
this._f174.setSize(Math.ceil(2*(this._f55())),
Math.ceil(2*(this._f57())));
MVUtil._f185(this._f174._f218(),
(this._f55()-this._f174._f212())/2,
(this._f57()-this._f174._f213())/2);
}
MVMapView.prototype.addGroupFOI=function(x106)
{
this._f551=0;
this._f552=x106;
this.startAddGroupFOI();
}
MVMapView.prototype.startAddGroupFOI=function()
{
for(var x107=0;x107<11000;x107++)
{
if(this._f551<this._f552.length)
{
this.addFOI(this._f552[this._f551]);
this._f551++;
}
else
 {
this._f552=null;
this._f553=null;
return;
}
}
this.setTimeout("this.startAddGroupFOI()",5);
}
MVMapView.prototype.addFOI=function(x108)
{
if(!this._f82&&this.compareBaseURL(x108._f67)&&x108.style&&x108.style.indexOf!=undefined)
{
var x109=x108.style.split(".");
if(x109.length>=2)
{
_f15._f85(x109[0]);
this._f85(x109[0]);
}
}
if(!x108||!x108.id)
return false;
if(x108.gtype%10==1)
x108._f155=true;
x108.parent=this;
if(x108.id!="")
{
var x110=x108.id.substr(0,3);
if(x110!="-RL")
{
for(var x111=0;x111<this._f174._f198.length;x111++)
{
if(this._f174._f198[x111].id==x108.id)
{
MVi18n.processLocale("MAPVIEWER-5508",x108.id);
return false;
}
}
}
}
if(x108.gtype%10==1&&!x108.style)
{
x108._f147=x108._f67;
}
if(!x108._f67)
x108._f67=_f15._f138();
this._f174._f188(x108);
return true;
}
MVMapView.prototype.getFOI=function(id)
{
return this._f174._f204(id);
}
MVMapView.prototype.removeFOI=function(x112)
{
if(!x112)
return ;
if(x112.id)
this._f174._f187(x112.id);
else
 this._f174._f187(x112);
}
MVMapView.prototype.getAllFOIs=function()
{
return this._f174._f233();
}
MVMapView.prototype._f234=function()
{
this._f235();
if(this._f174!=null)
{
var x113=(this._f174._f212()-
this._f55())*0.5/this._f52;
var x114=(this._f174._f213()-
this._f57())*0.5/this._f53;
MVUtil._f185(this._f174._f218(),
(this._f55()-this._f174._f212())/2,
(this._f57()-this._f174._f213())/2);
MVUtil._f185(this._f174.getTopContainer(),
(this._f55()-this._f174._f212())/2,
(this._f57()-this._f174._f213())/2);
this._f174._f234(this._f236-x113,
this._f266-x114,this._f265+x113,
this._f237+x114);
}
}
MVMapView.prototype.removeAllFOIs=function()
{
this._f174._f222();
}
MVMapView.prototype.addRedLineTool=function(x115)
{
if(x115==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter redlineTool is null.\n From: MVMapView.addRedLineTool(...)");
return;
}
x115.parent=this;
if(!x115._f67)
x115._f67=_f15._f138();
}
MVMapView.prototype.addCircleTool=function(x116)
{
if(x116==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter circleTool is null. \nFrom: MVMapView.addCircleTool(...)");
return;
}
this._f59.appendChild(x116._f20);
x116.parent=this;
if(!x116._f19)
x116._f19=_f15._f138();
}
MVMapView.prototype.addRectangleTool=function(x117)
{
if(x117==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter rectangleTool is null. \nFrom: MVMapView.addRectangleTool(...)");
return;
}
this.div.appendChild(x117._f554);
x117.parent=this;
if(!x117._f19)
x117._f19=_f15._f138();
}
MVMapView.prototype.addDistanceTool=function(x118)
{
if(x118==null)
{
MVi18n.processLocale("MAPVIEWER-5500","The parameter distanceTool is null.\n From: MVMapView.addDistanceTool(...)");
return;
}
x118.parent=this;
if(!x118._f67)
x118._f67=_f15._f138();
}
MVMapView.prototype.stopMarqueeZoom=function()
{
this._f456=false;
if(this._f457)
this._f457.clear();
}
MVMapView.prototype.startMarqueeZoom=function(x119,x120,x121)
{
if(!x119)
x119="one_time";
if(x121&&x121>0)
this._f493=x121;
this._f456=true;
this._f455=x119;
this.marqueeZoom(x120);
}
MVMapView.prototype.marqueeZoom=function(x122)
{
if(!this._f456)
return ;
this._f458=false;
this._f460=false;
var x123=this._f457;
if(!x123)
{
x123=new MVRectangleTool(null,null);
x123.setDivFillColor("#555555",0.3);
this.addRectangleTool(x123);
this._f457=x123;
}
if(x122)
x123.setDivStyle(x122);
x123.init();
var x124=MVUtil._f61(x123,function()
{
this.clear();
var x125=null;
if(this.parent.marqueeRectGeom)
x125=this.parent.marqueeRectGeom.getMBR();
if(x125&&
(this._f455=="prompt"||
Math.abs(x125[2]-x125[0])*this.parent._f52>=this.parent._f493&&
Math.abs(x125[3]-x125[1])*this.parent._f53>=this.parent._f493))
{
var x126=document.getElementById("mv_mrqzm_msg");
if(x126)
x126.parentNode.removeChild(x126);
this.parent.zoomToRectangle(this.parent.marqueeRectGeom);
}
if(this.parent._f455!="one_time")
{
this.parent.marqueeZoom();
}
});
var x127=MVUtil._f61(x123,function()
{
this.parent._f458=true;
this.parent.marqueeRectGeom=x123.getRectangle();
x124();
});
var x128=MVUtil._f61(x123,function()
{
this.parent.marqueeRectGeom=x123.getRectangle();
x124();
this._f456=false;
});
var x129=MVUtil._f61(x123,function(x130)
{
this.parent._f459=true;
x130=(x130)?x130:((window.event)?event:null);
MVUtil._f41(x130);
});
var x131=MVUtil._f61(x123,function(x132)
{
x132=(x132)?x132:((window.event)?event:null);
if(this.parent._f459)
{
MVUtil._f41(x132);
x124();
}
});
var x133=MVUtil._f61(x123,function()
{
this.parent._f458=true;
this.parent.marqueeRectGeom=x123.getRectangle();
if(!this.parent.marqueeRectGeom)
{
this.clear();
this.parent.marqueeZoom();
return ;
}
var x134=this.parent;
var x135=x123.getRectangleDIV();
MVUtil._f182(x135,"crosshair");
if(MVMessages.marqueeZoomHint)
{
x135.onmouseover=function(x136)
{
var x137=document.getElementById("mv_mrqzm_msg");
if(x137)
x137.parentNode.removeChild(x137);
x137=MVUtil._f555(MVMessages.marqueeZoomHint);
x137.id="mv_mrqzm_msg";
x137.style.border="1px solid #000000";
x137.style.backgroundColor="#FFFFCC";
x137.style.position="absolute";
var x138=MVUtil._f556(x134,x136);
x137.style.left=x138.x+"px";
x137.style.top=x138.y+"px";
x137.style.zIndex=9999;
x134._f59.appendChild(x137);
};
x135.onmouseout=function()
{
var x139=document.getElementById("mv_mrqzm_msg");
if(x139)
x139.parentNode.removeChild(x139);
};
}
this.parent._f459=false;
x135.onmousedown=x129;
x135.onmouseup=x131;
x135.onclick=function(x140)
{
MVUtil._f41(x140);
};
});
this._f459=false;
if(this._f455=="prompt")
x123.addEventListener("on_finish",x133);
else if(this._f455=="continuous")
x123.addEventListener("on_finish",x127);
else
 x123.addEventListener("on_finish",x128);
}
MVMapView.prototype.zoomToRectangle=function(x141)
{
if(!this._f154)
{
this._f557(this,"zoomToRectangle",x141);
return ;
}
var x142=this;
var x143=function(x144)
{
var x145=x144.getMBR();
var x146=Math.abs(x145[0]-x145[2]);
var x147=Math.abs(x145[1]-x145[3]);
var x148=x146*(x142._f52);
var x149=x147*(x142._f53);
var x150=x142._f55();
var x151=x142._f57();
var x152=x142._f401;
var x153=x152;
var x154=x142._f448;
if(x150<x148||x151<x149)
{
for(var x155=(x152-1);x155>=0;--x155)
{
x153=x155;
var x156=(x142._f439[x155]/x142.msi._f369(x155))*x146;
var x157=(x142._f440[x155]/x142.msi._f370(x155))*x147;
if(x156<=x150&&x157<=x151)
break;
}
}
else if(x150>x148&&x151>x149)
{
for(var x155=(x152+1);x155<=x154;++x155)
{
var x156=(x142._f439[x155]/x142.msi._f369(x155))*x146;
var x157=(x142._f440[x155]/x142.msi._f370(x155))*x147;
if(x156<=x150&&x157<=x151)
x153=x155;
else
 break;
}
}
var x158=(x145[0]+x145[2])/2;
var x159=(x145[1]+x145[3])/2;
var x160=MVSdoGeometry.createPoint(x158,x159,x142.srid);
x142.zoomTo(x153,x160);
}
if(!x141.srid)
x141.srid=this.srid;
if(x141.srid&&this.srid!=x141.srid)
this.transformGeom(x141,this.srid,null,x143);
else
 x143(x141);
}
MVMapView.prototype._f559=function(x161)
{
var x162=(x161._f212()-this._f55())*0.5/this._f52;
var x163=(x161._f213()-this._f57())*0.5/this._f53;
var x164=new Array();
if(x161._f560._f561==1&&x161._f560._f562==1)
{
x164[0]=this._f236;
x164[1]=this._f266;
x164[2]=this._f265;
x164[3]=this._f237;
}
else
 {
var x165=this._f563(this._f236-x162,this._f266-x163);
var x166=this._f564(this._f265+x162,this._f237+x163);
x164[0]=x165.x;
x164[1]=x165.y;
x164[2]=x166.x;
x164[3]=x166.y;
}
var x167=Math.floor((x164[2]-x164[0])*this._f52+0.5);
var x168=Math.floor((x164[3]-x164[1])*this._f53+0.5);
x161._f565(x167,x168);
return x164;
}
MVMapView.prototype._f512=function()
{
this._f235();
var x169=0;
for(x169=0;x169<this._f442.length;x169++)
{
var x170=this._f442[x169];
if(x170._f560._f566)
{
x170.clearTransImageLayer();
var x171=this._f559(x170);
x170._f523(this,x171[0],x171[1],x171[2],x171[3],true,true,null,true,x170._f560._f567);
return true;
}
}
return false;
}
MVMapView.prototype._f514=function(x172,x173)
{
var x174=this;
var x175=function(x176)
{
x176.style.position="absolute";
if(x174._f444==1||x174._f444==3)
x176.style.right=MVUtil._f250(x174._f445);
else
 x176.style.left=MVUtil._f250(x174._f445);
if(x174._f444==2||x174._f444==3)
x176.style.bottom=MVUtil._f250(x174._f446);
else
 x176.style.top=MVUtil._f250(x174._f446);
}
x172._f568(this,x173,x175);
}
MVMapView.prototype.addThemeBasedFOI=function(x177)
{
if(!this._f82&&this.compareBaseURL(x177._f67)&&
x177._f275.indexOf("<jdbc_query")<0)
{
var x178=x177._f275.split(".");
if(x178.length>=2)
{
_f15._f85(x178[0]);
this._f85(x178[0]);
}
}
if(this._f485)
{
this._f569(x177);
return ;
}
if(!x177)
{
MVi18n.processLocale("MAPVIEWER-5500","Parameter themeBasedFOI is null.\n From: addThemeBasedFOI()");
return ;
}
if(!this._f210)
this._f210=new _f260(this);
for(var x179=0;x179<this._f442.length;x179++)
{
if(MVUtil._f97(this._f442[x179]._f560.name)==MVUtil._f97(x177.name))
{
MVi18n.processLocale("MAPVIEWER-5509",MVUtil._f97(x177.name));
return;
}
}
x177.parent=this;
var x180=new _f570(this,x177);
if(this._f442.length<100)
{
x180.div.style.zIndex=this._f442.length*2+130;
x180._f571=this._f442.length;
}
else
 {
x180.div.style.zIndex=100*2+130;
x180._f571=100;
}
x180.setSize(parseInt(x177._f561*(this._f55())),
parseInt(x177._f562*(this._f57())));
this._f442[this._f442.length]=x180;
if(this._f154)
{
var x181=this._f559(x180);
MVUtil._f185(x180._f218(),Math.ceil((x181[0]-this._f236)*this._f52),
-Math.ceil((x181[3]-this._f237)*this._f53));
if(x177._f566)
x180._f523(this,x181[0],x181[1],
x181[2],x181[3],false,true,false,false,x177._f567);
else
 x180._f523(this,x181[0],x181[1],
x181[2],x181[3],false,false);
}
}
MVMapView.prototype.getThemeIndex=function(x182)
{
for(var x183=0;x183<this._f442.length;x183++)
{
if(MVUtil._f97(this._f442[x183]._f560.name)==MVUtil._f97(x182.name))
{
return x183+1;
}
}
MVi18n.processLocale("MAPVIEWER-5510",MVUtil._f97(x182.name));
}
MVMapView.prototype.getOrigThemeIndex=function(x184)
{
for(var x185=0;x185<this._f442.length;x185++)
{
if(MVUtil._f97(this._f442[x185]._f560.name)==MVUtil._f97(x184.name))
{
return this._f442[x185]._f571;
}
}
MVi18n.processLocale("MAPVIEWER-5510",MVUtil._f97(x184.name));
}
MVMapView.prototype.setThemeIndex=function(x186,x187)
{
if(x187>100)
x187=100;
if(x187<1)
x187=1;
for(var x188=0;x188<this._f442.length;x188++)
{
if(MVUtil._f97(this._f442[x188]._f560.name)==MVUtil._f97(x186.name))
{
while(x188+1<this._f442.length&&x188+1<x187)
{
var x189=this._f442[x188];
this._f442[x188]=this._f442[x188+1];
this._f442[x188+1]=x189;
x188++;
}
while(x188+1>x187)
{
var x189=this._f442[x188];
this._f442[x188]=this._f442[x188-1];
this._f442[x188-1]=x189;
x188--;
}
break;
}
}
for(var x190=0;x190<this._f442.length;x190++)
{
this._f442[x190].div.style.zIndex=x190*2+130;
if(this._f442[x190]._f572)
this._f442[x190]._f572.style.zIndex=x190*2+130+1;
if(this._f442[x190]._f572&&this._f442[x190]._f573!=1&&
this._f442[x190]._f560._f574<=this._f401)
this._f473.style.zIndex=x190*2+130+1;
}
}
MVMapView.prototype.setToOrigThemeIndex=function(x191)
{
for(var x192=0;x192<this._f442.length;x192++)
{
if(MVUtil._f97(this._f442[x192]._f560.name)==MVUtil._f97(x191.name))
{
this._f442[x192].div.style.zIndex=this._f442[x192]._f571*2+130;
if(this._f442[x192]._f573==2&&_f15._f86!="IF"&&
this._f442[x192]._f572)
{
this._f442[x192]._f572.style.zIndex=this._f442[x192]._f571*2+130+1;
}
}
}
}
MVMapView.prototype.getThemeBasedFOI=function(x193)
{
for(var x194=0;x194<this._f442.length;x194++)
{
if(this._f442[x194].getThemeBasedFOI().name==x193)
{
return this._f442[x194].getThemeBasedFOI();
}
}
return null;
}
MVMapView.prototype.enableInfoWindowEventPropagation=function(x195)
{
if(!this._f210)
this._f210=new _f260(this);
this._f210.enableEventPropagation(x195);
}
MVMapView.prototype.refreshThemeBasedFOIs=function(x196)
{
if(this._f210)
this._f210._f263();
this._f235();
var x197=0;
for(x197=0;x197<this._f442.length;x197++)
{
var x198=this._f442[x197];
if(x198._f573!=1)
{
x198.clearTransImageLayer();
}
var x199=this._f559(x198);
var x200=x198._f560.getFOIData();
if(x200!=null)
{
if(!x198._f576&&
!x198._f560._f577&&x200[0].gtype%10==1&&
x198._f560._f578<this._f401){
x198._f579();
x198.div.style.display='none';
x198._f560.minX=x198.minX=x199[0];
x198._f560.minY=x198.minY=x199[1];
x198._f560.maxX=x198.maxX=x199[2];
x198._f560.maxY=x198.maxY=x199[3];
x198._f401=this._f401;
var x201=Math.ceil((x198.minX-this._f236)*this._f52);
var x202=-Math.ceil((x198.maxY-this._f237)*this._f53);
MVUtil._f185(x198._f218(),x201,x202);
x198._f192=this._f191;
x198._f195=this._f194;
for(var x203=0;x203<x200.length;x203++)
{
x198._f580(x200[x203]);
}
x198.makeFOIsVisiable();
x198._f576=false;
x198._f581=false;
continue;
}
}
x198._f523(this,x199[0],x199[1],x199[2],x199[3],x196,false,null,true);
}
}
MVMapView.prototype._f563=function(x204,x205)
{
var x206={"x":0,"y":0};
var x207=Math.floor((x204-this.msi._f214())/this.msi._f369(this._f401));
var x208=Math.floor((x205-this.msi._f215())/this.msi._f370(this._f401));
x206.x=this.msi._f214()+x207*this.msi._f369(this._f401);
x206.y=this.msi._f215()+x208*this.msi._f370(this._f401);
return x206;
}
MVMapView.prototype._f564=function(x209,x210)
{
var x211={"x":0,"y":0};
var x212=Math.floor((x209-this.msi._f214())/this.msi._f369(this._f401));
var x213=Math.floor((x210-this.msi._f215())/this.msi._f370(this._f401));
x211.x=this.msi._f214()+(x212+1)*this.msi._f369(this._f401);
x211.y=this.msi._f215()+(x213+1)*this.msi._f370(this._f401);
return x211;
}
MVMapView.prototype._f582=function()
{
if(this._f154)
{
for(var x214=0;x214<this._f442.length;x214++)
this._f442[x214].setVisible(false,false);
this.refreshThemeBasedFOIs(false);
}
while(this._f442.length>0)
{
this._f442[this._f442.length-1].destroy();
this._f442[this._f442.length-1]=null;
this._f442.pop();
}
while(this._f473.childNodes.length>0)
{
this._f473.removeChild(this._f473.childNodes[0]);
}
}
MVMapView.prototype.removeThemeBasedFOI=function(x215)
{
if(!x215)
return ;
for(var x216=0;x216<this._f442.length;x216++)
{
if(x215==this._f442[x216].getThemeBasedFOI())
{
this._f442[x216].destroy();
this._f442[x216]=this._f442[this._f442.length-1];
this._f442[this._f442.length-1]=null;
this._f442.pop();
break;
}
}
for(var x217=0;x217<this._f473.childNodes.length;x217++)
{
if(this._f473.childNodes[x217].id==x215.name)
{
this._f473.removeChild(this._f473.childNodes[x217]);
x217--;
}
}
for(var x218=0;x218<this._f442.length;x218++)
{
this._f442[x218].div.style.zIndex=x218*2+130;
if(this._f442[x218]._f572&&this._f442[x218]._f573!=1&&
this._f442[x218]._f560._f574<=this._f401)
{
this._f442[x218]._f572.style.zIndex=x218*2+130+1;
this._f473.style.zIndex=x218*2+130+1;
}
}
}
MVMapView.prototype._f583=function()
{
if(this._f210)
this._f210._f263();
this._f235();
var x219=0;
var x220=false;
for(x219=0;x219<this._f442.length;x219++)
{
var x221=this._f442[x219];
if((
this._f236<x221._f214()||
this._f266<x221._f215()||
this._f265>x221._f216()||
this._f237>x221._f217())&&x221._f560._f577)
{
if(x221._f573!=1)
{
x221.clearTransImageLayer();
}
var x222=this._f559(x221);
x221._f523(this,x222[0],x222[1],x222[2],x222[3],true,false);
}
else if(x221._f576)
{
x221._f523(this,0,0,0,0,true,false);
}
}
if(this._f236<this._f174.minX||
this._f266<this._f174.minY||
this._f265>this._f174.maxX||
this._f237>this._f174.maxY)
{
var x223=(this._f174._f212()-this._f55())*0.5/this._f52;
var x224=(this._f174._f213()-this._f57())*0.5/this._f53;
this._f174._f234(this._f236-x223,
this._f266-x224,
this._f265+x223,
this._f237+x224);
}
if(!x220)
{
this._f210.refresh(this._f236,this._f266,this._f265,
this._f237,this._f55(),this._f57());
x220=true;
}
}
MVMapView.prototype.getAllThemeBasedFOIs=function()
{
return this._f442;
}
MVMapView.prototype.setDefaultInfoWindowStyle=function(x225,x226)
{
_f15._f81=x225;
if(x225=="MVInfoWindowStyle1")
MVInfoWindowStyle1._f290=x226;
}
MVMapView.prototype.displayInfoWindow=function(x227,x228,x229,x230,x231,x232,x233)
{
if(this.infoWindowTimeout)
{
clearTimeout(this.infoWindowTimeout);
this.infoWindowTimeout=null;
}
var x234=this;
var x235=function(x236)
{
if(x236)
x227=x236;
x234._f210._f279(x228,x227.sdo_point.x,x227.sdo_point.y,x229,x230,x231,x232,x233);
}
var x237=function()
{
if(x234._f154)
{
if(!x227.srid)
x227.srid=x234.srid;
if(x227.srid&&(x234.srid!=x227.srid))
center=x234.transformGeom(x227,x234.srid,null,x235);
else
 x235();
}
else
 x234.infoWindowTimeout=setTimeout(x237,200);
}
x237();
}
MVMapView.prototype.setInfoWindow=function(x238,x239,x240)
{
this._f470=x238;
this._f104=x239;
this._f105=x240;
}
MVMapView.prototype._f584=function(x241,x242)
{
_f15._f104=x241;
_f15._f105=x242;
}
MVMapView.prototype.removeInfoWindow=function()
{
if(this._f210._f211.length>0)
this._f210.deleteInfoWindow(this._f210._f211[0]);
}
MVMapView.prototype.addCSTransformFunction=function(x243,x244,x245)
{
_f15._f16(x244,x245,x243);
}
MVMapView.prototype.transformGeom=function(geometry,_f9,_f95,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._f143(geometry.srid,_f9);
if(clientTrans)
{
var _f146=null;
if(geometry.getGType()==1)
{
var result=clientTrans(geometry.getPointX(),geometry.getPointY());
_f146=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._f585(clientTrans,geometry.sdo_ordinates);
_f146=new MVSdoGeometry(geometry.gtype,_f9,geometry.sdo_elem_info,ordinates);
}
if(_f146)
{
if(callBack)
{
callBack(_f146);
return ;
}
else
 return _f146;
}
}
if(_f95)
{}
else if(this._f414)
{
if(MVUtil._f244(this._f414,'/'))
{
_f95=this._f414+'mcserver';
}
else
 {
_f95=this._f414+'/mcserver';
}
}
else
 {
MVi18n.processLocale("MAPVIEWER-5504");
}
var localDomain=(MVUtil._f101(_f95)==MVUtil._f101(this._f137));
var xmlHttp=localDomain||MVMapView._f103;
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 _f586;
var _f587;
var _f588;
if(dataSource)
_f588=dataSource;
else
 _f588=this._f82;
_f587=MVUtil._f186(geometry.toString(),"null","");
if(geometry.getGType()==1)
{
_f587=MVUtil._f186(_f587,"SdoPointType","");
}
else
 {
}
_f587=MVUtil._f186(_f587," ","");
if(MVMapView._f103&&!localDomain)
_f95=_f15._f141()+"?rtarget="+_f95+"&";
else
 _f95=_f95+"?";
var _f589=_f95+"request=cstransform&dstsrid="+
_f9+"&geometry="+_f587+"&datasource="+_f588;
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);
_f586=result;
if(result.length==0)
{
result=null;
return;
}
var _f146=null;
if(_f586.SDO_GTYPE==1)
{
_f146=MVSdoGeometry.createPoint(_f586.SDO_POINT.X,_f586.SDO_POINT.Y,_f586.SDO_SRID);
}
else
 {
_f146=new MVSdoGeometry(2000+_f586.SDO_GTYPE,_f586.SDO_SRID,_f586.SDO_ELEM_INFO,_f586.SDO_ORDINATES,null)
}
result=null;
}
catch(e)
{
MVi18n.processLocale("MAPVIEWER-5511",request.responseText);
return ;
}
if(callBack)
callBack(_f146);
if(xmlHttp)
return _f146;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=transformed;
request.open("GET",encodeURI(_f589),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._f590=function()
{
MVUtil._f182(document.body,"wait");
MVUtil._f182(this._f59,"wait");
}
MVMapView.prototype._f591=function()
{
MVUtil._f182(document.body,"");
MVUtil._f182(this._f59,this._f465);
}
MVMapView.prototype.getMapTileLayer=function(x246)
{
var x247=x246.split(".");
if(x247.length<2){
return "";
}
else
 return x247[1];
}
MVMapView.prototype.getMapImageURL=function(x248,x249,x250,x251)
{
var x252=this.getMapAsXML(x249,x250,x251);
var x253=(this._f414==this._f464);
var x254=x253||MVMapView._f103;
var x255="";
if(MVMapView._f103&&!x253)
x255=this._f464;
else
 x255=this._f414;
if(MVUtil._f244(x255,'/'))
x255=x255+'omserver';
else
 x255=x255+'/omserver';
var x256=MVUtil.getXMLHttpRequest(x254);
x256.open("POST",x255,true);
x256.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
x256.send("xml_request="+encodeURIComponent(x252));
x256.onreadystatechange=function()
{
if(x256.readyState==4)
{
if(x256.status==200)
{
var x257=x256.responseText;
var x258=x257.indexOf("url=\"");
if(x258<0)
{
MVi18n.alert("Error in map response:"+x257);
return ;
}
var x259=x257.substring(x258+5,x257.indexOf("\"",x258+5));
x248(x259);
}
}
}
}
MVMapView.prototype.getMapAsXML=function(x260,x261,x262)
{
if(!x261)
x261=this._f55();
if(!x262)
x262=this._f57();
var x263="<?xml version=\"1.0\" standalone=\"yes\"?>"
x263=x263+"<map_request datasource=\""+this._f82+"\" format=\""+x260+"\" width=\""+
x261+"\" height=\""+x262+"\" antialiase=\"true\" "+
(this.getSrid()?"srid=\""+this.getSrid()+"\"":"")+">";
var x264=parseInt(this._f57())/this._f53;
var x265=this.getCenter();
x263=x263+"<center size=\""+x264+"\"><geoFeature><geometricProperty typeName=\"center\"><Point><coordinates>"+x265.sdo_point.x+","+x265.sdo_point.y+"</coordinates></Point></geometricProperty></geoFeature></center>";
x263=x263+"<themes>";
for(i=0;i<this._f245.length;i++)
{
if(this._f245[i].isVisible())
x263=x263+"<theme name=\"cached_basemap"+i+"\">"+this._f245[i].getXMLForPrint()+"</theme>";
}
var x266="";
var x267="";
var x268="";
for(var x269=0;x269<this._f442.length;x269++)
{
if(this._f442[x269].isVisible())
{
x266+=this._f442[x269]._f255();
if(this._f442[x269]._f560._f592!=null)
x268+=this._f442[x269]._f560._f592.getXML(this._f442[x269]._f560);
var x270=this._f442[x269]._f560._f593;
if(x270.length>0)
{
for(var x271=0;x271<x270.length;x271++)
{
x267+=x270[x271].getXMLString();
}
}
}
}
for(var x269=0;x269<this._f174._f198.length;x269++)
{
if(this._f174._f198[x269].style&&
this._f174._f198[x269].style.getXMLString&&
this._f174._f198[x269].visible)
x267+=this._f174._f198[x269].style.getXMLString();
}
x263=x263+x266+"</themes>";
if(x267!="")
x263+="<styles>"+x267+"</styles>";
if(x268!="")
x263+=x268;
x263=x263+this._f174._f255();
x263=x263+"</map_request>";
return x263;
}
MVMapView.prototype._f255=function()
{
return this.getMapAsXML("GIF_URL");
}
MVMapView.prototype._f337=function()
{
this.real_base_div.className=null;
this._f594=null;
if(this._f472)
while(this._f472.childNodes.length>0)
{
var x272=this._f472.childNodes[0];
if(x272.src)
{
}
x272.onload=null;
this._f472.removeChild(x272);
MVUtil._f221(x272);
}
}
MVMapView.prototype._f595=function()
{
this.real_base_div.className=("noprint");
}
MVMapView.prototype.print=function(x273)
{
var x274=this;
if(x273.style.position!="absolute")
x273.style.position="relative";
x273.style.width=MVUtil._f250(this._f55());
x273.style.height=MVUtil._f250(this._f57());
if(!this._f596)
{
this._f590();
this._f337();
var x275=this._f255();
var x276=(this._f414==this._f464);
var x277=x276||MVMapView._f103;
var x278="";
if(MVMapView._f103&&!x276)
x278=this._f464;
else
 x278=this._f414;
if(MVUtil._f244(x278,'/'))
x278=x278+'omserver';
else
 x278=x278+'/omserver';
_f232=MVUtil.getXMLHttpRequest(x277);
_f232.open("POST",x278,true);
_f232.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
_f232.send("xml_request="+encodeURIComponent(x275));
_f232.onreadystatechange=function()
{
if(_f232.readyState==4)
{
if(_f232.status==200)
{
x274._f472=x273;
var x279=document.createElement("img");
var x280=_f232.responseText;
var x281=x280.indexOf("url=\"");
if(x281<0)
{
MVi18n.alert("Error in map response:"+x280);
return ;
}
x279.src=x280.substring(x281+5,x280.indexOf("\"",x281+5));x279.style.position="absolute";
x279.style.left=MVUtil._f250(0);
x279.style.top=MVUtil._f250(0);
x274._f472.appendChild(x279);
x279.onload=MVUtil._f61(x279,function()
{
x274._f595();
if(x274._f462!=null)
for(var x282=0;x282<x274._f462.length;x282++)
{
if(x274._f462[x282]._f310&&x274._f462[x282].visible&&!x274._f462[x282].collapsed)
x274._f472.appendChild(x274._f462[x282]._f346());
}
x274._f597(true);
if(x274._f443)
{
x274._f447=new MVScaleBar(x274._f443._f70);
x274._f514(x274._f447,x274._f472)
}
x274._f591();
window.print();
x274._f596=false;
})
x274._f594=x279;
}
}
}
}
}
MVMapView.prototype._f597=function(x283)
{
var x284=document.createElement("span");
x284.className="copyright";
x284.style.zIndex=1999;
if(typeof x283=="string")
{
x284.innerHTML=" "+x283+" ";
this._f472.appendChild(x284);
}
else if(this._f598!=undefined)
{
x284.innerHTML=" "+this._f598.innerHTML+" ";
this._f472.appendChild(x284);
}
}
MVMapView.prototype.setMouseWheelZoomEnabled=function(x285)
{
this._f454=x285;
this._f63();
}
MVMapView.prototype._f63=function()
{
var x286=this;
var x287=this.getBrowserType();
this._f59.onmouseover=MVUtil._f61(this._f59,function()
{
x286._f40=true;
});
this._f59.onmouseout=MVUtil._f61(this._f59,function(x288)
{
if(x287=="NS"||x287=="OS")
{
x288=(x288)?x288:((window.event)?event:null);
var x289=x288.clientX;
var x290=x288.clientY;
var x291=x286._f55();
var x292=x286._f57();
var x293=MVUtil._f64(this);
var x294=x288.pageX-x293.x;
var x295=x288.pageY-x293.y;
if(x294<=0||x294>=x291||
x295<=0||x295>=x292||
x289<=0||x289>=document.body.clientWidth||
x290<=0||x290>=document.body.clientHeight)
{
x286._f599(x288);
x286._f40=false;
if(x286._f479.contains(37))x286._f479.remove(37);
if(x286._f479.contains(38))x286._f479.remove(38);
if(x286._f479.contains(39))x286._f479.remove(39);
if(x286._f479.contains(40))x286._f479.remove(40);
}
}
else
 {
x286._f40=false;
if(x286._f479.contains(37))x286._f479.remove(37);
if(x286._f479.contains(38))x286._f479.remove(38);
if(x286._f479.contains(39))x286._f479.remove(39);
if(x286._f479.contains(40))x286._f479.remove(40);
}
});
this.div.onclick=MVUtil._f61(this.div,function(x296)
{
if(x286.mouseDownLoc&&x286.mouseUpLoc&&
(Math.abs(x286.mouseDownLoc.left-x286.mouseUpLoc.left)>1||
Math.abs(x286.mouseUpLoc.top-x286.mouseUpLoc.top)>1))
return ;
if(x286._f311)
{
x286._f311(MVUtil.getEvent(x296));
}
else
 return;
});
if(!this._f500)
MVUtil.detachEvent(document.body,"mousedown",this._f500);
this._f500=MVUtil._f61(document.body,function()
{
x286._f40=false;
});
MVUtil.attachEvent(document.body,"mousedown",this._f500);
if(x287=="IF")
{
this._f59.onselectstart=MVUtil._f61(this._f59,function()
{
if(x286._f271)
return true;
else
 return false;
});
this._f59.oncontextmenu=MVUtil._f61(this._f59,function(x297)
{
x286._f62(window.event);
if(x286._f477)
{
x286._f477(MVUtil.getEvent(x297));
}
if(x286._f271)
return true;
else
 return false;
});
if(this._f454)
this._f59.onmousewheel=MVUtil._f61(this._f59,function()
{
return x286._f600(window.event);
});
this._f59.onmousedown=MVUtil._f61(this._f59,function()
{
MVUtil._f41(window.event);
return x286._f601(window.event);
});
this._f59.onmousemove=MVUtil._f61(this._f59,function()
{
return x286._f602(window.event);
});
this._f59.onmouseup=MVUtil._f61(this._f59,function()
{
x286._f40=true;
return x286._f599(window.event);
});
this.div.ondblclick=MVUtil._f61(this.div,function()
{
return x286._f603(window.event);
});
if(!this._f350)
{
if(!this._f503)
MVUtil.detachEvent(document.body,"keydown",this._f503);
this._f503=MVUtil._f61(document.body,function()
{
return x286._f604(window.event);
});
MVUtil.attachEvent(document.body,"keydown",this._f503);
if(!this._f504)
MVUtil.detachEvent(document.body,"keyup",this._f504);
this._f504=MVUtil._f61(document.body,function()
{
return x286._f605(window.event);
});
MVUtil.attachEvent(document.body,"keyup",this._f504);
var x298=function()
{
x286._f606(window.event);
return false;
}
var x299=function()
{
if(MVUtil._f607==document.body.offsetWidth)
{
MVUtil._f608=0;
x298();
}
else
 {
MVUtil._f609=window.setTimeout(x299,100);
}
}
if(!this._f497)
MVUtil.detachEvent(window,"resize",this._f497);
this._f497=MVUtil._f61(window,function(x300)
{
if(Math.abs(x286._f488-x286._f55())<=3||
Math.abs(x286._f489-x286._f57())<=3)
{
return ;
}
MVUtil._f608++;
MVUtil._f607=document.body.offsetWidth;
if(MVUtil._f608>1)
{
if(MVUtil._f609)
window.clearTimeout(MVUtil._f609);
MVUtil._f609=window.setTimeout(x299,100);
}
});
MVUtil.attachEvent(window,"resize",this._f497);
}
}
else if(x287=="NS")
{
this._f59.oncontextmenu=function(x301)
{
x286._f62(x301);
if(x286._f477)
{
x286._f477(MVUtil.getEvent(x301));
}
if(x286._f271)
return true;
else
 return false;
};
this._f59.onmousedown=function(x302)
{
x302.stopPropagation();
return x286._f601(x302);
};
this._f59.onmousemove=function(x303)
{
return x286._f602(x303);
};
this._f59.onmouseup=function(x304)
{
x286._f40=true;
return x286._f599(x304);
};
var x305=function(x306)
{
x306.preventDefault();
if(x306.detail<0)x286.zoomIn();
else x286.zoomOut();
}
if(this._f454)
this._f59.addEventListener("DOMMouseScroll",x305,false);
this.div.ondblclick=function(x307)
{
return x286._f603(x307);
};
if(!this._f498)
MVUtil.detachEvent(window.document,"mouseup",this._f498);
this._f498=function(x308)
{
return x286._f599(x308);
};
MVUtil.attachEvent(window.document,"mouseup",this._f498);
if(!this._f350)
{
if(!this._f501)
MVUtil.detachEvent(window.document,"keydown",this._f501);
this._f501=function(x309)
{
return x286._f604(x309);
};
MVUtil.attachEvent(window.document,"keydown",this._f501);
if(!this._f502)
MVUtil.detachEvent(window.document,"keyup",this._f502);
this._f502=function(x310)
{
return x286._f605(x310);
};
MVUtil.attachEvent(window.document,"keyup",this._f502);
if(!this._f497)
MVUtil.detachEvent(window,"resize",this._f497);
this._f497=function(x311)
{
if(Math.abs(x286._f488-x286._f55())<=3||
Math.abs(x286._f489-x286._f57())<=3)
{
return ;
}
x286._f606(x311);
return false;
};
MVUtil.attachEvent(window,"resize",this._f497);
}
}
else if(x287=="SF")
{
this._f59.oncontextmenu=function(x312)
{
x286._f62(x312);
if(x286._f477)
{
x286._f477(MVUtil.getEvent(x312));
}
if(x286._f271)
return true;
else
 return false;
};
this._f59.onmousedown=function(x313)
{
x313.stopPropagation();
return x286._f601(x313);
};
this._f59.onmousemove=function(x314)
{
return x286._f602(x314);
};
this._f59.onmouseup=function(x315)
{
x286._f40=true;
return x286._f599(x315);
};
var x316=function(x317)
{
x317.preventDefault();
if(x317.detail>0||x317.wheelDelta<0)
x286.zoomOut();
else
 x286.zoomIn();
}
if(this._f454)
this._f59.onmousewheel=x316;
this.div.ondblclick=function(x318)
{
return x286._f603(x318);
};
if(!this._f498)
MVUtil.detachEvent(window.document,"mouseup",this._f498);
this._f498=function(x319)
{
return x286._f599(x319);
};
MVUtil.attachEvent(window.document,"mouseup",this._f498);
if(!this._f350)
{
if(!this._f501)
MVUtil.detachEvent(window.document,"keydown",this._f501);
this._f501=function(x320)
{
return x286._f604(x320);
};
MVUtil.attachEvent(window.document,"keydown",this._f501);
if(!this._f502)
MVUtil.detachEvent(window.document,"keyup",this._f502);
this._f502=function(x321)
{
return x286._f605(x321);
};
MVUtil.attachEvent(window.document,"keyup",this._f502);
if(!this._f497)
MVUtil.detachEvent(window,"resize",this._f497);
this._f497=function(x322)
{
if(Math.abs(x286._f488-x286._f55())<=3||
Math.abs(x286._f489-x286._f57())<=3)
{
return ;
}
x286._f606(x322);
return false;
};
MVUtil.attachEvent(window,"resize",this._f497);
}
}
if(x287=="OS")
{
this._f59.onmousedown=function()
{
window.event.stopPropagation();
return x286._f601(window.event);
};
this._f59.onmousemove=function()
{
return x286._f602(window.event);
};
this._f59.onmouseup=function()
{
x286._f40=true;
return x286._f599(window.event);
};
this.div.ondblclick=function()
{
return x286._f603(window.event);
};
if(!this._f498)
MVUtil.detachEvent(window.document,"mouseup",this._f498);
this._f498=function(x323)
{
return x286._f599(window.event);
};
MVUtil.attachEvent(window.document,"mouseup",this._f498);
if(!this._f350)
{
if(!this._f497)
MVUtil.detachEvent(window,"resize",this._f497);
this._f497=function(x324)
{
if(Math.abs(x286._f488-x286._f55())<=3||
Math.abs(x286._f489-x286._f57())<=3)
{
return ;
}
x286._f606(window.event);
return false;
};
MVUtil.attachEvent(window,"resize",this._f497);
}
this._f59.onkeypress=function()
{
return x286._f604(window.event);
};
this._f59.onkeyup=function()
{
return x286._f605(window.event);
};
}
}
MVMapView.prototype._f600=function(x325)
{
if(x325.wheelDelta>0)this.zoomIn();
else this.zoomOut();
return false;
}
MVMapView.prototype._f606=function(x326)
{
this._f490=false;
this._f401=this.getZoomLevel();
if(this._f401>this._f448)
{
this._f401=this._f448;
return ;
}
MVUtil._f185(this.div,0,0);
MVUtil._f185(this._f262,0,0);
this._f251=0;
this._f252=0;
this._f331=this._f251;
this._f330=this._f252;
this._f505=0;
this._f506=0;
this.setZoomLevel(this._f401);
if(this._f535)
{
if(this.centerMarkUrl)
this.setCenterMark(this.centerMarkUrl,this.centerMarkW,this.centerMarkH);
else
 this.setCenterMark(_f15._f126+"center.gif",20,20);
}
if(this.navigationPanel)
this.navigationPanel.init();
for(lc=0;lc<this._f442.length;lc++)
{
this._f442[lc].setSize(
parseInt(this._f442[lc]._f560._f561*(this._f55())),
parseInt(this._f442[lc]._f560._f562*(this._f57())));
}
this.display();
if(this._f443)
{
this._f443._f534(this);
}
if(this._f348)
{
this._f348._f352._f606();
this._f348._f351();
}
if(this._f462!=null)
for(var x327=0;x327<this._f462.length;x327++)
{
this._f462[x327]._f345();
}
return false;
}
MVMapView.prototype.getBrowserType=function()
{
return _f15._f86;
}
MVMapView.prototype.enableKeyboardPanning=function(x328)
{
this._f481=x328;
}
MVMapView.prototype._f604=function(x329)
{
if(!this._f40||!this._f481)
return true;
if(this._f610==undefined||this.scroll_up==undefined||this._f611==undefined||this._f612==undefined)
{
this._f610=0;
this.scroll_up=0;
this._f611=0;
this._f612=0;
this._f613=0;
}
var x330=(this.getBrowserType()!="OS")?96:48;
if(!x329.shiftKey)
{
switch(x329.keyCode)
{
case 37:this._f610=1;this._f479.add(x329.keyCode);break;
case 38:this.scroll_up=1;this._f479.add(x329.keyCode);break;
case 39:this._f611=1;this._f479.add(x329.keyCode);break;
case 40:this._f612=1;this._f479.add(x329.keyCode);break;
case x330+1:this._f610=1;this._f612=1;
break;
case x330+2:this._f612=1;this._f479.add(x329.keyCode);
break;
case x330+3:this._f611=1;this._f612=1;
break;
case x330+4:this._f610=1;this._f479.add(x329.keyCode);
break;
case x330+5:break;
case x330+6:this._f611=1;this._f479.add(x329.keyCode);
break;
case x330+7:this._f610=1;this.scroll_up=1;
break;
case x330+8:this.scroll_up=1;this._f479.add(x329.keyCode);
break;
case x330+9:this.scroll_up=1;this._f611=1;
break;
default:return true;
}
this._f614();
return false;
}
else
 return true;
}
MVMapView.prototype._f605=function(x331)
{
if(!this._f40)return;
var x332=(this.getBrowserType()!="OS")?96:48;
if(x331.shiftKey)
{
switch(x331.keyCode)
{
case 37:this._f479.remove(x331.keyCode);
break;
case 38:this._f479.remove(x331.keyCode);break;
case 39:this._f479.remove(x331.keyCode);
break;
case 40:this._f479.remove(x331.keyCode);break;
default:return true;
}
}
else
 {
switch(x331.keyCode)
{
case 33:this.smoothScroll(0,-this._f57()/2);break;
case 34:this.smoothScroll(0,this._f57()/2);break;
case 35:this.smoothScroll(this._f55()/2,0);break;
case 36:this.smoothScroll(-this._f55()/2,0);break;
case 37:this._f479.remove(x331.keyCode);break;
case 38:this._f479.remove(x331.keyCode);
break;
case 39:this._f479.remove(x331.keyCode);
break;
case 40:this._f479.remove(x331.keyCode);break;
case x332+1:this._f610=0;
this._f612=0;
break;
case x332+2:this._f612=0;
this._f479.remove(x331.keyCode);
break;
case x332+3:this._f611=0;
this._f612=0;
break;
case x332+4:this._f610=0;
this._f479.remove(x331.keyCode);
break;
case x332+5:this._f610=0;
this.scroll_up=0;
this._f611=0;
this._f612=0;
break;
case x332+6:this._f611=0;
this._f479.remove(x331.keyCode);
break;
case x332+7:this._f610=0;
this.scroll_up=0;
break;
case x332+8:this.scroll_up=0;
this._f479.remove(x331.keyCode);
break;
case x332+9:this.scroll_up=0;
this._f479.remove(x331.keyCode);
this._f611=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._f615=function(x333)
{
x333=(x333)?x333:((window.event)?event:null);
var x334=x333.clientX+document.body.scrollLeft-this._f59.offsetLeft;
return x334;
}
MVMapView.prototype._f616=function(x335)
{
x335=(x335)?x335:((window.event)?event:null);
var x336=x335.clientY+document.body.scrollTop-this._f59.offsetTop;
return x336;
}
MVMapView.prototype._f617=function(x337)
{
var x338={left:0,top:0};
absolutePosition=MVUtil._f64(this.real_base_div);
if(x337.pageX||x337.pageY)
{
x338.left=x337.pageX-absolutePosition.x;
x338.top=x337.pageY-absolutePosition.y;
}
else if(x337.clientX||x337.clientY)
{
x338.left=x337.clientX+document.body.scrollLeft-
document.body.clientLeft-absolutePosition.x;
x338.top=x337.clientY+document.body.scrollTop-
document.body.clientTop-absolutePosition.y;
if(document.body.parentElement&&document.body.parentElement.clientLeft)
{
var x339=document.body.parentElement;
x338.left+=x339.scrollLeft-x339.clientLeft;
x338.top+=x339.scrollTop-x339.clientTop;
}
}
return x338;
}
MVMapView.prototype._f601=function(x340)
{
x340=(x340)?x340:((window.event)?event:null);
var x341=this._f617(x340);
this.mouseDownLoc=x341;
if(this._f456&&this._f458)
{
this._f460=true;
}
if(this._f437==false)return;
if(x340.button==2)
{
return;
}
if((_f15._f86!="SF")&&(_f15._f86.indexOf("OS")!=0)&&
((_f15._f86=="IF"&&x340.button==4)||(_f15._f86!="IF"
&&x340.button==1)))
{
MVUtil._f41(x340);
return false;
}
for(var x342=0;x342<this._f442.length;x342++)
{
if(this._f442[x342]._f201())
{
MVUtil._f182(this._f59,"wait");
}
}
if((_f15._f86.indexOf("OS")==0)&&x340.button==2)
{
_f618();
}
if(this._f441!=null)
{
clearInterval(this._f441);
this._f441=null;
}
this._f438=this;
this._f507(x341.left,x341.top);
this._f62(x340);
if(_f15._f74==2)x340.returnValue=false;
if(this._f436)this._f438=null;
this._f619();
return false;
}
MVMapView.prototype._f619=function()
{
if(this.fetchingMapId)
{
clearTimeout(this.fetchingMapId);
}
this.fetchingMapId=this.setTimeout("this.fetching()",400);
}
MVMapView.prototype.fetching=function()
{
this._f235();
for(var x343=0;x343<this._f245.length;x343++)
this._f245[x343]._f409();
this._f619();
}
function _f618(x0)
{
x0=(x0)?x0:((window.event)?event:null);
MVUtil._f41(x0);
return false;
}
MVMapView.prototype._f242=function()
{
this._f438=null;
MVUtil._f182(this._f59,this._f465);
}
MVMapView.prototype._f602=function(x344)
{
if(this._f340)
{
var x345=MVUtil._f239(x344);
this._f340._f185(
this._f340.dragStartLeft+(x345.x-this._f340.dragStartMouseLoc.x),
this._f340.dragStartTop+(x345.y-this._f340.dragStartMouseLoc.y));
if(this._f340._f317)
this._f340._f317(this._f340.getPosition());
return ;
}
if(this._f437==false)return;
if(!this._f438||this._f436)return true;
this._f337();
var x346=this._f617(x344);
if(this._f467!=this._f466)
MVUtil._f182(this._f59,this._f466);
if(this._f456&&this._f458&&this._f460)
this._f460=false;
this._f510(x346.left,x346.top);
if(this._f348)
{
this._f348._f620(this._f331-this._f251,this._f330-this._f252)
}
if(this._f478)
{
this._f478(this._f331-this._f251,this._f330-this._f252);
}
return false;
}
MVMapView.prototype._f599=function(x347)
{
x347=(x347)?x347:((window.event)?event:null);
var x348=this._f617(x347);
this.mouseUpLoc=x348;
if(this._f340)
{
this._f340._f242();
}
if(this._f456&&this._f460)
{
this._f457.clear();
this.marqueeZoom();
}
if(this._f437==false)return;
x347=(x347)?x347:((window.event)?event:null);
MVUtil._f182(this._f59,this._f465);
if(!this._f438&&!this._f436)return;
this._f438=null;
if(x347)this._f62(x347);
this._f235();
if(this._f435==true)
{
for(var x349=0;x349<this._f245.length;x349++)
this._f245[x349]._f409();
this._f583();
this._f435=false;
if(this._f348)
{
this._f348._f621();
}
if(this._f476)
{
this._f476();
}
if(this._f443)
{
this._f443._f534(this);
}
}
if(this.fetchingMapId!=null)
{
clearTimeout(this.fetchingMapId);
}
this._f337();
}
MVMapView.prototype.setDoubleClickAction=function(x350)
{
if(x350==null||(x350!='recenter'&&x350!='zoomin'))
MVi18n.processLocale("MAPVIEWER-5500","Invalid paramter 'action' specified! From: setDoubleClickAction(...) in MapView");
this._f482=x350
}
MVMapView.prototype._f603=function(x351)
{
x351=(x351)?x351:((window.event)?event:null);
if(this._f68){
this._f68(MVUtil.getEvent(x351));
return true;
}
if(!this._f350&&this._f482=="zoomin")
{
this.zoomIn(this.getMouseLocation());
return true;
}
if(this._f436)
{
this._f438=null;
this._f59.style.cursor=this._f465;
return true;
}
this._f59.style.cursor=this._f465;
if(this._f441!=null)
{
clearInterval(this._f441);
this._f441=null;
}
var x352=this._f617(x351);
var x353=x352.left;
var x354=x352.top;
this._f525=this._f55()/2-x353;
this._f526=this._f57()/2-x354;
this._f66=Math.sqrt(this._f525*this._f525+this._f526*this._f526);
this._f529=20;
this._f527=this._f55();
this._f528=this._f57();
this._f530=this._f66>((this._f527+this._f528)/4)?300:200;
this._f531=0;
this._f532=0;
this._f533=0;
this.smoothPan();
}
MVMapView.prototype.pan=function(x355,x356)
{
this.smoothScroll(x355,x356);
}
MVMapView.prototype.smoothScroll=function(x357,x358)
{
if(x357==0&&x358==0)
{
return;
}
if(this._f436)
{
this._f438=null;
this._f59.style.cursor=this._f465;
return true;
}
this._f59.style.cursor=this._f465;
if(this._f441!=null)
{
clearTimeout(this._f441);
this._f441=null;
}
this._f525=x357*(-1);
this._f526=x358*(-1);
this._f66=Math.sqrt(x357*x357+x358*x358);
this._f529=10;
this._f527=this._f55();
this._f528=this._f57();
this._f530=this._f66>((this._f527+this._f528)/4)?300:200;
this._f531=0;
this._f532=0;
this._f533=0;
this.smoothPan();
}
MVMapView.prototype.smoothPan=function(x359)
{
this._f531++;
var x360=x359?1:this._f531*this._f529/this._f530;
this.targetX=this._f525*(2*x360-x360*x360);
this.targetY=this._f526*(2*x360-x360*x360);
var x361=this._f527/2;
var x362=this._f528/2;
this._f507(x361,x362);
x361=Math.round(this.targetX-this._f532)+this._f527/2;
x362=Math.round(this.targetY-this._f533)+this._f528/2;
this._f510(x361,x362);
if(this._f348)
{
this._f348._f620(this._f331-this._f251,this._f330-this._f252)
}
if(this._f478)
{
this._f478(this._f331-this._f251,this._f330-this._f252);
}
this._f532=this.targetX;
this._f533=this.targetY;
this._f235();
for(i=0;i<this._f245.length;i++)
this._f245[i]._f409();
if(x360<1.0)
{
if(!myFlag)
	this._f441=this.setTimeout("this.smoothPan()",this._f529);
else myFlag=false;
	
this._f485=true;
}
else
 {
clearTimeout(this._f441);
this._f441=null;
this._f583();
this._f435=false;
if(this._f348)
{
this._f348._f621();
}
if(this._f476)
{
this._f476();
}
if(this._f443)
{
this._f443._f534(this);
}
this._f337();
this._f485=false;
return false;
}
}
MVMapView.prototype.smoothMove=function(x363,x364)
{
this.targetX=x363*(-1);
this.targetY=x364*(-1);
var x365=this._f55()/2;
var x366=this._f57()/2;
this._f507(x365,x366);
x365=Math.round(this.targetX+this._f55()/2);
x366=Math.round(this.targetY+this._f57()/2);
this._f510(x365,x366);
if(this._f478)
{
this._f478(this._f331-this._f251,this._f330-this._f252);
}
for(i=0;i<this._f245.length;i++)
this._f245[i]._f409();
}
var _f209=0;
MVMapView.prototype.setTimeout=function(_f207,_f208)
{
var Ie="tempVar"+_f209;
_f209++;
eval(Ie+" = this;");
var oi=_f207.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f208);
}
MVMapView.prototype._setTimeoutDispatcher=function(func)
{
eval(func);
}
MVMapView.prototype._f614=function(x367,x368)
{
if(!this._f441)
{
this._f441=this.setTimeout("this.arrowScroll()",5)
}
}
MVMapView.prototype.arrowScroll=function()
{
if(this._f436)
{
this._f438=null;
this._f59.style.cursor=this._f465;
return true;
}
this._f59.style.cursor=this._f465;
if(this._f441!=null)
{
clearTimeout(this._f441);
this._f441=null;
}
var x369=(this.getBrowserType()!="OS")?96:48;
if(this._f479.length>0)
{
var x370=((this._f479.contains(37)||this._f479.contains(x369+4))?1:0)+
((this._f479.contains(39)||this._f479.contains(x369+6))?-1:0);
var x371=((this._f479.contains(38)||this._f479.contains(x369+8))?1:0)+
((this._f479.contains(40)||this._f479.contains(x369+2))?-1:0);
this.moveOffsetX=(x370==1?15:0)+(x370==-1?-15:0);
this.moveOffsetY=(x371==1?15:0)+(x371==-1?-15:0);
this._f507(0,0);
this._f510(this.moveOffsetX,this.moveOffsetY);
if(this._f348)
{
this._f348._f620(this._f331-this._f251,this._f330-this._f252)
}
if(this._f478)
{
this._f478(this._f331-this._f251,this._f330-this._f252);
}
for(i=0;i<this._f245.length;i++)
this._f245[i]._f409();
this._f441=this.setTimeout("this.arrowScroll()",5)
}
else
 {
this._f337();
this._f441=null;
this._f235();
this._f583();
this._f435=false;
if(this._f348)
{
this._f348._f621();
}
if(this._f476)
{
this._f476();
}
if(this._f443)
{
this._f443._f534(this);
}
}
}
MVMapView.prototype._f622=function(x372){
var x373=this._f617(x372);
var x374=x373.left;
var x375=x373.top;
if(((_f15._f86=="NS"))&&((x374<=0)||(x374>=
this._f55())||(x375<=0)||(x375>=
this._f57()))&&(this._f438))
{
this._f599();
}
}
MVMapView.prototype._f62=function(x376)
{
var x377=MVUtil.getMouseLocation(this,x376);
var x378=x377.sdo_point.x;
var x379=x377.sdo_point.y;
this._f429=x378;
this._f430=x379;
}
MVMapView.prototype._f623=function(x380)
{
this._f436=x380;
}
MVMapView.prototype.enableDragging=function(x381)
{
this._f623(!x381);
}
function _f480(x0)
{
this.length=0;
if(x0)
{
for(var x1=x0.length-1;x1>=0;--x1)
{
this.add(x0[x1]);
this.length++;
}
}
}
_f480.prototype.add=function(x382)
{
if(!this.contains(x382))
{
this["key"+x382]=1;
this.length++;
}
}
_f480.prototype.remove=function(x383)
{
if(this.exist(x383))
{
delete this["key"+x383];
this.length--;
}
}
_f480.prototype.contains=function(x384)
{
return this["key"+x384]==1;
}
_f480.prototype.exist=function(x385)
{
return this["key"+x385]==1||this["key"+x385]==2;
}
_f480.prototype.sleep=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=2;
}
}
}
_f480.prototype.wakeup=function()
{
for(prop in this)
{
if(typeof this[prop]!="function")
{
this[prop]=1;
}
}
}
MVMapView.prototype.addMapDecoration=function(x386)
{
if(this._f462==null)
this._f462=new Array();
this._f462.push(x386);
if(this._f154)
{
var id="_md_"+this._f463
x386.init(id,this);
if(x386._f309)
{
this._f59.appendChild(x386._f335);
}
else
 this._f59.appendChild(x386._f308);
this._f463++;
x386._f154=true;
}
}
MVMapView.prototype.removeMapDecoration=function(x387)
{
if(x387==null||x387.id==null||this._f462==null)
{
return;
}
for(var x388=0;x388<this._f462.length;x388++)
if(this._f462[x388].id==x387.id)
{
if(this._f462[x388]._f310)
this._f337();
this._f462[x388]=this._f462[this._f462.length-1]
this._f462.pop();
x387._f344();
var x389=null;
if(x387._f309)
x389=x387._f335;
else
 x389=x387._f308;
x389.onclick=null;
x389.onmouseover=null;
x389.onmouseout=null;
this._f59.removeChild(x389);
MVUtil._f221(x389);
break;
}
}
MVMapView.prototype.addCopyRightNote=function(x390)
{
if(this._f598!=undefined)
{
this._f59.removeChild(this._f598);
delete this._f598;
}
var x391=document.createElement("SPAN");
x391.innerHTML=" "+x390+" ";
x391.style.zIndex=2000;
x391.style.position="absolute";
x391.style.right=MVUtil._f250(-1);
x391.style.bottom=MVUtil._f250(-1);
x391.style.fontSize=12;
x391.style.color="black";
x391.style.backgroundColor="";
this._f59.appendChild(x391);
this._f598=x391;
}
MVMapView.prototype.addOverviewMap=function(x392)
{
if(this._f348==null)
this._f348=x392;
else
 return;
if(this._f154)
this._f348.init(this._f348._f515,this);
}
function _f624(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._f250(x2);
this.div.style.height=MVUtil._f250(x3);
MVUtil._f413(this.div);
x0.appendChild(this.div);
return this.div;
}
MVMapView.prototype.addNavigationPanel=function(x393,x394,x395,x396,x397)
{
this.navigationPanel=new MVNavigationPanel(x394,x395,x396,x397);
if(!x393)
x393="WEST";
this.navigationPanel._f625=x393;
if(this._f154)
this.navigationPanel.init(this._f59,this);
}
MVMapView.prototype.addScaleBar=function(x398,x399,x400,x401)
{
if(this._f443)
return ;
this._f443=new MVScaleBar(x401);
this._f444=x398||this._f444;
this._f445=x399||this._f445;
this._f446=x400||this._f446;
if(this.msi)
this._f514(this._f443);
}
MVMapView.prototype.setMouseCursorStyle=function(x402,x403)
{
if(x403=="dragging")
this._f466=x402;
else if(x403=="default")
{
this._f465=x402;
MVUtil._f182(this._f59,x402);
}
}
MVMapView.prototype.enableLoadingIcon=function(x404)
{
this._f483=x404;
if(!x404)
this.setLoadingIconVisible(false);
}
MVMapView.prototype.setLoadingIconVisible=function(x405)
{
if(!this._f483)
x405=false;
if(!x405)
{
if(this._f484)
this._f484.style.visibility="hidden";
}
else
 {
if(!this._f484)
{
var x406=document.createElement("img");x406.src=_f15._f126+"loading.gif";
x406.style.zIndex=2001;
x406.style.position="absolute";
var x407=0,x408=0;
if(x406.width)
x407=x406.width;
if(x406.height)
x408=x406.height;
x406.style.left=MVUtil._f250((this._f55()-x407)/2);
x406.style.top=MVUtil._f250((this._f57()-x408)/2);
var x409=this;
x406.onload=function()
{
x406.style.left=MVUtil._f250((x409._f55()-x406.width)/2);
x406.style.top=MVUtil._f250((x409._f57()-x406.height)/2);
x406.onload=null;
};
this._f59.appendChild(x406);
this._f484=x406;
}
else
 {
this._f484.style.left=MVUtil._f250((this._f55()-this._f484.width)/2);
this._f484.style.top=MVUtil._f250((this._f57()-this._f484.height)/2);
this._f484.style.visibility="visible";
}
}
}
MVMapView.prototype.getMapCoordinates=function(x410)
{
return MVSdoGeometry.createPoint(x410.x/this._f52+this._f236,
this._f237-x410.y/this._f53,this.srid);
}
MVMapView.prototype.setDefaultFOIImageFormat=function(x411)
{
if(x411)
this._f259=x411.toUpperCase();
}
MVMapView.prototype._f516=function()
{
var x412=true;
for(i=0;i<this._f442.length;i++)
{
var x413=this._f442[i];
if(x413.div&&x413.isVisible()&&x413._f581)
{
x412=false;
break;
}
}
if(x412)
this.setLoadingIconVisible(false);
}
MVMapView.prototype._f569=function(x414)
{
if(!this._f486)
this._f486=new Array();
this._f486.push(x414);
var x415=this;
var x416=function()
{
if(x415._f485)
return ;
clearInterval(x415._f487);
x415._f487=null;
while(x415._f486.length>0)
{
x415.addThemeBasedFOI(x415._f486.shift());
}
}
if(!this._f487)
this._f487=setInterval(x416,50);
}
MVMapView.prototype._f85=function(x417)
{
if(!this._f82)
this._f82=x417;
}
MVMapView.prototype.compareBaseURL=function(x418)
{
if(x418&&x418!=""&&x418.indexOf(this._f414)<0)
return false;
else
 return true;
}
MVMapView.prototype.checkSize=function()
{
clearTimeout(this._f492);
if(!this._f59)
return ;
if(Math.abs(this._f488-this._f55())>3||
Math.abs(this._f489-this._f57())>3)
{
this._f490=true;
this._f491=0.4;
this._f488=this._f55();
this._f489=this._f57();
}
else
 this._f491+=0.4;
if(this._f491>0.4&&this._f490)
{
this._f606();
this._f490=false;
this._f491=0;
}
this._f492=this.setTimeout("this.checkSize()",300);
}
MVMapView.prototype._f189=function(x419,x420)
{
return {x:(x419-this._f191)*this._f52+this._f55()/2,
y:(this._f194-x420)*this._f53+this._f57()/2};
}
MVMapView.prototype.showInfoTip=function(x421,x422)
{
if(this.infoTipDiv)
this.infoTipDiv.parentNode.removeChild(this.infoTipDiv);
this.infoTipDiv=MVUtil._f555(x421);
this.infoTipDiv.id="mv_mrqzm_msg";
this.infoTipDiv.style.border="1px solid #000000";
this.infoTipDiv.style.backgroundColor="#FFFFCC";
this.infoTipDiv.style.position="absolute";
var x423=MVUtil._f556(this,x422);
this.infoTipDiv.style.left=x423.x+"px";
this.infoTipDiv.style.top=x423.y+"px";
this.infoTipDiv.style.zIndex=9999;
this._f59.appendChild(this.infoTipDiv);
};
MVMapView.prototype._f246=function()
{
if(this.infoTipDiv)
{
this.infoTipDiv.parentNode.removeChild(this.infoTipDiv);
this.infoTipDiv=null;
}
};
MVMapView.prototype._f557=function()
{
if(arguments.length<2)
return ;
var x424=new Array();
for(var x425=2;x425<arguments.length;x425++)
x424[x425-2]=arguments[x425];
var x426={obj:arguments[0],func:arguments[1],params:x424};
this._f494.push(x426);
}
MVMapView.addMapTileLayerDefinition=function(x427)
{
var x428=x427.dataSource?x427.dataSource+"."+x427.mapTileLayer:x427.mapTileLayer;
if(x427)
_f15._f91(x428,x427)
}
MVMapView._f103=false;
MVMapView.enableXMLHTTP=function(x429)
{
MVMapView._f103=x429;
}
MVMapView.setProxyPath=function(x430)
{
_f15._f139=x430;
}
MVMapView.setErrorHandler=function(x431)
{
MVi18n.addBehavior("func",x431,"text");
}
MVMapView._f626=true;
MVMapView.enableCodingHints=function(x432)
{
MVMapView._f626=x432;
}
MVMapView._f627=false;
MVMapView.enableTiming=function(x433)
{
MVMapView._f627=x433;
}
MVMapView.debug=false;
MVMapView.enableDebugMode=function(x434)
{
MVMapView.debug=x434;
}
MVMapView._f585=function(x435,x436)
{
var x437=new Array(x436.length);
for(var x438=0;x438<x436.length;x438+=2)
{
var x439=x435(x436[x438],x436[x438+1]);
x437[x438]=x439.x;
x437[x438+1]=x439.y;
}
return x437;
}
MVMapView.prototype.getPixelsPerXUnit=function()
{
var x440=this.msi.mapConfig.zoomLevels[this._f401].tileImageWidth;
var x441=this.msi.mapConfig.zoomLevels[this._f401].tileWidth;
return x440/x441;
}
MVMapView.prototype.getPixelsPerYUnit=function()
{
var x442=this.msi.mapConfig.zoomLevels[this._f401].tileImageHeight;
var x443=this.msi.mapConfig.zoomLevels[this._f401].tileHeight;
return x442/x443;
}
function _f272(_f281,x,y,_f148,_width,_height,style,_f269,mouseOver,parent,screenLoc,title,parameters)
{
if(_width==null||_width<0)_width=0;
if(_height==null||_height<0)_height=0;
this._f269=_f269;
if(style!="MVInfoWindowStyle1")
{
if(!_width)
_width=_f15._f104;
if(!_height)
_height=_f15._f105;
eval(style+".init()");
this._f282=eval(style+".createWindow("+x+","+y+","+_width+","+_height+")");
_f281.appendChild(this._f282);
}
var close=function(){
if(MVInfoWindowStyle1._f268)
{
clearTimeout(MVInfoWindowStyle1._f268);
MVInfoWindowStyle1._f268=null;
}
MVInfoWindowStyle1.clear();
_f269._f210.deleteInfoWindow(_f281);
}
if(style=="MVInfoWindowStyle1")
{
var _f282=this._f282;
var drawInfoWindow=function()
{
if(MVInfoWindowStyle1.sizeChanged())
{
MVUtil._f283(_f281);
MVInfoWindowStyle1.init(parameters);
_f282=MVInfoWindowStyle1.createWindow(x,y,_width,_height);
_f281.appendChild(_f282);
MVInfoWindowStyle1.addContent(_f281,_f148,title);
var x0=document.getElementById("infowindow3table");
if(x0)
{
if(!isNaN(screenLoc.x))
{
var x1=x0.offsetWidth;var x2=x0.offsetHeight;
var x3=parent.parent._f251;var x4=parent.parent._f252;
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._f284-x2>=0)
x8=x8-MVInfoWindowStyle1._f284-x2;
else
 {
x8=-x4+MVInfoWindowStyle1._f284;
x11=true;
}
}
else
 {
if(x4+x8+MVInfoWindowStyle1._f284+x2<=x6)
x8=x8+MVInfoWindowStyle1._f284;
else
 {
x8=x6-x4-MVInfoWindowStyle1._f284-x2;
x11=true;
}
}
if(x9)
{
if(x3+x7+MVInfoWindowStyle1._f284+x1<=x5||x11)
x7=x7+MVInfoWindowStyle1._f284;
else
 x7=x5-x3-MVInfoWindowStyle1._f284-x1;
}
else
 {
if(x3+x7-MVInfoWindowStyle1._f284-x1>=0||x11)
x7=x7-MVInfoWindowStyle1._f284-x1;
else
 x7=-x3+MVInfoWindowStyle1._f284;
}
x0.style.left=MVUtil._f250(x7-screenLoc.x);
x0.style.top=MVUtil._f250(x8-screenLoc.y);
if(!mouseOver)
{
MVInfoWindowStyle1.addCloseButton(close);
MVInfoWindowStyle1._f285(_f281);
}
MVInfoWindowStyle1.getWindowSize();
}
else
 {
if(!mouseOver)
{
MVInfoWindowStyle1.addCloseButton(close);
MVInfoWindowStyle1._f285(_f281);
}
}
}
}
MVInfoWindowStyle1._f268=setTimeout(drawInfoWindow,500);
}
drawInfoWindow();
this._f282=_f282;
}
else
 {
div=this._f286(_f148,_width);
eval(style+".addContent(div)");
if(!mouseOver)
{
eval(style+".addCloseButton(close)");
}
}
}
_f272.prototype._f286=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._f182(x2,"auto");
return x2;
}
_f272.prototype._f287=function(){
_f269._f210.deleteInfoWindow(_f270);
}
_f272.prototype._f288=function()
{
if(this._f282){
this._f282.style.display="none";
}
}
_f272.prototype._f289=function()
{
this._f282.style.display="";
this._f282.style.visibility="visible";
}
_f272.prototype.isVisible=function()
{
return this._f282&&this._f282.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._f71(new MVSdoPointType(x35,x36,0),x38,0);
var x41=_f11._f71(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=i*Math.PI/18;
x54[i*2]=x50+x52*Math.cos(x55);
x54[i*2+1]=x51+x52*Math.sin(x55);
}
x54[72]=x54[0];
x54[73]=x54[1];
return new MVSdoGeometry(2003,x53,[1,1003,1],x54,null);
}
MVSdoGeometry.createGeodeticCirclePolygon=function(x56,x57,x58,x59)
{
if(!x59)
x59=8307;
var x60=new Array();
for(i=0;i<36;i++)
{
var x61=_f11._f71(new MVSdoPointType(x56,x57,0),x58,i*Math.PI/18);
x60[i*2]=x61.x;
x60[i*2+1]=x61.y;
}
x60[72]=x60[0];
x60[73]=x60[1];
return new MVSdoGeometry(2003,x59,[1,1003,1],x60,null);
}
MVSdoGeometry.createPointAtBearing=function(x62,x63,x64,x65,x66)
{
if(!x66)
x66=8307;
var x67=_f11._f71(new MVSdoPointType(x62,x63,0),x65,x64);
return MVSdoGeometry.createPoint(x67.x,x67.y,x66);
}
MVSdoGeometry.prototype.getRequestURL=function(x68)
{
var x69=String(document.location);
if(!x68)
x68=_f15._f138();
var x70="";
if(MVMapView._f103&&MVUtil._f101(x69)!=MVUtil._f101(x68))
x70=_f15._f141()+"?rtarget="+x68+"&";
else
 x70=x68+"?";
return x70;
}
MVSdoGeometry.prototype.getLength=function(unit,_f70,foiURL,callBack,dataSource)
{
if(!dataSource)
dataSource=_f15._f84();
if(!this.srid)
{
var len=MVSdoGeometry.calcLength(this.sdo_ordinates);
if(callBack)
callBack(len);
return len;
}
var srs=_f15._f93(this.srid);
var clientTransFunc=null;
if(_f70)
clientTransFunc=_f15._f143(this.srid,8307);
if(!_f70||this.srid==8307||this.srid==8265||
_f70&&clientTransFunc)
{
if((srs||this.srid==8307||this.srid==8265||_f70&&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._f90(unit);
if(srs&&srs.distConvFactor&&!_f70)
convFactor=convFactor/srs.distConvFactor;
}
var ordinates=this.sdo_ordinates;
if(clientTransFunc)
ordinates=MVMapView._f585(clientTransFunc,ordinates);
if(convFactor)
{
var len=0;
if(srs&&srs.type!='GEODETIC'&&!_f70)
len=MVSdoGeometry.calcLength(ordinates)/convFactor;
else
 len=_f11._f73(ordinates)/convFactor;
if(callBack)
callBack(len);
return len;
}
}
}
var request=null;
var _f586;
var _f587=MVUtil._f186(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
 {
_f587=MVUtil._f186(_f587," ","");
}
var _f701=this.getRequestURL(foiURL);
var localDomain=(_f701.indexOf(_f15._f141())<0&&
MVUtil._f101(_f701)==MVUtil._f101(_f15._f102()));
var xmlHttp=localDomain||MVMapView._f103;
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;
}
_f701+="request=getlength&version=1.1&figord="+_f587+"";
if(unit)
{
_f701=_f701+"&unit="+unit;
}
if(_f70)
{
var trans=(_f70==true)?"yes":"no";
_f701=_f701+"&togeodetic="+trans;
}
if(dataSource)
_f701=_f701+"&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);
_f586=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(_f586);
if(xmlHttp)
return _f586;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=respLoaded;
request.open("POST",encodeURI(_f701),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,_f70,foiURL,callBack,dataSource)
{
if(!dataSource)
dataSource=_f15._f84();
var request=null;
var _f586;
var _f587=MVUtil._f186(this.toString(),"null","");
if(this.gtype%10!=3&&this.gtype%10!=7)
{
MVi18n.processLocale("MAPVIEWER-5513");
return 0;
}
else
 {
_f587=MVUtil._f186(_f587," ","");
}
var _f701=this.getRequestURL(foiURL);
var localDomain=(_f701.indexOf(_f15._f141())<0&&
MVUtil._f101(_f701)==MVUtil._f101(_f15._f102()));
var xmlHttp=localDomain||MVMapView._f103;
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;
}
_f701+="request=getarea&version=1.1&figord="+_f587+"";
if(unit)
{
_f701=_f701+"&unit="+unit;
}
if(_f70)
{
var trans=(_f70==true)?"yes":"no";
_f701=_f701+"&togeodetic="+trans;
}
if(dataSource)
_f701=_f701+"&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);
_f586=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(_f586);
if(xmlHttp)
return _f586;
}
}
};
try
{
request=MVUtil.getXMLHttpRequest(xmlHttp);
if(callBack||!xmlHttp)
request.onreadystatechange=respLoaded;
request.open("POST",encodeURI(_f701),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 x71=this.getGType();
var x72=""
switch(x71%10)
{
case 1:
x72=this._f702(this.getOrdinates());
break;
case 2:
x72=this._f703(this.getOrdinates());
break;
case 3:
if(this.sdo_elem_info[2]==4)
x72=this._f704(this.getOrdinates());
else
 x72=this._f705(this.getOrdinates());
break;
case 4:
break;
case 5:
x72=this._f702(this.getOrdinates());
break;
case 6:
x72=this._f706();
break;
case 7:
x72=this._f707();
break;
}
return x72;
}
MVSdoGeometry.prototype._f702=function(x73)
{
var x74=MVSdoGeometry._f708(x73);
var x75="<Point srsName=\"SDO:"+this.srid+"\" ><coordinates>";
x75=x75+x74+"</coordinates></Point>";
return x75;
}
MVSdoGeometry.prototype._f703=function(x76)
{
var x77=MVSdoGeometry._f708(x76);
var x78="<LineString srsName=\"SDO:"+this.srid+"\" ><coordinates>";
x78=x78+x77+"</coordinates></LineString>"
return x78;
}
MVSdoGeometry.prototype._f705=function(x79)
{
var x80=MVSdoGeometry._f708(x79);
var x81="<Polygon srsName=\"SDO:"+this.srid+"\" ><outerBoundaryIs><LinearRing><coordinates>";
x81=x81+x80+"</coordinates></LinearRing></outerBoundaryIs></Polygon>"
return x81;
}
MVSdoGeometry.prototype._f707=function()
{
var x82=this.getOrdinatesOfElements();
var x83="<MULTIPOLYGON srsName=\"SDO:"+this.srid+"\" >";
for(var x84=0;x84<x82.length;x84++)
{
x83=x83+"<polygonMember>";
x83=x83+this._f705(x82[x84]);
x83=x83+"</polygonMember>";
}
x83=x83+"</MULTIPOLYGON>";
return x83;
}
MVSdoGeometry.prototype._f706=function()
{
var x85=this.getOrdinatesOfElements();
var x86="<MultiLineString srsName=\"SDO:"+this.srid+"\" >";
for(var x87=0;x87<x85.length;x87++)
{
x86=x86+"<lineStringMember>";
x86=x86+this._f703(x85[x87]);
x86=x86+"</lineStringMember>";
}
x86=x86+"</MultiLineString>";
return x86;
}
MVSdoGeometry.prototype._f704=function(x88)
{
var x89=parseFloat(x88[2]);
var x90=parseFloat(x88[1]);
var x91=parseFloat(x88[0])-parseFloat(x88[2]);
var x92="";
var x93=2*Math.PI;
var x94=x89+x91*Math.cos((x93*0)/120);
for(var x95=1;x95<120;x95++)
{
if(x95%2==0)
{
x92=x89+x91*Math.cos((x93*x95)/120);
x94+=" "+x92;
}
else
 {
x92=x90+x91*Math.sin((x93*x95)/120);
x94+=","+x92;
}
}
var x96="<Polygon srsName=\"SDO:"+this.srid+"\" ><outerBoundaryIs><LinearRing><coordinates>";
x96+=x94+"</coordinates></LinearRing></outerBoundaryIs></Polygon>";
return x96;
}
MVSdoGeometry._f708=function(x97)
{
var x98=0;
var x99="";
for(;x98<x97.length;x98+=2)
{
if(x98>0)
x99+=" ";
x99+=x97[x98+0]+","+x97[x98+1];
}
return x99;
}
MVSdoGeometry.getDistance=function(x100,x101,x102,x103,x104,x105,x106,x107,x108)
{
var x109=new Array(x100,x101,x102,x103);
var x110=MVSdoGeometry.createLineString(x109,x104);
return x110.getLength(x105,x106,x107,x108);
}
MVSdoGeometry.calcLength=function(x111)
{
var x112=0,x113=2;
if(x111&&x111.length>3)
{
for(;x113<x111.length;x113+=2)
{
var x114=x111[x113]-x111[x113-2];
var x115=x111[x113+1]-x111[x113-1];
x112+=Math.sqrt(x114*x114+x115*x115);
}
return x112;
}
else
 return 0;
}
MVSdoGeometry.calcPolygonArea=function(x116,x117)
{
if(x116&&x116.length>=4)
{
var x118=0;
var x119=x116.length/2;
var x120;
for(x120=1;x120+1<x119;x120++)
{
var x121=x116[x120*2]-x116[0];
var x122=x116[x120*2+1]-x116[1];
var x123=x116[x120*2+2]-x116[0];
var x124=x116[x120*2+3]-x116[1];
var x125=x121*x124-x123*x122;
x118+=x125;
}
return Math.abs(x125/2.0);
}
else
 return 0;
}
function MVSdoPointType(x0,x1,x2)
{
this.x=x0;
this.y=x1;
this.z=x2;
}
MVSdoPointType.prototype.toString=function()
{
var x126="SdoPointType( ";
x126+=this.x+", ";
x126+=this.y+", ";
x126+=this.z+" )";
return x126;
}
function MVOverviewMap(x0,x1,x2)
{
if(x0&&!x0.style)
{
if(x1)
x2=x1;
x1=x0;
}
this.type="MVOverviewMap";
this._f306=true;
this._f515=x0?x0:null;
this._f349=null;
this._f640=x1;
this._f352=null;
this.overviewMapTileLayer=x2;
this._f641=false;
this._f205=0;
this._f206=0;
this.coords=null;
this._f642=false;
this._f643=false;
this.borderStyle="2px solid red";
this.backgroundColor="red";
this._f466=null;
this._f465=null;
this._f644=null;
}
MVOverviewMap.prototype.init=function(x0,x1)
{
x1._f348=this;
if(x0)
this._f515=x0;
this._f515._f350=true;
this._f349=x1;
var x2=this._f349.getZoomLevel()-this._f640;
if(x2<0)
x2=0;
this._f352=new MVMapView(this._f515,this._f349._f414);
this._f352.enableLoadingIcon(false);
if(this._f465)
this._f352.setMouseCursorStyle(this._f465,"default");
if(this._f466)
this._f352.setMouseCursorStyle(this._f466,"dragging");
if(this.overviewMapTileLayer==null)
{
var x3=this._f349._f245[0]._f378();
this.overviewMapTileLayer=new MVMapTileLayer(this._f349._f245[0]._f365(),x3);
}
this._f645=document.createElement("div");
this._f352._f59.appendChild(this._f645);
this._f645.style.zIndex=10000;
var x4=this;
var x5=function(x6,x7)
{
if(!x4._f643)
{
x4._f645.style.left=(parseInt(x4._f645.style.left)-x6)+"px";
x4._f645.style.top=(parseInt(x4._f645.style.top)-x7)+"px";
}
}
var x8=function(x9,x10)
{
var x11=x9-x10;
if(x10>x9&&x4._f349._f450)
{
x4._f352._f450=false;
x4._f349.setZoomLevel(MVOverviewMap._f646(x4._f349.getZoomLevel()-x11));
x4._f351();
}
else if(x10<x9&&x4._f349._f450)
{
x4._f352._f450=false;
if(x4._f349.getZoomLevel()-x9==x4._f640){
x4._f349.setZoomLevel(MVOverviewMap._f646(x4._f349.getZoomLevel()-x11));
}
else{
x4._f349.setZoomLevel(MVOverviewMap._f646(x9-x11+x4._f640));
}
x4._f351();
}
x4._f349._f450=true;
}
var x12=function()
{
if(!x4._f643)
{
x4._f642=true;
x4._f349.setCenter(x4._f352.getCenter());
x4._f351();
}
x4._f643=false;
}
this._f352.addEventListener("moving",x5);
this._f352.addEventListener("recenter",x12);
this._f352.addEventListener("zoom",x8);
var x13=function()
{
var x14=x4._f349.getCenter();
x4._f352.setCenter(x14);
x4._f352.setZoomLevel(MVOverviewMap._f646(x2));
x4._f352._f350=true;
function setRectangle()
{
x4._f351();
}
x4._f352.setEventListener("initialize",setRectangle);
x4._f352.display();
}
this._f352.addMapTileLayer(this.overviewMapTileLayer,x13);
}
MVOverviewMap.prototype._f344=function()
{
this.destroy();
}
MVOverviewMap.prototype.destroy=function()
{
if(this._f349)
this._f349._f348=null;
if(this._f352)
this._f352.destroy();
MVUtil._f224(this._f515);
this._f352=null;
}
MVOverviewMap.prototype._f351=function()
{
var x15=this._f349.getMapWindowBBox();
var x16=this._f352.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._f352._f55();
var x23=x17.yRatio*x17._f352._f57();
x17._f645.style.position="absolute";
x17._f645.style.overflow="hidden";
x17._f645.style.zIndex=10000
x17._f645.style.left=((x17._f352._f55()-x22)/2)+"px";
x17._f645.style.top=((x17._f352._f57()-x23)/2)+"px";
x17._f645.style.width=x22+"px";
x17._f645.style.height=x23+"px";
x17._f645.style.border=x17.borderStyle;
if(_f15._f86=='NS')
x17._f645.innerHTML="<div  style='width: "+x22+"px; height: "+x23
+"px;opacity: 0.3;background-color:"+x17.backgroundColor+";'></div>";
else if(_f15._f86=='SF')
x17._f645.innerHTML="<div  style='width: "+x22+"px; height: "+x23
+"px;opacity: 0.3;background-color:"+x17.backgroundColor+";'></div>";
else if(_f15._f86=='IF')
x17._f645.innerHTML="<div  style='width: "+x22+"px; height: "+x23
+"px;filter:alpha(opacity=30);background-color:"+x17.backgroundColor+";'></div>";
if(x22>x17._f352._f55()||x23>x17._f352._f57())
x17._f645.style.visibility="hidden";
else
 x17._f645.style.visibility=x17._f352._f59.style.visibility;
x17._f645.onmousedown=MVUtil._f61(x17._f645,function(x24){
x24=(x24)?x24:((window.event)?event:null);
if(x24.button==2)
{
return;
}
x17.coords=x17._f352._f617(x24)
x17._f641=true;
MVUtil._f41(x24);
x17._f205=0;
x17._f206=0;
})
x17._f645.onmouseup=MVUtil._f61(x17._f645,function(x25)
{
x25=(x25)?x25:((window.event)?event:null);
x17._f641=false;
x25.cancelBubble=true;
x17._f645._f647();
})
x17._f645._f647=MVUtil._f61(x17._f645,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._f352;
var x29=x26-x28._f55()/2;
x29=x29/x28._f52;
var x30=x27-x28._f57()/2;
x30=x30/x28._f53;
var x31=x17._f352._f54()+x29;
var x32=x17._f352._f56()-x30;
var x33=MVSdoGeometry.createPoint(x31,x32,x17._f352.srid);
x17._f352.setCenter(x33);
})
if(!x17._f644)
MVUtil.detachEvent(window.document,"mouseup",x17._f644);
x17._f644=MVUtil._f61(window.document,function(x34)
{
if(x17._f641){
x17._f641=false;
x17._f645._f647();
}
});
MVUtil.attachEvent(window.document,"mouseup",x17._f644);
x17._f645.onmousemove=MVUtil._f61(x17._f645,function(x35)
{
x35=(x35)?x35:((window.event)?event:null);
if(x17._f641)
{
var x36=x17._f352._f617(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._f349.transformGeom(x15,x16.srid,null,x18);
}
else
 x18(x15);
}
MVOverviewMap.prototype._f620=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._f642)
{
this._f643=true;
this._f645.style.left=(parseInt(this._f645.style.left)+x39)+"px";
this._f645.style.top=(parseInt(this._f645.style.top)+x40)+"px";
}
}
MVOverviewMap.prototype._f621=function()
{
if(!this._f642)
{
this._f643=true;
this._f352.setCenter(this._f349.getCenter());
this._f351();
}
this._f642=false;
}
MVOverviewMap.prototype._f550=function(x41,x42,x43)
{
var x44=x41-x42;
if(x42>=x41&&this._f352._f450)
{
this._f349._f450=false;
if(x41-this._f352.getZoomLevel()==this._f640){
if(x43)
this._f352.setCenterAndZoomLevel(x43,MVOverviewMap._f646(this._f352.getZoomLevel()-x44));
else
 this._f352.setZoomLevel(MVOverviewMap._f646(this._f352.getZoomLevel()-x44));
}
else {
if(x43)
this._f352.setCenterAndZoomLevel(x43,MVOverviewMap._f646(x41-x44-this._f640));
else
 this._f352.setZoomLevel(MVOverviewMap._f646(x41-x44-this._f640));
}
this._f351();
}
else if(x42<x41&&this._f352._f450)
{
this._f349._f450=false;
if(x43)
this._f352.setCenterAndZoomLevel(x43,MVOverviewMap._f646(this._f352.getZoomLevel()-x44));
else
 this._f352.setZoomLevel(MVOverviewMap._f646(this._f352.getZoomLevel()-x44));
this._f351();
}
this._f352._f450=true;
}
MVOverviewMap.prototype.setRectangleStyle=function(x45,x46)
{
this.borderStyle=x45;
this.backgroundColor=x46;
}
MVOverviewMap.prototype.setMouseCursorStyle=function(x47,x48)
{
if(x48=="dragging")
this._f466=x47;
else if(x48=="default")
{
this._f465=x47;
MVUtil._f182(this._f59,x47);
}
}
MVOverviewMap._f646=function(x49)
{
if(!x49||x49<0)
return 0;
else
 return x49;
}
function MVInfoWindowStyle1()
{
}
MVInfoWindowStyle1._f290=null;
MVInfoWindowStyle1.closeButtonImgURL=null;
MVInfoWindowStyle1._f291=function(x0)
{
if(x0&&x0.closeButtonImageURL)
{
if(!this._f292||
this._f292!=x0.closeButtonImageURL)
{
this.closeButtonWidth=null;
this.closeButtonHeight=null;
}
this._f292=x0.closeButtonImageURL;
if(x0.closeButtonWidth)
this.closeButtonWidth=x0.closeButtonWidth;
if(x0.closeButtonHeight)
this.closeButtonHeight=x0.closeButtonHeight;
}
else
 {
if(!this._f292||
this._f292!=MVInfoWindowStyle1.closeButtonImgURL)
{
this.closeButtonWidth=null;
this.closeButtonHeight=null;
}
this._f292=MVInfoWindowStyle1.closeButtonImgURL;
this.closeButtonWidth=14;
this.closeButtonHeight=14;
}
if(x0&&x0.bodyStyle)
this._f293=x0.bodyStyle;
else
 this._f293="border:1px;border-color:#8794A3;background-color:#FFFFFF";
if(x0&&x0.titleBarStyle)
this._f294=x0.titleBarStyle;
else
 this._f294="background-color:#CFDCEB;font-weight:bold";
if(x0&&x0.coneStyle)
{
this._f295=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._f296=parseInt(x1[i+1]);
break;
}
}
}
else
 {
this._f295="background-color:#99CC33;opacity:30";
this._f296=30;
}
if(x0&&x0.offset)
MVInfoWindowStyle1._f284=x0.offset;
else
 MVInfoWindowStyle1._f284=20;
}
MVInfoWindowStyle1.init=function(x2)
{
if(!MVInfoWindowStyle1.closeButtonImgURL)
MVInfoWindowStyle1.closeButtonImgURL=_f15._f126+"infoicons/closeDialog_n.png";
if(x2)
MVInfoWindowStyle1._f291(x2);
else
 MVInfoWindowStyle1._f291(MVInfoWindowStyle1._f290);
MVInfoWindowStyle1._f104=null;
MVInfoWindowStyle1._f105=null;
MVInfoWindowStyle1._f268=null;
this._f297=null;
this._f298=null;
this.x=null;
this.y=null;
this._f299="";
this._f300=null;
this._f301=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._f293;
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._f250(x5);
else
 x8.style.width=MVUtil._f250(_f15._f104);
}
if(!x8.style.height||x8.style.height==""||
x8.style.height=="0"||x8.style.height=="0px")
{
if(x6)
x8.style.height=MVUtil._f250(x6);
else
 x8.style.height=MVUtil._f250(_f15._f105);
}
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._f250(10);
x9.appendChild(x10);
var x11=document.createElement("TD");
x11.align="center";
this._f301=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._f300=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._f298=x14;
x8.style.left=MVUtil._f250(x3-MVInfoWindowStyle1._f284);
x8.style.top=MVUtil._f250(x4+MVInfoWindowStyle1._f284);
x8.style.position='absolute';
x8.style.zIndex=200;
return x8;
}
MVInfoWindowStyle1.addCloseButton=function(x15)
{
var x16=document.createElement("img");
x16.src=this._f292;
x16.style.cursor='pointer';
if(this.closeButtonWidth)
{
x16.width=this.closeButtonWidth;
x16.style.width=this.closeButtonWidth;
}
if(this.closeButtonHeight)
{
x16.height=this.closeButtonHeight;
x16.style.height=this.closeButtonHeight;
}
if(!this.closeButtonWidth&&!this.closeButtonHeight)
x16.onload=MVInfoWindowStyle1.setCloseButtonSize;
x16.onclick=x15;
this._f300.appendChild(x16);
}
MVInfoWindowStyle1.addContent=function(x17,x18,x19)
{
this._f298.innerHTML=x18;
if(x19)
{
this._f301.innerHTML=x19;
var x20=this._f301.parentNode;
x20.style.cssText=this._f294;
x20.style.border="0px";
x20.style.padding="0px";
x20.style.height=MVUtil._f250(10);
}
}
MVInfoWindowStyle1._f285=function(x21)
{
MVInfoWindowStyle1._f303(x21,this.x,this.y);
}
MVInfoWindowStyle1._f303=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._f104=x31;
MVInfoWindowStyle1._f105=x32;
var x33=0;
var x34=50;
var x35=260;
var x36=340;
var x37=50;if(this._f297)
{
MVUtil._f224(this._f297);
this._f297.parentNode.removeChild(this._f297);
}
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._f297=x38;
x22.appendChild(x38);
zcounter=0;
var x39=x37;this._f299=Math.round((this._f296/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._f295;
x47.style.position='absolute';
MVUtil._f304(x47,x45,x46,x35,x36);
x47.style.border='0px solid black';
x47.style.fontSize="1px";
x47.style.lineHeight=0;
x38.appendChild(x47);
MVInfoWindowStyle1._f305(x47);
x47.style.zIndex=zcounter;
zcounter++;
x43++;
x39-=x44;
}
coneDone=true;
}
MVInfoWindowStyle1._f305=function(x48)
{
if(_f15._f86=="IF"){
x48.style.opacity=0.05;
x48.style.filter='alpha(opacity = '+this._f299+')';
}else if(_f15._f86=="SF"){
var x49=this._f299/100;
x48.style.opacity=x49;
}else{
var x49=this._f299/100;
x48.style.MozOpacity=x49;
}
}
MVInfoWindowStyle1.sizeChanged=function()
{
var x50=document.getElementById("infowindow3table");
if(x50&&
MVInfoWindowStyle1._f104&&
Math.abs(MVInfoWindowStyle1._f104-x50.offsetWidth)<5&&
MVInfoWindowStyle1._f105&&
Math.abs(MVInfoWindowStyle1._f105-x50.offsetHeight)<5)
return false;
else
 return true;
}
MVInfoWindowStyle1.getWindowSize=function()
{
var x51=document.getElementById("infowindow3table");
if(x51)
{
MVInfoWindowStyle1._f104=x51.offsetWidth;
MVInfoWindowStyle1._f105=x51.offsetHeight;
}
}
MVInfoWindowStyle1.setCloseButtonSize=function()
{
if(this.closeButtonWidth||!this._f300||!this._f300.firstChild)
return ;
this.closeButtonWidth=this._f300.firstChild.offsetWidth;
this.closeButtonHeight=this._f300.firstChild.offsetHeight;
}
MVInfoWindowStyle1.clear=function()
{
if(this._f297)
MVUtil._f224(this._f297);
this._f297=null;
if(this._f298)
MVUtil._f224(this._f298);
this._f298=null;
if(this._f300)
MVUtil._f224(this._f300);
this._f300=null;
if(this._f301)
MVUtil._f224(this._f301);
this._f301=null;
}
function MVInfoWindowStyle2()
{
}
MVInfoWindowStyle2.init=function()
{
this.window=null;
this._f302=null;
this.iw=_f15._f126+"/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=_f254(this.iw_arrow,this.arrowwidth+2,this.arrowheight,1,7,0);
this.window.e=_f254(this.iw_v,1,x3+1-this.cornerheight*2,x2+this.arrowwidth,this.cornerheight,0);
this.window.w=_f254(this.iw_v,1,x3-this.cornerheight*2-20,this.arrowwidth,this.arrowendheight+this.cornerheight,0);
this.window.wu=_f254(this.iw_nw,this.cornerwidth,this.cornerheight,this.arrowwidth,0,0);
this.window.wd=_f254(this.iw_sw,this.cornerwidth,25,this.arrowwidth,x3+1-this.cornerheight,0);
this.window.eu=_f254(this.iw_ne,this.cornerwidth,this.cornerheight,x2+this.arrowwidth+1-this.cornerwidth,0,0);
this.window.ed=_f254(this.iw_se,this.cornerwidth,25,x2+this.arrowwidth+1-this.cornerwidth,x3+1-this.cornerheight,0);
this.window.c=_f254(this.iw_c,x2-1,x3+1-this.cornerheight*2,this.arrowwidth+1,this.cornerheight,0);
this.window.cu=_f254(this.iw_c1,x2+1-this.cornerwidth*2,this.cornerheight,this.arrowwidth+this.cornerwidth,0,0);
this.window.cd=_f254(this.iw_c2,x2+1-this.cornerwidth*2,25,this.arrowwidth+this.cornerwidth,x3-this.cornerheight+1,0);
this._f302=window.document.createElement("div");
this._f302.style.position="relative";
this._f302.style.left=MVUtil._f250(x0-1);
this._f302.style.top=MVUtil._f250(x1+2);
this._f302.appendChild(this.window.e);
this._f302.appendChild(this.window.wu);
this._f302.appendChild(this.window.w);
this._f302.appendChild(this.window.cu);
this._f302.appendChild(this.window.c);
this._f302.appendChild(this.window.cd);
this._f302.appendChild(this.window.wd);
this._f302.appendChild(this.window.ed);
this._f302.appendChild(this.window.eu);
this._f302.appendChild(this.window.arrow);
this.width=x2;
return this._f302;
}
MVInfoWindowStyle2.addCloseButton=function(x4)
{
this.closeButton=_f254(this.closeImg,16,16,this.width+10,10,4);
this.closeButton.style.position="absolute";
this.closeButton.onclick=MVUtil._f61(this.closeButton,
function(){x4();});
MVUtil._f182(this.closeButton,"pointer");
this._f302.appendChild(this.closeButton);
}
MVInfoWindowStyle2.addContent=function(x5)
{
x5.style.left=MVUtil._f250(55);
x5.style.top=MVUtil._f250(17);
this._f302.appendChild(x5);
}
MVInfoWindowStyle2.getWindow=function()
{
return this._f302;
}
function MVInfoWindowStyle3()
{
}
MVInfoWindowStyle3.init=function()
{
this.window=null;
this._f302=null;
this.iw=_f15._f126+"/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._f116=600;
this._f117=600;
this._f118=30;
this._f119=16;
this._f120=600;
this._f121=1;
this._f122=1;
this._f123=600;
this._f124=1;
this._f125=10;
}
MVInfoWindowStyle3.createWindow=function(x0,x1,x2,x3)
{
this.window=new Object();
this.window.arrow=_f254(this.iw_arrow,this._f118,this._f119,1,this._f125,0);
this.window.n=_f254(this.iw_h,x2+1,1,this._f118+1,0,0);
this.window.s=_f254(this.iw_h,x2+1,1,this._f118+1,x3+1,0);
this.window.e=_f254(this.iw_v,1,x3+1,x2+this._f118+1,1,0);
this.window.wu=_f254(this.iw_v,1,this._f125,this._f118,0,0);
this.window.wd=_f254(this.iw_v,1,x3-this._f119-this._f125+2,this._f118+1,this._f119+this._f125,0);
this.window.c=_f254(this.iw_c,x2,x3,this._f118+1,1,0);
this._f302=window.document.createElement("div");
this._f302=window.document.createElement("div");
this._f302.style.position="relative";
this._f302.style.left=MVUtil._f250(x0);
this._f302.style.top=MVUtil._f250(x1);
this._f302.appendChild(this.window.n);
this._f302.appendChild(this.window.s);
this._f302.appendChild(this.window.e);
this._f302.appendChild(this.window.wu);
this._f302.appendChild(this.window.c);
this._f302.appendChild(this.window.wd);
this._f302.appendChild(this.window.arrow);
this.width=x2;
return this._f302;
}
MVInfoWindowStyle3.addCloseButton=function(x4)
{
this.closeButton=_f254(this.closeImg,15,15,this.width-1,10,4);
this.closeButton.style.position="absolute";
MVUtil._f182(this.closeButton,"pointer");
this._f302.appendChild(this.closeButton);
this.closeButton.onclick=MVUtil._f61(this.closeButton,
function(){x4();});
}
MVInfoWindowStyle3.addContent=function(x5)
{
x5.style.left=MVUtil._f250(50);
x5.style.top=MVUtil._f250(25);
this._f302.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._f628!=null)
x11=x9._f628;
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._f306)
{
x0._f307=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._f308=document.createElement("div");
this._f308.id=null;
this._f308.isMapDecoration=true;
this.parent=null;
this._f309=false;
this._f310=false
this._f311=null;
this._f312=null;
this._f313=null;
this._f314=null;
this.afterCollapseListener=null;
this._f315=null;
this.afterRestoreListener=null;
this._f316=null;
this._f317=null;
this._f318=null;
this.id=null;
this.visible=true;
this._f190=0;
this._f193=0;
this._f319=(_f15._f86=="IF")?18:16;
this._f320=0;
this._f321=0;
this._f322=40;
this._f323=0;
this._f324=null;
this.icon=null;
this._f325=null;
this._f165=false;
this._f326=false;
this._f327=null;
this._f328=null;
this._f329=null;
this.buffer=(_f15._f86=="IF")?5:7;
this.collapsed=false;
this._f330=0;
this._f331=0;
this.setOffset(x5,x6);
this._f332=null;
this._f333=false;
this.cursorStyle=null;
}
MVMapDecoration.prototype.setOffset=function(x0,x1)
{
if(!x0)
x0=0;
if(!x1)
x1=0;
this._f190=x0;
this._f193=x1;
}
MVMapDecoration.prototype.setPosition=function(x2,x3,x4,x5)
{
if(!x4)
x4=0;
if(!x5)
x5=0;
this._f190=x4;
this._f193=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._f309)
{
if(!this.collapsed)
this._f334(this._f335);
}
else
 this._f334(this._f308);
}
MVMapDecoration.prototype.setPrintable=function(x6)
{
this._f310=x6;
}
MVMapDecoration.prototype.setCollapsible=function(x7,x8)
{
this._f309=x7;
this._f326=x8;
}
MVMapDecoration.prototype.setTitleBar=function(x9,x10,x11)
{
if(x9)
this._f327=x9;
if(x10)
this._f328=x10;
if(!x11&&x9)
x11=x9;
this._f329=x11;
}
MVMapDecoration.prototype.setVisible=function(x12)
{
this.visible=x12;
if(this.parent!=null&&this.parent._f154)
this._f336();
if(this.parent!=null&&this._f310)
this.parent._f337();
}
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._f311=x16;
else if(x15=="mouse_over")
this._f312=x16;
else if(x15=="mouse_out")
this._f313=x16;
else if(x15=="collapse")
this._f314=x16;
else if(x15=="after_collapse")
this.afterCollapseListener=x16;
else if(x15=="restore")
this._f315=x16;
else if(x15=="after_restore")
this.afterRestoreListener=x16;
else if(x15=="drag_start")
this._f316=x16;
else if(x15=="drag")
this._f317=x16;
else if(x15=="drag_end")
this._f318=x16;
}
MVMapDecoration.prototype.getContainerDiv=function()
{
return this._f308;
}
MVMapDecoration.prototype.enableEventPropagation=function(x17)
{
this._f165=x17;
}
MVMapDecoration.prototype.isCollapsed=function()
{
return this.collapsed;
}
MVMapDecoration.prototype.collapse=function()
{
if(this.collapsed)
return ;
if(_f15._f86=="NS")
this._f335.style.height=MVUtil._f250(this._f319+this.buffer/2);
else
 this._f335.style.height=MVUtil._f250(this._f319+this.buffer/2);
this._f335.style.width=MVUtil._f250(this._f319+this.buffer);
this._f308.style.height="0px";
this._f308.style.visibility="hidden";
MVUtil._f185(this._f335,
this.parent._f55()-this._f319-this.buffer,
this.parent._f57()-this._f319-this.buffer);
this._f338=false;
if(this._f325)
clearTimeout(this._f325);
this._f325=null;
this.collapsed=true;
this._f335.style.visibility="hidden";
this._f339();
if(this.afterCollapseListener)
this.afterCollapseListener();
}
MVMapDecoration.prototype.setMouseCursorStyle=function(x18)
{
this.cursorStyle=x18;
if(this.contentDiv)
MVUtil._f182(this.contentDiv,x18);
else if(this._f308)
MVUtil._f182(this._f308,x18);
}
MVMapDecoration.prototype.isDraggable=function()
{
return this._f333;
}
MVMapDecoration.prototype.setDraggable=function(x19)
{
this._f333=x19;
if(this.parent&&this==this.parent._f340)
this._f242();
if(this.parent)
{
var x20=this._f308;
if(this._f309)
x20=this._f324;
if(this._f333)
MVUtil._f182(x20,"move");
else
 MVUtil._f182(x20,"default");
}
}
MVMapDecoration.prototype.getPosition=function()
{
var x21=this._f335;
if(!this._f309)
x21=this._f308;
var x22=this.collapsed?this._f331:MVUtil._f183(x21);
var x23=this.collapsed?this._f330:MVUtil._f184(x21);
return {x:x22,y:x23};
}
MVMapDecoration.prototype._f334=function(x24,x25)
{
var x26=(this.top==1)?this._f190-this.buffer/2:this._f190;
var x27=(this.top==1)?this._f193-this.buffer/2:this._f193;
this._f330=this.parent._f57()*this.top+x27;
this._f331=this.parent._f55()*this.left+x26;
if(!x25)
{
x24.style.top=MVUtil._f250(this._f330);
x24.style.left=MVUtil._f250(this._f331);
}
this._f323=this._f322*(this.parent._f57()-this._f330)/(this.parent._f55()-this._f331);
this._f320=Math.ceil(this._f322*this.width/(this.parent._f55()-this._f331));
this._f321=Math.ceil(this._f322*this.height/(this.parent._f55()-this._f331));
}
MVMapDecoration.prototype.init=function(id,x28)
{
this.id=id;
this.parent=x28;
this._f308.id=this.id;
this._f308.style.zIndex=2000;
this._f308.style.position="absolute";
if(this._f309)
{
this._f335=document.createElement("div");
this._f335.style.position="absolute";
this._f335.style.zIndex=2000;
this._f335.style.width=(this.width+this.buffer)+"px";
this._f335.style.height=(this.height+this.buffer)+"px";
this._f335.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._f335.appendChild(this.realContdiv);
var x29=document.createElement("div");
x29.style.position="absolute";
x29.style.left=MVUtil._f250(0);
x29.style.top=MVUtil._f250(0);
x29.style.width="100%";
x29.style.height=this._f319+2+"px";
x29.style.overflow="hidden";
this._f324=document.createElement("div");
this._f324.style.position="absolute";
this._f324.style.left=MVUtil._f250(-1);
this._f324.style.top=MVUtil._f250(-1);
this._f324.style.width="110%";
this._f324.style.height=this._f319+"px";
this._f324.style.border="1px solid #636661";
if(this._f329)
this._f324.title=this._f329;
x29.appendChild(this._f324);
this.realContdiv.appendChild(x29);
this.titleBg=document.createElement("img");
this.titleBg.style.width="100%";
this.titleBg.style.height="100%";
this.titleBg.src=_f15._f126+"title_bg.png";
this._f324.appendChild(this.titleBg);
var x30=this;
var x31=document.createElement("img");
this.icon=x31;
x31.style.position="absolute";
x31.style.left=MVUtil._f250(2);
x31.style.top=MVUtil._f250(1);
x31.style.height=MVUtil._f250(this._f319-3);
x31.style.width=MVUtil._f250(this._f319-3);
this._f324.appendChild(x31);
this._f324.onmousedown=function(x32)
{
if(x30._f333)
{
x30.parent._f340=x30;
x30.dragStartMouseLoc=MVUtil._f239(x32);
x30.dragStartLeft=MVUtil._f183(x30._f335);
x30.dragStartTop=MVUtil._f184(x30._f335);
MVUtil._f182(x30._f324,"move");
if(x30._f316)
x30._f316(x30.getPosition());
}
MVUtil._f41(x32);
}
if(this._f333)
MVUtil._f182(this._f324,"move");
MVUtil._f182(x31,"pointer");
this.setIconImageListeners(false);
if(this._f327)
{
var x33=document.createElement("div");
x33.style.position="absolute";
x33.style.left=MVUtil._f250(this._f319);
x33.style.top=MVUtil._f250(-1);
x33.style.width=MVUtil._f250(this.width-2*this._f319);
x33.style.height=MVUtil._f250(this._f319);
x33.style.fontSize=MVUtil._f250(this._f319-(_f15._f86=="IF"?3:2));
this._f324.appendChild(x33);
x33.innerHTML="<center>"+this._f327+"</center>";
}
this._f308.style.left=MVUtil._f250(0);
this._f308.style.top=this._f319+((_f15._f86=="IF")?-1:1)+"px";
this._f308.style.border=MVUtil._f250(0);
if(_f15._f86=="NS"||_f15._f86=="IF")
{
this._f308.style.width=this.width-2+"px"
this._f308.style.height=(this.height-this._f319-1)+"px";
}
else
 {
this._f308.style.width=this.width-2+"px"
this._f308.style.height=(this.height-this._f319-2)+"px";
}
if(this.html)
this._f308.innerHTML=this.html;
this.realContdiv.appendChild(this._f308);
this._f338=true;
this.n=(this.height-this._f319)/this._f321+1;
this._f341(this.realContdiv);
this._f334(this._f335);
if(this._f326)
this.collapse();
}
else
 {
if(this.html)
this._f308.innerHTML=this.html;
this._f334(this._f308);
if(this.width)
this._f308.style.width=MVUtil._f250(this.width);
if(this.height)
this._f308.style.height=MVUtil._f250(this.height);
this._f341(this._f308);
var x30=this;
var x34=document.createElement("img");
x34.src=_f15._f126+"pan.png";
MVUtil._f342(x34);
x34.style.zIndex=9999;
x34.style.left=MVUtil._f250(0);
x34.style.top=MVUtil._f250(-20);
x34.style.visibility="hidden";
if(_f15._f86=="NS")
{
x34.onmousedown=function(x35)
{
if(x30._f333)
{
x30.parent._f340=x30;
x30.dragStartMouseLoc=MVUtil._f239(x35);
x30.dragStartLeft=MVUtil._f183(x30._f308);
x30.dragStartTop=MVUtil._f184(x30._f308);
if(x30._f316)
x30._f316(x30.getPosition());
MVUtil._f41(x35);
}
}
}
this._f308.appendChild(x34);
var x36=this._f308.onmouseover;
this._f308.onmouseover=function(x37)
{
if(x36)
x36(x37);
if(x30._f333)
x34.style.visibility="visible";
}
var x38=this._f308.onmouseout;
this._f308.onmouseout=function(x39)
{
if(x38)
x38(x39);
if(x30.parent._f340!=x30)
x34.style.visibility="hidden";
}
if(this._f333)
MVUtil._f182(this._f308,"move");
else
 MVUtil._f182(this._f308,"default");
this._f308.onmousedown=function(x40)
{
if(x30._f333)
{
x30.parent._f340=x30;
x30.dragStartMouseLoc=MVUtil._f239(x40);
x30.dragStartLeft=MVUtil._f183(x30._f308);
x30.dragStartTop=MVUtil._f184(x30._f308);
if(x30._f316)
x30._f316(x30.getPosition());
MVUtil.trapEvent(x40);
}
else if(!x30._f165)
MVUtil.trapEvent(x40);
}
}
if(this.mapControl)
{
if(this.mapControl.setMouseCursorStyle&&this.cursorStyle)
this.mapControl.setMouseCursorStyle(this.cursorStyle,"default");
this.mapControl.init(this._f308,x28);
this.mapControl._f307=true;
}
if(!this._f326)
this._f336();
}
MVMapDecoration.prototype._f341=function(x41)
{
var x42=this;
var x43=function(x44)
{
if(!x42._f165)
MVUtil.trapEvent(x44);
}
x41.onclick=function(x45)
{
x43(x45);
if(x42._f311)
{
x42.parent._f242();
x42._f311();
}
}
x41.onmouseover=function(x46)
{
x43(x46);
if(x42._f312)
x42._f312(x46);
};
x41.onmouseout=function(x47)
{
x43(x47);
if(x42._f313)
x42._f313(x47);
}
x41.ondblclick=x43;
x41.onmousedown=x43;
x41.onmouseup=function(x48)
{
x43(x48);
if(x42._f333)
x42._f242();
}
x41.onkeyup=x43
if(_f15._f86=="OS")
x41.onkeypress=x43;
else
 x41.onkeydown=x43;
if(_f15._f86=="IF")
{
x41.oncontextmenu=x43;
x41.onselectstart=x43;
}
}
MVMapDecoration.prototype.setIconImageListeners=function(x49)
{
var x50;
if(this._f328)
x50=this._f328;
else if(x49)
x50=_f15._f126+"button_restore.gif";
else
 x50=_f15._f126+"button_minimize.gif";
var x51=null;
if(x49)
x51=this._f332;
else
 x51=this.icon;
x51.src=x50;
if(x49)
{
x51.style.height=MVUtil._f250(this._f319-3);
x51.style.width=MVUtil._f250(this._f319-3);
x51.parentNode.onmouseover=MVUtil._f61(x51.parentNode,function()
{
x51.parentNode.style.backgroundImage="url("+_f15._f126+"title_bg_over.png"+")";
x51.src=_f15._f126+"button_restore.gif";
});
x51.parentNode.onmouseout=MVUtil._f61(x51.parentNode,function()
{
x51.parentNode.style.backgroundImage="url("+_f15._f126+"title_bg.png"+")";
x51.src=x50;
});
var x52=this;
x51.parentNode.onclick=MVUtil._f61(x51.parentNode,function(x53)
{
MVUtil._f41(x53);
x51.parentNode.parentNode.removeChild(x51.parentNode);
MVUtil._f224(x51.parentNode);
x52._f332=null;
x52._f335.style.visibility="visible";
x52._f343();
});
}
else
 {
var x54=this.titleBg;
x51.parentNode.onmouseover=MVUtil._f61(x51.parentNode,function()
{
x54.src=_f15._f126+"title_bg_over.png";
if(x49)
x51.src=_f15._f126+"button_restore.gif";
else
 x51.src=_f15._f126+"button_minimize.gif";
});
x51.parentNode.onmouseout=MVUtil._f61(x51.parentNode,function()
{
x54.src=_f15._f126+"title_bg.png";
x51.src=x50;
});
var x52=this;
x51.onclick=MVUtil._f61(x51,function()
{
x52._f343();
});
}
}
MVMapDecoration.prototype._f344=function()
{
if(this.mapControl)
this.mapControl._f344();
if(this._f332)
{
this._f332.parentNode.parentNode.removeChild(this._f332.parentNode);
MVUtil._f224(this._f332.parentNode);
this._f332=null;
}
this.parent=null;
}
MVMapDecoration.prototype._f345=function()
{
this.setPosition(this.left,this.top,this._f190,this._f193);
}
MVMapDecoration.prototype._f346=function()
{
var x55=document.createElement("div");
x55.innerHTML=this.html;
x55.style.zIndex=2000;
x55.style.position="absolute";
if(this.collasible)
{
this._f347.style.right=MVUtil._f250(0);
this._f347.style.bottom=MVUtil._f250(0);
this._f347.style.width=MVUtil._f250(width);
this._f347.style.height=MVUtil._f250(height-this._f319);
this._f347.style.border="1px solid black";
this._f347.style.backgroundColor="white";
}
else{
this._f334(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._f336=function()
{
if(this.visible)
this._f308.style.visibility="visible";
else
 this._f308.style.visibility="hidden";
if(this._f309)
{
if(this.visible&&!this.collapsed)
this._f335.style.visibility="visible";
else
 this._f335.style.visibility="hidden";
if(!this.collapsed&&this.parent._f348&&this.parent._f348._f349&&
this._f308._f350&&this.parent)
{
this.parent._f348._f351();
}
if(this._f332&&!this.visible)
{
this._f332.parentNode.parentNode.removeChild(this._f332.parentNode);
MVUtil._f224(this._f332.parentNode);
this._f332=null;
}
else if(this.visible&&this.collapsed)
this._f339();
}
}
MVMapDecoration.prototype._f343=function()
{
if(this._f325!=null&&this._f325!="")
return;
var x56=15;
if(this._f338)
{
if(this._f314)
this._f314();
this._f325=this.setTimeout("this.scrollElement(-1)",10);
}
else
 {
if(this._f315)
this._f315();
this._f334(this._f335,true);
this._f325=this.setTimeout("this.scrollElement(1)",10);
}
}
MVMapDecoration.prototype._f339=function()
{
this._f332=document.createElement("img");
var x57=document.createElement("td");
x57.style.border="1px Solid #636661";
x57.style.backgroundImage="url("+_f15._f126+"title_bg.png"+")";
x57.appendChild(this._f332);
if(this._f329)
x57.title=this._f329;
MVUtil._f182(x57,"pointer");
this.parent.toolBarContainer.appendChild(x57);
this.setIconImageListeners(true);
}
MVMapDecoration.prototype.scrollElement=function(x58)
{
var x59=parseInt(this._f335.style.height);
var x60=parseInt(this._f308.style.height);
var x61=parseInt(this._f335.style.width);
var x62=parseInt(this._f308.style.width);
var x63=MVUtil._f184(this._f335);
var x64=MVUtil._f183(this._f335);
if(x58<0)
{
if(x60>1)
{
if(x60>this._f321)
{
this._f308.style.height=x60-this._f321+"px";
this._f335.style.height=x60-this._f321+this._f319+"px";
this._f308.style.width=x62-this._f320+"px";
this._f335.style.width=x62-this._f320+"px";
if(x63<this.parent._f57())
{
MVUtil._f185(this._f335,x64+this._f322,x63+this._f323);
this._f325=this.setTimeout("this.scrollElement(-1)",20);
}
else
 this.collapse();
}
else
 this.collapse();
}
else
 this.collapse();
}
if(x58>0)
{
x60+=this._f321;
x62+=this._f320;
x59+=this._f321;
x61+=this._f320;
x63-=this._f323;
x64-=this._f322;
var x65=false;
if(x59<this.height)
{
this._f308.style.height=x60+"px";
this._f335.style.height=x59+"px";
}
else
 x65=true;
if(!x65&&x61<this.width)
{
this._f308.style.width=x62+"px";
this._f335.style.width=x61+"px";
}
else
 x65=true;
if(this._f330<x63)
MVUtil._f185(this._f335,x64,x63);
else
 x65=true;
if(x65)
{
if(_f15._f86=="NS")
{
this._f308.style.width=this.width+"px"
this._f308.style.height=(this.height-this._f319-1)+"px";
}
else
 {
this._f308.style.width=this.width-2+"px"
this._f308.style.height=(this.height-this._f319-2)+"px";
}
this._f335.style.width=(this.width+this.buffer)+"px";
this._f335.style.height=(this.height+this.buffer)+"px";
this._f338=true;
clearTimeout(this._f325);
this._f325=null;
this.setIconImageListeners(false);
if(this._f308._f350&&this.parent)
{
this.parent._f348._f352.display();
this.parent._f348._f351();
}
MVUtil._f185(this._f335,this._f331,this._f330);
this.collapsed=false;
this._f308.style.visibility="visible";
if(this.afterRestoreListener)
this.afterRestoreListener();
}
else
 {
this._f325=this.setTimeout("this.scrollElement(1)",20);
}
}
}
MVMapDecoration.prototype.setTimeout=function(_f207,_f208)
{
var Ie="tempVar"+_f209;
_f209++;
eval(Ie+" = this;");
var oi=_f207.replace(/\\/g,"\\\\");
oi=oi.replace(/\"/g,'\\"');
return window.setTimeout(Ie+'._setTimeoutDispatcher("'+oi+'");'+Ie+" = null;",_f208);
}
MVMapDecoration.prototype._f242=function()
{
var x66=this._f335;
if(!this._f309)
x66=this._f308;
this.left=(MVUtil._f183(x66)-this._f190)/this.parent._f55();
this.top=(MVUtil._f184(x66)-this._f193)/this.parent._f57();
this.parent._f340=null;
if(this._f318)
this._f318(this.getPosition());
}
MVMapDecoration.prototype._f185=function(x67,x68)
{
var x69=this._f335;
if(!this._f309)
x69=this._f308;
MVUtil._f185(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._f50=x1;
this.slices=x2;
}
MVPieChartStyle.prototype.getXMLString=function()
{
var x1='<style name="'+this.name+'">'+
'<AdvancedStyle><PieChartStyle '+
'pieradius="'+this._f50+'">';
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._f306=true;
this._f686=x1?x1:125;
this._f70=x0;
this._f307=false;
this.topBarHeight=10;
this.topBarLeftImg=_f15._f126+"scale/"+"bar_light_left.png";
this.topBarLeftImgWidth=5;
this.topBarBodyImg=_f15._f126+"scale/"+"bar_light_bg.png";
this.topBarRightImg=_f15._f126+"scale/"+"bar_light_right.png";
this.topBarRightImgWidth=6;
this.bottomBarHeight=10;
this.bottomBarLeftImg=_f15._f126+"scale/"+"bar_dark_left.png";
this.bottomBarLeftImgWidth=5;
this.bottomBarBodyImg=_f15._f126+"scale/"+"bar_dark_bg.png";
this.bottomBarRightImg=_f15._f126+"scale/"+"bar_dark_right.png";
this.bottomBarRightImgWidth=6;
this.textSize=11;
this._f633=null;
this._f513=false;
}
MVScaleBar.prototype.init=function(x0,x1)
{
this.div=x0;
this._f568(x1);
}
MVScaleBar.prototype._f568=function(x2,x3,x4)
{
if(!x3)
x2._f443=this;
this._f633=x2;
if(!this.div)
{
this.div=document.createElement("div");
this.div.style.zIndex=2000;
if(x3)
x3.appendChild(this.div);
else
 x2._f59.appendChild(this.div);
}
this._f687=document.createElement("div");
this._f688=document.createElement("div");
MVUtil._f342(this.div);
MVUtil._f342(this._f687);
MVUtil._f342(this._f688);
this.div.style.height=MVUtil._f250(40);
this.div.style.width=MVUtil._f250(125);
this.div.style.fontSize=MVUtil._f250(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._f304(x5._f687,8,0,x10,x11,10,11);
x5._f689(x5._f687,x7.fpsText);
var x12=x11+x5.textSize;
x5.topBar=x5._f690(x8,x5.topBarHeight,3,x12,x5.topBarLeftImg,x5.topBarLeftImgWidth,x5.topBarBodyImg,x5.topBarRightImg,x5.topBarRightImgWidth);
x5.bottomBar=x5._f690(x9,x5.bottomBarHeight,3,x12+x5.topBarHeight,x5.bottomBarLeftImg,x5.bottomBarLeftImgWidth,x5.bottomBarBodyImg,x5.bottomBarRightImg,x5.bottomBarRightImgWidth);
MVUtil._f304(x5._f688,8,x12+x5.topBarHeight+x5.bottomBarHeight-4,x10,0,10,11);
x5._f689(x5._f688,x7.metricText);
x5.div.appendChild(x5._f687);
x5.div.appendChild(x5._f688);
x5.div.title=MVMessages.scaleBarInfoTip;
x5._f691();
x5._f513=true;
if(x4)
x4(x5.div);
}
this._f692(x2,this._f686,x6);
}
MVScaleBar.prototype._f690=function(x13,x14,x15,x16,x17,x18,x19,x20,x21)
{
var x22=document.createElement("div");
x22.style.position="absolute";
MVUtil._f185(x22,x15,x16);
x22.appendChild(new _f254(x17,x18,x14,0,0,8,true));
var x23=new _f254(x19,x13-x18-x21,x14,x18,0,8,true);
x22.appendChild(x23);
x22.appendChild(new _f254(x20,x21,x14,x13-x21,0,8,true));
this.div.appendChild(x22);
return x22;
}
MVScaleBar.prototype._f691=function()
{
if(!this.div)
return ;
var x24="black";
this._f687.style.color=x24;
this._f688.style.color=x24;
}
MVScaleBar.prototype._f534=function(x25)
{
if(!this.div||!this._f513)
return ;
var x26=this;
var x27=function(x28)
{
var x29=Math.max(x28.fpsLength,x28.metricLength);
x26._f689(x26._f687,x28.fpsText);
x26._f689(x26._f688,x28.metricText);
x26.width=x29+4;
x26.topBar.childNodes[1].style.width=MVUtil._f250(x28.fpsLength-x26.topBarLeftImgWidth-x26.topBarRightImgWidth);
x26.topBar.childNodes[2].style.left=MVUtil._f250(x28.fpsLength-x26.topBarRightImgWidth);
x26.bottomBar.childNodes[1].style.width=MVUtil._f250(x28.metricLength-x26.bottomBarLeftImgWidth-x26.bottomBarRightImgWidth);
x26.bottomBar.childNodes[2].style.left=MVUtil._f250(x28.metricLength-x26.bottomBarRightImgWidth);
x26._f688.style.width=MVUtil._f250(x28.metricLength);
x26._f687.style.width=MVUtil._f250(x28.fpsLength);
}
this._f692(x25,this._f686,x27);
}
MVScaleBar.prototype._f692=function(x30,x31,x32)
{
var x33;
var x34;
var x35;
var x36;
var x37;
var x38;
var x39=x30.msi._f367();
var x40=x30.msi._f366();
var x41=this;
var x42=function()
{
x36=x41._f693(x35);
if(x36>=1000)
{
var x43=x41._f693(x35/1000);
var x44=x35/1000;
x38=Math.round(x41._f686*x43/x44);
x37=x43+" "+MVMessages.kilometers;
}
else
 {
x38=Math.round(x41._f686*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._f693(x45);
x47=Math.round(x41._f686*x49/x45);
x48=x49+" "+MVMessages.miles;
}
else
 {
var x50=x41._f693(x46);
x47=Math.round(x41._f686*x50/x46);
x48=x50+" "+MVMessages.feet;
}
return new _f694(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._f695(x33,x34,x53,x54,x55);
x32(x42());
}
var x56=function(x57)
{
x33=x57;
MVScaleBar._f696(x30._f425+x31/2,x30._f426,x30,x51);
}
MVScaleBar._f696(x30._f425-x31/2,x30._f426,x30,x56);
return ;
}
else if(x40=='PROJECTED')
{
if(this._f70==true)
{
var x58=x31/2;
var x59=x30._f191-x58/x30._f52;
var x60=x58/x30._f52+x30._f191;
var x61=x30._f194;
var x62=MVSdoGeometry.createLineString([x59,x61,x60,x61],x30.srid);
var x63=function(x64)
{
x35=x64;
x32(x42());
}
x35=x62.getLength("meter",true,x30._f414+'/foi',x63);
return ;
}
else
 {
x35=x39*x31/x30._f52;
}
}
else if(x40=='LOCAL'||(x40=='UNDEFINED'&&x39!=0))
{
x35=x39*x31/x30._f52;
}
else if(x40=='UNDEFINED'&&x39==0)
{
x35=x31/x30._f52;
_f15._f697='';
_f15._f698='';
_f15._f699='';
_f15._f700='';
}
x32(x42());
}
MVScaleBar.prototype._f693=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._f689=function(x68,x69)
{
x68.style.font="Bold 11px Tahoma";
if(x68.innerHTML!=x69)
{
x68.innerHTML=x69;
}
}
MVScaleBar.prototype._f344=function()
{
this._f633._f443=null;
}
MVScaleBar._f696=function(x70,x71,x72,x73)
{
var x74=MVSdoGeometry.createPoint(0,0,x72.srid);
x74.sdo_point.x=(x70-x72._f425)/x72._f52+x72._f191;
x74.sdo_point.y=x72._f194-(x71-x72._f426)/x72._f53;
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._f695=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 _f694(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._f306=true;
if(x0==undefined||
x0!=0&&x0!=4&&x0!=8)
x0=8;
this._f629=x0;
this._f630=x1;
this._f631=x2;
this.zoomLevelBars=x3;
this._f632=null;
this._f625=null;
this._f633=null;
this.containerDiv=null;
this._f513=false;
}
MVNavigationPanel.prototype.init=function(x0,x1)
{
if(x0)
this.containerDiv=x0;
if(this._f632)
{
if(this._f632.parentNode)
this._f632.parentNode.removeChild(this._f632);
MVUtil._f224(this._f632);
}
this._f632=document.createElement('div');
this._f632.style.position='absolute';
this._f632.className="noprint";
this.containerDiv.appendChild(this._f632);
if(x1)
{
this._f633=x1;
x1.navigationPanel=this;
}
if(this._f625)
{
if(this._f625.toLowerCase()=="east")
{
if(this._f629==8)
this._f632.style.left=MVUtil._f250(this._f633._f55()-80);
else if(this._f629==4)
this._f632.style.left=MVUtil._f250(this._f633._f55()-80);
else if(this._f629==0)
this._f632.style.left=MVUtil._f250(this._f633._f55()-50);
}
else
 {
if(this._f629==8)
this._f632.style.left=MVUtil._f250(10);
else if(this._f629==8)
this._f632.style.left=MVUtil._f250(10);
else if(this._f629==0)
this._f632.style.left=MVUtil._f250(30);
}
this._f632.style.top=MVUtil._f250(10);
}
else
 {
this._f632.style.left=MVUtil._f250(0);
this._f632.style.top=MVUtil._f250(0);
}
this._f632.style.zIndex=2000;
MVUtil._f182(this._f632,"pointer");
this._f110=0;
this._f111=0;
var x1=this._f633;
var x2=function(x3)
{
if(x1._f456&&x1._f460)
{
x1._f457.clear();
x1.marqueeZoom();
}
x3=(x3)?x3:((window.event)?event:null);
MVUtil._f41(x3);
}
if(this._f629!=false)
{
this._f634();
}
this._f106=0;
this._f107=0;
if(this._f630!=false)
{
this._f106=_f15._f106;
this._f107=_f15._f107;
}
this._f114=0;
this._f115=0;
if(this._f631!=false)
{
this._f114=_f15._f114;
this._f115=_f15._f115;
var x4=new _f624(this._f632,src=_f15._f126+"navicons/zoomin.gif",
this._f114,this._f115,2000,MVMessages.zoomInInfoTip);
var x5=this._f629>0?(this._f110*3-this._f114)/2+1:0;
var x6=this._f629>0?this._f111*3+3:0;
MVUtil._f185(x4,x5,x6);
x4.onmousedown=MVUtil._f61(x4,function(x7)
{
x7=(x7)?x7:((window.event)?event:null);
MVUtil._f41(x7);
if(x1._f456&&x1._f458)
x1._f460=true;
x1.zoomIn();
});
x4.onmouseup=MVUtil._f61(x4,function(x8)
{
x2(x8);
});
var x9=new _f624(this._f632,_f15._f126+"navicons/zoomout.gif",
this._f114,this._f115,2000,MVMessages.zoomOutInfoTip);
MVUtil._f185(x9,x5,x6+this._f115+this._f107+1);
x9.onmousedown=MVUtil._f61(x9,function(x10)
{
x10=(x10)?x10:((window.event)?event:null);
MVUtil._f41(x10);
if(x1._f456&&x1._f458)
x1._f460=true;
x1.zoomOut();
});
x9.onmouseup=MVUtil._f61(x9,function(x11)
{
x2(x11);
});
}
if(this._f630!=false)
{
this._f635=new MVZoomBarAndPin(this);
}
this._f513=true;
}
MVNavigationPanel.prototype._f634=function()
{
this._f110=_f15._f110;
this._f111=_f15._f111;
var x12=this._f633;
var x13=function(x14)
{
if(x12._f456&&x12._f460)
{
x12._f457.clear();
x12.marqueeZoom();
}
x14=(x14)?x14:((window.event)?event:null);
MVUtil._f41(x14);
}
var x15=new _f624(this._f632,_f15._f126+"navicons/north.gif",
this._f110,this._f111,2000,MVMessages.panNInfoTip);
MVUtil._f185(x15,this._f110+1,0);
x15.onmousedown=MVUtil._f61(x15,function(x16)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll(0,(x12._f55()+x12._f57())*(-0.25));
x16=(x16)?x16:((window.event)?event:null);
MVUtil._f41(x16);
});
x15.onmouseup=MVUtil._f61(x15,function(x17)
{
x13(x17);
});
var x18=new _f624(this._f632,_f15._f126+"navicons/west.gif",
this._f110,this._f111,2000,MVMessages.panWInfoTip);
MVUtil._f185(x18,0,this._f111+1);
x18.onmousedown=MVUtil._f61(x18,function(x19)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll((x12._f55()+x12._f57())*(-0.25),0);
x19=(x19)?x19:((window.event)?event:null);
MVUtil._f41(x19);
});
x18.onmouseup=MVUtil._f61(x18,function(x20)
{
x13(x20);
});
var x21=new _f624(this._f632,_f15._f126+"navicons/east.gif",
this._f110,this._f111,2000,MVMessages.panEInfoTip);
MVUtil._f185(x21,this._f110*2+2,this._f111+1);
x21.onmousedown=MVUtil._f61(x21,function(x22)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll((x12._f55()+x12._f57())*(0.25),0);
x22=(x22)?x22:((window.event)?event:null);
MVUtil._f41(x22);
});
x21.onmouseup=MVUtil._f61(x21,function(x23)
{
x13(x23);
});
var x24=new _f624(this._f632,_f15._f126+"navicons/south.gif",
this._f110,this._f111,2000,MVMessages.panSInfoTip);
MVUtil._f185(x24,this._f110+1,this._f111*2+2);
x24.onmousedown=MVUtil._f61(x24,function(x25)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll(0,(x12._f55()+x12._f57())*(0.25));
x25=(x25)?x25:((window.event)?event:null);
MVUtil._f41(x25);
});
x24.onmouseup=MVUtil._f61(x24,function(x26)
{
x13(x26);
});
if(this._f629==4)
return ;
var x27=new _f624(this._f632,_f15._f126+"navicons/nw.gif",
this._f110,this._f111,200,MVMessages.panNWInfoTip);
MVUtil._f185(x27,0,0);
x27.onmousedown=MVUtil._f61(x27,function(x28)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll((x12._f55()+x12._f57())*(-0.18),(x12._f55()+x12._f57())*(-0.18));
x28=(x28)?x28:((window.event)?event:null);
MVUtil._f41(x28);
});
x27.onmouseup=MVUtil._f61(x27,function(x29)
{
x13(x29);
});
var x30=new _f624(this._f632,_f15._f126+"navicons/ne.gif",
this._f110,this._f111,2000,MVMessages.panNEInfoTip);
MVUtil._f185(x30,this._f110*2+2,0);
x30.onmousedown=MVUtil._f61(x30,function(x31)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll((x12._f55()+x12._f57())*(0.18),(x12._f55()+x12._f57())*(-0.18));
x31=(x31)?x31:((window.event)?event:null);
MVUtil._f41(x31);
});
x30.onmouseup=MVUtil._f61(x30,function(x32)
{
x13(x32);
});
var x33=new _f624(this._f632,_f15._f126+"navicons/sw.gif",
this._f110,this._f111,2000,MVMessages.panSWInfoTip);
MVUtil._f185(x33,0,this._f111*2+2);
x33.onmousedown=MVUtil._f61(x33,function(x34)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll((x12._f55()+x12._f57())*(-0.18),(x12._f55()+x12._f57())*(0.18));
x34=(x34)?x34:((window.event)?event:null);
MVUtil._f41(x34);
});
x33.onmouseup=MVUtil._f61(x33,function(x35)
{
x13(x35);
});
var x36=new _f624(this._f632,_f15._f126+"navicons/se.gif",
this._f110,this._f111,2000,MVMessages.panSEInfoTip)
MVUtil._f185(x36,this._f110*2+2,this._f111*2+2);
x36.onmousedown=MVUtil._f61(x36,function(x37)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.smoothScroll((x12._f55()+x12._f57())*(0.18),(x12._f55()+x12._f57())*(0.18));
x37=(x37)?x37:((window.event)?event:null);
MVUtil._f41(x37);
});
x36.onmouseup=MVUtil._f61(x36,function(x38)
{
x13(x38);
});
if(x12._f452){
var x39=new _f624(this._f632,_f15._f126+"navicons/center.gif",
this._f110,this._f111,2000,MVMessages.panCenterInfoTip)
MVUtil._f185(x39,this._f110+1,this._f111+1);
x39.onmousedown=MVUtil._f61(x39,function(x40)
{
if(x12._f456&&x12._f458)
x12._f460=true;
x12.setCenterAndZoomLevel(x12._f452,x12._f453);
x40=(x40)?x40:((window.event)?event:null);
MVUtil._f41(x40);
});
x39.onmouseup=MVUtil._f61(x39,function(x41)
{
x13(x41);
});
}
}
MVNavigationPanel.prototype.updateSliderBar=function()
{
if(!this._f513)
return ;
if(this._f635&&this._f635._f636)
this._f635._f636.style.top=
MVUtil._f250(this._f111*3+3+this._f115+
(this._f107-_f15._f109)*
(this._f633._f448-this._f633._f401)/this._f633._f448);
}
MVNavigationPanel.prototype._f344=function()
{
this._f633.navigationPanel=null;
}
function MVZoomBarAndPin(x0)
{
var x1=x0;
this.div=document.createElement("div");
var x2=x1._f629>0?(x1._f110*3-x1._f106)/2+1:0;
var x3=x1._f629>0?x1._f111*3+3+x1._f115:x1._f115;
this._f637=new _f624(this.div,_f15._f126+"navicons/zoombar.gif",
x1._f106,x1._f107,2000,MVMessages.sliderBarInfoTip);
MVUtil._f185(this._f637,x2,x3);
if(x0.zoomLevelBars!=false)
{
for(var x4=0;x4<=x1._f633._f448;x4++)
{
var x5=x1._f106-4;
var x6=new _f624(this.div,_f15._f126+"navicons/zoomBarHoriz.gif",
x5,10,1999);
MVUtil._f185(x6,x2+2,x3+2+x4*(x1._f107-14)/x1._f633._f448);
}
}
this._f636=new _f624(this.div,_f15._f126+"navicons/slider.gif",_f15._f108,
_f15._f109,2002);MVUtil._f185(this._f636,x2,x3+
(x1._f107-_f15._f109)*
(x1._f633._f448-x1._f633._f401)/x1._f633._f448);
x1._f632.appendChild(this.div);
this._f638=Math.floor(_f15._f109/2);
var x7=0;
var x8=0;
var x9=function(x10)
{
x1._f633._f437=false;
x10=(x10)?x10:((window.event)?event:null);
var x11=x1._f633._f617(x10);
var x12=x11.top-x1._f635._f638;var x13=x1._f111*3+3+x1._f115;
if(x12<=x13)
x12=x13;
else if(x12>=x13+x1._f107-_f15._f109)
x12=x13+x1._f107-_f15._f109;
var x14=(x1._f107-_f15._f109);
x14=x14/x1._f633._f448;
var x15=Math.floor((x12-x13)/x14);
x12=x15*x14+x13;
var x16=x1._f633._f448-x15;
x1._f633.zoomTo(x16);
MVUtil._f41(x10);
if(x1._f633._f456&&x1._f633._f458)
{
x1._f633._f460=true;
x1._f633._f457.clear();
}
x1._f635._f636.style.top=MVUtil._f250(x12);
}
var x17=function(x18)
{
x18=(x18)?x18:((window.event)?event:null);
x1._f633._f437=false;
if(!x1._f635._f639)return;
var x19=x1._f633._f617(x18);
var x20=x19.top-x7+x8;
if(x20<=x1._f111*3+3+x1._f115)
x20=x1._f111*3+3+x1._f115;
else if(x20>=x1._f111*3+3+x1._f115+
x1._f107-_f15._f109)
x20=x1._f111*3+3+x1._f115+
x1._f107-_f15._f109;
x1._f635._f636.style.top=MVUtil._f250(x20);
MVUtil._f41(x18);
}
var x21=function(x22)
{
if(!x1._f635._f639)
return ;
x22=(x22)?x22:((window.event)?event:null);
x1._f633._f437=true;
x1._f635._f639=false;
var x23=x1._f633._f617(x22);
var x24=MVUtil._f184(x1._f635._f636);
var x25=x1._f111*3+3+x1._f115;
var x26=(x1._f107-_f15._f109);
x26=x26/x1._f633._f448;
var x27=Math.round((x24-x25)/x26);
x24=x27*x26+x25;
var x28=x1._f633._f448-x27;
x1._f633.zoomTo(x28);
x1._f635._f636.style.top=MVUtil._f250(x24);
x1._f633.zoomTo(x28);
MVUtil._f41(x22);
if(x1._f633._f456&&x1._f633._f460)
x1._f633.marqueeZoom();
}
var x29=function(x30)
{
x30=(x30)?x30:((window.event)?event:null);
x1._f633._f437=true;
if(x1._f635._f639)
{
x21(x30);
}
return false;
}
var x31=function(x32)
{
x32=(x32)?x32:((window.event)?event:null);
var x33=x1._f633._f617(x32);
x7=x33.top;
x8=MVUtil._f184(x1._f635._f636);
x1._f635._f639=true;
MVUtil._f41(x32);
}
this.div.onmousedown=MVUtil._f61(this.div,x9);
this.div.onmouseup=MVUtil._f61(this.div,x21);
this.div.onmousemove=MVUtil._f61(this.div,x17);
this.div.onmouseout=MVUtil._f61(this.div,x29);
this._f636.onmousedown=MVUtil._f61(this._f636,x31);
this._f639=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);
});
function MVZoomControl(x0,x1)
{
this.mapview=x0;
this.ldiff=0;
this.tdiff=0;
this.movedLeft=0;
this.movedTop=0;
this._f394=x1;
this._f388=null;
this.tileLayerDiv=null;
this.zoomStep=0.1
this.interval=40;
this.zooming=false;
this.oldTilesLoaded=false;
this.timeouts=new Array();
}
MVZoomControl.prototype.computeTilesOffset=function()
{
var x0=this._f394._f388[0][0];
this.ldiff=-x0.parentNode.offsetLeft
this.tdiff=-x0.parentNode.offsetTop;
this.movedLeft=-x0.parentNode.parentNode.offsetLeft;
this.movedTop=-x0.parentNode.parentNode.offsetTop;
}
MVZoomControl.prototype.getScreenCor=function(x1,x2,x3)
{
var x4=this.getPPXByZoomLevel(x3);
var x5=this.getPPYByZoomLevel(x3);
var x6=x1-this.mapview._f55()/2;
var x7=x2-this.mapview._f57()/2;
return {x:x6/x4+this.mapview._f191,
y:this.mapview._f194-x7/x5};
}
MVZoomControl.prototype._f189=function(x8,x9,x10)
{
var x11=this.getPPXByZoomLevel(x10);
var x12=this.getPPYByZoomLevel(x10);
return {x:(x8-this.mapview._f191)*x11+this.mapview._f55()/2,
y:(this.mapview._f194-x9)*x12+this.mapview._f57()/2};
}
MVZoomControl.prototype.getPPXByZoomLevel=function(x13)
{
var x14=this.mapview.msi.mapConfig.zoomLevels[x13].tileImageWidth;
var x15=this.mapview.msi.mapConfig.zoomLevels[x13].tileWidth;
var x16=x14/x15;
return x16;
}
MVZoomControl.prototype.getPPYByZoomLevel=function(x17){
var x18=this.mapview.msi.mapConfig.zoomLevels[x17].tileImageHeight;
var x19=this.mapview.msi.mapConfig.zoomLevels[x17].tileHeight;
var x20=x18/x19;
return x20;
}
MVZoomControl.prototype.initZoomInfo=function(x21,x22,x23)
{
var x24=this.getPPXByZoomLevel(x21);
var x25=this.getPPYByZoomLevel(x21);
var x26=this.getPPXByZoomLevel(x22);
var x27=this.getPPYByZoomLevel(x22);
var x28=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageWidth;
var x29=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageWidth;
var x30=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageWidth*x26/x24;
var x31=this.mapview.msi.mapConfig.zoomLevels[x21].tileImageHeight*x27/x25;
var x32=MVUtil._f183(x23)-this.movedLeft;
var x33=MVUtil._f184(x23)-this.movedTop;
var x34=this.getScreenCor(x32-this.ldiff+this.movedLeft,x33-this.tdiff+this.movedTop,x21);
var x35=this._f189(x34.x,x34.y,x22);
var x36=x35.x+this.ldiff-this.movedLeft*x26/x24;
var x37=x35.y+this.tdiff-this.movedTop*x26/x24;
x23.oldZoomInfo=new Object();
x23.oldZoomInfo.lstart=x32;
x23.oldZoomInfo.tstart=x33;
x23.oldZoomInfo.lend=x36;
x23.oldZoomInfo.tend=x37;
x23.oldZoomInfo.fw=x28;
x23.oldZoomInfo.fh=x29;
x23.oldZoomInfo.tiw=x30;
x23.oldZoomInfo.tih=x31;
}
MVZoomControl.prototype.zoomToFactor=function(x38,x39)
{
if(x39>1)
{
return;
}
var x40=x38.oldZoomInfo;
var x41=(x40.lend-x40.lstart)*x39+x40.lstart;
var x42=(x40.tend-x40.tstart)*x39+x40.tstart;
var x43=(x40.tiw-x40.fw)*x39+x40.fw;
var x44=(x40.tih-x40.fh)*x39+x40.fh;
MVUtil._f185(x38,x41,x42);
x38.style.width=(x43+1)+'px';
x38.style.height=(x44+1)+'px';
}
MVZoomControl.prototype.copyTiles=function()
{
if(this.tileLayerDiv&&this.tileLayerDiv.parentNode)
{
this.tileLayerDiv.parentNode.removeChild(this.tileLayerDiv);
MVUtil._f221(this.tileLayerDiv);
}
this.tileLayerDiv=this._f394._f394;
this.tileLayerDiv.zooming=true;
this._f388=this._f394._f388;
this.tileLayerDiv.style.zIndex=200+this._f394.zIndex;
return;
}
MVZoomControl.prototype.zoomToNewCenter=function(x45,x46,x47)
{
if((x45)&&(x46)&&(x45.getPointX()!=x46.getPointX()||x45.getPointY()!=x46.getPointY()))
{
var x48=this._f189(x45.getPointX(),x45.getPointY(),x47);
var x49=this._f189(x46.getPointX(),x46.getPointY(),x47);
var x50=x49.x-x48.x;
var x51=x49.y-x48.y;
var x52=this.mapview.div;
if(_f15._f74==2)
{
x52.style.pixelLeft=x52.style.pixelLeft-x50;
x52.style.pixelTop=x52.style.pixelTop-x51;
}
else
 {
x52.style.left=(MVUtil._f183(x52)-x50)+'px';
x52.style.top=(MVUtil._f184(x52)-x51)+'px';
}
}
}
MVZoomControl.prototype.clearLastZoom=function(){
for(var x53=0;x53<this._f394._f388.length;x53++)
{
for(var x54=0;x54<this._f394._f388[x53].length;x54++)
{
if(!this.hasTileLoaded(this._f394._f388[x53][x54]))
{
var x55=_f15._f126+"transparent."+(_f15._f86=="IF"?"gif":"png");
this._f394._f388[x53][x54].src=x55;
this._f394._f388[x53][x54].imgLoadFinished=true;
}
}
}
for(var x53=0;x53<this.timeouts.length;x53++)
{
clearTimeout(this.timeouts[x53]);
}
this.timeouts=new Array();
}
MVZoomControl.prototype.showTiles=function(x56,x57,x58,x59)
{
if(!this._f394.isVisible()||this._f394._f388==''||Math.abs(x56-x57)>1||this._f394._f98)
{
this.reset();
return;
}
this._f394.setVisible(false);
this._f394._f394.style.visibility="visible";
this.zooming=true;
this.zoomToNewCenter(x58,x59,x56);
this.computeTilesOffset()
this.copyTiles();
this.clearLastZoom();
for(var x60=0;x60<this._f388.length;x60++)
{
for(var x61=0;x61<this._f388[x60].length;x61++)
{
this.initZoomInfo(x56,x57,this._f388[x60][x61]);
this.runZoom(this,x60,x61);
}
}
}
MVZoomControl.prototype.reset=function()
{
this.ldiff=0;
this.tdiff=0;
this.movedLeft=0;
this.movedTop=0;
if(this.tileLayerDiv&&this.tileLayerDiv.parentNode)
{
this.tileLayerDiv.parentNode.removeChild(this.tileLayerDiv);
MVUtil._f221(this.tileLayerDiv);
}
this._f388=null;
this.tileLayerDiv=null;
this.zoomStep=0.2
this.interval=100;
this.zooming=false;
this.oldTilesLoaded=false;
for(var x62=0;x62<this.timeouts.length;x62++)
{
clearTimeout(this.timeouts[x62]);
}
this.timeouts=new Array();
if(this._f394.basemap.isVisible())
this._f394.setVisible(true);
}
MVZoomControl.prototype.runZoom=function(x63,x64,x65,x66)
{
x66=(x66)?x66:x63.zoomStep;
var x67=x63._f388[x64][x65];
x63.zoomToFactor(x67,x66);
if(x66>=1)
{
x67.oldZoomInfo=null;
x67.zoomFinished=true;
if(this.hasZoomFinished())
{
this.startClear();
}
return;
}
else
 {
var x68=setTimeout(function(){x63.runZoom.call(x63,x63,x64,x65,x66+x63.zoomStep);},x63.interval);
this.timeouts.push(x68);
}
}
MVZoomControl.prototype.hasZoomFinished=function()
{
if(!(this._f388))
{
return true;
}
for(var x69=0;x69<this._f388.length;x69++)
{
for(var x70=0;x70<this._f388[x69].length;x70++)
{
if(!this._f388[x69][x70].zoomFinished)
{
return false;
}
}
}
return true;
}
MVZoomControl.prototype.hasTilesLoadFinished=function()
{
for(var x71=0;x71<this._f394._f388.length;x71++)
{
for(var x72=0;x72<this._f394._f388[x71].length;x72++)
{
if(!this.hasTileLoaded(this._f394._f388[x71][x72]))
{
return false;
}
}
}
return true;
}
MVZoomControl.prototype.hasTileLoaded=function(x73)
{
if(x73.src==this.mapview._f396.src)
return true;
if(_f15._f74==2){
return x73.imgLoadFinished;
}
else {
return (x73.offsetWidth==this._f394.tileWidth);
}
}
MVZoomControl.prototype.startClear=function()
{
this._f394.setVisible(true);
for(var x74=0;x74<this.mapview._f174._f198.length;x74++)
{
this.mapview._f174._f198[x74].node.style.display=''
}
if(_f15._f74==2){
for(var x74=0;x74<this._f394._f388.length;x74++)
{
for(var x75=0;x75<this._f394._f388[x74].length;x75++)
{
this._f394._f388[x74][x75].style.display='';
}
}
}
this.tileLayerDiv.style.zIndex=this._f394.zIndex;;
this.clearCloneTiles();
}
MVZoomControl.prototype.clearCloneTiles=function()
{
if(this.hasTilesLoadFinished())
{
for(var x76=0;x76<this._f394._f388.length;x76++)
{
for(var x77=0;x77<this._f394._f388[x76].length;x77++)
{
this._f394._f388[x76][x77].style.display='';
}
}
this.removeCloneTiles();
}
else
 {
var x78=this;
var x79=setTimeout(function(){x78.clearCloneTiles()},70);
this.timeouts.push(x79);
}
}
MVZoomControl.prototype.removeCloneTiles=function()
{
if(this.tileLayerDiv)
{
this.tileLayerDiv.parentNode.removeChild(this.tileLayerDiv);
MVUtil._f221(this.tileLayerDiv);
this.tileLayerDiv=null;
}
this.zooming=false;
}
function _f17()
{
}
_f17._f5=function(x0,x1,x2)
{
var x3=_f11._f12({x:x0,y:x1});
x0=x3.x;
x1=x3.y;
var x4=Math.sin(x1);
var x5=Math.log((1+x4)/(1-x4));
var x6=x2*x0;
var x7=x5*x2/2;
return {x:x6,y:x7};
}
_f17._f13=function(x8,x9,x10)
{
var x11=x8/x10;
var x12=x9*2/x10;
var x13=Math.pow(Math.E,x12);
var x14=(x13-1)/(x13+1);
var x15=Math.asin(x14);
return _f11._f14({x:x11,y:x15});
}
_f15._f16(3785,8307,function(x16,x17){
return _f17._f13(x16,x17,6378137);
});
_f15._f16(8307,3785,function(x18,x19){
return _f17._f5(x18,x19,6378137);
});
_f15._f16(53004,8307,function(x20,x21){
return _f17._f13(x20,x21,6371000);
});
_f15._f16(8307,53004,function(x22,x23){
return _f17._f5(x22,x23,6371000);
});
_f15._f16(53004,54004,function(x24,x25){
var x26=_f17._f13(x24,x25,6371000);
return _f3._f5(x26.x,x26.y,8307,54004);
});
_f15._f16(54004,53004,function(x27,x28){
var x29=_f3._f13(x27,x28,54004,8307);
return _f17._f5(x29.x,x29.y,6371000);
});
MVMapView.version = "Ver1033p5_B081010";

