var A_i=AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlGeoMapPeer",A_c);A_h("AdfDhtmlGeoMapPeer",A_i);AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.geoMap.GeoMap","AdfDhtmlGeoMapPeer");
function MapAJAXConnection(a,b){var c;c=window.XMLHttpRequest?new XMLHttpRequest:window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):A_a;c.onreadystatechange=function(){if(4==c.readyState)if(200==c.status)b&&b(c.responseXML,c.responseText);else{var d=[];d.push(a);d=A_i.Om(A_i.up,d);A_i.Ym(d);AdfPage.PAGE.tc(A_c,A_c,A_c,"MapViewer Connection Failed")}};this.GS=function(){try{c.open("GET",a,A_b),c.send(A_)}catch(b){var e=[];e.push(a);e=A_i.Om(A_i.up,e);A_i.Ym(e)}};this.doPost=function(b){c.open("POST",
a,A_b);c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");c.send(b)}}A_h("MapAJAXConnection",MapAJAXConnection);A_i.ea=":";
A_i.cd=function(a){var b=a.toString(),c=b.indexOf("."),d=0;-1!=c&&(d=b.length-(c+1));for(var b=Math.abs(a),b=b.toFixed(d),c=1,e=0;e<A_i.ro;e++)c*=10;for(var d="",f=c;f<b&&!(f*c>=b);)f*=c;for(;1<f&&b>=f;){e=Math.floor(b/f);b-=e*f;if(0<e){var g=e.toString();if(0<d.length)for(var h=A_i.ro-g.length,e=0;e<h;e++)g="0"+g;d=d+g+A_i.nB}f/=c}if(0<b){g=Math.floor(b).toString();if(0<d.length){h=A_i.ro-g.length;for(e=0;e<h;e++)g="0"+g}d+=g}0!=b-Math.floor(b)&&(b=b.toString(),c=b.indexOf(".")+1,d+=A_i.$A+b.substr(c));
0>a&&(d="-"+d);return d};A_i.Ym=function(a){AdfPage.PAGE.clearAllMessages();AdfPage.PAGE.addMessage(A_,new AdfFacesMessage(AdfFacesMessage.TYPE_ERROR,"Error",a));AdfPage.PAGE.showMessages()};A_i.Om=function(a,b){var c=a;if(0==b)return c;for(var d=0;d<b.length;d++)c=c.replace("{"+d.toString()+"}",b[0]);return c};
A_i.EI=function(a){var b=a.getSource();if(b.getProperty("themeIds")!=A_){var b=b.getProperty("themeIds").split(" "),c=parseInt(a.getNewValue());a=parseInt(a.getOldValue());c=b[c];b=document.getElementById(b[a]);a=document.getElementById(c);a!=A_&&(a.style.display="block");b!=A_&&(b.style.display="none")}};A_h("AdfDhtmlGeoMapPeer._updateLegendValue",A_i.EI);
A_i.AH=function(a,b,c,d){var e=c.getElementsByTagName("theme_style");c=A_;a.onerror=A_;for(var f=0;f<e.length;f++)if("true"==e[f].getAttribute("render")){c=e[f].getAttribute("name");break}c!=A_&&(b=d+"?xml_request\x3d"+('\x3cmap_request datasource \x3d "'+b+'" format\x3d"PNG_STREAM"\x3e'),b+='\x3clegend profile\x3d"MEDIUM" position\x3d"SOUTH_EAST"\x3e',b+="\x3ccolumn\x3e",b+='\x3centry style\x3d"'+c+'" tab\x3d"1" /\x3e',b+="\x3c/column\x3e",b+="\x3c/legend\x3e",b+="\x3c/map_request\x3e",a.src=b)};
A_i.sG=function(a,b,c,d,e){d='\x3c?xml version\x3d"1.0" standalone\x3d"yes"?\x3e\x3cnon_map_request\x3e'+('\x3clist_theme_styles data_source\x3d"'+c+'" theme\x3d"'+d+'"/\x3e');d+="\x3c/non_map_request\x3e";d=encodeURI(d);e+="/omserver";b=A_j(AdfPage.PAGE.findComponent(b)).getAttribute("proxyPath");(new MapAJAXConnection(b,function(b){A_i.AH(a,c,b,e)})).doPost("rtarget\x3d"+e+"\x26xml_request\x3d"+d)};A_h("AdfDhtmlGeoMapPeer._getThemeLegendImage",A_i.sG);
A_i.dq=function(a,b){var c=[];if(a.getFOIData()!=A_)for(i=0;i<a.getFOIData().length;i++)c[a.getFOIData()[i].id]=a.getFOIData()[i];var d=[];d.selectionMode="Select";if(b.getFOIData()!=A_)for(i=0;i<b.getFOIData().length;i++){var e=c[b.getFOIData()[i].id];b.getFOIData()[i].name!=A_&&(e!=A_?A_i.jh(d,e):(d.push(b.getFOIData()[i].name),d.push("")))}return d};
A_i.ox=function(){var a=AdfPage.PAGE.findComponent(this.parent._mvMapViewId),b=a.getTheme(a.cb),b=A_i.dq(b,this);A_na(a);b=new A_oa(a,b);b.setPartial(A_b);a.queueEvent(b);this.setEventListener("after_refresh",A_)};A_h("AdfDhtmlGeoMapPeer._selectThemeRefresh",A_i.ox);A_i.nG=function(a,b,c){for(var d=A_,e=0;e<a.Ch.length;e++)if(a.Ch[e].getLayerName()==b){d=a.Ch[e];break}a=d.getFOIData();for(e=0;e<a.length;e++)if(a[e].id==c)return a[e];return A_};A_h("AdfDhtmlGeoMapPeer._getFOIFromTheme",A_i.nG);
A_i.mq=function(a){return 1==a.length?"0"+a:a};A_i.jG=function(a){var b=Math.floor(0.6*parseInt(a.substr(3,2),16)),c=Math.floor(0.6*parseInt(a.substr(5,2),16));return"#"+A_i.mq(Math.floor(0.6*parseInt(a.substr(1,2),16)).toString(16))+A_i.mq(b.toString(16))+A_i.mq(c.toString(16))};A_i.XG=function(a){if(a.relatedTarget!=A_){a=a.relatedTarget;for(var b=A_c;a!=A_;){if(a.id!=A_&&"string"==typeof a&&0<=a.id.indexOf("mvinfodiv")){b=A_b;break}a=a.parentNode}if(b)return A_b}return A_c};
A_i.Xp=function(a,b,c){A_i.XG(c)||("mouseover"==c.type&&A_i.hg(b.getGeometry(),b,c),b.setEventListener("mouse_over",A_i.hg),b.setEventListener("mouse_out",A_))};A_h("AdfDhtmlGeoMapPeer._attachHandler",A_i.Xp);
A_i.hg=function(a,b,c,d,e,f){d==A_&&(d=AdfPage.PAGE.findComponent(b.parent._mvMapViewId));d.g.removeInfoWindow();var g=A_,h=A_;if(b._themeID!=A_)g=b._themeID,h=b.getId(),h=h.substring(g.length+1);else{var g=f,l=b.attrnames;if(l!=A_)for(i=0;i<l.length;i++)if("__adf_rowId"==l[i]){h=b.attrs[i];break}}if("hand"==d.ga)if(A_i.aG(d._themeInfoTable,g)&&e==A_)b=new A_pa(d,h,g,b.getId()),b.setPartial(A_b),d.queueEvent(b);else{e="\x3ctable cellspacing\x3d'0' cellpadding\x3d'0' class\x3d'"+A_j(d).getAttribute("infoWindowTableClass")+
"'";AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM&&(e+=" style\x3d'word-break:break-all'");e+"\x3e";var l=b.attrnames,m=b.attrs;if(m!=A_){c!=A_&&("mouseover"==c.type&&b._themeID!=A_)&&b.setEventListener("mouse_over",A_i.Xp);var n=[],p=[];f=b.name;if(l!=A_)for(i=0;i<l.length;i++)"__adf_Location"!=l[i]&&"__adf_rowId"!=l[i]&&"__adf_location_label"!=l[i]&&0!=l[i].indexOf("__adf_item_Label")?0==l[i].indexOf("__adf_empty_Label")?n.push("\x26nbsp;"):n.push(l[i]):0==l[i].indexOf("__adf_item_Label")?
p.push(m[i]):0==l[i].indexOf("__adf_location_label")&&(f=m[i]);var q=A_,v=A_;h==A_?(q=l,v=m):(q=n,v=p);l=A_qa(d,g);g=A_;m=l.getAttribute("themeType");h=AdfPage.PAGE.getLocaleContext().isRightToLeft();if(m!=A_&&("BarChartTheme"==m||"PieChartTheme"==m))n=l.getAttribute("shortLabel"),n!=A_&&(e=e+("\x3ctr\x3e\x3ctd colspan\x3d3\x3e\x3cb\x3e"+n+"\x3c/b\x3e\x3c/td\x3e\x3c/tr\x3e")+"\x3ctr\x3e\x3ctd colspan\x3d3 height\x3d'5'\x3e\x3c/td\x3e\x3c/tr\x3e"),"BarChartTheme"==m?g=l.getAttribute("barColors").split(";"):
"PieChartTheme"==m&&(g=l.getAttribute("sliceColor").split(";"));for(i=0;i<q.length;i++){l=q[i];if("undefined"==typeof l||l==A_)l="\x26nbsp;";0<i&&(e+="\x3ctr\x3e\x3ctd colspan\x3d'3' height\x3d'5'\x3e\x3c/td\x3e\x3c/tr\x3e");e+="\x3ctr\x3e";g!=A_&&(borderColor=A_i.jG(g[i]),m="margin-right:",h&&(m="margin-left:"),e+="\x3ctd style\x3d'width:12px'\x3e\x3cdiv style\x3d'width:10px;height:10px;"+m+"3px;background-color:"+g[i]+";border:1px solid "+borderColor+"'\x3e\x26nbsp;\x3c/div\x3e\x3c/td\x3e");m="padding-left:";
h&&(m="padding-right:");e+="\x3ctd nowrap\x3e\x3cspan style\x3d'color:#534741;'\x3e"+l+"\x3c/span\x3e\x3c/td\x3e\x3ctd\x3e\x3cspan style\x3d'"+m+"8px'\x3e"+v[i]+"\x3c/span\x3e\x3c/td\x3e\x3c/tr\x3e"}e+="\x3c/table\x3e";c!=A_&&("mouseover"==c.type&&b._themeID!=A_)&&(a=b.getGeometry(),b.setEventListener("mouse_out",A_i.Xp));b="\x3cdiv class\x3d'"+A_j(d).getAttribute("infoWindowTitleClass")+"'";AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM&&(b+=" style\x3d'text-wrap:none'");d.g.displayInfoWindow(a,
e,A_,A_,A_,b+("\x3e"+f+"\x3c/div\x3e"))}}};A_h("AdfDhtmlGeoMapPeer._showInfoWindow",A_i.hg);A_i.rG=function(a,b){for(var c=0;c<a.length;c++)if(a[c].id==b)return c;return-1};A_i.aG=function(a,b){for(var c=0;c<a.length;c++)if(a[c].id==b&&a[c].hasCallback!=A_)return A_b;return A_c};A_i.ph=function(a,b,c){for(var d=0;d<a.length;d++)if(a[d].id==b&&a[d][c]!=A_)return a[d][c];return A_};
A_i.jh=function(a,b){if(b._themeID!=A_)themeId=b._themeID,h=b.id,h=h.substring(themeId.length+1),a.push(b.name),a.push(h),a.push(b.getGeometry().getPointX()),a.push(b.getGeometry().getPointY()),a.push(b.oF),a.push(b.attrnames[0]),b.attrs==A_?(a.push(""),a.push("")):(a.push(b.attrs[0]),a.push(b.attrs[1]));else{var c=b.attrnames,d=b.attrs,e=[],f=[],g=[],h=A_,l=A_,m=A_;if(c!=A_)for(j=0;j<c.length;j++)"__adf_Location"!=c[j]&&"__adf_rowId"!=c[j]&&"__adf_location_label"!=c[j]&&0!=c[j].indexOf("__adf_item_Label")?
(e.push(c[j]),d==A_||d[j]==A_?g.push(""):g.push(d[j])):0==c[j].indexOf("__adf_item_Label")?f.push(d[j]):"__adf_rowId"==c[j]?h=d[j]:"__adf_Location"==c[j]?l=d==A_||d[j]==A_?"":d[j]:"__adf_location_label"==c[j]&&(m=d==A_||d[j]==A_?"":d[j]);if(h!=A_){a.push(l);a.push(h);a.push(m);a.push(e.length);for(j=0;j<e.length;j++)a.push(e[j]),a.push(g[j]),a.push(f[j])}else if(a.push(b.name),a.push(b.id),c==A_)a.push("0");else{a.push(c.length);for(j=0;j<c.length;j++)a.push(c[j]),d==A_||d[j]==A_?a.push(""):a.push(d[j])}}};
A_i.Ri=function(a,b,c){var d=AdfPage.PAGE.findComponent(this.parent._mvMapViewId),e=d.ga,f=A_,f="undefined"==typeof this.getLayerName?this._themeID:this.getLayerName(),g=A_;"hand"==e?g="click":"pointSelection"==e&&(g="selection");var h=e=A_,l="left";c.pageX?(0==c.button?l="left":2==c.button&&(l="right"),e=c.pageX,h=c.pageY):(1==c.button?l="left":0==c.button&&(l="right"),e=c.clientX,h=c.clientY);A_ra(d.getPeer(),b,a,g,f,e,h,c,l)};A_h("AdfDhtmlGeoMapPeer._FOIClick",A_i.Ri);
function A_ra(a,b,c,d,e,f,g,h,l){a=a.getComponent();var m=a.getClientId();a.g.removeInfoWindow();"click"==d?(a.Pv=b,a.BR=e,"left"==l?(d=A_i.ph(a._themeInfoTable,e,"leftClickBehavior"),m=m+A_i.ea+"myPopup",m=AdfPage.PAGE.findComponent(m),m!=A_&&m.hide(),"FireEvent"==d?(h=[],A_i.jh(h,b),b=new A_sa(a,h,e,b.id,"left",f,g,c),b.setPartial(A_b),a.queueEvent(b)):"LaunchPopup"==d?(b=[],b[A_k.ul]={x:f,y:g},m.show(b)):"LaunchInfoWindow"==d&&A_i.hg(c,b,h,a,A_,e)):"right"==l&&(h=A_i.ph(a._themeInfoTable,e,"rightClickBehavior"),
m=m+A_i.ea+"rtPopup",m=AdfPage.PAGE.findComponent(m),m!=A_&&m.hide(),"FireEvent"==h?(h=[],A_i.jh(h,b),b=new A_sa(a,h,e,b.id,"right",f,g,c),b.setPartial(A_b),a.queueEvent(b)):"LaunchPopup"==h&&(b=[],b[A_k.ul]={x:f,y:g},m.show(b)))):"selection"==d&&(a.Pv=b,f=A_,a.cb!=A_&&(a.xa!=A_&&a.xa.gT()==A_&&(g=a.xa.getFOIData(),g!=A_&&0<g.length&&(f=g[0])),a.cb==e&&(A_ta(a),f!=A_&&b!=A_&&f.name==b.name||A_ua(a,b))))}
A_i.AG=function(a){var b=a;b||(b=window.event);var c=this.id;if(c!=A_){var d=AdfPage.PAGE.findComponent(c);if(!(d==A_||d.g==A_))if(a=document.getElementById(c+A_i.ea+"latitude"),c=document.getElementById(c+A_i.ea+"longitude"),!(a==A_||c==A_))if(!("none"==a.style.display||"none"==c.style.display)){var e=new Date;if(!(a.Nv!=A_&&a.Ov!=A_&&a.Mv!=A_)||!(a.Nv==e.getMinutes()&&a.Ov==e.getSeconds()&&200>e.getMilliseconds()-a.Mv)){var f=d.g.srid,g=MVUtil.getMouseLocation(d.g,b);g.srid=f;54004==f&&(a.Nv=e.getMinutes(),
a.Ov=e.getSeconds(),a.Mv=e.getMilliseconds(),g=d.g.transformGeom(g,8307));var b=g.getPointX(),e=g.getPointY(),g=A_i.Ru+":",h=A_i.Su+":";if(8307==f||54004==f)g=A_i.ju+":",h=A_i.gu+":";d=A_j(d).getAttribute("INFO_IMAGE_PATH");a.innerHTML="\x3cimg src\x3d'"+d+"' align\x3d'top' style\x3d'margin-top:1px;margin-right:4px;vertical-align:text-top'/\x3e"+h+"\x26nbsp;\x3cfont color\x3d'#FFFFFF'\x3e"+A_i.cd(e.toFixed(4))+"\x3c/font\x3e\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;";c.innerHTML=g+"\x26nbsp;\x3cfont color\x3d'#FFFFFF'\x3e"+
A_i.cd(b.toFixed(4))+"\x3c/font\x3e\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;\x26nbsp;"}}}};A_i.sm=function(a,b,c){b="Unable to find a match for row ("+c+") for Theme '"+b+"':\n";a=a.childNodes[0];for(c=0;c<a.attributes.length;c++)0!=c&&(b+=", "),b+=a.attributes[c].nodeName+"\x3d"+a.attributes[c].nodeValue;return b+"\n"};
A_i.mG=function(){"undefined"==typeof DOMParser&&(DOMParser=A_d(),DOMParser.prototype.parseFromString=function(a,b){if("undefined"!=typeof ActiveXObject){var c=new ActiveXObject("MSXML.DomDocument");c.loadXML(a);return c}if("undefined"!=typeof XMLHttpRequest)return c=new XMLHttpRequest,c.open("GET","data:"+(b||"application/xml")+";charset\x3dutf-8,"+encodeURIComponent(a),A_c),c.overrideMimeType&&c.overrideMimeType(b),c.send(A_),c.responseXML});return new DOMParser};
A_i.KR=function(){req=A_c;if(window.XMLHttpRequest&&!window.ActiveXObject)try{req=new XMLHttpRequest}catch(a){req=A_c}else if(window.ActiveXObject)try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){req=A_c}return req};
A_i.zH=function(a,b,c,d,e,f,g){f=A_i.mG().parseFromString(f,"text/xml").getElementsByTagName("input_address");if(a==A_)c=[],c.push(g),c=A_i.Om(A_i.AD,c),A_i.Ym(c);else{g=AdfPage.PAGE.findComponent(b);var h=b=A_,l=A_,m=A_,n=A_,p=A_;if(g!=A_&&g._foiTheme[c]!=A_){a=a.getElementsByTagName("geocode");for(var q=0;q<a.length;q++){var v=g._foiTheme[c][q],u=a[q].getElementsByTagName("match");if(u==A_||1>u.length)n==A_?(n=A_i.sm(f[q],c,q),p=q.toString()):(n+="\n"+A_i.sm(f[q],c,q),p+=";"+q.toString()),v.parent=
A_;else{var w=u[0].getAttribute("match_code");if("exact"==e&&"1"!=w)n==A_?(n=A_i.sm(f[q],c,q),p=q.toString()):(n+="\n"+A_i.sm(f[q],c,q),p+=";"+q.toString()),v.parent=A_;else{w=parseFloat(u[0].getAttribute("latitude"));if(h==A_||h>w)h=w;if(m==A_||m<w)m=w;u=parseFloat(u[0].getAttribute("longitude"));if(b==A_||h>u)b=u;if(l==A_||m<u)l=u;u=MVSdoGeometry.createPoint(u,w,8307);v.updateGeometry(u);v.cU!=A_&&v.setVisible(A_b);v.reDraw()}}}}n!=A_&&(e=new A_va(g,c,p),e.setPartial(A_b),g.queueEvent(e),AdfLogger.LOGGER.logError(g,
AdfLogger.SEVERE,n));for(q=0;q<g._themeInfoTable.length;q++)g._themeInfoTable[q].id==c&&(g._themeInfoTable[q].loaded=A_b);"none"!=d&&b!=A_&&(h!=A_&&l!=A_&&m!=A_)&&("zoom"==d?g.g.zoomToRectangle(MVSdoGeometry.createRectangle(b,h,l,m,8307)):"centerOnly"==d&&g.g.setCenter(MVSdoGeometry.createPoint((b+l)/2,(h+m)/2,8307)))}};A_h("AdfDhtmlGeoMapPeer._parseGeocodeResponse",A_i.zH);
A_i.Up=function(a){var b=a+A_i.ea+"longitude",c=a+A_i.ea+"latitude",d=a+A_i.ea+"latlong",e=a+A_i.ea+"longlatEnd",f=a+A_i.ea+"longlatConnector",g=a+A_i.ea+"distanceAreaStart",h=document.getElementById(a+A_i.ea+"distanceArea"),b=document.getElementById(b),c=document.getElementById(c),d=document.getElementById(d),e=document.getElementById(e),f=document.getElementById(f),g=document.getElementById(g);a=document.getElementById(AdfRichUIPeer.CreateSubId(a,"actualMap"));a=parseInt(a.style.width)-50;var l=
Math.ceil(a/3);h!=A_&&d!=A_&&(0<h.innerHTML.length&&"none"!=d.style.display?100>=l?(b.style.width=l.toString()+"px",c.style.width=l.toString()+"px",d.style.width=(2*l).toString()+"px",h.style.width=l.toString()+"px"):(b.style.width=A_i.Cw.toString()+"px",c.style.width=A_i.Aw.toString()+"px",d.style.width=A_,h.style.width=A_,e.style.display="none",f.style.display="block",g.style.display="none"):0<h.innerHTML.length?(h.style.width=A_,g.style.display="block"):"none"!=d.style.display&&(l=Math.ceil(a/
2),100>=l?(b.style.width=l.toString()+"px",c.style.width=l.toString()+"px",d.style.width=a.toString()+"px"):(b.style.width=A_i.Cw.toString()+"px",c.style.width=A_i.Aw.toString()+"px",d.style.width=A_,e.style.display="block",f.style.display="none")),"none"==d.style.display&&(e.style.display="none",f.style.display="none"),0==h.innerHTML.length&&(h.style.width="0px",f.style.display="none",g.style.display="none"))};
AdfDhtmlGeoMap.aI=function(a){var b=a.id.split(AdfRichUIPeer.createSubId("",""));a=b[0];var b=b[1],c=document.getElementById(AdfRichUIPeer.CreateSubId(a,"mapStyle")),d=document.getElementById(AdfRichUIPeer.CreateSubId(a,"mapSwitch")),e=document.getElementById(AdfRichUIPeer.CreateSubId(a,"satelliteMapSwitch")),f=document.getElementById(AdfRichUIPeer.CreateSubId(a,"hybridMapSwitch")),g=c.getAttribute("mapControlStyleClass"),c=c.getAttribute("mapControlStyleClassNotSelect");a=AdfPage.PAGE.findComponent(a);
"mapSwitch"==b?(a.$c.setVisible(A_b),a.Cc!=A_&&a.Cc.setVisible(A_c),a.yc!=A_&&a.yc.setVisible(A_c),d!=A_&&(d.className=g),e!=A_&&(e.className=c),f!=A_&&(f.className=c)):"satelliteMapSwitch"==b?(a.$c.setVisible(A_c),a.Cc!=A_&&a.Cc.setVisible(A_b),a.yc!=A_&&a.yc.setVisible(A_c),d!=A_&&(d.className=c),e!=A_&&(e.className=g),f!=A_&&(f.className=c)):"hybridMapSwitch"==b&&(a.$c.setVisible(A_c),a.Cc!=A_&&a.Cc.setVisible(A_b),a.yc!=A_&&a.yc.setVisible(A_b),d!=A_&&(d.className=c),e!=A_&&(e.className=c),f!=
A_&&(f.className=g))};A_h("AdfDhtmlGeoMap._selectMapType",AdfDhtmlGeoMap.aI);function A_wa(a){a=a.getDomElement().id;return document.getElementById(AdfRichUIPeer.CreateSubId(a,"mapStyle")).getAttribute("baseMapName").split(".")[0]}A_i.prototype.RF=function(){"hand"==AdfPage.PAGE.findComponent(this._mvMapViewId).ga&&this.zoomIn(this.getMouseLocation())};
A_i.prototype.ou=function(a){var b=this._mvMapViewId,c=AdfPage.PAGE.findComponent(b);if("zoomIn"==c.ga)this.zoomIn(this.getMouseLocation());else if("zoomOut"==c.ga)0<A_xa()&&this.IU(this.getMouseLocation());else if("pointSelection"==c.ga){if(c.cb==A_)return;c.g.getThemeBasedFOI(c.cb)!=A_&&(A_ta(c),c.jr())}else"hand"==c.ga&&AdfAgent.getAgent().getPlatform();AdfAgent.getAgent().getPlatform()!=AdfAgent.IE_PLATFORM||document.createEvent?(c=document.createEvent("MouseEvents"),c.initMouseEvent("mousedown",
A_b,A_b,window,1,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget),document.getElementById(b).dispatchEvent(c)):document.getElementById(b).fireEvent("onmousedown")};A_h("AdfDhtmlGeoMapPeer.prototype._MapClick",A_i.prototype.ou);
A_i.prototype.pu=function(){var a=AdfPage.PAGE.findComponent(this._mvMapViewId);if("ruler"==a.ga)A_l(a,A_c,A_i.zf,0),a.Vb.clear(),a.Vb.init();else if("area"==a.ga){A_l(a,A_c,A_i.Qb,0);a.qb.clear();var b=this.getFOI("__adf_areaTool_Polygon");b!=A_&&this.removeFOI(b);a.qb.init()}};A_h("AdfDhtmlGeoMapPeer.prototype._MapRTCancel",A_i.prototype.pu);
A_i.prototype.gx=function(){var a=AdfPage.PAGE.findComponent(this._mvMapViewId),b=A_j(a).getAttribute("startSRID"),c=this.getCenter();c.srid!=b&&(c=this.transformGeom(this.getCenter(),b));var b=c.getPointX().toString(),d=c.getPointY().toString(),c=c.srid.toString();a.setProperty("centerX",b);a.setProperty("centerY",d);a.setProperty("centerSrid",c);c=new A_ya(a,b,d,c);c.setPartial(A_b);a.queueEvent(c)};A_h("AdfDhtmlGeoMapPeer.prototype._recenterListener",A_i.prototype.gx);
A_i.prototype.wv=function(a,b){for(var c=AdfPage.PAGE.findComponent(this._mvMapViewId),d=0;d<c._themeInfoTable.length;d++){var e=c._themeInfoTable[d],f=A_za(e,a),g=A_za(e,b);e.id==c.cb&&!g&&A_ta(c);f!=g&&!(e.toolbarVisible!=A_&&e.toolbarVisible==A_c&&g)&&("PointTheme"==e.type?(!g||e.loaded)&&A_Aa(c,e,g):(!g||e.loaded)&&A_Ba(c,e,g))}};A_h("AdfDhtmlGeoMapPeer.prototype._beforeZoomListener",A_i.prototype.wv);
A_i.prototype.Ox=function(a,b){var c=AdfPage.PAGE.findComponent(this._mvMapViewId);c.setProperty("currentZoom",b.toString());for(var d=A_c,e=0;e<c._themeInfoTable.length;e++){var f=c._themeInfoTable[e];if(!f.loaded&&A_za(f,a)!=A_za(f,b)){d=A_b;break}}d&&c.g.setLoadingIconVisible(A_b);d=new A_Ca(c,a.toString(),b.toString());d.setPartial(A_b);c.queueEvent(d)};A_h("AdfDhtmlGeoMapPeer.prototype._zoomListener",A_i.prototype.Ox);
function A_Da(a,b){if(a&&a.id!=A_){var c=document.getElementById(a.id);if(c!=A_&&c.firstChild!=A_&&c.firstChild.firstChild!=A_)if("mouseout"==b&&c.firstChild.firstChild.onmouseout!=A_)c.firstChild.firstChild.onmouseout();else if("mouseover"==b&&c.firstChild.firstChild.onmouseover!=A_)c.firstChild.firstChild.onmouseover()}}
A_i.prototype.Sc=function(a){var b=a.getNativeEvent(),c=b.keyCode,d=this.getComponent(),e=d.getClientId(),f=[];f[0]=AdfRichUIPeer.CreateSubId(e,"mapSwitch");f[1]=AdfRichUIPeer.CreateSubId(e,"satelliteMapSwitch");f[2]=AdfRichUIPeer.CreateSubId(e,"hybridMapSwitch");e=d.gw;e==A_&&(d._themeInfoTable!=A_&&0<d._themeInfoTable.length)&&(e=d._themeInfoTable[0].id,d.gw=e,d.ew=0);var g=A_,h=-1;if(e!=A_){var l=A_i.ph(d._themeInfoTable,e,"type"),g=map.getTheme(e),h=A_;g&&(h="PointTheme"==l?g:g.getFOIData());
g=h;h=A_i.rG(d._themeInfoTable,e)}(l=d.ew)||(l=0);var m=AdfAgent.AGENT.isSelectionToggle(b);if(c==AdfKeyStroke.ARROWLEFT_KEY&&m&&g!=A_)A_Da(g[l],"mouseout"),l--,0>l&&(l=g.length-1),A_Da(g[l],"mouseover");else if(c==AdfKeyStroke.ARROWRIGHT_KEY&&m&&g!=A_)A_Da(g[l],"mouseout"),l++,l>=g.length&&(l=0),A_Da(g[l],"mouseover");else if(221==c)a=h-1,0>a&&(a=d._themeInfoTable.length-1),0<=a&&d._themeInfoTable[a]&&(e=d._themeInfoTable[a].id,l=0);else if(219==c)a=h+1,a>=d._themeInfoTable.length&&(a=0),0<=a&&d._themeInfoTable[a]&&
(e=d._themeInfoTable[a].id,l=0);else if(c==AdfKeyStroke.ENTER_KEY)if(d.qj!=A_){c=document.getElementById(f[d.qj]);if(c!=A_)c.onmousedown();a.stopBubbling();a.cancel();b.stopPropagation()}else g!=A_&&e!=A_&&(a=g[l],f=MVSdoGeometry.createPoint(a.x,a.y,d.g.srid),A_ra(this,a,f,"click",e,a.x,a.y,A_,"left"));else if(c==AdfKeyStroke.SPACE_KEY&&m&&g!=A_&&e!=A_)a=g[l],f=MVSdoGeometry.createPoint(a.x,a.y,d.g.srid),A_ra(this,a,f,"selection",e,a.x,a.y,A_,"left");else if(c==AdfKeyStroke.TAB_KEY){c=A_;g=0;if(d.qj==
A_)c=document.getElementById(f[0]);else{g=d.qj;h=document.getElementById(f[g]);if(h!=A_)h.onblur();if(b.shiftKey){g--;for(b=g;0<=b&&c==A_;b--)c=document.getElementById(f[b]),g=b}else{g++;for(b=g;3>b&&c==A_;b++)c=document.getElementById(f[b]),g=b}}c!=A_?(d.qj=g,c.onfocus(),a.stopBubbling(),a.cancel()):d.qj=A_}else c==AdfKeyStroke.ESC_KEY?d.g.removeInfoWindow():79==c&&d.Wf!=A_&&(d.Wf.isCollapsed()?d.Wf.xL.parentNode.click():d.Wf.collapse());d.gw=e;d.ew=l};
A_h("AdfDhtmlGeoMapPeer.prototype.HandleComponentKeyDown",A_i.prototype.Sc);A_i.InitSubclass=function(){AdfObject.ensureClassInitialization(A_i);AdfRichUIPeer.addSuppressedPPRAttributes(this,"centerX");AdfRichUIPeer.addSuppressedPPRAttributes(this,"centerY");AdfRichUIPeer.addSuppressedPPRAttributes(this,"currentZoom");AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE)};A_g=A_i.prototype;A_g.needsResizeNotify=A_f(A_b);
A_g.EF=function(a,b){var c=this.getClientId(),d=document.getElementById(AdfRichUIPeer.CreateSubId(c,"mapStyle"));if(b!=A_&&0<b.length){AdfPage.PAGE.tc(A_c,A_c,A_c,"MapViewer Connection OK");var e=document.getElementById(AdfRichUIPeer.CreateSubId(c,"Data")),f=this.getPeer();AdfPage.PAGE.tc(A_c,A_c,A_c,"Before GeoMap Render: "+c);f.yq(e,d);c=this.ga;this.ga="";A_Ea(this,c)}else c=d.getAttribute("mapServerURL"),d=[],d.push(c),c=A_i.Om(A_i.up,d),A_i.Ym(c),AdfPage.PAGE.tc(A_c,A_c,A_c,"MapViewer Connection Failed")};
A_g.ResizeNotify=function(a,b,c,d){a=this.e.getClientId();c!=A_&&d!=A_&&(b=document.getElementById(AdfRichUIPeer.CreateSubId(a,"actualMap")),b!=A_&&(b.style.width=c.toString()+"px",b.style.height=d.toString()+"px",this.e.g!=A_&&A_i.Up(a)));this.e.g==A_&&(c=AdfPage.PAGE.isStreamingRequestPending(a),this.e.Eq=c,this.fa||(c=this.e.getClientId(),d=document.getElementById(AdfRichUIPeer.CreateSubId(c,"mapStyle")),d.getAttribute("contextPath"),c=d.getAttribute("proxyPath"),d=d.getAttribute("mapServerURL"),
d!=A_&&(d="rtarget\x3d"+d+"/omserver\x26getv\x3dt",a=this.e.createCallback(this.EF),c=new MapAJAXConnection(c,a),AdfPage.PAGE.tc(A_c,A_c,A_c,"Sending MapViewer Ajax request ..."),c.doPost(d))))};
A_g.DomReplaceNotify=function(a){var b=this.e.getClientId();if(a.id==AdfRichUIPeer.CreateSubId(b,"Data")){var c=document.getElementById(AdfRichUIPeer.CreateSubId(b,"Data")),d=document.getElementById(AdfRichUIPeer.CreateSubId(b,"mapStyle"));this.e.setProperty("centerX",d.getAttribute("centerX"));this.e.setProperty("centerY",d.getAttribute("centerY"));this.e.setProperty("currentZoom",d.getAttribute("currentZoom"));this.e.setProperty("centerSrid",d.getAttribute("srid"));if(this.e.Qq!=A_){var e=document.getElementById(this.e.Qq),
f=0;e!=A_&&(f=parseInt(e.style.height));20>=f?d.setAttribute("overviewMapHideInit","true"):d.removeAttribute("overviewMapHideInit")}this.e.Ac!=A_&&(this.e.g.removeMapDecoration(this.Ac),this.e.Ac=A_);e=AdfPage.PAGE.isStreamingRequestPending(b);this.e.Eq=e;this.e.ww=A_b;AdfPage.PAGE.tc(A_c,A_c,A_c,"Before GeoMap Render: "+b);this.yq(c,d);b=this.e.ga;this.e.ga="";A_Ea(this.e,b);A_Fa(this.e)}else a.id==AdfRichUIPeer.CreateSubId(b,"hiddenLegend")&&(a.style.display="none");return a};
function A_Ga(a){a=AdfRichUIPeer.CreateSubId(a.e.getClientId(),"resource");a=document.getElementById(a);a!=A_&&(A_i.gu=a.getAttribute("LATITUDE"),A_i.ju=a.getAttribute("LONGITUDE"),A_i.Ru=a.getAttribute("X"),A_i.Su=a.getAttribute("Y"),A_i.zf=a.getAttribute("DISTANCE"),A_i.Qb=a.getAttribute("AREA"),A_i.Ml=a.getAttribute("RADIUS"),A_i.nu=a.getAttribute("MILES"),A_i.mu=a.getAttribute("METERS"),A_i.LD=a.getAttribute("KILOMETERS"),A_i.DD=a.getAttribute("FEET"),A_i.Eu=a.getAttribute("SQUARE_KILOMETERS"),
A_i.xE=a.getAttribute("SQUARE_FEET"),A_i.dD=a.getAttribute("ACRES"),A_i.Fu=a.getAttribute("SQUARE_MILES"),A_i.yE=a.getAttribute("SQUARE_METERS"),A_i.RD=a.getAttribute("MAP_VIEW"),A_i.mE=a.getAttribute("SATELLITE_VIEW"),A_i.VD=a.getAttribute("MIXED_VIEW"),MVMessages.panNWInfoTip=a.getAttribute("MVMessages_panNWInfoTip"),MVMessages.panNInfoTip=a.getAttribute("MVMessages_panNInfoTip"),MVMessages.panNEInfoTip=a.getAttribute("MVMessages_panNEInfoTip"),MVMessages.panSWInfoTip=a.getAttribute("MVMessages_panSWInfoTip"),
MVMessages.panSInfoTip=a.getAttribute("MVMessages_panSInfoTip"),MVMessages.panSEInfoTip=a.getAttribute("MVMessages_panSEInfoTip"),MVMessages.panWInfoTip=a.getAttribute("MVMessages_panWInfoTip"),MVMessages.panCenterInfoTip=a.getAttribute("MVMessages_panCenterInfoTip"),MVMessages.panEInfoTip=a.getAttribute("MVMessages_panEInfoTip"),MVMessages.sliderBarInfoTip=a.getAttribute("MVMessages_sliderBarInfoTip"),MVMessages.sliderInfoTip=a.getAttribute("MVMessages_sliderInfoTip"),MVMessages.zoomInInfoTip=a.getAttribute("MVMessages_zoomInInfoTip"),
MVMessages.zoomOutInfoTip=a.getAttribute("MVMessages_zoomOutInfoTip"),A_i.ro=a.getAttribute("GROUP_SIZE"),A_i.nB=a.getAttribute("GROUP_SEPARATOR"),A_i.$A=a.getAttribute("DECIMAL_SEPARATOR"),A_i.up=a.getAttribute("ERROR_MSG_26017"),A_i.AD=a.getAttribute("ERROR_MSG_26018"))}A_g.InitDomElement=function(a,b){A_i.superclass.InitDomElement.call(this,a,b);this.e=a;this.QF=b;this.e.ga="hand";this.e.Qq=A_;this.e.ww=A_c;A_Ga(this);this.fa=AdfAgent.AGENT.getAttribute(b,"_ada")!=A_a};
A_i.lI=function(a){a=a.split(";");for(var b={},c=0;c<a.length;c++){var d=a[c].split(":");if(d!=A_&&2<=d.length){var e=d[0].replace("-","");b[e]=d[1]}}return b};
A_i.prototype.yq=function(a,b){MVMapView.enableXMLHTTP(A_b);var c=this.e.getClientId();this.e.Xm=[];this.e.xa=A_;this.e.cb=A_;this.e.Jb=A_;this.e.Cb=A_;this.e.gb=A_;this.e.Vb=A_;this.e.qb=A_;this.e.Ch=[];this.e.$c=A_;this.e.Cc=A_;this.e.yc=A_;this.e._themeInfoTable=[];this.e._foiTheme=[];if(a!=A_&&b!=A_){var d=b.getAttribute("mapServerURL");b.getAttribute("contextPath");var e=b.getAttribute("proxyPath"),f=e.indexOf("://");0<=f&&(e=e.substring(f+3),f=e.indexOf("/"),e=0<=f?e.substring(f):"/");this.e.g&&
(this.e.g.removeAllFOIs(),A_Ha(this.e.g),this.e.g=A_);MVMapView.setProxyPath(e);MVMapView.enableCodingHints(A_c);this.e.g=new MVMapView(document.getElementById(AdfRichUIPeer.CreateSubId(c,"actualMap")),d);var d=b.getAttribute("CLOSE_IMAGE_PATH"),g=b.getAttribute("WINHEADER_IMAGE_PATH"),e=b.getAttribute("infoWindowConeStyle"),f=b.getAttribute("infoWindowBodyStyle"),g="background-image:url('"+g+"');"+b.getAttribute("infoWindowTitleBarStyle");this.e.g.setDefaultInfoWindowStyle("MVInfoWindowStyle1",{closeButtonImageURL:d,
titleBarStyle:g,bodyStyle:f,coneStyle:e});this.e.g.removeAllFOIs();this.e.g._mvMapViewId=c;b.getAttribute("mapGeocodeServerURL");var d=b.getAttribute("baseMapName"),e=b.getAttribute("satelliteMap"),f=b.getAttribute("hybridMap"),h=this,g=b.getAttribute("mapControlStyleClass"),l=b.getAttribute("mapControlStyleClassNotSelect"),m=b.getAttribute("mapControlStyleClassOver");this.e.$c=new MVBaseMap(d);this.e.$c.setVisible(A_b);this.e.g.addMapTileLayer(this.e.$c,function(){function a(){var b=h.e.Ac;b!=A_&&
(b.getContainerDiv().onmousemove=A_,A_Ga(h),h.e.g.removeMapDecoration(b),h.e.Ac=A_);A_Fa(h.e)}var d=parseFloat(h.e.getProperty("centerX")),e=parseFloat(h.e.getProperty("centerY")),f=parseInt(h.e.getProperty("currentZoom")),g=parseInt(h.e.getProperty("centerSrid")),l=parseFloat(b.getAttribute("startX")),m=parseFloat(b.getAttribute("startY")),x=parseInt(b.getAttribute("startZoom")),s=parseInt(b.getAttribute("startSRID")),l=MVSdoGeometry.createPoint(l,m,s);b.getAttribute("autoZoomTheme")==A_||!h.e.ww?
(h.e.g.setCenter(l),h.e.g.setZoomLevel(x)):(d=MVSdoGeometry.createPoint(d,e,g),h.e.g.setCenter(d),h.e.g.setZoomLevel(f));h.e.g.setMouseWheelZoomEnabled(A_b);h.e.g.setHomeMap(l,x);h.e.g.addEventListener("mouse_click",h.ou);h.e.g.addEventListener("mouse_double_click",h.RF);h.e.g.addEventListener("mouse_right_click",h.pu);h.e.g.addEventListener("before_zoom_level_change",h.wv);h.e.g.addEventListener("zoom_level_change",h.Ox);h.e.g.addEventListener("recenter",h.gx);h.e.mr=b.getAttribute("unit");h.e.g.display();
b.getAttribute("navigatorPosition")!=A_&&(A_Fa(h.e),h.e.Ac.getContainerDiv()&&(h.e.Ac.getContainerDiv().onmousemove=a));if(b.getAttribute("hasTheme")!=A_){if(AdfPage.PAGE.isStreamingDisabled()||!h.e.Eq)h.e.g.setLoadingIconVisible(A_b),A_Ia(0,h.e,A_b);h.e.Eq=A_}if(b.getAttribute("overviewMapHidden")==A_){d=200;b.getAttribute("overviewMapWidth")!=A_&&(d=parseInt(b.getAttribute("overviewMapWidth")));e=150;b.getAttribute("overviewMapHeight")!=A_&&(e=parseInt(b.getAttribute("overviewMapHeight")));f=3;
b.getAttribute("overviewMapDiff")!=A_&&(f=parseInt(b.getAttribute("overviewMapDiff")));x=b.getAttribute("overviewMapHideInit")!=A_;ovcontainer=new MVMapDecoration(A_,A_,A_,d,e);A_Ja(h.e);d=A_j(h.e).getAttribute("HANDCUR");AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM?ovcontainer.setMouseCursorStyle(d):(cursorStyles=[],cursorStyles.push("url('"+d+"')"),cursorStyles.push("default"),ovcontainer.setMouseCursorStyle(cursorStyles));var d=b.getAttribute("overview-window-header-icon"),e=b.getAttribute("overview-window-header-active-icon"),
g=b.getAttribute("overview-window-header-hover-icon"),l=b.getAttribute("overview-window-maximize-icon"),m=b.getAttribute("overview-window-maximize-active-icon"),s=b.getAttribute("overview-window-maximize-hover-icon"),z=b.getAttribute("overview-window-minimize-icon"),A=b.getAttribute("overview-window-minimize-active-icon"),G=b.getAttribute("overview-window-minimize-hover-icon");ovcontainer.setCollapsible(A_b,x,{titleBgImg:d,titleBgImgMO:g,titleBgImgMD:e,minBtnImg:l,minBtnImgMO:s,minBtnImgMD:m,resBtnImg:z,
resBtnImgMO:G,resBtnImgMD:A});h.e.g.addMapDecoration(ovcontainer);h.e.Wf=ovcontainer;f=new MVOverviewMap(ovcontainer.getContainerDiv(),f);x=b.getAttribute("overviewMapAreaStyle");x=A_i.lI(x);f.setRectangleStyle(x.border,x.backgroundcolor);h.e.Qq=ovcontainer.getContainerDiv().id;ovcontainer.getContainerDiv().className=b.getAttribute("overviewMapBodyClass");h.e.g.addOverviewMap(f)}f=document.getElementById(AdfRichUIPeer.CreateSubId(c,"actualMap"));mapWidth=parseInt(f.style.width);b.getAttribute("isShowScaleBar")!=
A_&&(f=A_,f=8307!=h.e.g.srid?new MVScaleBar(A_b):new MVScaleBar,x=b.getAttribute("scaleBarBarStyle"),d=b.getAttribute("scaleBarTextStyle"),f.setStyle({barStyle:x,barHeight:1,textStyle:d}),f=new MVMapDecoration(f,0,1),f.setEventListener("mouse_over",new Function('this.getContainerDiv().title\x3d""')),f.enableEventPropagation(A_b),f.setOffset(5,-54),h.e.g.addMapDecoration(f));f=b.getAttribute("copyrightStyleClass");x=b.getAttribute("copyrightText");f=new MVMapDecoration("\x3ctable width\x3d'0' border\x3d'0' cellspacing\x3d'0' cellpadding\x3d'0'\x3e\x3ctr\x3e\x3ctd nowrap class\x3d'"+
f+"'\x3e\x3cdiv id\x3d'"+c+A_i.ea+"copyrightText'\x3e"+x+"\x3c/div\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",0,1,0,0);f.enableEventPropagation(A_b);f.setOffset(5,-12);h.e.g.addMapDecoration(f);h.e._themeIsInit==A_&&h.e._initThemeFunction!=A_&&h.e._initThemeFunction();h.e._callbackIsCalled=A_b;AdfPage.PAGE.tc(A_b,A_c,A_c,"After GeoMap Render: "+c)});e!=A_&&(this.e.Cc=new MVBaseMap(e),this.e.Cc.setVisible(A_c),this.e.g.addMapTileLayer(this.e.Cc));f!=A_&&(this.e.yc=new MVBaseMap(f),this.e.yc.setTransparent(A_b),
this.e.g.addMapTileLayer(this.e.yc));A_Ka(this.e,g,l,m)}};A_h("AdfDhtmlGeoMapPeer.prototype._initMapView",A_i.prototype.yq);
function A_La(a,b,c,d,e,f){return"\x3cdiv id\x3d'"+a+"' class\x3d'"+b+"' onmousedown\x3d'AdfDhtmlGeoMap._selectMapType(this)' onmouseover\x3d\"if(this.className!\x3d'"+c+"') this.className\x3d'"+e+"'\"  onmouseout\x3d\"if(this.className!\x3d'"+c+"')this.className\x3d'"+d+"'\" onfocus\x3d\"if(this.className!\x3d'"+c+"') this.className\x3d'"+e+"'\"  onblur\x3d\"if(this.className!\x3d'"+c+"')this.className\x3d'"+d+"'\"\x3e"+f+"\x3c/div\x3e"}
function A_Ka(a,b,c,d){var e="\x3ctable\x3e\x3ctr\x3e\x3ctd nowrap\x3e"+A_La(AdfRichUIPeer.CreateSubId(a.getClientId(),"mapSwitch"),b,b,c,d,A_i.RD)+"\x3c/td\x3e";if(a.Cc!=A_||a.yc!=A_)a.Cc!=A_&&(e+="\x3ctd nowrap\x3e"+A_La(AdfRichUIPeer.CreateSubId(a.getClientId(),"satelliteMapSwitch"),c,b,c,d,A_i.mE)+"\x3c/td\x3e"),a.yc!=A_&&(e+="\x3ctd nowrap\x3e"+A_La(AdfRichUIPeer.CreateSubId(a.getClientId(),"hybridMapSwitch"),c,b,c,d,A_i.VD)+"\x3c/td\x3e"),b=new MVMapDecoration(e+"\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e",
1,0,100,20),b.setOffset(-200,5),a.g.addMapDecoration(b)}function A_Ia(a,b,c){a=new A_Ma(b,c);a.setPartial(A_b);b.queueEvent(a)}A_i.jU=function(a,b,c){var d=A_;a!=A_&&(d=AdfPage.PAGE.findComponent(a));if(A_==d||"undefined"==d)return A_c;a=d.g.getFOI(c);if(A_==a)return A_c;b=d._foiTheme[b];for(var e=-1,f=0;f<b.length;f++)if(b[f].id==a.id){e=f;break}if(-1==e)return A_c;b.splice(e,1);d.g.removeFOI(c)};
A_i.uR=function(a,b){"a_eff_blink"==b?AdfDhtmlGeoMap.Wp(a,"blink"):"a_eff_blink_n_fade"==b?AdfDhtmlGeoMap.Wp(a,"fade_in_and_blink"):"a_eff_fade"==b&&AdfDhtmlGeoMap.Wp(a,"fade_in")};A_i.prototype.ComponentRemoved=function(a){this.e.g&&(this.e.g.removeAllFOIs(),A_Ha(this.e.g),this.e.g=A_);A_i.superclass.ComponentRemoved.call(this,a)};