/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
};
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:3,minor:1,patch:10,flag:"",revision:Number("$Rev: 8617 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.global());
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}else{
_12=dojo.errorToString(_12);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
};
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[i]]=false;
}
return tmp;
};
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return Boolean(ok&&this.findModule(_36,false));
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"||(djConfig["useXDomain"]&&dojo.render.html.opera)){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
}
}
if(!ok&&!_49){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(_5f){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_60,_61){
var _62=arguments[0];
if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
dojo.require.apply(dojo,_63);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_65){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_66,_67){
return dojo.hostenv.setModulePrefix(_66,_67);
};
if(djConfig["modulePaths"]){
for(var param in djConfig["modulePaths"]){
dojo.registerModulePath(param,djConfig["modulePaths"][param]);
}
}
dojo.setModulePrefix=function(_68,_69){
dojo.deprecated("dojo.setModulePrefix(\""+_68+"\", \""+_69+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_68,_69);
};
dojo.exists=function(obj,_6b){
var p=_6b.split(".");
for(var i=0;i<p.length;i++){
if(!obj[p[i]]){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.normalizeLocale=function(_6e){
var _6f=_6e?_6e.toLowerCase():dojo.locale;
if(_6f=="root"){
_6f="ROOT";
}
return _6f;
};
dojo.hostenv.searchLocalePath=function(_70,_71,_72){
_70=dojo.hostenv.normalizeLocale(_70);
var _73=_70.split("-");
var _74=[];
for(var i=_73.length;i>0;i--){
_74.push(_73.slice(0,i).join("-"));
}
_74.push(false);
if(_71){
_74.reverse();
}
for(var j=_74.length-1;j>=0;j--){
var loc=_74[j]||"ROOT";
var _78=_72(loc);
if(_78){
break;
}
}
};
dojo.hostenv.localesGenerated;
dojo.hostenv.registerNlsPrefix=function(){
dojo.registerModulePath("nls","nls");
};
dojo.hostenv.preloadLocalizations=function(){
if(dojo.hostenv.localesGenerated){
dojo.hostenv.registerNlsPrefix();
function preload(_79){
_79=dojo.hostenv.normalizeLocale(_79);
dojo.hostenv.searchLocalePath(_79,true,function(loc){
for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
if(dojo.hostenv.localesGenerated[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
};
preload();
var _7c=djConfig.extraLocale||[];
for(var i=0;i<_7c.length;i++){
preload(_7c[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7e,_7f,_80,_81){
dojo.hostenv.preloadLocalizations();
var _82=dojo.hostenv.normalizeLocale(_80);
var _83=[_7e,"nls",_7f].join(".");
var _84="";
if(_81){
var _85=_81.split(",");
for(var i=0;i<_85.length;i++){
if(_82.indexOf(_85[i])==0){
if(_85[i].length>_84.length){
_84=_85[i];
}
}
}
if(!_84){
_84="ROOT";
}
}
var _87=_81?_84:_82;
var _88=dojo.hostenv.findModule(_83);
var _89=null;
if(_88){
if(djConfig.localizationComplete&&_88._built){
return;
}
var _8a=_87.replace("-","_");
var _8b=_83+"."+_8a;
_89=dojo.hostenv.findModule(_8b);
}
if(!_89){
_88=dojo.hostenv.startPackage(_83);
var _8c=dojo.hostenv.getModuleSymbols(_7e);
var _8d=_8c.concat("nls").join("/");
var _8e;
dojo.hostenv.searchLocalePath(_87,_81,function(loc){
var _90=loc.replace("-","_");
var _91=_83+"."+_90;
var _92=false;
if(!dojo.hostenv.findModule(_91)){
dojo.hostenv.startPackage(_91);
var _93=[_8d];
if(loc!="ROOT"){
_93.push(loc);
}
_93.push(_7f);
var _94=_93.join("/")+".js";
_92=dojo.hostenv.loadPath(_94,null,function(_95){
var _96=function(){
};
_96.prototype=_8e;
_88[_90]=new _96();
for(var j in _95){
_88[_90][j]=_95[j];
}
});
}else{
_92=true;
}
if(_92&&_88[_90]){
_8e=_88[_90];
}else{
_88[_90]=_8e;
}
if(_81){
return true;
}
});
}
if(_81&&_82!=_84){
_88[_82.replace("-","_")]=_88[_84.replace("-","_")];
}
};
(function(){
var _98=djConfig.extraLocale;
if(_98){
if(!_98 instanceof Array){
_98=[_98];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9c,_9d){
req(m,b,_9c,_9d);
if(_9c){
return;
}
for(var i=0;i<_98.length;i++){
req(m,b,_98[i],_9d);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _9f=document.location.toString();
var _a0=_9f.split("?",2);
if(_a0.length>1){
var _a1=_a0[1];
var _a2=_a1.split("&");
for(var x in _a2){
var sp=_a2[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _a6=document.getElementsByTagName("script");
var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a6.length;i++){
var src=_a6[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a7);
if(m){
var _ab=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ab+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ab;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ab;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=(drh.UA=navigator.userAgent);
var dav=(drh.AV=navigator.appVersion);
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _b3=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b3+6,_b3+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
var cm=document["compatMode"];
drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;
dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
var _b5=window["document"];
var tdi=_b5["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
}else{
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _b9=null;
var _ba=null;
try{
_b9=new XMLHttpRequest();
}
catch(e){
}
if(!_b9){
for(var i=0;i<3;++i){
var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b9=new ActiveXObject(_bc);
}
catch(e){
_ba=e;
}
if(_b9){
dojo.hostenv._XMLHTTP_PROGIDS=[_bc];
break;
}
}
}
if(!_b9){
return dojo.raise("XMLHTTP not available",_ba);
}
return _b9;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_be,_bf){
if(!_be){
this._blockAsync=true;
}
var _c0=this.getXmlhttpObject();
function isDocumentOk(_c1){
var _c2=_c1["status"];
return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));
};
if(_be){
var _c3=this,_c4=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_c0.onreadystatechange=function(){
if(_c4){
gbl.clearTimeout(_c4);
_c4=null;
}
if(_c3._blockAsync||(xhr&&xhr._blockAsync)){
_c4=gbl.setTimeout(function(){
_c0.onreadystatechange.apply(this);
},10);
}else{
if(4==_c0.readyState){
if(isDocumentOk(_c0)){
_be(_c0.responseText);
}
}
}
};
}
_c0.open("GET",uri,_be?true:false);
try{
_c0.send(null);
if(_be){
return null;
}
if(!isDocumentOk(_c0)){
var err=Error("Unable to load "+uri+" status:"+_c0.status);
err.status=_c0.status;
err.responseText=_c0.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_bf)&&(!_be)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _c0.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_c8){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_c8);
}else{
try{
var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_c9){
_c9=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_c8));
_c9.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_c8+"</div>");
}
catch(e2){
window.status=_c8;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_cb,_cc,fp){
var _ce=_cb["on"+_cc]||function(){
};
_cb["on"+_cc]=function(){
fp.apply(_cb,arguments);
_ce.apply(_cb,arguments);
};
return true;
};
dojo.hostenv._djInitFired=false;
function dj_load_init(e){
dojo.hostenv._djInitFired=true;
var _d0=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _d1=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_d1();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_d1);
}
};
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&(djConfig["enableMozDomContentLoaded"]===true))){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.attachEvent("onreadystatechange",function(e){
if(document.readyState=="complete"){
dj_load_init();
}
});
}
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
var _timer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dj_load_init();
}
},10);
}
if(dojo.render.html.ie){
dj_addNodeEvtHdlr(window,"beforeunload",function(){
dojo.hostenv._unloading=true;
window.setTimeout(function(){
dojo.hostenv._unloading=false;
},0);
});
}
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){
dojo.hostenv.unloaded();
}
});
dojo.hostenv.makeWidgets=function(){
var _d3=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_d3=_d3.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_d3=_d3.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_d3.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _d4=new dojo.xml.Parse();
if(_d3.length>0){
for(var x=0;x<_d3.length;x++){
var _d6=document.getElementById(_d3[x]);
if(!_d6){
continue;
}
var _d7=_d4.parseElement(_d6,null,true);
dojo.widget.getParser().createComponents(_d7);
}
}else{
if(djConfig.parseWidgets){
var _d7=_d4.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_d7);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
if(!dj_undef("document",this)){
dj_currentDocument=this.document;
}
dojo.doc=function(){
return dj_currentDocument;
};
dojo.body=function(){
return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];
};
dojo.byId=function(id,doc){
if((id)&&((typeof id=="string")||(id instanceof String))){
if(!doc){
doc=dj_currentDocument;
}
var ele=doc.getElementById(id);
if(ele&&(ele.id!=id)&&doc.all){
ele=null;
eles=doc.all[id];
if(eles){
if(eles.length){
for(var i=0;i<eles.length;i++){
if(eles[i].id==id){
ele=eles[i];
break;
}
}
}else{
ele=eles;
}
}
}
return ele;
}
return id;
};
dojo.setContext=function(_dc,_dd){
dj_currentContext=_dc;
dj_currentDocument=_dd;
};
dojo._fireCallback=function(_de,_df,_e0){
if((_df)&&((typeof _de=="string")||(_de instanceof String))){
_de=_df[_de];
}
return (_df?_de.apply(_df,_e0||[]):_de());
};
dojo.withGlobal=function(_e1,_e2,_e3,_e4){
var _e5;
var _e6=dj_currentContext;
var _e7=dj_currentDocument;
try{
dojo.setContext(_e1,_e1.document);
_e5=dojo._fireCallback(_e2,_e3,_e4);
}
finally{
dojo.setContext(_e6,_e7);
}
return _e5;
};
dojo.withDoc=function(_e8,_e9,_ea,_eb){
var _ec;
var _ed=dj_currentDocument;
try{
dj_currentDocument=_e8;
_ec=dojo._fireCallback(_e9,_ea,_eb);
}
finally{
dj_currentDocument=_ed;
}
return _ec;
};
}
dojo.requireIf((djConfig["isDebug"]||djConfig["debugAtAllCosts"]),"dojo.debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&!djConfig["useXDomain"],"dojo.browser_debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&djConfig["useXDomain"],"dojo.browser_debug_xd");
dojo.provide("com.infonow.ligeo.env.LigeoEnvironment");
function LigeoEnvironment(){
};
LigeoEnvironment.mapLocale="en-us";
LigeoEnvironment.getMapLocale=function(){
return LigeoEnvironment.mapLocale;
};
LigeoEnvironment.setMapLocale=function(LOC){
LigeoEnvironment.mapLocale=LOC;
};
LigeoEnvironment.imageServerURL="";
LigeoEnvironment.getImageServer=function(){
return LigeoEnvironment.imageServerURL;
};
LigeoEnvironment.setImageServer=function(_ef){
LigeoEnvironment.imageServerURL=_ef;
};
LigeoEnvironment.getImagePath=function(_f0){
if(_f0.indexOf("/")>-1){
return _f0;
}else{
return LigeoEnvironment.getImageServer()+"mapicons/"+_f0;
}
};
LigeoEnvironment.aryLocaleText=new Array();
LigeoEnvironment.translateLocaleText=function(key){
result=LigeoEnvironment.aryLocaleText[key];
return (result!="")?result:key;
};
LigeoEnvironment.setLocaleText=function(_f2){
LigeoEnvironment.aryLocaleText=_f2;
};
LigeoEnvironment.initialize=function(){
window.onerror=LigeoEnvironment.handleExceptions;
};
LigeoEnvironment.includeDependencies=function(){
};
LigeoEnvironment.handleExceptions=function(_f3){
if(LigeoFeaturesAPI.alertOnErrors){
alert(_f3.name+"\n"+_f3.message+"\n"+_f3.description);
}
if(!LigeoFeaturesAPI.swallowErrors){
throw _f3;
}
};
LigeoEnvironment.translateMicrosoftMarket=function(LOC){
if(LOC===undefined||LOC===null||LOC==""){
LOC=LigeoEnvironment.getMapLocale();
}
var _f5=new Array("cs-cz","da-dk","nl-nl","en-us","en-au","en-ca","en-in","en-gb","fi-fi","fr-ca","fr-fr","de-de","it-it","ja-jp","nb-no","pt-br","pt-pt","es-us","es-mx","es-es","sv-se");
var _f6=LOC.toString().toLowerCase().replace("_","-");
if(_f6=="es-mx"||_f6=="es-es"){
_f6="es-us";
}
var _f7=false;
for(i=0;i<_f5.length&&_f7==false;i++){
if(_f5[i]==_f6){
_f7=true;
}
}
if(!_f7){
for(i=0;i<_f5.length&&_f7==false;i++){
if(_f5[i].toString().substr(0,2)==_f6.substr(0,2)){
_f6=_f5[i];
_f7=true;
}
}
}
if(!_f7){
_f6="en-us";
}
LigeoEnvironment.setMapLocale(_f6);
LigeoEnvironment.localizeText();
return _f6;
};
LigeoEnvironment.localizeText=function(){
this.makeLang=function(_f8,_f9,_fa,_fb,_fc,_fd,_fe,_ff,_100){
this.first=_f8;
this.last=_f9;
this.totalTime=_fa;
this.totalDist=_fb;
this.traffic=_fc;
this.showTrafficTip=_fd;
this.hideTrafficTip=_fe;
this.mapTerms=_ff;
this.yourSelectedLocation=_100;
};
var _101;
switch(LigeoEnvironment.getMapLocale()){
case "cs-cz":
case "da-dk":
case "fi-fi":
case "ja-jp":
_101=new this.makeLang("Start at","Arrive at","Total time","Total distance","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "nl-nl":
_101=new this.makeLang("Start adres","Eindigend adres","Totale tijd","Totale afstand","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "en-au":
case "en-ca":
case "en-in":
case "en-gb":
case "en-us":
_101=new this.makeLang("Start at","Arrive at","Total time","Total distance","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "fr-ca":
case "fr-fr":
_101=new this.makeLang("Commencez à","Arrivez à","Temps Total","Distance Totale","Circulation","Montrez la circulation sur la carte","Cachez la circulation sur la carte","Tous droits réservés. Utilisation assujettie aux ententes de licence/au droit d'auteur.","your selected location.");
break;
case "de-de":
_101=new this.makeLang("Startadresse","Endend Adresse","Gesamtzeit","Gesamtentfernung","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "it-it":
_101=new this.makeLang("Indirizzo iniziale","Che termina l'indirizzo","Tempo totale","Distanza totale","Traffico"," "," ","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "nb-no":
_101=new this.makeLang("Starter adresse","Sluttet adresse","Total tid","Total avstand","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "pt-br":
case "pt-pt":
_101=new this.makeLang("Começando endereço","Terminando endereço","Tempo total","Distância total","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "es-mx":
case "es-es":
case "es-us":
_101=new this.makeLang("A partir dirección","Poner fin a la dirección","Tiempo total","Distancia total","Tráfico","Mostrar el tránsito en el mapa","Ocultar el tránsito en el mapa","Todos los derechos reservados. Uso conforme a licencia y al derecho de copia.","your selected location.");
break;
case "sv-se":
_101=new this.makeLang("Startar adress","Slutar adress","Total tid","Totala sträckan","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
case "ru-ru":
_101=new this.makeLang("начальный адрес","адрес, заканчивающийся","Общее время","общее расстояние","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
break;
default:
_101=new this.makeLang("Start at","Arrive at","Total time","Total distance","Traffic","Show traffic on the map","Hide traffic on the map","All rights reserved. Use subject to License/Copyright.","your selected location.");
}
LigeoEnvironment.setLocaleText(_101);
};
LigeoEnvironment.getParamFromJavaScriptUrl=function(_102,_103){
var _104=function(_105){
this.scriptPath=_105;
};
_104.prototype={get:function(){
var _106=new RegExp(this.scriptPath.replace(".","\\.")+"(\\?.*)?$");
var _107=document.getElementsByTagName("script");
for(var i=0;i<_107.length;i++){
var _109=_107[i];
if(_109.src&&_109.src.match(_106)){
var _10a=_109.src.match(/\?([^#]*)(#.*)?/);
return !_10a?"":_10a[1];
}
}
return "";
},parse:function(){
var _10b={};
var _10c=this.get();
var _10d=_10c.split("&");
for(var i=0;i<_10d.length;i++){
var pair=_10d[i].split("=");
var name=pair[0],_111=pair[1];
if(!_10b[name]){
_10b[name]=[];
}
if(!_111){
_111="true";
}else{
try{
_111=decodeURIComponent(_111);
}
catch(e){
_111=unescape(_111);
}
}
var _112=_10b[name];
_112[_112.length]=_111;
}
return _10b;
},toString:function(){
return "ScriptQuery [path="+this.scriptPath+"]";
}};
var _113=new _104(_102).parse();
return _113[_103];
};
LigeoEnvironment.importVirtualEarth=function(){
var _114="6.2";
var _115=LigeoEnvironment.translateMicrosoftMarket(LigeoEnvironment.getParamFromJavaScriptUrl("ligeo.js","LOC"));
var _116=window.location.toString().split(":");
var _117=_116.shift();
var _118=new Array();
_118["visibility"]="live";
_118["environment"]="net";
for(n in _116){
if(_116[n].indexOf("8080")>-1){
_118["environment"]="dev";
}else{
if(_116[n].indexOf(".qc")>-1){
_118["environment"]="qc";
}
}
if(_116[n].indexOf("test")>-1){
_118["visibility"]="test";
}
}
var _119="";
_119+=_117+"://shared";
if(_118["visibility"]=="test"||_118["environment"]=="dev"){
_119+=".test";
}
_119+=".via.infonow";
if(_118["environment"]=="dev"||_118["environment"]=="qc"){
_119+=".qc";
}else{
if(_118["environment"]=="net"){
_119+=".net";
}
}
_119+="/images/";
LigeoEnvironment.setImageServer(_119);
var _11a=_117+"://"+"ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx";
_11a+="?v="+_114+"&mkt="+_115;
if(_117=="https"){
_11a+="&s=1";
}
document.write("<"+"script ");
document.write("type=\"text/javascript\" ");
document.write("src=\""+_11a+"\">");
document.write("</"+"script>");
};
LigeoEnvironment.importVirtualEarth();
dojo.addOnLoad(LigeoEnvironment.initialize);
dojo.provide("com.infonow.ligeo.util.LigeoVarUtils");
function LigeoVarUtils(){
};
LigeoVarUtils.isVirtualEarthLoaded=function(_11b){
var _11c=(typeof VEMap=="function");
if(!_11c){
var date=new Date();
var _11e=null;
var _11f=100;
var _120=new Date();
do{
_11e=new Date();
if((_11e-_120)>_11f){
_11c=(typeof VEMap=="function");
_120=new Date();
}
if(_11c){
break;
}
}while((_11e-date)<_11b);
}
return _11c;
};
LigeoVarUtils.isNull=function(_121){
if(_121===undefined||_121===null){
return true;
}
return false;
};
LigeoVarUtils.isNotNull=function(_122){
return !LigeoVarUtils.isNull(_122);
};
LigeoVarUtils.isNullOrEmpty=function(_123){
if(_123===undefined||_123===null||_123===""){
return true;
}
return false;
};
LigeoVarUtils.isNotNullOrEmpty=function(_124){
return !LigeoVarUtils.isNullOrEmpty(_124);
};
LigeoVarUtils.isFunction=function(_125){
return "function"==typeof _125;
};
LigeoVarUtils.appendToDelimitedString=function(_126,_127,_128){
if(!LigeoVarUtils.isNullOrEmpty(_127)){
if(!LigeoVarUtils.isNullOrEmpty(_126)){
_126+=_128;
}
_126+=_127;
}
return _126;
};
LigeoVarUtils.getAssociativeArrayLength=function(_129){
var _12a=0;
for(var i in _129){
_12a++;
}
return _12a;
};
LigeoVarUtils.ShowOnMouseOver=function(_12c){
if(_12c.style){
_12c.style.display="block";
}
};
LigeoVarUtils.HideOnMouseOut=function(_12d,evt){
if(LigeoVarUtils.DidMouseLeave(_12d,evt)){
if(_12d.style){
_12d.style.display="none";
}
}
};
LigeoVarUtils.DidMouseLeave=function(_12f,evt){
if(typeof evt.toElement!="undefined"&&typeof _12f.contains!="undefined"){
return (evt.x<_12f.style.left||evt.x>_12f.style.right||evt.y<_12f.style.top||evt.y>_12f.style.bottom);
}else{
if(typeof evt.relatedTarget!="undefined"&&evt.relatedTarget){
while(evt.relatedTarget){
if(_12f==evt.relatedTarget){
return false;
}
evt.relatedTarget=evt.relatedTarget.parentNode;
}
return true;
}
}
};
LigeoVarUtils.camelize=function(_131){
var _132=_131.split("-"),len=_132.length;
if(len==1){
return _132[0];
}
var _134=_131.charAt(0)=="-"?_132[0].charAt(0).toUpperCase()+_132[0].substring(1):_132[0];
for(var i=1;i<len;i++){
_134+=_132[i].charAt(0).toUpperCase()+_132[i].substring(1);
}
return _134;
};
LigeoVarUtils.getStyle=function(_136,_137){
_137=_137=="float"?"cssFloat":LigeoVarUtils.camelize(_137);
var _138=_136.style[_137];
if(!_138){
var css=document.defaultView.getComputedStyle(_136,null);
_138=css?css[_137]:null;
}
if(_137=="opacity"){
return _138?parseFloat(_138):1;
}
return _138=="auto"?null:_138;
};
LigeoVarUtils.getDimensions=function(_13a,_13b){
var _13c=LigeoVarUtils.getStyle(_13a,"display");
if(_13c!="none"&&_13c!=null){
if(_13b=="width"){
return _13a.offsetWidth;
}else{
return _13a.offsetHeight;
}
}
var els=_13a.style;
var _13e=els.visibility;
var _13f=els.position;
var _140=els.display;
els.visibility="hidden";
els.position="absolute";
els.display="block";
var _141=_13a.clientWidth;
var _142=_13a.clientHeight;
els.display=_140;
els.position=_13f;
els.visibility=_13e;
if(_13b=="width"){
return _141;
}else{
return _142;
}
};
LigeoVarUtils.getElementHeight=function(_143){
var _144;
if(document.getElementById){
var elem=document.getElementById(_143);
}else{
if(document.all){
var elem=document.all[_143];
}
}
_144=LigeoVarUtils.getDimensions(elem,"height");
return _144;
};
LigeoVarUtils.getElementWidth=function(_146){
var _147;
if(document.getElementById){
var elem=document.getElementById(_146);
}else{
if(document.all){
var elem=document.all[_146];
}
}
_147=LigeoVarUtils.getDimensions(elem,"width");
return _147;
};
LigeoVarUtils.addCountryToFullAddress=function(form){
var _14a=form.fullAddress.value;
var _14b=form.country.value;
if(!LigeoVarUtils.isWholeWordInString(_14b,_14a)){
return _14a+", "+_14b;
}
return _14a;
};
LigeoVarUtils.isWholeWordInString=function(_14c,_14d){
var _14e=0;
var _14f=-1;
while(_14e!=-1){
_14e=_14d.toUpperCase().indexOf(_14c.toUpperCase(),_14f+1);
_14f=_14e;
var _150=_14d.substring(_14f-1,_14d.length+1);
if(LigeoVarUtils.isNotNullOrEmpty(_14c)&&LigeoVarUtils.isNotNullOrEmpty(_150)){
if(_150.toUpperCase().indexOf(_14c.toUpperCase())!=-1){
var _151=_150.toUpperCase().indexOf(_14c.toUpperCase());
var end=_150.toUpperCase().indexOf(_14c.toUpperCase())+_14c.length;
var _153=_150.charAt(_151-1);
var _154=_150.charAt(end);
if(!LigeoVarUtils.isAlphanumeric(_153)||!LigeoVarUtils.isAlphanumeric(_154)){
return true;
}
}
}
}
return false;
};
LigeoVarUtils.isAlphanumeric=function(_155){
var _156="0123456789";
var _157="abcdefghijklmnopqrstuvwxyz";
var _158="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var _159=_156+_157+_158;
if(_155==""){
return true;
}
for(i=0;i<_155.length;i++){
if(_159.indexOf(_155.charAt(i),0)==-1){
return false;
}
}
return true;
};
LigeoVarUtils.URLEncode=function(_15a){
encodedHtml=encodeURIComponent(_15a);
encodedHtml=encodedHtml.replace(/\//g,"%2F");
encodedHtml=encodedHtml.replace(/\?/g,"%3F");
encodedHtml=encodedHtml.replace(/=/g,"%3D");
encodedHtml=encodedHtml.replace(/&/g,"%26");
encodedHtml=encodedHtml.replace(/\+/g,"%2B");
encodedHtml=encodedHtml.replace(/@/g,"%40");
return encodedHtml;
};
dojo.provide("com.infonow.ligeo.util.LigeoDOMUtils");
function LigeoDOMUtils(){
};
LigeoDOMUtils.renderHtmlElementIfNew=function(_15b){
if(LigeoVarUtils.isNotNull(document.body)&&LigeoVarUtils.isNotNull(_15b)){
var id=_15b.getAttribute("id");
if(LigeoVarUtils.isNullOrEmpty(id)){
document.body.appendChild(_15b);
}else{
var _15d=document.getElementById(id);
if(LigeoVarUtils.isNull(_15d)){
document.body.appendChild(_15b);
}
}
}
};
LigeoDOMUtils.insertAdjacentElement=function(_15e,_15f,_160){
switch(_15e){
case "beforeBegin":
_160.parentNode.insertBefore(_15f,_160);
break;
case "afterBegin":
_160.insertBefore(_15f,_160.firstChild);
break;
case "beforeEnd":
_160.appendChild(_15f);
break;
case "afterEnd":
if(_160.nextSibling){
_160.parentNode.insertBefore(_15f,_160.nextSibling);
}else{
_160.parentNode.appendChild(_15f);
}
break;
}
};
LigeoDOMUtils.insertAdjacentHTML=function(_161,_162,_163){
if(typeof _163!="undefined"){
if(!LigeoBrowserCompatability.isIe()){
var r=_163.ownerDocument.createRange();
r.setStartBefore(_163);
var _165=r.createContextualFragment(_162);
LigeoDOMUtils.insertAdjacentElement(_161,_165,_163);
}else{
var _165=_163.ownerDocument.createElement(_162);
_163.insertAdjacentElement("afterEnd",_165);
}
}
};
LigeoDOMUtils.addOnLoadEvent=function(func){
var _167=window.onload;
if(typeof window.onload!="function"){
window.onload=func;
}else{
window.onload=function(){
if(_167){
_167();
}
func();
};
}
};
LigeoDOMUtils.checkParentObject=function(_168,_169){
var _16a=_168.parentNode;
while(_16a){
if(_16a.id==_169.id){
return true;
}
_16a=_16a.parentNode;
}
return false;
};
LigeoDOMUtils.getElementsById=function(_16b,_16c){
var _16d=new Array();
if(typeof (_16b)!="string"||LigeoVarUtils.isNullOrEmpty(_16b)){
return null;
}
if(LigeoVarUtils.isNotNullOrEmpty(_16c)){
_16c=document.getElementById(_16c);
}else{
_16c=document;
}
if(document.all){
var _16e=document.all[_16b];
if(_16e!=null){
if(_16e.length==null){
if(this.checkParentObject(_16e,_16c)){
_16d[0]=_16e;
}
}else{
for(i=0;i<_16e.length;i++){
if(this.checkParentObject(_16e[i],_16c)){
_16d.push(_16e[i]);
}
}
}
}
}else{
if(document.evaluate){
var _16f="//*[@id='"+_16b.toString()+"']";
var _170=document.evaluate(_16f,_16c,null,0,null);
var _171=_170.iterateNext();
while(_171){
if(this.checkParentObject(_171,_16c)){
_16d[_16d.length]=_171;
}
_171=_170.iterateNext();
}
}else{
if(document.getElementsByTagName){
var _16e=document.getElementsByTagName("*");
for(i=0;i<_16e.length;i++){
if(_16e[i].id==_16b){
_16d.push(_16e[i]);
}
}
}else{
}
}
}
if(_16d.length>0){
return _16d;
}else{
return null;
}
};
LigeoDOMUtils.showSelectedMap=function(_172){
var _173=document.getElementById(_172);
if(LigeoVarUtils.isNotNullOrEmpty(_173)){
_173.style.display="block";
LigeoAPI.setLigeoMap(LigeoAPI.getLigeoMapById(_172));
}
for(var i=0;i<LigeoConfigurationAPI.getMyMapDivIDs().length;i++){
if(LigeoConfigurationAPI.getMyMapDivIDs()[i]!=_172){
var _175=document.getElementById(LigeoConfigurationAPI.getMyMapDivIDs()[i]);
if(_175!=null){
_175.style.display="none";
}
}
}
if(LigeoAPI.getLigeoMapById(_172)!=null){
if(LigeoAPI.getLigeoMapById(_172).getMapStyle()!=LigeoAPI.getLigeoMapById(_172).getVEMap().GetMapStyle()){
LigeoAPI.getLigeoMapById(_172).applyMapStyles();
}
}
LigeoMap.fixNavMapStyles();
};
LigeoDOMUtils.deleteElement=function(_176){
if(LigeoVarUtils.isNotNullOrEmpty(_176)){
_176.parentNode.removeChild(_176);
}
};
dojo.provide("com.infonow.ligeo.map.LigeoInfoPanel");
function LigeoInfoPanel(_177,_178,_179){
this.myContent;
this.setContent(_177);
this.myLabel;
this.setLabel(_178);
this.myUniqueId;
this.setUniqueId(_179);
this.myPanelHtmlElement=null;
};
LigeoInfoPanel.prototype.getContent=function(){
return this.myContent;
};
LigeoInfoPanel.prototype.setContent=function(_17a){
if(LigeoVarUtils.isNotNull(_17a)){
this.myContent=_17a;
}else{
this.myContent="";
}
};
LigeoInfoPanel.prototype.getLabel=function(){
return this.myLabel;
};
LigeoInfoPanel.prototype.setLabel=function(_17b){
if(LigeoVarUtils.isNotNull(_17b)){
this.myLabel=_17b;
}else{
this.myLabel="";
}
};
LigeoInfoPanel.prototype.getUniqueId=function(){
return this.myUniqueId;
};
LigeoInfoPanel.prototype.setUniqueId=function(_17c){
if(LigeoVarUtils.isNotNull(_17c)){
this.myUniqueId=_17c;
}else{
this.myUniqueId="";
}
};
LigeoInfoPanel.prototype.renderHtmlElement=function(_17d){
if(LigeoVarUtils.isNotNull(_17d)){
this.myPanelHtmlElement=document.createElement("DIV");
this.myPanelHtmlElement["id"]="LigeoInfoPanel-"+this.getUniqueId();
this.myPanelHtmlElement.style.display="none";
this.myPanelHtmlElement.innerHTML=this.myContent;
_17d.appendChild(this.myPanelHtmlElement);
}
};
LigeoInfoPanel.prototype.getPanelHtmlElement=function(){
return this.myPanelHtmlElement;
};
LigeoInfoPanel.prototype.hide=function(){
if(LigeoVarUtils.isNotNull(this.getPanelHtmlElement())){
this.getPanelHtmlElement().style.display="none";
}
};
LigeoInfoPanel.prototype.show=function(){
if(LigeoVarUtils.isNotNull(this.getPanelHtmlElement())){
this.getPanelHtmlElement().style.display="inline";
}
};
LigeoInfoPanel.prototype.isRendered=function(){
return LigeoVarUtils.isNotNull(this.getPanelHtmlElement());
};
dojo.provide("com.infonow.ligeo.LigeoLocation");
function LigeoLocation(id){
var _17f=id;
var _180=0;
var _181=null;
var _182=null;
var _183="";
var _184="";
var _185="";
var _186="";
var _187="";
var _188="";
var _189="";
var _18a="";
var _18b="";
var _18c="";
var _18d="";
var _18e="";
var _18f="";
var _190="";
var _191="";
var _192=new Object();
var _193=null;
this.getUniqueId=function(){
return _17f;
};
this.setUniqueId=function(_194){
_17f=_194;
};
this.getLocationNumber=function(){
return _180;
};
this.setLocationNumber=function(_195){
_180=_195;
};
this.getLatitude=function(){
return _181;
};
this.setLatitude=function(_196){
_181=_196;
};
this.getLongitude=function(){
return _182;
};
this.setLongitude=function(_197){
_182=_197;
};
this.getName=function(){
return _183;
};
this.setName=function(name){
_183=name;
};
this.getStreet1=function(){
return _184;
};
this.setStreet1=function(_199){
_184=_199;
};
this.getStreet2=function(){
return _185;
};
this.setStreet2=function(_19a){
_185=_19a;
};
this.getStreet3=function(){
return _186;
};
this.setStreet3=function(_19b){
_186=_19b;
};
this.getPostalCode=function(){
return _187;
};
this.setPostalCode=function(_19c){
_187=_19c;
};
this.getCity=function(){
return _188;
};
this.setCity=function(city){
_188=city;
};
this.getCounty=function(){
return _189;
};
this.setCounty=function(_19e){
_189=_19e;
};
this.getStateProvince=function(){
return _18a;
};
this.setStateProvince=function(_19f){
_18a=_19f;
};
this.getCountryIso2=function(){
return _18b;
};
this.setCountryIso2=function(_1a0){
_18b=_1a0;
};
this.getPhone1=function(){
return _18c;
};
this.setPhone1=function(_1a1){
_18c=_1a1;
};
this.getPhone2=function(){
return _18d;
};
this.setPhone2=function(_1a2){
_18d=_1a2;
};
this.getFax=function(){
return _18e;
};
this.setFax=function(fax){
_18e=fax;
};
this.getIconUrl=function(){
return _18f;
};
this.setIconUrl=function(_1a4){
_18f=_1a4;
};
this.getLinkUrl=function(){
return _190;
};
this.setLinkUrl=function(_1a5){
_190=_1a5;
};
this.getLinkScript=function(){
return _191;
};
this.setLinkScript=function(_1a6){
_191=_1a6;
};
this.getInfoPanel=function(_1a7){
return _192[_1a7];
};
this.getAllInfoPanels=function(){
return _192;
};
this.getDefaultInfoPanel=function(){
for(var i in _192){
return _192[i];
}
};
this.setBalloonContent=function(_1a9,_1aa){
_192=new Object();
this.addBalloonContent(_1a9,_1aa);
};
this.addBalloonContent=function(_1ab,_1ac){
var _1ad=_17f+"-"+LigeoVarUtils.getAssociativeArrayLength(_192);
_192[_1ad]=new LigeoInfoPanel(_1ab,_1ac,_1ad);
};
this.getVEShape=function(){
var _1ae;
var _1af;
if(LigeoVarUtils.isNotNull(_193)){
_1ae=_193;
}else{
_1ae=new VEShape(VEShapeType.Pushpin,this.getVELatLong());
_1ae.SetCustomIcon(LigeoEnvironment.getImagePath(this.getIconUrl()));
_193=_1ae;
}
return _1ae;
};
this.getVELatLong=function(){
return new VELatLong(_181,_182);
};
this.getAddressString=function(){
var _1b0="";
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_184,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_185,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_186,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_188,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_189,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_18a,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_187,", ");
_1b0=LigeoVarUtils.appendToDelimitedString(_1b0,_18b,", ");
return _1b0;
};
this.hasBalloonContent=function(){
var _1b1=false;
for(var i in _192){
if(!LigeoVarUtils.isFunction(_192[i])){
if(LigeoVarUtils.isNotNull(_192[i].getContent())){
_1b1=true;
}
}
}
return _1b1;
};
};
dojo.provide("com.infonow.ligeo.LigeoConfigurationAPI");
function LigeoConfigurationAPI(){
};
LigeoConfigurationAPI.applicationReloaded=true;
LigeoConfigurationAPI.myMapDivIDs=new Array();
LigeoConfigurationAPI.myInitialLat=null;
LigeoConfigurationAPI.myInitialLong=null;
LigeoConfigurationAPI.myInitialZoom=null;
LigeoConfigurationAPI.myMapWidth=null;
LigeoConfigurationAPI.myMapHeight=null;
LigeoConfigurationAPI.myRadiusSearchIcon=null;
LigeoConfigurationAPI.myRadiusSearchIconOn=null;
LigeoConfigurationAPI.myRadiusSearchLocation=null;
LigeoConfigurationAPI.myMapGridSearchZoomThreshold=9;
LigeoConfigurationAPI.radiusSearchCallBack=function(){
};
LigeoConfigurationAPI.countryFilterArray=new Array("United States","Canada");
LigeoConfigurationAPI.setCustomID=function(_1b3){
LigeoConfigurationAPI.myCustomID=_1b3;
};
LigeoConfigurationAPI.setMyMapDivIDs=function(_1b4){
for(var i=0;i<_1b4.length;i++){
LigeoConfigurationAPI.getMyMapDivIDs().push(_1b4[i]);
}
};
LigeoConfigurationAPI.getMyMapDivIDs=function(){
return LigeoConfigurationAPI.myMapDivIDs;
};
LigeoConfigurationAPI.setInitialLat=function(_1b6){
LigeoConfigurationAPI.myInitialLat=_1b6;
};
LigeoConfigurationAPI.setInitialLong=function(_1b7){
LigeoConfigurationAPI.myInitialLong=_1b7;
};
LigeoConfigurationAPI.setInitialZoom=function(_1b8){
LigeoConfigurationAPI.myInitialZoom=_1b8;
};
LigeoConfigurationAPI.setMapWidth=function(_1b9){
LigeoConfigurationAPI.myMapWidth=_1b9;
};
LigeoConfigurationAPI.setMapHeight=function(_1ba){
LigeoConfigurationAPI.myMapHeight=_1ba;
};
LigeoConfigurationAPI.setMapGridSearchZoomThreshold=function(_1bb){
LigeoConfigurationAPI.myMapGridSearchZoomThreshold=_1bb;
};
LigeoConfigurationAPI.getRadiusSearchIcon=function(){
return LigeoConfigurationAPI.myRadiusSearchIcon;
};
LigeoConfigurationAPI.setRadiusSearchIcon=function(icon){
LigeoConfigurationAPI.myRadiusSearchIcon=icon;
};
LigeoConfigurationAPI.getRadiusSearchIconOn=function(){
return LigeoConfigurationAPI.myRadiusSearchIconOn;
};
LigeoConfigurationAPI.setRadiusSearchIconOn=function(icon,_1be){
LigeoConfigurationAPI.myRadiusSearchIconOn=icon;
};
LigeoConfigurationAPI.getRadiusSearchLocation=function(){
return LigeoConfigurationAPI.myRadiusSearchLocation;
};
LigeoConfigurationAPI.setRadiusSearchLocation=function(_1bf){
LigeoConfigurationAPI.myRadiusSearchLocation=_1bf;
};
LigeoConfigurationAPI.setRadiusSearchCallBack=function(_1c0){
LigeoConfigurationAPI.radiusSearchCallBack=_1c0;
};
LigeoConfigurationAPI.setApplicationReloaded=function(_1c1){
LigeoConfigurationAPI.applicationReloaded=_1c1;
};
LigeoConfigurationAPI.isApplicationReloaded=function(){
return LigeoConfigurationAPI.applicationReloaded;
};
LigeoConfigurationAPI.setCountryFilterArray=function(_1c2){
LigeoConfigurationAPI.countryFilterArray=_1c2;
};
LigeoConfigurationAPI.getCountryFilterArray=function(){
return LigeoConfigurationAPI.countryFilterArray;
};
dojo.provide("com.infonow.ligeo.LigeoLayoutAPI");
function LigeoLayoutAPI(){
};
LigeoLayoutAPI.routeTableFooterOption="VIEW_2_ROW";
LigeoLayoutAPI.getRouteTableFooterOption=function(){
return this.routeTableFooterOption;
};
LigeoLayoutAPI.setRouteTableFooterOption=function(_1c3){
this.routeTableFooterOption=String(_1c3);
};
LigeoLayoutAPI.isDisplayTimeInRoute=false;
LigeoLayoutAPI.getDisplayTimeInRoute=function(){
return this.isDisplayTimeInRoute;
};
LigeoLayoutAPI.setTimeInRouteTable=function(_1c4){
this.isDisplayTimeInRoute=Boolean(_1c4);
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_1c6,uri){
var loc=dojo.hostenv.getModuleSymbols(_1c6).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _1c9=loc.indexOf(":");
var _1ca=loc.indexOf("/");
if(loc.charAt(0)!="/"&&(_1c9==-1||_1c9>_1ca)){
loc=dojo.hostenv.getBaseScriptUri()+loc;
}
return new dojo.uri.Uri(loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _1cd=new dojo.uri.Uri(arguments[i].toString());
var _1ce=new dojo.uri.Uri(uri.toString());
if((_1cd.path=="")&&(_1cd.scheme==null)&&(_1cd.authority==null)&&(_1cd.query==null)){
if(_1cd.fragment!=null){
_1ce.fragment=_1cd.fragment;
}
_1cd=_1ce;
}else{
if(_1cd.scheme==null){
_1cd.scheme=_1ce.scheme;
if(_1cd.authority==null){
_1cd.authority=_1ce.authority;
if(_1cd.path.charAt(0)!="/"){
var path=_1ce.path.substring(0,_1ce.path.lastIndexOf("/")+1)+_1cd.path;
var segs=path.split("/");
for(var j=0;j<segs.length;j++){
if(segs[j]=="."){
if(j==segs.length-1){
segs[j]="";
}else{
segs.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){
if(j==segs.length-1){
segs.splice(j,1);
segs[j-1]="";
}else{
segs.splice(j-1,2);
j-=2;
}
}
}
}
_1cd.path=segs.join("/");
}
}
}
}
uri="";
if(_1cd.scheme!=null){
uri+=_1cd.scheme+":";
}
if(_1cd.authority!=null){
uri+="//"+_1cd.authority;
}
uri+=_1cd.path;
if(_1cd.query!=null){
uri+="?"+_1cd.query;
}
if(_1cd.fragment!=null){
uri+="#"+_1cd.fragment;
}
}
this.uri=uri.toString();
var _1d2="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_1d2));
this.scheme=r[2]||(r[1]?"":null);
this.authority=r[4]||(r[3]?"":null);
this.path=r[5];
this.query=r[7]||(r[6]?"":null);
this.fragment=r[9]||(r[8]?"":null);
if(this.authority!=null){
_1d2="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_1d2));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_1d4,_1d5){
if(!dojo.lang.isFunction(_1d5)){
dojo.raise("dojo.inherits: superclass argument ["+_1d5+"] must be a function (subclass: ["+_1d4+"']");
}
_1d4.prototype=new _1d5();
_1d4.prototype.constructor=_1d4;
_1d4.superclass=_1d5.prototype;
_1d4["super"]=_1d5.prototype;
};
dojo.lang._mixin=function(obj,_1d7){
var tobj={};
for(var x in _1d7){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_1d7[x])){
obj[x]=_1d7[x];
}
}
if(dojo.render.html.ie&&(typeof (_1d7["toString"])=="function")&&(_1d7["toString"]!=obj["toString"])&&(_1d7["toString"]!=tobj["toString"])){
obj.toString=_1d7.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_1db){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_1de,_1df){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_1de.prototype,arguments[i]);
}
return _1de;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_1e2,_1e3,_1e4,_1e5){
if(!dojo.lang.isArrayLike(_1e2)&&dojo.lang.isArrayLike(_1e3)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_1e2;
_1e2=_1e3;
_1e3=temp;
}
var _1e7=dojo.lang.isString(_1e2);
if(_1e7){
_1e2=_1e2.split("");
}
if(_1e5){
var step=-1;
var i=_1e2.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_1e2.length;
}
if(_1e4){
while(i!=end){
if(_1e2[i]===_1e3){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_1e2[i]==_1e3){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_1eb,_1ec,_1ed){
return dojo.lang.find(_1eb,_1ec,_1ed,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_1ee,_1ef){
return dojo.lang.find(_1ee,_1ef)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
}
})();
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.dom");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="function"){
try{
return wh instanceof Element;
}
catch(e){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _1fb=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_1fb.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1fd,_1fe){
var node=_1fd.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1fe&&node&&node.tagName&&node.tagName.toLowerCase()!=_1fe.toLowerCase()){
node=dojo.dom.nextElement(node,_1fe);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_200,_201){
var node=_200.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_201&&node&&node.tagName&&node.tagName.toLowerCase()!=_201.toLowerCase()){
node=dojo.dom.prevElement(node,_201);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_204){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_204&&_204.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_204);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_206){
if(!node){
return null;
}
if(_206){
_206=_206.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_206&&_206.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_206);
}
return node;
};
dojo.dom.moveChildren=function(_207,_208,trim){
var _20a=0;
if(trim){
while(_207.hasChildNodes()&&_207.firstChild.nodeType==dojo.dom.TEXT_NODE){
_207.removeChild(_207.firstChild);
}
while(_207.hasChildNodes()&&_207.lastChild.nodeType==dojo.dom.TEXT_NODE){
_207.removeChild(_207.lastChild);
}
}
while(_207.hasChildNodes()){
_208.appendChild(_207.firstChild);
_20a++;
}
return _20a;
};
dojo.dom.copyChildren=function(_20b,_20c,trim){
var _20e=_20b.cloneNode(true);
return this.moveChildren(_20e,_20c,trim);
};
dojo.dom.replaceChildren=function(node,_210){
var _211=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_211.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_210);
for(var i=0;i<_211.length;i++){
dojo.dom.destroyNode(_211[i]);
}
};
dojo.dom.removeChildren=function(node){
var _214=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _214;
};
dojo.dom.replaceNode=function(node,_216){
return node.parentNode.replaceChild(_216,node);
};
dojo.dom.destroyNode=function(node){
if(node.parentNode){
node=dojo.dom.removeNode(node);
}
if(node.nodeType!=3){
if(dojo.evalObjPath("dojo.event.browser.clean",false)){
dojo.event.browser.clean(node);
}
if(dojo.render.html.ie){
node.outerHTML="";
}
}
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_21a,_21b){
var _21c=[];
var _21d=(_21a&&(_21a instanceof Function||typeof _21a=="function"));
while(node){
if(!_21d||_21a(node)){
_21c.push(node);
}
if(_21b&&_21c.length>0){
return _21c[0];
}
node=node.parentNode;
}
if(_21b){
return null;
}
return _21c;
};
dojo.dom.getAncestorsByTag=function(node,tag,_220){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_220);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_225,_226){
if(_226&&node){
node=node.parentNode;
}
while(node){
if(node==_225){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
var _229=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _22a=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_22a.length;i++){
try{
doc=new ActiveXObject(_22a[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_229.implementation)&&(_229.implementation.createDocument)){
doc=_229.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_22d){
if(!_22d){
_22d="text/xml";
}
if(!dj_undef("DOMParser")){
var _22e=new DOMParser();
return _22e.parseFromString(str,_22d);
}else{
if(!dj_undef("ActiveXObject")){
var _22f=dojo.dom.createDocument();
if(_22f){
_22f.async=false;
_22f.loadXML(str);
return _22f;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _230=dojo.doc();
if(_230.createElement){
var tmp=_230.createElement("xml");
tmp.innerHTML=str;
if(_230.implementation&&_230.implementation.createDocument){
var _232=_230.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_232.importNode(tmp.childNodes.item(i),true);
}
return _232;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_235){
if(_235.firstChild){
_235.insertBefore(node,_235.firstChild);
}else{
_235.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_238){
if((_238!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _239=ref.parentNode;
_239.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_23c){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_23c!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_23c);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_240){
if((!node)||(!ref)||(!_240)){
return false;
}
switch(_240.toLowerCase()){
case "before":
return dojo.dom.insertBefore(node,ref);
case "after":
return dojo.dom.insertAfter(node,ref);
case "first":
if(ref.firstChild){
return dojo.dom.insertBefore(node,ref.firstChild);
}else{
ref.appendChild(node);
return true;
}
break;
default:
ref.appendChild(node);
return true;
}
};
dojo.dom.insertAtIndex=function(node,_242,_243){
var _244=_242.childNodes;
if(!_244.length||_244.length==_243){
_242.appendChild(node);
return true;
}
if(_243==0){
return dojo.dom.prependChild(node,_242);
}
return dojo.dom.insertAfter(node,_244[_243-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _247=dojo.doc();
dojo.dom.replaceChildren(node,_247.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _248="";
if(node==null){
return _248;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_248+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_248+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _248;
}
};
dojo.dom.hasParent=function(node){
return Boolean(node&&node.parentNode&&dojo.dom.isNode(node.parentNode));
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName==String(arguments[i])){
return String(arguments[i]);
}
}
}
return "";
};
dojo.dom.setAttributeNS=function(elem,_24e,_24f,_250){
if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){
elem.setAttributeNS(_24e,_24f,_250);
}else{
var _251=elem.ownerDocument;
var _252=_251.createNode(2,_24f,_24e);
_252.nodeValue=_250;
elem.setAttributeNode(_252);
}
};
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.body=function(){
dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");
return dojo.body();
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=dojo.global().event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getViewport=function(){
var _255=dojo.global();
var _256=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_256.documentElement.clientWidth;
h=_255.innerHeight;
}else{
if(!dojo.render.html.opera&&_255.innerWidth){
w=_255.innerWidth;
h=_255.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_256,"documentElement.clientWidth")){
var w2=_256.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_256.documentElement.clientHeight;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
return {width:w,height:h};
};
dojo.html.getScroll=function(){
var _25a=dojo.global();
var _25b=dojo.doc();
var top=_25a.pageYOffset||_25b.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_25a.pageXOffset||_25b.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _260=dojo.doc();
var _261=dojo.byId(node);
type=type.toLowerCase();
while((_261)&&(_261.nodeName.toLowerCase()!=type)){
if(_261==(_260["body"]||_260["documentElement"])){
return null;
}
_261=_261.parentNode;
}
return _261;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
return dojo.html.getAttribute(dojo.byId(node),attr)?true:false;
};
dojo.html.getCursorPosition=function(e){
e=e||dojo.global().event;
var _269={x:0,y:0};
if(e.pageX||e.pageY){
_269.x=e.pageX;
_269.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_269.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_269.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _269;
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName.toLowerCase()==String(arguments[i]).toLowerCase()){
return String(arguments[i]).toLowerCase();
}
}
}
return "";
};
if(dojo.render.html.ie&&!dojo.render.html.ie70){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _26e=dojo.doc().createElement("script");
_26e.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_26e);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_271,_272,args,_274,_275){
dojo.deprecated("dojo.html."+_271,"replaced by dojo.html."+_272+"("+(_274?"node, {"+_274+": "+_274+"}":"")+")"+(_275?"."+_275:""),"0.5");
var _276=[];
if(_274){
var _277={};
_277[_274]=args[1];
_276.push(args[0]);
_276.push(_277);
}else{
_276=args;
}
var ret=dojo.html[_272].apply(dojo.html,args);
if(_275){
return ret[_275];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
dojo.provide("dojo.html.style");
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_27e){
return (new RegExp("(^|\\s+)"+_27e+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_280){
_280+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_280);
};
dojo.html.addClass=function(node,_282){
if(dojo.html.hasClass(node,_282)){
return false;
}
_282=(dojo.html.getClass(node)+" "+_282).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_282);
};
dojo.html.setClass=function(node,_284){
node=dojo.byId(node);
var cs=new String(_284);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_284);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_287,_288){
try{
if(!_288){
var _289=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_287+"(\\s+|$)"),"$1$2");
}else{
var _289=dojo.html.getClass(node).replace(_287,"");
}
dojo.html.setClass(node,_289);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_28b,_28c){
dojo.html.removeClass(node,_28c);
dojo.html.addClass(node,_28b);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_28d,_28e,_28f,_290,_291){
_291=false;
var _292=dojo.doc();
_28e=dojo.byId(_28e)||_292;
var _293=_28d.split(/\s+/g);
var _294=[];
if(_290!=1&&_290!=2){
_290=0;
}
var _295=new RegExp("(\\s|^)(("+_293.join(")|(")+"))(\\s|$)");
var _296=_293.join(" ").length;
var _297=[];
if(!_291&&_292.evaluate){
var _298=".//"+(_28f||"*")+"[contains(";
if(_290!=dojo.html.classMatchType.ContainsAny){
_298+="concat(' ',@class,' '), ' "+_293.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_290==2){
_298+=" and string-length(@class)="+_296+"]";
}else{
_298+="]";
}
}else{
_298+="concat(' ',@class,' '), ' "+_293.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _299=_292.evaluate(_298,_28e,null,XPathResult.ANY_TYPE,null);
var _29a=_299.iterateNext();
while(_29a){
try{
_297.push(_29a);
_29a=_299.iterateNext();
}
catch(e){
break;
}
}
return _297;
}else{
if(!_28f){
_28f="*";
}
_297=_28e.getElementsByTagName(_28f);
var node,i=0;
outer:
while(node=_297[i++]){
var _29d=dojo.html.getClasses(node);
if(_29d.length==0){
continue outer;
}
var _29e=0;
for(var j=0;j<_29d.length;j++){
if(_295.test(_29d[j])){
if(_290==dojo.html.classMatchType.ContainsAny){
_294.push(node);
continue outer;
}else{
_29e++;
}
}else{
if(_290==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_29e==_293.length){
if((_290==dojo.html.classMatchType.IsOnly)&&(_29e==_29d.length)){
_294.push(node);
}else{
if(_290==dojo.html.classMatchType.ContainsAll){
_294.push(node);
}
}
}
}
return _294;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_2a0){
var arr=_2a0.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.html.toSelectorCase=function(_2a4){
return _2a4.replace(/([A-Z])/g,"-$1").toLowerCase();
};
if(dojo.render.html.ie){
dojo.html.getComputedStyle=function(node,_2a6,_2a7){
node=dojo.byId(node);
if(!node||!node.currentStyle){
return _2a7;
}
return node.currentStyle[dojo.html.toCamelCase(_2a6)];
};
dojo.html.getComputedStyles=function(node){
return node.currentStyle;
};
}else{
dojo.html.getComputedStyle=function(node,_2aa,_2ab){
node=dojo.byId(node);
if(!node||!node.style){
return _2ab;
}
var s=document.defaultView.getComputedStyle(node,null);
return (s&&s[dojo.html.toCamelCase(_2aa)])||"";
};
dojo.html.getComputedStyles=function(node){
return document.defaultView.getComputedStyle(node,null);
};
}
dojo.html.getStyleProperty=function(node,_2af){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_2af)]:undefined);
};
dojo.html.getStyle=function(node,_2b1){
var _2b2=dojo.html.getStyleProperty(node,_2b1);
return (_2b2?_2b2:dojo.html.getComputedStyle(node,_2b1));
};
dojo.html.setStyle=function(node,_2b4,_2b5){
node=dojo.byId(node);
if(node&&node.style){
var _2b6=dojo.html.toCamelCase(_2b4);
node.style[_2b6]=_2b5;
}
};
dojo.html.setStyleText=function(_2b7,text){
try{
_2b7.style.cssText=text;
}
catch(e){
_2b7.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_2b9,_2ba){
if(!_2ba.style.cssText){
_2b9.setAttribute("style",_2ba.getAttribute("style"));
}else{
_2b9.style.cssText=_2ba.style.cssText;
}
dojo.html.addClass(_2b9,dojo.html.getClass(_2ba));
};
dojo.html.getUnitValue=function(node,_2bc,_2bd){
var s=dojo.html.getComputedStyle(node,_2bc);
if((!s)||((s=="auto")&&(_2bd))){
return {value:0,units:"px"};
}
var _2bf=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_2bf){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_2bf[1]),units:_2bf[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
if(dojo.render.html.ie){
dojo.html.toPixelValue=function(_2c0,_2c1){
if(!_2c1){
return 0;
}
if(_2c1.slice(-2)=="px"){
return parseFloat(_2c1);
}
var _2c2=0;
with(_2c0){
var _2c3=style.left;
var _2c4=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_2c1||0;
_2c2=style.pixelLeft;
style.left=_2c3;
runtimeStyle.left=_2c4;
}
catch(e){
}
}
return _2c2;
};
}else{
dojo.html.toPixelValue=function(_2c5,_2c6){
return (_2c6&&(_2c6.slice(-2)=="px")?parseFloat(_2c6):0);
};
}
dojo.html.getPixelValue=function(node,_2c8,_2c9){
return dojo.html.toPixelValue(node,dojo.html.getComputedStyle(node,_2c8));
};
dojo.html.setPositivePixelValue=function(node,_2cb,_2cc){
if(isNaN(_2cc)){
return false;
}
node.style[_2cb]=Math.max(0,_2cc)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_2cd,_2ce,_2cf){
if(!dojo.html.styleSheet){
if(document.createStyleSheet){
dojo.html.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.html.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.html.styleSheet.cssRules){
_2cf=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_2cf=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_2cd+" { "+_2ce+" }";
return dojo.html.styleSheet.insertRule(rule,_2cf);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_2cd,_2ce,_2cf);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_2d1){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_2d1){
_2d1=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_2d1);
}
}else{
if(document.styleSheets[0]){
if(!_2d1){
_2d1=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_2d1);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_2d4,_2d5){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _2d6=dojo.hostenv.getText(URI,false,_2d5);
if(_2d6===null){
return;
}
_2d6=dojo.html.fixPathsInCssText(_2d6,URI);
if(_2d4){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_2d6)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _2db=doc.getElementsByTagName("style");
for(var i=0;i<_2db.length;i++){
if(_2db[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _2dc=dojo.html.insertCssText(_2d6,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_2d6,"nodeRef":_2dc});
if(_2dc&&djConfig.isDebug){
_2dc.setAttribute("dbgHref",URI);
}
return _2dc;
};
dojo.html.insertCssText=function(_2dd,doc,URI,_2e0){
if(!_2dd){
return;
}
if(!doc){
doc=document;
}
if(URI){
_2dd=dojo.html.fixPathsInCssText(_2dd,URI);
}
var _2e1=doc.createElement("style");
_2e1.setAttribute("type","text/css");
if(_2e0){
_2e1.setAttribute("media",_2e0);
}
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
return;
}else{
head.appendChild(_2e1);
}
if(_2e1.styleSheet){
var _2e3=function(){
try{
_2e1.styleSheet.cssText=_2dd;
}
catch(e){
dojo.debug(e);
}
};
if(_2e1.styleSheet.disabled){
setTimeout(_2e3,10);
}else{
_2e3();
}
}else{
var _2e4=doc.createTextNode(_2dd);
_2e1.appendChild(_2e4);
}
return _2e1;
};
dojo.html.fixPathsInCssText=function(_2e5,URI){
if(!_2e5||!URI){
return;
}
var _2e7,str="",url="",_2ea="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _2eb=new RegExp("url\\(\\s*("+_2ea+")\\s*\\)");
var _2ec=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_2ea+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _2ed=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_2ea+")['\"]");
while(_2e7=_2ed.exec(_2e5)){
url=_2e7[2].replace(regexTrim,"$2");
if(!_2ec.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_2e5.substring(0,_2e7.index)+"AlphaImageLoader("+_2e7[1]+"src='"+url+"'";
_2e5=_2e5.substr(_2e7.index+_2e7[0].length);
}
_2e5=str+_2e5;
str="";
}
while(_2e7=_2eb.exec(_2e5)){
url=_2e7[1].replace(regexTrim,"$2");
if(!_2ec.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_2e5.substring(0,_2e7.index)+"url("+url+")";
_2e5=_2e5.substr(_2e7.index+_2e7[0].length);
}
return str+_2e5;
};
dojo.html.setActiveStyleSheet=function(_2ee){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_2ee){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.applyBrowserClass=function(node){
var drh=dojo.render.html;
var _2fa={dj_ie:drh.ie,dj_ie55:drh.ie55,dj_ie6:drh.ie60,dj_ie7:drh.ie70,dj_iequirks:drh.ie&&drh.quirks,dj_opera:drh.opera,dj_opera8:drh.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:drh.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:drh.khtml,dj_safari:drh.safari,dj_gecko:drh.mozilla};
for(var p in _2fa){
if(_2fa[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("com.infonow.ligeo.map.LigeoBalloon");
function LigeoBalloon(){
};
LigeoBalloon.myLigeoLocation=null;
LigeoBalloon.setLigeoLocation=function(_2fc){
LigeoBalloon.myLigeoLocation=_2fc;
};
LigeoBalloon.getLigeoLocation=function(){
return LigeoBalloon.myLigeoLocation;
};
LigeoBalloon.activeTabId=null;
LigeoBalloon.visiblePanel=null;
LigeoBalloon.myWidth=277;
LigeoBalloon.myHeight=218;
LigeoBalloon.myHtmlTopLevelBalloon="ligeo-balloon";
LigeoBalloon.myHtmlPanelsContainer="ligeo-balloonPanels";
LigeoBalloon.myHtmlTopLevelTabsContainer="ligeo-balloonTabs";
LigeoBalloon.myHtmlTabSetPrefix="ligeo-balloonTabSet-";
LigeoBalloon.myHtmlTabPrefix="ligeo-balloonTab-";
LigeoBalloon.myHtmlTabActive="ligeo-balloonTab-active";
LigeoBalloon.myHtmlTabContentActive="ligeo-balloonTabContent-active";
LigeoBalloon.myHtmlTabInactive="ligeo-balloonTab-inactive";
LigeoBalloon.myHtmlTabContentInactive="ligeo-balloonTabContent-inactive";
LigeoBalloon.myHtmlStyle="DEFAULT";
LigeoBalloon.showTabs=true;
LigeoBalloon.singletonBalloonHtmlElement=null;
LigeoBalloon.getHtmlTopLevelBalloon=function(){
return this.myHtmlTopLevelBalloon;
};
LigeoBalloon.setHtmlTopLevelBalloon=function(_2fd){
this.myHtmlTopLevelBalloon=_2fd;
};
LigeoBalloon.getHtmlPanelsContainer=function(){
return this.myHtmlPanelsContainer;
};
LigeoBalloon.setHtmlPanelsContainer=function(_2fe){
this.myHtmlPanelsContainer=_2fe;
};
LigeoBalloon.getHtmlTopLevelTabsContainer=function(){
return this.myHtmlTopLevelTabsContainer;
};
LigeoBalloon.setHtmlTopLevelTabsContainer=function(_2ff){
this.myHtmlTopLevelTabsContainer=_2ff;
};
LigeoBalloon.getHtmlTabSetPrefix=function(){
return this.myHtmlTabSetPrefix;
};
LigeoBalloon.setHtmlTabSetPrefix=function(_300){
this.myHtmlTabSetPrefix=_300;
};
LigeoBalloon.getHtmlTabPrefix=function(){
return this.myHtmlTabPrefix;
};
LigeoBalloon.setHtmlTabPrefix=function(_301){
this.myHtmlTabPrefix=_301;
};
LigeoBalloon.getHtmlTabActive=function(){
return this.myHtmlTabActive;
};
LigeoBalloon.setHtmlTabActive=function(_302){
this.myHtmlTabActive=_302;
};
LigeoBalloon.getHtmlTabContentActive=function(){
return this.myHtmlTabContentActive;
};
LigeoBalloon.setHtmlTabContentActive=function(_303){
this.myHtmlTabContentActive=_303;
};
LigeoBalloon.getHtmlTabInactive=function(){
return this.myHtmlTabInactive;
};
LigeoBalloon.setHtmlTabInactive=function(_304){
this.myHtmlTabInactive=_304;
};
LigeoBalloon.getHtmlTabContentInactive=function(){
return this.myHtmlTabContentInactive;
};
LigeoBalloon.setHtmlTabContentInactive=function(_305){
this.myHtmlTabContentInactive=_305;
};
LigeoBalloon.setWidth=function(_306){
this.myWidth=_306;
};
LigeoBalloon.setHeight=function(_307){
this.myHeight=_307;
};
LigeoBalloon.getHtmlStyle=function(){
return this.myHtmlStyle;
};
LigeoBalloon.setHtmlStyle=function(_308){
this.myHtmlStyle=_308;
};
LigeoBalloon.ShowTabs=function(){
return this.showTabs;
};
LigeoBalloon.setShowTabs=function(_309){
this.showTabs=_309;
};
LigeoBalloon.HTMLtemplateString="<div id=\"ligeo-balloon\">\n\t<img id=\"ligeo-balloonBox\" src=\"__image__server__URL__/spacer.gif\" />\n\t\n\t<div id=\"ligeo-balloonTabs\"></div>\n\t<div id=\"ligeo-balloonClose\" title=\"Close this balloon\" onclick=\"LigeoAPI.closeBalloon();\" onmousedown=\"this.style.backgroundPosition='-13px 0'\" onmouseup=\"this.style.backgroundPosition='0 0'\"></div>\n\t<div id=\"ligeo-balloonPanels\"></div>\n\t\n\t<!-- cache balloon images -->\n\t<img class=\"display-none\" src=\"__image__server__URL__/northWestBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/northBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/northEastBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/westBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/eastBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/southWestBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/southBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/southEastBeak.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/closeBox.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/tabBack.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/tabLeft.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/tabRight.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/tabLeftOn.gif\" />\n\t<img class=\"display-none\" src=\"__image__server__URL__/tabRightOn.gif\" />\n\t\n\t<img style=\"display:none\" src=\"__image__server__URL__/north_west.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/north.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/north_east.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/west.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/east.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/south_west.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/south.gif\" />\n\t<img style=\"display:none\" src=\"__image__server__URL__/south_east.gif\" />\n\t<!--[if lte IE 6.5]><iframe></iframe><![endif]-->\n</div>\n";
LigeoBalloon.renderBalloonHtmlElement=function(){
var _30a=document.createElement("DIV");
LigeoBalloon.HTMLtemplateString=LigeoBalloon.HTMLtemplateString.replace(/__image__server__URL__/g,LigeoEnvironment.getImageServer()+"mapimages");
_30a.innerHTML=LigeoBalloon.HTMLtemplateString;
LigeoDOMUtils.renderHtmlElementIfNew(_30a);
LigeoBalloon.singletonBalloonHtmlElement=document.getElementById(LigeoBalloon.getHtmlTopLevelBalloon());
};
dojo.addOnLoad(LigeoBalloon.renderBalloonHtmlElement);
LigeoBalloon.repositionBalloon=function(_30b,_30c,_30d,_30e,_30f,_310){
if(LigeoVarUtils.isNotNullOrEmpty(LigeoBalloon.getHtmlTopLevelBalloon())){
LigeoBalloon.setWidth(LigeoVarUtils.getElementWidth(LigeoBalloon.getHtmlTopLevelBalloon()));
LigeoBalloon.setHeight(LigeoVarUtils.getElementHeight(LigeoBalloon.getHtmlTopLevelBalloon()));
}
var _311=_30f-_30d;
var _312=_310-_30e;
var x=0;
var y=0;
var _315=(_30c>=(2*(_312/3)));
var _316=(_30c<=(_312/3));
if(_315){
var _317=(_30b>=(2*(_311/3)));
var _318=(_30b<=(_311/3));
if(_317){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-se";
x=_30d+_30b-LigeoBalloon.myWidth-10;
y=_30e+_30c-LigeoBalloon.myHeight-10;
}
if((!_318&&!_317)||x<0){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-s";
x=_30d+_30b-(LigeoBalloon.myWidth/2)-5;
y=_30e+_30c-LigeoBalloon.myHeight-12;
}
if(_318||x<0){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-sw";
x=_30d+_30b+1;
y=_30e+_30c-LigeoBalloon.myHeight-9;
}
}
if((!_316&&!_315)||y<0){
var _319=(_30b>=(_311/2));
var _31a=(_30b<(_311/2));
if(_319){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-e";
x=_30d+_30b-LigeoBalloon.myWidth-13;
y=_30e+_30c-(LigeoBalloon.myHeight/2)-5;
}
if(_31a||x<0){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-w";
x=_30d+_30b+4;
y=_30e+_30c-(LigeoBalloon.myHeight/2)-5;
}
}
if(_316||y<0){
var _31b=(_30b>=(2*(_311/3)));
var _31c=(_30b<=(_311/3));
if(_31b){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-ne";
x=_30d+_30b-LigeoBalloon.myWidth-10;
y=_30e+_30c;
}
if((!_31c&&!_31b)||x<0){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-n";
x=_30d+_30b-(LigeoBalloon.myWidth/2)-5;
y=_30e+_30c+5;
}
if(_31c||x<0){
LigeoBalloon.singletonBalloonHtmlElement.className="ligeo-balloonDock-nw";
x=_30d+_30b;
y=_30e+_30c;
}
}
LigeoBalloon.setBalloonPosition(x,y);
};
LigeoBalloon.show=function(){
LigeoBalloon.showPanel();
if(LigeoBalloon.singletonBalloonHtmlElement){
LigeoBalloon.singletonBalloonHtmlElement.style.display="block";
}
};
LigeoBalloon.hide=function(){
if(LigeoBalloon.singletonBalloonHtmlElement){
LigeoBalloon.singletonBalloonHtmlElement.style.display="none";
}
};
LigeoBalloon.renderPanels=function(_31d){
var _31e=LigeoBalloon.getLigeoLocation().getAllInfoPanels();
var _31f=document.getElementById(LigeoBalloon.getHtmlPanelsContainer());
for(var i in _31e){
if(!LigeoVarUtils.isFunction(_31e[i])){
_31e[i].renderHtmlElement(_31f);
}
}
LigeoBalloon.renderTabs(_31d);
};
LigeoBalloon.renderTabs=function(_321){
var _322=LigeoBalloon.getLigeoLocation().getAllInfoPanels();
var _323="";
for(var i in _322){
if(!LigeoVarUtils.isFunction(_322[i])){
var _325=_322[i].getUniqueId();
_323+="<li onclick='LigeoAPI.showPanel(\""+_325+"\");'>";
_323+="<span id='"+LigeoBalloon.getHtmlTabActive()+"-"+_325+"'"+" class='"+LigeoBalloon.getHtmlTabActive()+"' style='display:none;'>"+"<span class='"+LigeoBalloon.getHtmlTabContentActive()+"'>"+_322[i].getLabel()+"</span>"+"</span>";
_323+="<span id='"+LigeoBalloon.getHtmlTabInactive()+"-"+_325+"'"+" class='"+LigeoBalloon.getHtmlTabInactive()+"'>"+"<a class='"+LigeoBalloon.getHtmlTabContentInactive()+"'"+" href='javascript:void(0)'>"+_322[i].getLabel()+"</a>"+"</span>";
_323+="</li>";
}
}
var _326=document.createElement("ul");
_326.style.display="none";
_326.innerHTML+=_323;
var _327=document.getElementById(LigeoBalloon.getHtmlTopLevelTabsContainer());
_327.appendChild(_326);
};
LigeoBalloon.showPanel=function(_328){
var _329=null;
if(LigeoVarUtils.isNotNull(_328)){
_329=LigeoBalloon.getLigeoLocation().getInfoPanel(_328);
}else{
_329=LigeoBalloon.getLigeoLocation().getDefaultInfoPanel();
}
if(LigeoVarUtils.isNotNull(_329)){
if(!_329.isRendered()){
LigeoBalloon.renderPanels(LigeoBalloon.getLigeoLocation());
}
if(LigeoVarUtils.isNotNull(LigeoBalloon.visiblePanel)){
LigeoBalloon.visiblePanel.hide();
}
_329.show();
LigeoBalloon.visiblePanel=_329;
LigeoBalloon.showTab(_329.getUniqueId());
}
};
LigeoBalloon.showTab=function(_32a){
LigeoBalloon.toggleTab(LigeoBalloon.activeTabId);
LigeoBalloon.toggleTab(_32a);
LigeoBalloon.activeTabId=_32a;
};
LigeoBalloon.toggleTab=function(_32b){
var _32c=document.getElementById(LigeoBalloon.getHtmlTabActive()+"-"+_32b);
var _32d=document.getElementById(LigeoBalloon.getHtmlTabInactive()+"-"+_32b);
if(LigeoVarUtils.isNotNull(_32c)){
if(_32c.style.display=="none"){
_32c.style.display="block";
_32d.style.display="none";
_32d.parentNode.parentNode.style.display="block";
}else{
_32c.style.display="none";
_32d.style.display="block";
_32d.parentNode.parentNode.style.display="none";
}
}
};
LigeoBalloon.setBalloonPosition=function(x,y){
LigeoBalloon.singletonBalloonHtmlElement.style.left=Math.round(x)+"px";
LigeoBalloon.singletonBalloonHtmlElement.style.top=Math.round(y)+"px";
};
LigeoBalloon.isVisible=function(){
return (LigeoBalloon.singletonBalloonHtmlElement.style.display!="none");
};
dojo.provide("com.infonow.ligeo.util.LigeoVEAdapter");
function LigeoVEAdapter(){
};
LigeoVEAdapter.adaptToBrowser=function(){
LigeoVEAdapter.adaptToIE6();
};
LigeoVEAdapter.adaptDrawingLibrary=function(){
var _330;
Msn.Drawing.Graphic.CreateGraphic=function(f,b){
if(document.all){
return new Msn.Drawing.VMLGraphic(f,b);
}else{
_330=new RegExp("Firefox/(.*)").exec(navigator.userAgent);
if(_330[1]&&parseFloat(_330[1])>=1.5){
return new Msn.Drawing.SVGGraphic(f,b);
}
throw new Msn.Drawing.Exception(L_GraphicsInitError_Text);
}
};
};
LigeoVEAdapter.fixVEBalloonBoundingArea=function(_333){
var _334=LigeoAPI.getLigeoMap().getVEMap().GetShapeByID(_333.elementID);
if(LigeoVarUtils.isNotNull(_334)){
window.ero.setBoundingArea(new Msn.VE.Geometry.Point(0,0),new Msn.VE.Geometry.Point(document.body.clientWidth,document.body.clientHeight+1000));
}
};
LigeoVEAdapter.adaptToIE6=function(){
try{
document.execCommand("BackgroundImageCache",false,true);
}
catch(err){
}
};
dojo.provide("com.infonow.ligeo.util.log.LigeoLogger");
function LigeoLogger(){
};
LigeoLogger.isDebugEnabled=function(){
return (window.location.href.match(/.*showlog=on.*/i)!=null);
};
LigeoLogger.debug=function(_335){
if(LigeoFeaturesAPI.alertOnErrors==true){
alert(_335);
}
if(LigeoLogger.isFirebugConsoleAvailable()){
console.debug(_335);
}
};
LigeoLogger.info=function(_336){
if(LigeoFeaturesAPI.alertOnErrors==true){
alert(_336);
}
if(LigeoLogger.isFirebugConsoleAvailable()){
console.info(_336);
}
};
LigeoLogger.warn=function(_337){
if(LigeoFeaturesAPI.alertOnErrors==true){
alert(_337);
}
if(LigeoLogger.isFirebugConsoleAvailable()){
console.warn(_337);
}
};
LigeoLogger.error=function(_338){
if(LigeoFeaturesAPI.alertOnErrors==true){
alert(_338);
}
if(LigeoLogger.isFirebugConsoleAvailable()){
console.error(_338);
}
};
LigeoLogger.isFirebugConsoleAvailable=function(){
return (typeof console=="object"&&typeof console.error=="function");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_33a,days,path,_33d,_33e){
path="/";
var _33f=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_33f=d.toGMTString();
}
_33a=escape(_33a);
document.cookie=name+"="+_33a+";"+(_33f!=-1?" expires="+_33f+";":"")+(path?"path="+path:"")+(_33d?"; domain="+_33d:"")+(_33e?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.lastIndexOf(name+"=");
if(idx==-1){
return null;
}
var _343=document.cookie.substring(idx+name.length+1);
var end=_343.indexOf(";");
if(end==-1){
end=_343.length;
}
_343=_343.substring(0,end);
_343=unescape(_343);
return _343;
};
dojo.io.cookie.get=dojo.io.cookie.getCookie;
dojo.io.cookie.deleteCookie=function(name){
dojo.io.cookie.setCookie(name,"-",0);
};
dojo.io.cookie.setObjectCookie=function(name,obj,days,path,_34a,_34b,_34c){
if(arguments.length==5){
_34c=_34a;
_34a=null;
_34b=null;
}
var _34d=[],_34e,_34f="";
if(!_34c){
_34e=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_34e){
_34e={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _34e[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_34e[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _34e){
_34d.push(escape(prop)+"="+escape(_34e[prop]));
}
_34f=_34d.join("&");
}
dojo.io.cookie.setCookie(name,_34f,days,path,_34a,_34b);
};
dojo.io.cookie.getObjectCookie=function(name){
var _352=null,_353=dojo.io.cookie.getCookie(name);
if(_353){
_352={};
var _354=_353.split("&");
for(var i=0;i<_354.length;i++){
var pair=_354[i].split("=");
var _357=pair[1];
if(isNaN(_357)){
_357=unescape(pair[1]);
}
_352[unescape(pair[0])]=_357;
}
}
return _352;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _358=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_358=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_35a,_35b){
node=dojo.byId(node);
_35b(node,!_35a(node));
return _35a(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_360){
dojo.html[(_360?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_366){
dojo.html.setStyle(node,"display",((_366 instanceof String||typeof _366=="string")?_366:(_366?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_36a){
dojo.html.setStyle(node,"visibility",((_36a instanceof String||typeof _36a=="string")?_36a:(_36a?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_36e,_36f){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_36f){
if(_36e>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_36e=0.999999;
}
}else{
if(_36e<0){
_36e=0;
}
}
}
if(h.ie){
if(node.nodeName.toLowerCase()=="tr"){
var tds=node.getElementsByTagName("td");
for(var x=0;x<tds.length;x++){
tds[x].style.filter="Alpha(Opacity="+_36e*100+")";
}
}
node.style.filter="Alpha(Opacity="+_36e*100+")";
}else{
if(h.moz){
node.style.opacity=_36e;
node.style.MozOpacity=_36e;
}else{
if(h.safari){
node.style.opacity=_36e;
node.style.KhtmlOpacity=_36e;
}else{
node.style.opacity=_36e;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _37b=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_37b+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _37b;
};
dojo.html.setStyleAttributes=function(node,_37e){
node=dojo.byId(node);
var _37f=_37e.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_37f.length;i++){
var _381=_37f[i].split(":");
var name=_381[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _383=_381[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_383);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_383});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_383});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_383});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_383});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_383;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_385,_386){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_386){
_386=bs.CONTENT_BOX;
}
var _389=2;
var _38a;
switch(_386){
case bs.MARGIN_BOX:
_38a=3;
break;
case bs.BORDER_BOX:
_38a=2;
break;
case bs.PADDING_BOX:
default:
_38a=1;
break;
case bs.CONTENT_BOX:
_38a=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_389=1;
try{
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _38e;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_38e=db;
}else{
_38e=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _390=node;
do{
var n=_390["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_390["offsetTop"];
ret.y+=isNaN(m)?0:m;
_390=_390.offsetParent;
}while((_390!=_38e)&&(_390!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_385){
var _393=dojo.html.getScroll();
ret.y+=_393.top;
ret.x+=_393.left;
}
var _394=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_389>_38a){
for(var i=_38a;i<_389;++i){
ret.y+=_394[i](node,"top");
ret.x+=_394[i](node,"left");
}
}else{
if(_389<_38a){
for(var i=_38a;i>_389;--i){
ret.y-=_394[i-1](node,"top");
ret.x-=_394[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._sumPixelValues=function(node,_398,_399){
var _39a=0;
for(var x=0;x<_398.length;x++){
_39a+=dojo.html.getPixelValue(node,_398[x],_399);
}
return _39a;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _3a7=dojo.html.getBorder(node);
return {width:pad.width+_3a7.width,height:pad.height+_3a7.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName.toLowerCase()!="img"){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _3ac;
if(!h.ie){
_3ac=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_3ac){
_3ac=dojo.html.getStyle(node,"box-sizing");
}
}
return (_3ac?_3ac:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _3b1=dojo.html.getBorder(node);
return {width:box.width-_3b1.width,height:box.height-_3b1.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _3b3=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_3b3.width,height:node.offsetHeight-_3b3.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _3b6=0;
var _3b7=0;
var isbb=dojo.html.isBorderBox(node);
var _3b9=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_3b6=args.width+_3b9.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_3b6);
}
if(typeof args.height!="undefined"){
_3b7=args.height+_3b9.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_3b7);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _3bc=dojo.html.getBorderBox(node);
var _3bd=dojo.html.getMargin(node);
return {width:_3bc.width+_3bd.width,height:_3bc.height+_3bd.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _3c0=0;
var _3c1=0;
var isbb=dojo.html.isBorderBox(node);
var _3c3=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _3c4=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_3c0=args.width-_3c3.width;
_3c0-=_3c4.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_3c0);
}
if(typeof args.height!="undefined"){
_3c1=args.height-_3c3.height;
_3c1-=_3c4.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_3c1);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_3c9,_3ca,_3cb){
if(_3c9 instanceof Array||typeof _3c9=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_3c9.length<4){
_3c9.push(0);
}
while(_3c9.length>4){
_3c9.pop();
}
var ret={left:_3c9[0],top:_3c9[1],width:_3c9[2],height:_3c9[3]};
}else{
if(!_3c9.nodeType&&!(_3c9 instanceof String||typeof _3c9=="string")&&("width" in _3c9||"height" in _3c9||"left" in _3c9||"x" in _3c9||"top" in _3c9||"y" in _3c9)){
var ret={left:_3c9.left||_3c9.x||0,top:_3c9.top||_3c9.y||0,width:_3c9.width||0,height:_3c9.height||0};
}else{
var node=dojo.byId(_3c9);
var pos=dojo.html.abs(node,_3ca,_3cb);
var _3cf=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_3cf.width,height:_3cf.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_3d1){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_3d4){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_3d6){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_3d8){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_3da){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_3dc){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_3e6){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_3e8){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("com.infonow.ligeo.map.LigeoMap");
function LigeoMap(id,_3ea,_3eb,_3ec){
var that=this;
this.MAP_STYLE="ligeo_mapStyle";
this.myId=LigeoAPI.DEFAULT_MAP_ID;
if(LigeoVarUtils.isNotNullOrEmpty(id)){
this.myId=id;
}
this.myVEMap=null;
this.myWidth=0;
this.myHeight=0;
this.myLocations=[];
this.myCenterLocation=null;
this.myOriginalCenter=null;
this.myOriginalZoom=null;
this.isFreezeMap=false;
this.isCoordinatingMap=false;
this.myMapTermsParentDiv="content";
this.clearResults=function(){
that.myLocations=[];
that.myCenterLocation=null;
that.myOriginalCenter=null;
that.myOriginalZoom=null;
if(that.getVEMap()!=null){
that.getVEMap().DeleteAllShapeLayers();
that.getVEMap().DeleteRoute();
}
};
this.handleOnLoadMap=function(){
try{
that.hide();
if(LigeoFeaturesAPI.isMapNavigatorDisabled()){
that.getVEMap().HideDashboard();
}
that.getEro().wasManuallyClosed=true;
that.getEro().hide();
that.applyMapStyles();
}
catch(error){
LigeoLogger.error(error);
}
};
this.suppressHideMapBalloonOnMouseout=function(_3ee){
if(that.getEro().wasManuallyClosed!==true){
that.getEro().wasMapBalloonOnMouseoutSuppressed=true;
that.getEro().showImmediate();
}
};
this.resetMapBalloonWasManuallyClosed=function(_3ef){
that.getEro().wasManuallyClosed=false;
that.getEro().wasMapBalloonOnMouseoutSuppressed=false;
};
this.rememberMapStyle=function(_3f0){
var _3f1=_3f0.mapStyle;
if(_3f0.mapStyle=="b"){
_3f1="h";
}else{
if(_3f0.mapStyle=="o"){
_3f1="a";
}
}
dojo.io.cookie.setCookie(that.MAP_STYLE,_3f1);
};
this.getMapStyle=function(){
var _3f2="r";
if(LigeoVarUtils.isNotNullOrEmpty(dojo.io.cookie.getCookie(that.MAP_STYLE))){
_3f2=dojo.io.cookie.getCookie(that.MAP_STYLE);
}
return _3f2;
};
this.showLigeoLocationBalloonByUniqueId=function(_3f3){
try{
var _3f4=LigeoAPI.getLigeoMap().getLocationById(_3f3);
if(LigeoVarUtils.isNotNull(_3f4)){
var _3f5=_3f4.getVEShape();
LigeoAPI.getLigeoMap().createAndShowBalloon(_3f4,_3f5);
}
}
catch(error){
LigeoLogger.error(error);
}
return true;
};
this.showLigeoLocationBalloonByUniqueId=function(_3f6,_3f7){
try{
var _3f8=LigeoAPI.getLigeoMapById(_3f7).getLocationById(_3f6);
if(LigeoVarUtils.isNotNull(_3f8)){
var _3f9=_3f8.getVEShape();
LigeoAPI.getLigeoMapById(_3f7).createAndShowBalloon(_3f8,_3f9);
}
}
catch(error){
LigeoLogger.error(error);
}
return true;
};
this.showLigeoLocationBalloon=function(_3fa){
try{
if(_3fa.elementID){
var _3fb=that.getVEMap().GetShapeByID(_3fa.elementID);
var _3fc=LigeoAPI.getLigeoMap().getLocationByShape(_3fb);
LigeoAPI.getLigeoMap().createAndShowBalloon(_3fc,_3fb);
}
}
catch(error){
LigeoLogger.error(error);
}
return true;
};
this.createAndShowBalloon=function(_3fd,_3fe){
try{
if(LigeoVarUtils.isNotNull(_3fd)&&_3fd.hasBalloonContent()){
if(!LigeoBalloon.isVisible()||LigeoBalloon.getLigeoLocation()!=_3fd){
var _3ff=that.getVEMap().LatLongToPixel(_3fe.GetIconAnchor());
var _400=dojo.html.getAbsolutePosition(that.getMapHtmlElement(),true);
var _401=_400.x;
var _402=_400.y;
var _403=_400.x+that.myWidth;
var _404=_400.y+that.myHeight;
LigeoBalloon.setLigeoLocation(_3fd);
LigeoBalloon.show();
LigeoBalloon.repositionBalloon(_3ff.x,_3ff.y,_401,_402,_403,_404);
}
}
}
catch(error){
LigeoLogger.error(error);
}
};
this.handleVeOnChangeView=function(){
if(that.isCoordinatingMap==true){
that.isCoordinatingMap=false;
LigeoAPI.skipGridSearch(false);
}else{
if(!LigeoAPI.mySkipGridSearch){
if(that.getZoom()>=LigeoConfigurationAPI.myMapGridSearchZoomThreshold){
LigeoAPI.closeBalloon();
that.mapGridSearch();
}
}else{
LigeoAPI.skipGridSearch(false);
}
}
};
this.mapGridSearch=function(){
var _405=document.getElementById("searchForm");
var _406=that.getId();
if(LigeoVarUtils.isNotNull(_405)&&(_406==LigeoAPI.RESULT_MAP_ID||_406==LigeoAPI.DEFAULT_MAP_ID)){
var _407=_405.action;
var _408=that.getVEMap().GetMapView();
var _409=_408.TopLeftLatLong;
if(LigeoFeaturesAPI.isExcludeNavAreaFromGrid()){
var _40a=that.getVEMap().LatLongToPixel(_408.TopLeftLatLong);
_40a.x=(_40a.x+35);
_40a.y=(_40a.y+35);
_409=that.getVEMap().PixelToLatLong(_40a);
}
_407+="?isMapGridSearch=true";
_407+="&mapGrid.topLatitude="+_409.Latitude;
_407+="&mapGrid.bottomLatitude="+_408.BottomRightLatLong.Latitude;
_407+="&mapGrid.leftLongitude="+_409.Longitude;
_407+="&mapGrid.rightLongitude="+_408.BottomRightLatLong.Longitude;
_407+="&mapGrid.centerLatitude="+that.getVEMap().GetCenter().Latitude;
_407+="&mapGrid.centerLongitude="+that.getVEMap().GetCenter().Longitude;
if(LigeoFeaturesAPI.myIncludeFormElementsInGridSearch){
var _40b=_405.elements;
for(var i=0;i<_40b.length;i++){
if(_40b[i].type!="checkbox"&&_40b[i].type!="radio"){
_407+="&"+_40b[i].name+"=";
_407+=_40b[i].value;
}else{
if(_40b[i].checked==true&&_40b[i].type=="radio"){
_407+="&"+_40b[i].name+"=";
_407+=_40b[i].value;
}else{
if(_40b[i].checked==true){
_407+="&"+_40b[i].name+"=";
_407+=true;
}
}
}
}
}
LigeoAPI.ajaxHtmlMessages(_407,document.getElementById("resultsBlock"));
that.isFreezeMap=true;
}
};
this.disableMapPanningAndZooming=function(_40d){
that.setElementStyle("cursor","default");
return true;
};
this.initializeMap=function(_40e,_40f,_410){
this.getVEMap().onLoadMap=this.handleOnLoadMap;
var _411=null;
if(LigeoVarUtils.isNotNull(_40e)&&LigeoVarUtils.isNotNull(_40f)){
try{
_411=new VELatLong(_40e,_40f);
}
catch(ex){
LigeoLogger.error("Invalid lat/long; lat="+_40e+" lon="+_40f+".\n"+"The exception is: "+ex.toString());
}
}
var _412=(LigeoVarUtils.isNotNull(_410))?_410:null;
var _413=VEMapStyle.Road;
var _414=false;
var _415=VEMapMode.Mode2D;
var _416=LigeoFeaturesAPI.isShow3dNavigationElement();
var _417=0;
var _418=new VEMapOptions;
_418.EnableBirdseye=LigeoFeaturesAPI.isShowBirdsEyeNavigationElement();
_418.EnableDashboardLabels=true;
this.getVEMap().LoadMap(_411,_412,_413,_414,_415,_416,_417,_418);
this.getVEMap().ShowMessageBox=false;
if(LigeoFeaturesAPI.isShowTrafficNavigationElement()){
var _419=document.createElement("div");
_419.id="inow_MSVE_navAction_traffic";
_419.innerHTML=LigeoEnvironment.translateLocaleText("traffic");
_419.title=LigeoEnvironment.translateLocaleText("showTrafficTip");
_419.onclick=function(){
if(_419.className.indexOf("disabled")<0){
LigeoMap.toggleTraffic();
LigeoMap.fixNavMapStyles("clickedOnTraffic");
}
};
var _41a=LigeoDOMUtils.getElementsById("MSVE_navAction_RoadMapStyle",this.myId);
_419.className=_41a[0].className;
_41a=LigeoDOMUtils.getElementsById("MSVE_navAction_topBar",this.myId);
_41a[0].insertBefore(_419,null);
var _41b=LigeoDOMUtils.getElementsById("MSVE_navAction_container",this.myId);
_41b=_41b[0];
var _41c=LigeoDOMUtils.getElementsById("MSVE_navAction_toggleGlyphInner",this.myId);
_41c=_41c[0];
_41c.onclick=function(){
if(LigeoMap.isShowTraffic(LigeoAPI.getLigeoMap().myId)){
if(_41b.className.indexOf("collapsed")<0){
LigeoAPI.getLigeoMap().getVEMap().HideTrafficLegend();
}else{
LigeoAPI.getLigeoMap().getVEMap().ShowTrafficLegend();
}
}
};
}
if(LigeoFeaturesAPI.isRadiusSearchElement()){
LigeoMap.searchShapeLayer=new VEShapeLayer();
this.getVEMap().AddShapeLayer(LigeoMap.searchShapeLayer);
this.getVEMap().AttachEvent("onmousedown",LigeoMapDrawingToolkit.startDrawingCircle);
this.getVEMap().AttachEvent("onmouseup",LigeoMapDrawingToolkit.endDrawingCircle);
this.getVEMap().AttachEvent("onmousemove",LigeoMapDrawingToolkit.activeDrawingCircle);
if(LigeoVarUtils.isNotNullOrEmpty(LigeoConfigurationAPI.getRadiusSearchLocation())){
if(LigeoVarUtils.isNullOrEmpty(LigeoDOMUtils.getElementsById("inow_MSVE_navAction_radius"))){
var _41d=document.createElement("div");
_41d.id="inow_MSVE_navAction_radius";
if(LigeoVarUtils.isNotNullOrEmpty(LigeoConfigurationAPI.getRadiusSearchIcon())){
_41d.innerHTML="<img src='"+LigeoConfigurationAPI.getRadiusSearchIcon()+"' border='0' alt='SEARCH BY CIRCLE'>";
}else{
_41d.innerHTML="RADIUS SEARCH";
_41d.title="SEARCH BY CIRCLE";
}
_41d.onclick=function(){
LigeoMapDrawingToolkit.setRadiusToolActive(!LigeoMapDrawingToolkit.isRadiusToolActive());
LigeoMap.searchShapeLayer.DeleteAllShapes();
var _41e=LigeoDOMUtils.getElementsById("inow_MSVE_navAction_radius");
if(LigeoMapDrawingToolkit.isRadiusToolActive()){
LigeoAPI.getLigeoMap().getVEMap().vemapcontrol.EnableGeoCommunity(true);
document.getElementById(LigeoAPI.getLigeoMap().myId).style.cursor="crosshair";
_41e[0].innerHTML="<img src='"+LigeoConfigurationAPI.getRadiusSearchIconOn()+"' border='0' alt='SEARCH BY CIRCLE'>";
if(LigeoFeaturesAPI.isMapGridSearchingEnabled()){
LigeoAPI.skipGridSearch(true);
}
}else{
LigeoAPI.getLigeoMap().getVEMap().vemapcontrol.EnableGeoCommunity(false);
document.getElementById(LigeoAPI.getLigeoMap().myId).style.cursor="default";
_41e[0].innerHTML="<img src='"+LigeoConfigurationAPI.getRadiusSearchIcon()+"' border='0' alt='SEARCH BY CIRCLE'>";
if(LigeoFeaturesAPI.isMapGridSearchingEnabled()){
LigeoAPI.skipGridSearch(false);
}
}
LigeoMap.fixNavMapStyles("clickedOnRadius");
};
if(LigeoVarUtils.isNotNullOrEmpty(LigeoConfigurationAPI.getRadiusSearchLocation())){
var _41a=LigeoDOMUtils.getElementsById(LigeoConfigurationAPI.getRadiusSearchLocation());
}else{
var _41a=LigeoDOMUtils.getElementsById("MSVE_navAction_RoadMapStyle",this.myId);
_41d.className=_41a[0].className;
_41a=LigeoDOMUtils.getElementsById("MSVE_navAction_topBar",this.myId);
}
_41a[0].insertBefore(_41d,null);
}
}
}
this.getVEMap().AttachEvent("onendzoom",this.handleVeOnChangeEndZoom);
};
this.handleVeOnChangeMapStyle=function(_41f){
LigeoMap.fixNavMapStyles("handleVeOnChangeMapStyle");
that.rememberMapStyle(_41f);
if(_41f.mapStyle=="b"||_41f.mapStyle=="o"){
LigeoAPI.closeBalloon();
}
};
this.handleVeOnChangeEndZoom=function(){
LigeoMap.fixNavMapStyles("handleVeOnChangeEndZoom");
if(LigeoFeaturesAPI.isShowTrafficNavigationElement()){
var _420=LigeoDOMUtils.getElementsById("inow_MSVE_navAction_traffic",LigeoAPI.getLigeoMap().myId);
_420=_420[0];
var _421=_420.className;
if(that.getZoom()>14||that.getZoom()<9){
if(_420.className.indexOf("disabled")<0){
LigeoMap.setShowTraffic(true,LigeoAPI.getLigeoMap().myId);
LigeoMap.toggleTraffic();
_421=_421.replace("MSVE_MapStyle","MSVE_MapStyle_disabled");
_421=_421.replace(" MSVE_selected","");
_420.className=_421;
}
}else{
_421=_421.replace("MSVE_MapStyle_disabled","MSVE_MapStyle");
_420.className=_421;
}
}
};
function constructor(_422,_423,_424){
that.initializeMap(_422,_423,_424);
};
constructor(_3ea,_3eb,_3ec);
};
LigeoMap.prototype.getLocale=function(){
alert("LigeoMap.prototype.getLocale has been depricated. Use LigeoEnvironment.getMapLocale instead.");
};
LigeoMap.prototype.setLocale=function(_425){
alert("LigeoMap.prototype.getLocale has been depricated. Use LigeoEnvironment.setMapLocale instead.");
};
LigeoMap.prototype.getId=function(){
return this.myId;
};
LigeoMap.prototype.setId=function(id){
this.myId=id;
};
LigeoMap.isShowTraffic=function(_427){
return LigeoAPI.getLigeoMapById(_427).showTraffic;
};
LigeoMap.setShowTraffic=function(_428,_429){
LigeoAPI.getLigeoMapById(_429).showTraffic=_428;
};
LigeoMap.fixNavMapStyles=function(_42a){
if(LigeoDOMUtils.getElementsById("MSVE_navAction_topBar",LigeoAPI.getLigeoMap().myId)!=null){
var _42b=setTimeout(function(){
var _42c=LigeoDOMUtils.getElementsById("MSVE_navAction_container",LigeoAPI.getLigeoMap().myId);
_42c=_42c[0];
var _42d=LigeoDOMUtils.getElementsById("MSVE_navAction_topBar",LigeoAPI.getLigeoMap().myId);
_42d=_42d[0];
var _42e=LigeoDOMUtils.getElementsById("MSVE_navAction_topBackground",LigeoAPI.getLigeoMap().myId);
_42e=_42e[0];
var _42f=LigeoDOMUtils.getElementsById("MSVE_navAction_toggleGlyphWrapper",LigeoAPI.getLigeoMap().myId);
_42f=_42f[0];
var _430="";
_430=_42c.className;
_430=_430.replace("notraffic","");
_42c.className=_430;
var _431=_42d.offsetWidth+_42d.offsetLeft+_42f.offsetWidth+10;
if(_431>100){
_42f.style.right=(_42c.offsetWidth-_431)+"px";
_42e.style.width=(_431-_42d.offsetLeft)+"px";
}
},100);
}
};
LigeoMap.toggleTraffic=function(){
var _432=LigeoMap.isShowTraffic(LigeoAPI.getLigeoMap().myId);
var _433=LigeoDOMUtils.getElementsById("inow_MSVE_navAction_traffic",LigeoAPI.getLigeoMap().myId);
_433=_433[0];
var _434=_433.className;
if(_432){
LigeoAPI.getLigeoMap().getVEMap().ClearTraffic();
_433.title=LigeoEnvironment.translateLocaleText("showTrafficTip");
_434=_434.replace(" MSVE_selected","");
}else{
LigeoAPI.getLigeoMap().getVEMap().LoadTraffic(true);
LigeoAPI.getLigeoMap().getVEMap().ShowTrafficLegend(_433.offsetLeft+_433.offsetParent.offsetLeft,_433.offsetHeight+10);
_433.title=LigeoEnvironment.translateLocaleText("hideTrafficTip");
_434=_434+" MSVE_selected";
}
_433.className=_434;
LigeoMap.setShowTraffic(!_432,LigeoAPI.getLigeoMap().myId);
};
LigeoMap.prototype.renderAllMaps=function(){
for(var i=0;i<LigeoConfigurationAPI.getMyMapDivIDs().length;i++){
if(LigeoConfigurationAPI.getMyMapDivIDs()[i]==LigeoAPI.ROUTE_MAP_ID){
LigeoAPI.getLigeoRoute().renderRoute(LigeoAPI.getLigeoMapById(LigeoAPI.ROUTE_MAP_ID));
}else{
if(LigeoConfigurationAPI.getMyMapDivIDs()[i]==LigeoAPI.RESULT_MAP_ID||LigeoConfigurationAPI.getMyMapDivIDs()[i]==LigeoAPI.DRILL_MAP_ID){
LigeoAPI.getLigeoMapById(LigeoConfigurationAPI.getMyMapDivIDs()[i]).renderMap();
}
}
}
};
LigeoMap.prototype.renderMap=function(){
var _436;
var _437;
var i;
var _439;
_436=this.getMapHtmlElement();
if(LigeoVarUtils.isNotNull(_436)){
this.applyMapDivStyles();
if(LigeoVarUtils.isNotNull(this.myCenterLocation)&&((this.myId==LigeoAPI.RESULT_MAP_ID&&LigeoFeaturesAPI.isShowResultsCenterLocation())||(this.myId==LigeoAPI.ROUTE_MAP_ID&&LigeoFeaturesAPI.isShowRouteCenterLocation())||(this.myId==LigeoAPI.DRILL_MAP_ID&&LigeoFeaturesAPI.isShowDrillCenterLocation())||(this.myId==LigeoAPI.DEFAULT_MAP_ID))){
shapeCenter=this.myCenterLocation.getVEShape();
shapeCenter.SetZIndex(700);
this.getVEMap().AddShape(shapeCenter);
}
if((this.myId==LigeoAPI.RESULT_MAP_ID&&LigeoFeaturesAPI.isShowResultsLocations())||(this.myId==LigeoAPI.ROUTE_MAP_ID&&LigeoFeaturesAPI.isShowRouteOtherLocations())||(this.myId==LigeoAPI.DRILL_MAP_ID&&LigeoFeaturesAPI.isShowDrillOtherLocations())||(this.myId==LigeoAPI.DEFAULT_MAP_ID)){
for(i=0;i<this.myLocations.length;i++){
_439=this.myLocations[i].getVEShape();
_439.SetZIndex(_439.GetZIndex()-this.myLocations[i].getLocationNumber());
this.getVEMap().AddShape(_439);
}
}
if(!this.isFreezeMap){
this.coordinateCenterAndZoom();
this.isCoordinatingMap=false;
}
this.getVEMap().SetScaleBarDistanceUnit(LigeoFeaturesAPI.getMapDistanceUnits());
this.removeMapTerms();
this.addMapTerms();
this.attachEvents();
this.show();
}
};
LigeoMap.prototype.removeMapTerms=function(){
var _43a=document.getElementById("ligeo-mapCopyright-div");
if(LigeoVarUtils.isNotNull(_43a)){
_43a.parentNode.removeChild(_43a);
}
};
LigeoMap.prototype.attachEvents=function(){
this.getVEMap().AttachEvent("onclick",LigeoMap.followLocationLink);
if(LigeoFeaturesAPI.areMapBalloonsDisabled()||LigeoFeaturesAPI.areRouteMapBalloonsDisabled()){
this.getVEMap().AttachEvent("onmouseover",LigeoMap.disableVEEvent);
}else{
if(LigeoFeaturesAPI.isOpenBaloonsOnClick()==false){
this.getVEMap().AttachEvent("onmouseover",this.showLigeoLocationBalloon);
}
}
if(LigeoFeaturesAPI.isOpenBaloonsOnClick()){
this.getVEMap().AttachEvent("onclick",this.showLigeoLocationBalloon);
}
if(LigeoFeaturesAPI.isHideMapBalloonOnMouseout()){
this.getVEMap().AttachEvent("onmouseout",LigeoAPI.closeBalloon);
}else{
this.getVEMap().AttachEvent("onmouseout",LigeoMap.disableVEEvent);
if(LigeoVarUtils.isNotNull(this.getEro())){
this.getEro().hookEvent("beforeshow",this.resetMapBalloonWasManuallyClosed);
this.getEro().hookEvent("afterhide",this.suppressHideMapBalloonOnMouseout);
}
}
if(LigeoFeaturesAPI.isMapPanningAndZoomingDisabled()){
this.disableMapPanningAndZooming();
this.getVEMap().AttachEvent("onmousedown",this.disableMapPanningAndZooming);
this.getVEMap().AttachEvent("onmouseup",this.disableMapPanningAndZooming);
this.getVEMap().AttachEvent("onmousewheel",this.disableMapPanningAndZooming);
this.getVEMap().AttachEvent("ondoubleclick",this.disableMapPanningAndZooming);
}
if(LigeoFeaturesAPI.isMapGridSearchingEnabled()){
this.getVEMap().AttachEvent("onchangeview",this.handleVeOnChangeView);
}
this.getVEMap().AttachEvent("onchangemapstyle",this.handleVeOnChangeMapStyle);
};
LigeoMap.prototype.addMapTerms=function(){
var _43b=document.getElementById(this.getId());
if(LigeoVarUtils.isNotNull(_43b)&&!LigeoFeaturesAPI.isTermsAndConditionsDisabled()){
var _43c=document.createElement("DIV");
_43c.setAttribute("id","ligeo-mapCopyright-div");
_43c.setAttribute("class","INOW_Copyright INOW_CopyrightForeground");
var link=document.createElement("a");
var _43e="http://via.infonow.net/map_terms.jsp?type=virtualearth&LOC="+LigeoEnvironment.getMapLocale();
link.setAttribute("href",_43e);
link.setAttribute("onclick","window.open('"+_43e+"','termsWindow','scrollbars,menubar=no,titlebar=no,height=280,width=500');return false;");
link.setAttribute("id","ligeo-mapCopyright");
link.setAttribute("target","termsWindow");
link.setAttribute("rel","noFollow");
link.appendChild(document.createTextNode(LigeoEnvironment.translateLocaleText("mapTerms")));
_43c.appendChild(link);
if(LigeoVarUtils.isNotNullOrEmpty(document.getElementById(this.myMapTermsParentDiv))){
document.getElementById(this.myMapTermsParentDiv).appendChild(_43c);
LigeoFeaturesAPI.setMapTermsParentDiv("content");
}
}
};
LigeoMap.prototype.getEro=function(){
return window.ero;
};
LigeoMap.prototype.getVEMap=function(){
if(LigeoVarUtils.isNull(this.myVEMap)){
var _43f=5000;
if(LigeoVarUtils.isVirtualEarthLoaded(_43f)){
this.myVEMap=new VEMap(this.myId);
}
}
return this.myVEMap;
};
LigeoMap.prototype.applyMapDivStyles=function(){
var _440=(this.myHeight==0)?this.getElementStyle("height"):this.myHeight;
var _441=(this.myWidth==0)?this.getElementStyle("width"):this.myWidth;
if(LigeoVarUtils.isNotNullOrEmpty(_440)&&LigeoVarUtils.isNotNullOrEmpty(_441)){
_440=_440.toString();
_441=_441.toString();
if(_440.indexOf("px")<0){
_440+="px";
}
if(_441.indexOf("px")<0){
_441+="px";
}
this.setElementStyle("height",_440);
this.setElementStyle("width",_441);
this.setElementStyle("position","relative");
}
};
LigeoMap.prototype.applyMapStyles=function(){
this.getVEMap().SetMapStyle(this.getMapStyle());
};
LigeoMap.prototype.setElementStyle=function(_442,_443){
var _444=this.getMapHtmlElement();
if(LigeoVarUtils.isNotNull(_444)){
var _445=_444.style;
_445[_442]=_443;
}
};
LigeoMap.prototype.getElementStyle=function(_446){
var _447="";
var _448=this.getMapHtmlElement();
if(LigeoVarUtils.isNotNull(_448)){
var _449=_448.style;
_447=_449[_446];
}
return _447;
};
LigeoMap.prototype.show=function(){
var _44a=this.getMapHtmlElement();
if(LigeoVarUtils.isNotNull(_44a)){
var _44b=_44a.style;
_44b.visibility="visible";
}
};
LigeoMap.prototype.hide=function(){
var _44c=this.getMapHtmlElement();
if(LigeoVarUtils.isNotNull(_44c)){
var _44d=_44c.style;
_44d.visibility="hidden";
}
};
LigeoMap.prototype.setWidth=function(_44e){
this.myWidth=_44e;
};
LigeoMap.prototype.setHeight=function(_44f){
this.myHeight=_44f;
};
LigeoMap.prototype.getZoom=function(){
return this.getVEMap().GetZoomLevel();
};
LigeoMap.prototype.setCenter=function(_450){
this.myCenterLocation=_450;
};
LigeoMap.prototype.addLocation=function(_451){
this.myLocations.push(_451);
};
LigeoMap.prototype.addCenterPushpin=function(_452){
this.centerPushpin=_452;
};
LigeoMap.prototype.getLocationByShape=function(_453){
var _454=null;
if(LigeoVarUtils.isNotNull(this.myCenterLocation)&&this.myCenterLocation.getVEShape()==_453){
_454=this.myCenterLocation;
}else{
for(i=0;i<this.myLocations.length;i++){
if(this.myLocations[i].getVEShape()==_453){
_454=this.myLocations[i];
}
}
}
return _454;
};
LigeoMap.prototype.getLocationById=function(id){
var _456=null;
if(LigeoVarUtils.isNotNull(this.myCenterLocation)&&this.myCenterLocation.getUniqueId()==id){
_456=this.myCenterLocation;
}else{
for(i=0;i<this.myLocations.length;i++){
if(this.myLocations[i].getUniqueId()==id){
_456=this.myLocations[i];
break;
}
}
}
return _456;
};
LigeoMap.followLocationLink=function(_457){
if(_457.elementID){
var _458=LigeoAPI.getLigeoMap().getVEMap().GetShapeByID(_457.elementID);
var _459=LigeoAPI.getLigeoMap().getLocationByShape(_458);
if(LigeoVarUtils.isNotNull(_459)&&LigeoVarUtils.isNotNullOrEmpty(_459.getLinkUrl())){
window.location=_459.getLinkUrl();
}
}
};
LigeoMap.prototype.coordinateCenterAndZoom=function(){
this.isCoordinatingMap=true;
if(LigeoVarUtils.isNotNull(this.myCenterLocation)&&LigeoVarUtils.isNotNull(this.myOriginalZoom)){
this.getVEMap().SetCenterAndZoom(this.myCenterLocation.getVELatLong(),this.myOriginalZoom);
this.myOriginalZoom=this.getVEMap().GetZoomLevel();
this.myOriginalCenter=this.getVEMap().GetCenter();
}else{
this.bestFitCenterAndZoom();
}
};
LigeoMap.prototype.recenterAndZoom=function(){
this.getVEMap().SetCenterAndZoom(this.myOriginalCenter,this.myOriginalZoom);
};
LigeoMap.prototype.bestFitCenterAndZoom=function(){
var _45a=[];
if(LigeoVarUtils.isNotNull(this.myCenterLocation)){
var _45b=0;
var _45c=0;
for(var i=0;i<this.myLocations.length;i++){
latitudeDeltaFromCenter=Math.abs(this.myLocations[i].getLatitude()-this.myCenterLocation.getLatitude());
if(latitudeDeltaFromCenter>_45b){
_45b=latitudeDeltaFromCenter;
}
longitudeDeltaFromCenter=Math.abs(this.myLocations[i].getLongitude()-this.myCenterLocation.getLongitude());
if(longitudeDeltaFromCenter>_45c){
_45c=longitudeDeltaFromCenter;
}
}
var _45e=this.myCenterLocation.getLatitude()-_45b;
var _45f=this.myCenterLocation.getLongitude()-_45c;
var _460=this.myCenterLocation.getLatitude()+_45b;
var _461=this.myCenterLocation.getLongitude()+_45c;
_45a.push(new VELatLong(_45e,_45f));
_45a.push(new VELatLong(_460,_461));
}else{
for(i=0;i<this.myLocations.length;i++){
_45a.push(this.myLocations[i].getVELatLong());
}
}
if(_45a.length>0){
this.getVEMap().SetMapView(_45a);
this.myOriginalZoom=this.getVEMap().GetZoomLevel();
this.myOriginalCenter=this.getVEMap().GetCenter();
}
};
LigeoMap.disableVEEvent=function(_462){
return true;
};
LigeoMap.prototype.isMapOnPage=function(){
return LigeoVarUtils.isNotNull(this.getMapHtmlElement());
};
LigeoMap.prototype.getMapHtmlElement=function(){
return document.getElementById(this.myId);
};
LigeoMap.prototype.zoomIn=function(_463){
if(isNaN(_463)){
_463=1;
}
this.getVEMap().SetZoomLevel(this.getVEMap().GetZoomLevel()+_463);
};
LigeoMap.prototype.zoomOut=function(_464){
if(isNaN(_464)){
_464=1;
}
this.getVEMap().SetZoomLevel(this.getVEMap().GetZoomLevel()-_464);
};
LigeoMap.prototype.setOriginalZoom=function(zoom){
this.myOriginalZoom=zoom;
};
LigeoMap.prototype.pan=function(_466,_467){
this.getVEMap().Pan(_466,_467);
};
LigeoMap.prototype.setCenterAndZoom=function(_468,_469){
this.getVEMap().SetCenterAndZoom(_468,_469);
};
LigeoMap.prototype.getZoomLevel=function(){
return this.getVEMap().GetZoomLevel();
};
LigeoMap.createLatLonFromMapClick=function(e){
try{
var x=e.layerX;
var y=e.layerY;
if(x==null){
x=e.offsetX;
}
if(y==null){
y=e.offsetY;
}
var _46d=new VEPixel(x,y);
var _46e=LigeoAPI.getLigeoMapById(LigeoAPI.getLigeoMap().myId).getVEMap().PixelToLatLong(_46d);
}
catch(ex){
alert(ex.text);
}
return _46e;
};
dojo.provide("com.infonow.ligeo.map.LigeoMapDrawingToolkit");
function LigeoMapDrawingToolkit(){
};
LigeoMapDrawingToolkit.radiusToolActive=false;
LigeoMapDrawingToolkit.radiusToolDrawing=false;
LigeoMapDrawingToolkit.isRadiusToolActive=function(){
return LigeoMapDrawingToolkit.radiusToolActive;
};
LigeoMapDrawingToolkit.setRadiusToolActive=function(_46f){
LigeoMapDrawingToolkit.radiusToolActive=_46f;
};
LigeoMapDrawingToolkit.isRadiusToolDrawing=function(){
return LigeoMapDrawingToolkit.radiusToolDrawing;
};
LigeoMapDrawingToolkit.setRadiusToolDrawing=function(_470){
LigeoMapDrawingToolkit.radiusToolDrawing=_470;
};
LigeoMapDrawingToolkit.calcDistance=function(_471,_472){
var lat1=_471.Latitude;
var lon1=_471.Longitude;
var lat2=_472.Latitude;
var lon2=_472.Longitude;
var _477=6371;
var _478=Math.PI/180;
var dLat=(lat2-lat1)*_478;
var dLon=(lon2-lon1)*_478;
var a=Math.sin(dLat/2)*Math.sin(dLat/2)+Math.cos(lat1*_478)*Math.cos(lat2*_478)*Math.sin(dLon/2)*Math.sin(dLon/2);
var c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));
var d=_477*c;
return d;
};
LigeoMapDrawingToolkit.drawCircle=function(_47e,_47f){
var _480=6371;
var lat=(_47e.Latitude*Math.PI)/180;
var lon=(_47e.Longitude*Math.PI)/180;
var d=parseFloat(_47f)/_480;
var _484=new Array();
for(i=0;i<=360;i++){
var _485=new VELatLong(0,0);
var _486=i*Math.PI/180;
_485.Latitude=Math.asin(Math.sin(lat)*Math.cos(d)+Math.cos(lat)*Math.sin(d)*Math.cos(_486));
_485.Longitude=((lon+Math.atan2(Math.sin(_486)*Math.sin(d)*Math.cos(lat),Math.cos(d)-Math.sin(lat)*Math.sin(_485.Latitude)))*180)/Math.PI;
_485.Latitude=(_485.Latitude*180)/Math.PI;
_484.push(_485);
}
var _487=new VEShape(VEShapeType.Polyline,_484);
_487.HideIcon();
LigeoMap.searchShapeLayer.AddShape(_487);
};
LigeoMapDrawingToolkit.startDrawingCircle=function(_488){
if(LigeoMapDrawingToolkit.isRadiusToolActive()){
LigeoMapDrawingToolkit.setRadiusToolDrawing(true);
var _489=new VEPixel(_488.mapX,_488.mapY);
_489=LigeoAPI.getLigeoMap().getVEMap().PixelToLatLong(_489);
LigeoMap.searchShapeLayer.anchorPoint=_489;
}else{
return;
}
};
LigeoMapDrawingToolkit.endDrawingCircle=function(_48a){
if(LigeoMapDrawingToolkit.isRadiusToolActive()){
var _48b=new VEPixel(_48a.mapX,_48a.mapY);
_48b=LigeoAPI.getLigeoMap().getVEMap().PixelToLatLong(_48b);
LigeoMapDrawingToolkit.setRadiusToolDrawing(false);
LigeoMap.searchShapeLayer.DeleteAllShapes();
LigeoConfigurationAPI.radiusSearchCallBack(LigeoMap.searchShapeLayer.anchorPoint,LigeoMapDrawingToolkit.calcDistance(LigeoMap.searchShapeLayer.anchorPoint,_48b));
}else{
return;
}
};
LigeoMapDrawingToolkit.activeDrawingCircle=function(_48c){
if(LigeoMapDrawingToolkit.isRadiusToolActive()&&LigeoMapDrawingToolkit.isRadiusToolDrawing()){
LigeoMap.searchShapeLayer.DeleteAllShapes();
var _48d=new VEPixel(_48c.mapX,_48c.mapY);
_48d=LigeoAPI.getLigeoMap().getVEMap().PixelToLatLong(_48d);
var _48e=LigeoMapDrawingToolkit.calcDistance(LigeoMap.searchShapeLayer.anchorPoint,_48d);
LigeoMapDrawingToolkit.drawCircle(LigeoMap.searchShapeLayer.anchorPoint,_48e);
}else{
return;
}
};
dojo.provide("com.infonow.ligeo.LigeoFeaturesAPI");
function LigeoFeaturesAPI(){
};
LigeoFeaturesAPI.myDisableMapPanningAndZooming=false;
LigeoFeaturesAPI.myDisableMapBalloons=false;
LigeoFeaturesAPI.myDisableRouteMapBalloons=false;
LigeoFeaturesAPI.myDisableRouteTablePushpins=false;
LigeoFeaturesAPI.myDisableZooming=false;
LigeoFeaturesAPI.myHideMapBalloonOnMouseout=false;
LigeoFeaturesAPI.myDisableMapNavigator=false;
LigeoFeaturesAPI.myDisableTermsAndConditions=false;
LigeoFeaturesAPI.alertOnErrors=false;
LigeoFeaturesAPI.swallowErrors=false;
LigeoFeaturesAPI.usingBoldRouteInstructions=false;
LigeoFeaturesAPI.myIncludeTotalDistanceInRoute=false;
LigeoFeaturesAPI.mapGridSearchingEnabled=false;
LigeoFeaturesAPI.isZoomFromDefaultToMapGridThresholdEnabled=false;
LigeoFeaturesAPI.isStateImageMapShowing=true;
LigeoFeaturesAPI.addCountryToFullAddress=false;
LigeoFeaturesAPI.show3dNavigationElement=false;
LigeoFeaturesAPI.showBirdsEyeNavigationElement=true;
LigeoFeaturesAPI.showTrafficNavigationElement=true;
LigeoFeaturesAPI.myMapDistanceUnits=null;
LigeoFeaturesAPI.myRouteDistanceUnits=null;
LigeoFeaturesAPI.myIncludeFormElementsInGridSearch=true;
LigeoFeaturesAPI.showRadiusSearchElement=false;
LigeoFeaturesAPI.openBaloonsOnClick=false;
LigeoFeaturesAPI.showResultsCenterLocation=true;
LigeoFeaturesAPI.showResultsLocations=true;
LigeoFeaturesAPI.showRouteCenterLocation=false;
LigeoFeaturesAPI.showRouteOtherLocations=false;
LigeoFeaturesAPI.showDrillCenterLocation=true;
LigeoFeaturesAPI.showDrillOtherLocations=true;
LigeoFeaturesAPI.excludeNavAreaFromGrid=true;
LigeoFeaturesAPI.setAddCountryToFullAddress=function(){
LigeoFeaturesAPI.addCountryToFullAddress=true;
};
LigeoFeaturesAPI.setIsStateImageMapShowing=function(_48f){
LigeoFeaturesAPI.isStateImageMapShowing=_48f;
};
LigeoFeaturesAPI.myEnableRouteMapCustomIcons=false;
LigeoFeaturesAPI.myEnableRouteMapCustomStartIcon=true;
LigeoFeaturesAPI.myEnableRouteMapCustomEndIcon=true;
LigeoFeaturesAPI.myEnableRouteMapCustomWaypointIcon=true;
LigeoFeaturesAPI.showDisplayParsedAddressAsFullAddress=true;
LigeoFeaturesAPI.isSingleLineAsync=false;
LigeoFeaturesAPI.setSingleLineAsync=function(_490){
LigeoFeaturesAPI.isSingleLineAsync=_490;
};
LigeoFeaturesAPI.setMapGridSearchingEnabled=function(_491){
LigeoFeaturesAPI.mapGridSearchingEnabled=_491;
};
LigeoFeaturesAPI.isMapGridSearchingEnabled=function(){
return LigeoFeaturesAPI.mapGridSearchingEnabled;
};
LigeoFeaturesAPI.disableMapPanningAndZooming=function(){
LigeoFeaturesAPI.myDisableMapPanningAndZooming=true;
};
LigeoFeaturesAPI.enableMapPanningAndZooming=function(){
LigeoFeaturesAPI.myDisableMapPanningAndZooming=false;
};
LigeoFeaturesAPI.isMapPanningAndZoomingDisabled=function(){
return LigeoFeaturesAPI.myDisableMapPanningAndZooming;
};
LigeoFeaturesAPI.disableRouteMapBalloons=function(){
LigeoFeaturesAPI.myDisableRouteMapBalloons=true;
};
LigeoFeaturesAPI.enableRouteMapBalloons=function(){
LigeoFeaturesAPI.myDisableRouteMapBalloons=false;
};
LigeoFeaturesAPI.areRouteMapBalloonsDisabled=function(){
return LigeoFeaturesAPI.myDisableRouteMapBalloons;
};
LigeoFeaturesAPI.disableMapBalloons=function(){
LigeoFeaturesAPI.myDisableMapBalloons=true;
};
LigeoFeaturesAPI.enableMapBalloons=function(){
LigeoFeaturesAPI.myDisableMapBalloons=false;
};
LigeoFeaturesAPI.areMapBalloonsDisabled=function(){
return LigeoFeaturesAPI.myDisableMapBalloons;
};
LigeoFeaturesAPI.disableRouteTablePushpins=function(){
LigeoFeaturesAPI.myDisableRouteTablePushpins=true;
};
LigeoFeaturesAPI.enableRouteTablePushpins=function(){
LigeoFeaturesAPI.myDisableRouteTablePushpins=false;
};
LigeoFeaturesAPI.areRouteTablePushpinsDisabled=function(){
return LigeoFeaturesAPI.myDisableRouteTablePushpins;
};
LigeoFeaturesAPI.disableHideMapBalloonOnMouseout=function(){
LigeoFeaturesAPI.myHideMapBalloonOnMouseout=false;
};
LigeoFeaturesAPI.enableHideMapBalloonOnMouseout=function(){
LigeoFeaturesAPI.myHideMapBalloonOnMouseout=true;
};
LigeoFeaturesAPI.isHideMapBalloonOnMouseout=function(){
return LigeoFeaturesAPI.myHideMapBalloonOnMouseout;
};
LigeoFeaturesAPI.isShowTrafficNavigationElement=function(){
return LigeoFeaturesAPI.showTrafficNavigationElement;
};
LigeoFeaturesAPI.setShowTrafficNavigationElement=function(_492){
LigeoFeaturesAPI.showTrafficNavigationElement=_492;
};
LigeoFeaturesAPI.isShowBirdsEyeNavigationElement=function(){
return LigeoFeaturesAPI.showBirdsEyeNavigationElement;
};
LigeoFeaturesAPI.setShowBirdsEyeNavigationElement=function(_493){
LigeoFeaturesAPI.showBirdsEyeNavigationElement=_493;
};
LigeoFeaturesAPI.isShow3dNavigationElement=function(){
return LigeoFeaturesAPI.show3dNavigationElement;
};
LigeoFeaturesAPI.setShow3dNavigationElement=function(_494){
LigeoFeaturesAPI.show3dNavigationElement=_494;
};
LigeoFeaturesAPI.isRadiusSearchElement=function(){
return LigeoFeaturesAPI.showRadiusSearchElement;
};
LigeoFeaturesAPI.setRadiusSearchElement=function(_495){
LigeoFeaturesAPI.showRadiusSearchElement=_495;
};
LigeoFeaturesAPI.disableMapNavigator=function(){
LigeoFeaturesAPI.myDisableMapNavigator=true;
};
LigeoFeaturesAPI.enableMapNavigator=function(){
LigeoFeaturesAPI.myDisableMapNavigator=false;
};
LigeoFeaturesAPI.isMapNavigatorDisabled=function(){
return LigeoFeaturesAPI.myDisableMapNavigator;
};
LigeoFeaturesAPI.disableTermsAndConditions=function(){
LigeoFeaturesAPI.myDisableTermsAndConditions=true;
};
LigeoFeaturesAPI.enableTermsAndConditions=function(){
LigeoFeaturesAPI.myDisableTermsAndConditions=false;
};
LigeoFeaturesAPI.isTermsAndConditionsDisabled=function(){
return LigeoFeaturesAPI.myDisableTermsAndConditions;
};
LigeoFeaturesAPI.getUsingBoldRouteInstructions=function(){
return this.usingBoldRouteInstructions;
};
LigeoFeaturesAPI.setUsingBoldRouteInstructions=function(_496){
this.usingBoldRouteInstructions=_496;
};
LigeoFeaturesAPI.closeOnMouseOutFromBalloonOnly=function(){
var _497=document.getElementById(LigeoBalloon.getHtmlTopLevelBalloon());
_497.onmouseout=function(){
LigeoVarUtils.HideOnMouseOut(this,event);
};
_497.onmouseover=function(){
LigeoVarUtils.ShowOnMouseOver(this);
};
};
LigeoFeaturesAPI.closeOnMouseOutFromBalloonOrNumberedIcon=function(){
LigeoFeaturesAPI.enableHideMapBalloonOnMouseout();
LigeoAPI.getLigeoMap().getVEMap().AttachEvent("onmouseout",LigeoAPI.closeBalloon);
LigeoFeaturesAPI.closeOnMouseOutFromBalloonOnly();
};
LigeoFeaturesAPI.setOpenBalloonsOnClick=function(_498){
LigeoFeaturesAPI.openBaloonsOnClick=_498;
};
LigeoFeaturesAPI.isOpenBaloonsOnClick=function(){
return LigeoFeaturesAPI.openBaloonsOnClick;
};
LigeoFeaturesAPI.setVEDistanceUnitsToMiles=function(){
LigeoFeaturesAPI.myMapDistanceUnits=VEDistanceUnit.Miles;
LigeoFeaturesAPI.myRouteDistanceUnits=VERouteDistanceUnit.Mile;
};
LigeoFeaturesAPI.setVEMapDistanceUnitsToKMs=function(){
LigeoFeaturesAPI.myMapDistanceUnits=VEDistanceUnit.Kilometers;
LigeoFeaturesAPI.myRouteDistanceUnits=VERouteDistanceUnit.Kilometer;
};
LigeoFeaturesAPI.getMapDistanceUnits=function(){
if(LigeoVarUtils.isNullOrEmpty(LigeoFeaturesAPI.myMapDistanceUnits)){
LigeoFeaturesAPI.myMapDistanceUnits=VEDistanceUnit.Miles;
}
return LigeoFeaturesAPI.myMapDistanceUnits;
};
LigeoFeaturesAPI.getRouteDistanceUnits=function(){
if(LigeoVarUtils.isNullOrEmpty(LigeoFeaturesAPI.myRouteDistanceUnits)){
LigeoFeaturesAPI.myRouteDistanceUnits=VERouteDistanceUnit.Mile;
}
return LigeoFeaturesAPI.myRouteDistanceUnits;
};
LigeoFeaturesAPI.hide3dNavigationElement=function(){
alert("LigeoFeaturesAPI.hide3dNavigationElement has been depricated. Use LigeoFeaturesAPI.setShow3dNavigationElement instead.");
};
LigeoFeaturesAPI.hideBirdsEyeNavigationElement=function(){
alert("LigeoFeaturesAPI.hideBirdsEyeNavigationElement has been depricated. Use LigeoFeaturesAPI.setShowBirdsEyeNavigationElement instead.");
};
LigeoFeaturesAPI.useBoldKeywordsForRoute=function(){
this.setUsingBoldRouteInstructions(true);
};
LigeoFeaturesAPI.includeTotalDistanceInRoute=function(){
LigeoFeaturesAPI.myIncludeTotalDistanceInRoute=true;
};
LigeoFeaturesAPI.removeTotalDistanceInRoute=function(){
LigeoFeaturesAPI.myIncludeTotalDistanceInRoute=false;
};
LigeoFeaturesAPI.setZoomFromDefaultToMapGridThresholdEnabled=function(_499){
LigeoFeaturesAPI.isZoomFromDefaultToMapGridThresholdEnabled=_499;
};
LigeoFeaturesAPI.setZoomFromDefaultToMapGridThresholdEnabled=function(_49a){
LigeoFeaturesAPI.isZoomFromDefaultToMapGridThresholdEnabled=_49a;
};
LigeoFeaturesAPI.setMapTermsParentDiv=function(_49b){
LigeoAPI.getLigeoMap().myMapTermsParentDiv=_49b;
};
LigeoFeaturesAPI.enableRouteMapCustomIcons=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomIcons=true;
};
LigeoFeaturesAPI.disableRouteMapCustomIcons=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomIcons=false;
};
LigeoFeaturesAPI.enableRouteMapCustomStartIcon=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomStartIcon=true;
};
LigeoFeaturesAPI.disableRouteMapCustomStartIcon=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomStartIcon=false;
};
LigeoFeaturesAPI.enableRouteMapCustomEndIcon=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomEndIcon=true;
};
LigeoFeaturesAPI.disableRouteMapCustomEndIcon=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomEndIcon=false;
};
LigeoFeaturesAPI.enableRouteMapCustomWaypointIcon=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomWaypointIcon=true;
};
LigeoFeaturesAPI.disableRouteMapCustomWaypointIcon=function(){
LigeoFeaturesAPI.myEnableRouteMapCustomWaypointIcon=false;
};
LigeoFeaturesAPI.displayParsedAddressInFullAddressField=function(){
LigeoFeaturesAPI.showDisplayParsedAddressAsFullAddress=true;
};
LigeoFeaturesAPI.doNotDisplayParsedAddressInFullAddressField=function(){
LigeoFeaturesAPI.showDisplayParsedAddressAsFullAddress=false;
};
LigeoFeaturesAPI.includeFormElementsInGridSearch=function(){
LigeoFeaturesAPI.myIncludeFormElementsInGridSearch=true;
};
LigeoFeaturesAPI.doNotIncludeFormElementsInGridSearch=function(){
LigeoFeaturesAPI.myIncludeFormElementsInGridSearch=false;
};
LigeoFeaturesAPI.useFuzzyGeocodingCandidates=true;
LigeoFeaturesAPI.setShowResultsCenterLocation=function(_49c){
LigeoFeaturesAPI.showResultsCenterLocation=_49c;
};
LigeoFeaturesAPI.isShowResultsCenterLocation=function(){
return LigeoFeaturesAPI.showResultsCenterLocation;
};
LigeoFeaturesAPI.setShowResultsLocations=function(_49d){
LigeoFeaturesAPI.showResultsLocations=_49d;
};
LigeoFeaturesAPI.isShowResultsLocations=function(){
return LigeoFeaturesAPI.showResultsLocations;
};
LigeoFeaturesAPI.setShowRouteCenterLocation=function(_49e){
LigeoFeaturesAPI.showRouteCenterLocation=_49e;
};
LigeoFeaturesAPI.isShowRouteCenterLocation=function(){
return LigeoFeaturesAPI.showRouteCenterLocation;
};
LigeoFeaturesAPI.setShowRouteOtherLocations=function(_49f){
LigeoFeaturesAPI.showRouteOtherLocations=_49f;
};
LigeoFeaturesAPI.isShowRouteOtherLocations=function(){
return LigeoFeaturesAPI.showRouteOtherLocations;
};
LigeoFeaturesAPI.setShowDrillCenterLocation=function(_4a0){
LigeoFeaturesAPI.showDrillCenterLocation=_4a0;
};
LigeoFeaturesAPI.isShowDrillCenterLocation=function(){
return LigeoFeaturesAPI.showDrillCenterLocation;
};
LigeoFeaturesAPI.setShowDrillOtherLocations=function(_4a1){
LigeoFeaturesAPI.showDrillOtherLocations=_4a1;
};
LigeoFeaturesAPI.isShowDrillOtherLocations=function(){
return LigeoFeaturesAPI.showDrillOtherLocations;
};
LigeoFeaturesAPI.setExcludeNavAreaFromGrid=function(_4a2){
LigeoFeaturesAPI.excludeNavAreaFromGrid=_4a2;
};
LigeoFeaturesAPI.isExcludeNavAreaFromGrid=function(){
return LigeoFeaturesAPI.excludeNavAreaFromGrid;
};
dojo.provide("com.infonow.ligeo.env.LigeoProperties");
function LigeoProperties(){
};
LigeoProperties.ligeo_route_startLabel="Start at ";
LigeoProperties.ligeo_route_endLabel="Arrive at ";
LigeoProperties.ligeo_route_totalDistanceLabel="";
dojo.provide("com.infonow.ligeo.route.LigeoRoute");
function LigeoRoute(_4a3,_4a4){
this.myRouteLocations=[];
this.myStartLocation=null;
this.myEndLocation=null;
this.myWaypointsHeader="Step";
this.myInstructionsHeader="Instruction";
this.myDistancesHeader="Distance";
this.myTimeHeader="Time";
this.myType=VERouteType.Shortest;
this.myRouteStartIcon="mapicon_start.gif";
this.myRouteEndIcon="mapicon_end.gif";
this.myNumberedIconPrefix="no{0}.gif";
this.clearRoutes=function(){
this.myRouteLocations=[];
this.myStartLocation=null;
this.myEndLocation=null;
};
};
LigeoRoute.prototype.getRouteLocations=function(){
return this.myRouteLocations;
};
LigeoRoute.prototype.getLocale=function(){
alert("LigeoRoute.prototype.getLocale has been depricated. Use LigeoEnvironment.getMapLocale instead.");
};
LigeoRoute.prototype.setLocale=function(_4a5){
alert("LigeoRoute.prototype.setLocale has been depricated. Use LigeoEnvironment.setMapLocale instead.");
};
LigeoRoute.prototype.getStartLocation=function(){
return this.myStartLocation;
};
LigeoRoute.prototype.setStartLocation=function(_4a6){
this.myStartLocation=_4a6;
};
LigeoRoute.prototype.getEndLocation=function(){
return this.myEndLocation;
};
LigeoRoute.prototype.setEndLocation=function(_4a7){
this.myEndLocation=_4a7;
};
LigeoRoute.prototype.getWaypointsHeader=function(){
return this.myWaypointsHeader;
};
LigeoRoute.prototype.setWaypointsHeader=function(_4a8){
this.myWaypointsHeader=_4a8;
};
LigeoRoute.prototype.getInstructionsHeader=function(){
return this.myInstructionsHeader;
};
LigeoRoute.prototype.setInstructionsHeader=function(_4a9){
this.myInstructionsHeader=_4a9;
};
LigeoRoute.prototype.getDistancesHeader=function(){
return this.myDistancesHeader;
};
LigeoRoute.prototype.setDistancesHeader=function(_4aa){
this.myDistancesHeader=_4aa;
};
LigeoRoute.prototype.getRouteStartIcon=function(){
return this.myRouteStartIcon;
};
LigeoRoute.prototype.setRouteStartIcon=function(_4ab){
this.myRouteStartIcon=_4ab;
};
LigeoRoute.prototype.getRouteEndIcon=function(){
return this.myRouteEndIcon;
};
LigeoRoute.prototype.setRouteEndIcon=function(_4ac){
this.myRouteEndIcon=_4ac;
};
LigeoRoute.prototype.getNumberedIconPrefix=function(){
return this.myNumberedIconPrefix;
};
LigeoRoute.prototype.setNumberedIconPrefix=function(_4ad){
this.myNumberedIconPrefix=_4ad;
};
LigeoRoute.prototype.renderRoute=function(map){
var _4af=this.getRouteLocations();
var _4b0=new Array();
for(x=0;x<_4af.length;x++){
if(!LigeoVarUtils.isNull(_4af[x])){
var _4b1=_4af[x];
if(isNaN(_4b1.getLatitude())||isNaN(_4b1.getLongitude())){
_4b0.push(_4b1.getAddressString());
}else{
_4b0.push(_4b1.getVELatLong());
}
}
}
var _4b2=new VERouteOptions;
_4b2.RouteCallback=LigeoRoute.renderRouteCallback;
_4b2.DistanceUnit=LigeoFeaturesAPI.getRouteDistanceUnits();
_4b2.ShowDisambiguation=false;
_4b2.ShowErrorMessages=false;
if(LigeoEnvironment.getMapLocale()=="en-AU"||LigeoEnvironment.getMapLocale()=="en-CA"||LigeoEnvironment.getMapLocale()=="en-IN"||LigeoEnvironment.getMapLocale()=="en-GB"||LigeoEnvironment.getMapLocale()=="es-MX"||LigeoEnvironment.getMapLocale()=="es-US"){
_4b2.UseMWS=true;
}else{
_4b2.UseMWS=false;
}
_4b2.RouteMode=VERouteMode.Driving;
_4b2.UseTraffic=true;
_4b2.SetBestMapView=true;
if(LigeoVarUtils.isNotNullOrEmpty(_4b0)&&_4b0.length>0){
map.getVEMap().GetDirections(_4b0,_4b2);
}
map.renderMap();
};
LigeoRoute.renderRouteCallback=function(_4b3){
if(LigeoFeaturesAPI.myEnableRouteMapCustomIcons){
LigeoAPI.getLigeoRoute().renderCustomMapIcons();
}
LigeoAPI.getLigeoRoute().adjustRouteMap(_4b3);
LigeoAPI.getLigeoRoute().renderRouteTable(_4b3);
LigeoAPI.getLigeoMap().show();
};
LigeoRoute.prototype.renderCustomMapIcons=function(){
var _4b4=this.StartLocation;
var map=LigeoAPI.getLigeoMap().getVEMap();
var _4b6=new Array();
var _4b7=new Array();
for(var i=0;i<map._dm.veroutecache.length;i++){
var _4b9=new VEShape(VEShapeType.Pushpin,map._dm.veroutecache[i].LatLong);
if(i==0&&LigeoFeaturesAPI.myEnableRouteMapCustomStartIcon){
_4b9.SetCustomIcon(LigeoEnvironment.getImagePath(this.getRouteStartIcon()));
}else{
if(i==map._dm.veroutecache.length-1&&LigeoFeaturesAPI.myEnableRouteMapCustomEndIcon){
_4b9.SetCustomIcon(LigeoEnvironment.getImagePath(this.getRouteEndIcon()));
}else{
if(LigeoFeaturesAPI.myEnableRouteMapCustomWaypointIcon){
_4b9.SetCustomIcon(LigeoEnvironment.getImagePath(this.getNumberedIconPrefix().replace("{0}",(i))));
}
}
}
_4b6.push(_4b9);
}
for(var i=0;i<_4b6.length;i++){
map.AddShape(_4b6[i]);
}
};
LigeoRoute.prototype.adjustRouteMap=function(_4ba){
LigeoAPI.getLigeoMap().myOriginalZoom=LigeoAPI.getLigeoMap().getVEMap().GetZoomLevel();
LigeoAPI.getLigeoMap().myOriginalCenter=LigeoAPI.getLigeoMap().getVEMap().GetCenter();
};
LigeoRoute.translateRouteDistanceUnit=function(){
var _4bb="";
switch(LigeoFeaturesAPI.getRouteDistanceUnits()){
case "Mile":
_4bb="mi";
break;
case "Kilometer":
_4bb="km";
break;
default:
_4bb="mi";
}
return _4bb;
};
LigeoRoute.prototype.renderRouteTable=function(_4bc){
var _4bd="";
var _4be=_4bc.RouteLegs[0].Itinerary.Items.length;
var _4bf=_4bc.RouteLegs[0].Itinerary.Items;
var _4c0=LigeoRoute.translateRouteDistanceUnit();
var _4c1=this.createDistanceText(this.formatDist(_4bc.Distance),_4c0);
var _4c2=this.formatTime(_4bc.Time);
var _4c3;
if(LigeoVarUtils.isNotNull(document.getElementById("ligeo-route"))){
var _4c4=LigeoAPI.getLigeoRoute().getRouteLocations();
_4c3="";
if(!LigeoFeaturesAPI.areRouteTablePushpinsDisabled()){
_4c3=this.getPushpin(this.getRouteStartIcon());
_4c3=_4c3.replace("/>","alt='Location Start Point' title='Location Start Point' />");
}
if(!LigeoVarUtils.isNullOrEmpty(LigeoAddressParser.getParsedAddress())){
_4bd+=this.renderInstruction(0,_4be,_4c3,LigeoEnvironment.translateLocaleText("first")+" "+LigeoAddressParser.getParsedAddress(),"","");
}else{
if(LigeoVarUtils.isNullOrEmpty(_4c4[0].Address)&&_4c4[0].getAddressString()!=_4c4[0].getCountryIso2()){
_4bd+=this.renderInstruction(0,_4be,_4c3,LigeoEnvironment.translateLocaleText("first")+" "+_4c4[0].getAddressString(),"","");
}else{
_4bd+=this.renderInstruction(0,_4be,_4c3,LigeoEnvironment.translateLocaleText("first")+" "+LigeoEnvironment.translateLocaleText("yourSelectedLocation"),"");
}
}
_4bd+=this.renderInstruction(0,_4be,"",_4bf[0].Text,this.createDistanceText(this.formatDist(_4bf[0].Distance),_4c0),this.formatTime(_4bf[0].Time));
for(var i=1;i<_4be-1;i++){
if(LigeoFeaturesAPI.areRouteTablePushpinsDisabled()){
_4c3=i+".";
}else{
_4c3=this.getPushpin(this.getNumberedIconPrefix().replace("{0}",i));
_4c3=_4c3.replace("/>","alt='Instruction"+(i)+"' title='Instruction "+(i)+"' />");
}
_4bd+=this.renderInstruction(i,_4be,_4c3,_4bf[i].Text,this.createDistanceText(this.formatDist(_4bf[i].Distance),_4c0),this.formatTime(_4bf[i].Time));
}
var _4c6="";
var _4c7="";
if(LigeoFeaturesAPI.myIncludeTotalDistanceInRoute){
_4c6=_4c1;
_4c7=_4c2;
}
_4c3="";
if(!LigeoFeaturesAPI.areRouteTablePushpinsDisabled()){
_4c3=this.getPushpin(this.getRouteEndIcon());
_4c3=_4c3.replace("/>","alt='Location End Point' title='Location End Point' />");
}
var _4c8="";
if(LigeoVarUtils.isNullOrEmpty(_4c4[1].Address)){
_4c8=LigeoEnvironment.translateLocaleText("last")+" "+_4c4[1].getAddressString();
}else{
_4c8=LigeoEnvironment.translateLocaleText("last");
}
_4bd+=this.renderInstruction(_4be,_4be,_4c3,_4c8,_4c6,_4c7);
routeTable="<table id=\"ligeo-routeTable\">";
routeTable+=this.renderHeaderFooter();
routeTable+="<tbody>"+_4bd+"</tbody>";
routeTable+="</table>";
document.getElementById("ligeo-route").innerHTML=routeTable;
}
if(LigeoVarUtils.isNotNull(document.getElementById("ligeo-route-totalDistance"))){
document.getElementById("ligeo-route-totalDistance").innerHTML=_4c1;
}
if(LigeoVarUtils.isNotNull(document.getElementById("ligeo-route-totalTime"))){
document.getElementById("ligeo-route-totalTime").innerHTML=_4c2;
}
};
LigeoRoute.prototype.getPushpin=function(_4c9){
var _4ca="";
_4ca="<img src='"+LigeoEnvironment.getImagePath(_4c9)+"'/>";
return _4ca;
};
LigeoRoute.prototype.createDistanceText=function(_4cb,_4cc){
var _4cd="";
if(LigeoVarUtils.isNotNullOrEmpty(_4cb)){
_4cd=_4cb+" "+_4cc;
}
return _4cd;
};
LigeoRoute.prototype.renderHeaderFooter=function(){
var _4ce="";
_4ce+="<thead>";
_4ce+="<tr id=\"ligeo-row-header\">";
_4ce+="<th class=\"ligeo-waypoint\">";
_4ce+="<span>"+this.myWaypointsHeader+"</span>";
_4ce+="</th>";
_4ce+="<th class=\"ligeo-instruction\">";
_4ce+="<span>"+this.myInstructionsHeader+"</span>";
_4ce+="</th>";
_4ce+="<th class=\"ligeo-distance\">";
_4ce+="<span>"+this.myDistancesHeader+"</span>";
_4ce+="</th>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<th class=\"ligeo-time\">";
_4ce+="<span>"+this.myTimeHeader+"</span>";
_4ce+="</th>";
}
_4ce+="</tr>";
_4ce+="</thead>";
if(LigeoLayoutAPI.getRouteTableFooterOption()!="NONE"){
_4ce+="<tfoot>";
}
switch(LigeoLayoutAPI.getRouteTableFooterOption()){
case "VIEW_2_ROW":
_4ce+="<tr id=\"ligeo-foot-2row1\">";
_4ce+="<td class=\"ligeo-waypoint\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-totalDistance\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalDist")+"</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span id=\"ligeo-route-totalDistance\">## mi</span>&nbsp;";
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<tr id=\"ligeo-foot-2row2\">";
_4ce+="<td class=\"ligeo-waypoint\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-totalTime\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalTime")+"</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span id=\"ligeo-route-totalTime\">## min.</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
_4ce+="</tr>";
}
break;
case "VIEW_2_ROW_W_TIME":
_4ce+="<tr id=\"ligeo-foot-2row1\">";
_4ce+="<td class=\"ligeo-waypoint\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-totalDistance\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalDist")+"</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span id=\"ligeo-route-totalDistance\">## mi</span>&nbsp;";
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
_4ce+="<tr id=\"ligeo-foot-2row2\">";
_4ce+="<td class=\"ligeo-waypoint\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-totalTime\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalTime")+"</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span id=\"ligeo-route-totalTime\">## min.</span>&nbsp;";
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
break;
case "VIEW_3_COL":
_4ce+="<tr id=\"ligeo-foot-3col\">";
_4ce+="<td class=\"ligeo-waypoint\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-total\">";
_4ce+="<span>Total</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span id=\"ligeo-route-totalDistance\">## mi</span>&nbsp;";
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span id=\"ligeo-route-totalTime\">## min.</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
break;
case "VIEW_3_COL_W_TIME":
_4ce+="<tr id=\"ligeo-foot-3col\">";
_4ce+="<td class=\"ligeo-total\">";
_4ce+="<span>Total</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span id=\"ligeo-route-totalTime\">## min.</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span id=\"ligeo-route-totalDistance\">## mi</span>&nbsp;";
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
break;
case "VIEW_4_COL":
_4ce+="<tr id=\"ligeo-foot-4col\">";
_4ce+="<td class=\"ligeo-totalDistance\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalDist")+":</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-distance\">";
_4ce+="<span id=\"ligeo-route-totalDistance\">## mi</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-totalTime\">";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<span class=\"ligeo-time\">"+LigeoEnvironment.translateLocaleText("totalTime")+":</span>&nbsp;";
}
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span id=\"ligeo-route-totalTime\">## min.</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
break;
case "VIEW_1_ROW_W_TIME":
_4ce+="<tr id=\"ligeo-foot-1row\">";
_4ce+="<td class=\"ligeo-totalDistance\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalDist")+":</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-totalTime\">";
_4ce+="<span>"+LigeoEnvironment.translateLocaleText("totalTime")+":</span>&nbsp;";
_4ce+="</td>";
_4ce+="<td class=\"ligeo-total\">";
_4ce+="<span id=\"ligeo-route-totalDistance\">## mi</span>&nbsp;";
_4ce+="<span id=\"ligeo-route-totalTime\">## min.</span>&nbsp;";
_4ce+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4ce+="<td class=\"ligeo-time\">";
_4ce+="<span>&nbsp;</span>&nbsp;";
_4ce+="</td>";
}
_4ce+="</tr>";
break;
}
if(LigeoLayoutAPI.getRouteTableFooterOption()!="NONE"){
_4ce+="</tfoot>";
}
return _4ce;
};
LigeoRoute.prototype.renderInstruction=function(_4cf,_4d0,_4d1,_4d2,_4d3,_4d4){
var _4d5="";
if(LigeoFeaturesAPI.getUsingBoldRouteInstructions()){
_4d2=this.convertToBoldKeywords(_4d2);
}
if(LigeoVarUtils.isNotNullOrEmpty(this.rowOddEven)){
this.rowOddEven=(this.rowOddEven.indexOf("ligeo-odd")>=0)?"ligeo-even":"ligeo-odd";
}else{
this.rowOddEven="ligeo-odd";
}
if(_4cf==0){
this.rowOddEven+=" first";
}else{
if(_4cf==_4d0){
this.rowOddEven+=" last";
}
}
_4d5+="<tr id=\"ligeo-row"+_4cf+"\" class=\""+this.rowOddEven+"\">";
_4d5+="<th class=\"ligeo-waypoint\">";
_4d5+="<span>"+_4d1+"</span><br/>";
_4d5+="</th>";
_4d5+="<td class=\"ligeo-instruction\">";
_4d5+="<span>"+_4d2+"</span><br/>";
_4d5+="</td>";
_4d5+="<td class=\"ligeo-distance\">";
_4d5+="<span>"+_4d3+"</span><br/>";
_4d5+="</td>";
if(LigeoLayoutAPI.getDisplayTimeInRoute()){
_4d5+="<td class=\"ligeo-time\">";
_4d5+="<span>"+_4d4+"</span><br/>";
_4d5+="</td>";
}
_4d5+="</tr>";
return _4d5;
};
LigeoRoute.prototype.convertToBoldKeywords=function(_4d6){
var _4d7="";
_4d7="<b>"+_4d6.replace(/\b(Take|Turn|Depart|Bear|onto|for|and|then|Keep|follow|signs|toward|At|exit|ramp|stay|on|to|Road name changes|Arrive|Start)\b/gi,"</b>$1<b>")+"</b><br/>";
return _4d7;
};
LigeoRoute.prototype.formatTime=function(time){
var min=parseFloat(time)/60;
min=Math.floor(min);
var sec=parseFloat(time)-(min*60);
var time="";
if(min>0){
time=min+"min ";
}
time+=sec+"sec";
return time;
};
LigeoRoute.prototype.formatDist=function(dist){
dist=parseFloat(dist*10);
dist=Math.round(dist)/10;
return dist;
};
dojo.provide("com.infonow.ligeo.browser.LigeoBrowserCompatability");
function LigeoBrowserCompatability(){
};
LigeoBrowserCompatability.isIe=function(){
if(document.all){
return true;
}else{
return false;
}
};
dojo.provide("com.infonow.ligeo.service.LigeoAjaxService");
function LigeoAjaxService(){
var that=this;
this.activeXmlHttpRequests=new Object();
this.ajaxHtmlMessages=function(_4dd,_4de){
var _4df=that.createXMLHttpRequest();
function populateHtmlMessages(){
try{
if(_4df.readyState==4){
if(_4df.status==200){
_4de.innerHTML=_4df.responseText;
var _4e0=_4de.getElementsByTagName("script");
for(var i=0;i<_4e0.length;i++){
eval(_4e0[i].text);
}
if(_4e0.length>0){
LigeoAPI.refresh();
}
}else{
if(_4df.status!=0){
LigeoLogger.error("Failed to make request: "+_4df.toString());
}
}
}
}
catch(e){
if(e.name!="NS_ERROR_NOT_AVAILABLE"){
LigeoLogger.error("The error is: "+e.toString());
}
}
};
if(typeof _4dd=="string"){
_4df.open("GET",_4dd,true);
}else{
var _4e2="";
var _4e3=_4dd.elements;
for(var i=0;i<_4e3.length;i++){
if(_4e3[i].type!="checkbox"&&_4e3[i].type!="radio"){
_4e2+=_4e3[i].name+"=";
_4e2+=LigeoVarUtils.URLEncode(_4e3[i].value)+"&";
}else{
if(_4e3[i].checked==true&&_4e3[i].type=="radio"){
_4e2+=_4e3[i].name+"=";
_4e2+=LigeoVarUtils.URLEncode(_4e3[i].value)+"&";
}else{
if(_4e3[i].checked==true){
_4e2+=_4e3[i].name+"=";
_4e2+=true+"&";
}
}
}
}
_4df.open(_4dd.method,_4dd.action,true);
_4df.setRequestHeader("Content-type","application/x-www-form-urlencoded");
}
var _4e5=that.activeXmlHttpRequests[_4de.id];
if(LigeoVarUtils.isNotNull(_4e5)&&_4e5.readyState!=4){
_4e5.abort();
}
that.activeXmlHttpRequests[_4de.id]=_4df;
_4df.onreadystatechange=populateHtmlMessages;
_4df.send(_4e2);
};
this.createXMLHttpRequest=function(){
try{
return new ActiveXObject("Msxml2.XMLHTTP");
}
catch(error){
}
try{
return new ActiveXObject("Microsoft.XMLHTTP");
}
catch(error){
}
try{
return new XMLHttpRequest();
}
catch(error){
}
return null;
};
this.replaceNodes=function(_4e6,_4e7){
};
this.parseXmlToDom=function(_4e8){
var _4e9=null;
if(LigeoBrowserCompatability.isIe){
_4e9=new ActiveXObject("Microsoft.XMLDOM");
_4e9.async="false";
_4e9.loadXML(_4e8);
}else{
try{
parser=new DOMParser();
_4e9=parser.parseFromString(_4e8,"text/xml");
}
catch(error){
LigeoLogger.error(error);
}
}
return _4e9;
};
};
dojo.provide("com.infonow.ligeo.browser.LigeoPrinter");
function LigeoPrinter(){
};
LigeoPrinter.PRINTABLE_ID_SUFFIX="-printable";
LigeoPrinter.PRINTABLE_ID_CLASS="ligeo-printable-map";
LigeoPrinter.ctrlPressed;
LigeoPrinter.pPressed;
LigeoPrinter.capturePrintKeys=function(){
if(document.addEventListener){
document.addEventListener("keyup",LigeoPrinter.capturePrint,false);
document.addEventListener("keydown",LigeoPrinter.capturePrint,false);
}else{
if(document.attachEvent){
document.attachEvent("onkeyup",LigeoPrinter.capturePrint);
document.attachEvent("onkeydown",LigeoPrinter.capturePrint);
}else{
document.onkeyup=LigeoPrinter.capturePrint;
document.onkeydown=LigeoPrinter.capturePrint;
}
}
};
LigeoPrinter.capturePrint=function(e){
var code;
if(!e){
var e=window.event;
}
if(e.keyCode){
code=e.keyCode;
}else{
if(e.which){
code=e.which;
}
}
type=e.type;
switch(type){
case "keydown":
if(code==17){
LigeoPrinter.ctrlPressed="true";
}else{
if(code==80||code==112){
LigeoPrinter.pPressed="true";
}
}
break;
case "keyup":
if(code==17){
LigeoPrinter.ctrlPressed=null;
}else{
if(code==80||code==112){
LigeoPrinter.pPressed=null;
}
}
break;
}
if(LigeoPrinter.ctrlPressed&&LigeoPrinter.pPressed){
LigeoPrinter.print();
}
};
LigeoPrinter.print=function(_4ec){
insertPrintCss();
if(!LigeoBrowserCompatability.isIe()&&!document.getElementById(LigeoAPI.getLigeoMap().getId()+LigeoPrinter.PRINTABLE_ID_SUFFIX)){
var _4ed="<div id='"+LigeoAPI.getLigeoMap().getId()+LigeoPrinter.PRINTABLE_ID_SUFFIX+"' class='"+LigeoPrinter.PRINTABLE_ID_CLASS+" '></div>";
var _4ee=document.getElementById(LigeoAPI.getLigeoMap().getId());
LigeoDOMUtils.insertAdjacentHTML("afterEnd",_4ed,_4ee);
}
if(!LigeoBrowserCompatability.isIe()){
var _4ef=new VEPrintableMap(LigeoAPI.getLigeoMap().getId(),LigeoAPI.getLigeoMap().getId()+LigeoPrinter.PRINTABLE_ID_SUFFIX,LigeoAPI.getLigeoMap().getVEMap());
_4ef.Print();
}
if(_4ec){
window.print();
}
};
function insertPrintCss(){
var _4f0;
if(!LigeoBrowserCompatability.isIe()){
_4f0="#"+LigeoAPI.getLigeoMap().getId()+"{ display: none; } #"+LigeoAPI.getLigeoMap().getId()+LigeoPrinter.PRINTABLE_ID_SUFFIX+"{ display: block; }";
}else{
_4f0="#MSVE_navAction_container div {display: none}";
}
dojo.html.insertCssText(_4f0,null,null,"print");
};
function VEPrintableMap(_4f1,_4f2,_4f3){
var _4f4="http://www.w3.org/2000/svg";
var _4f5="http://www.w3.org/1999/xlink";
var _4f6=null;
var _4f7=document.getElementById(_4f1);
var _4f8=document.getElementById(_4f2);
var _4f9=_4f3;
_4f8.setAttribute("style",_4f7.getAttribute("style"));
DetermineBrowser();
function DetermineBrowser(){
if(navigator.appVersion.indexOf("MSIE")!=-1){
if(parseFloat(navigator.appVersion.split("MSIE")[1])>=5.5){
_4f6="msie";
}
}else{
if(navigator.userAgent.indexOf("Firefox")!=-1){
if(parseInt(navigator.userAgent.charAt(navigator.userAgent.indexOf("Firefox")+8))>=1){
_4f6="firefox";
}
}
}
};
function GetTiles(){
var _4fa=new Array();
var _4fb=_4f7.getElementsByTagName("img");
for(var i=0;i<_4fb.length;i++){
if((_4fb[i].id!=null&&_4fb[i].id!="")||_4fb[i].className=="MSVE_PoweredByLogo"){
continue;
}
var _4fd=document.createElementNS(_4f4,"image");
_4fd.setAttributeNS(null,"x",_4fb[i].offsetLeft);
_4fd.setAttributeNS(null,"y",_4fb[i].offsetTop);
_4fd.setAttributeNS(null,"width",_4fb[i].clientWidth);
_4fd.setAttributeNS(null,"height",_4fb[i].clientHeight);
_4fd.setAttributeNS(null,"transform","translate("+_4fb[i].parentNode.offsetLeft+","+_4fb[i].parentNode.offsetTop+")");
_4fd.setAttributeNS(null,"opacity",_4fb[i].style.opacity);
_4fd.setAttributeNS(_4f5,"xlink:href",_4fb[i].src);
_4fa.push(_4fd);
}
return _4fa;
};
function GetPins(_4fe){
var _4ff=_4f7.getElementsByTagName("a");
for(var i=0;i<_4ff.length;i++){
var _501=GetPushpinShape(_4ff[i]);
_4fe.push(_501);
}
return _4fe;
};
function GetSvgShapes(pins){
var _503=new Array();
for(var i=0;i<_4f9.GetShapeLayerCount();i++){
if(_4f9.GetShapeLayerByIndex(i).Visibility!=true){
continue;
}
for(var x=0;x<_4f9.GetShapeLayerByIndex(i).GetShapeCount();x++){
var _506=_4f9.GetShapeLayerByIndex(i).GetShapeByIndex(x);
if(_506.Visibility!=true){
continue;
}
if(_506.Type=="Polyline"||_506.Type=="Polygon"){
for(var y=0;y<_506.Primitives.length;y++){
_503.push(GetPolyLine(_506.Primitives[y].iid));
if(_506.Primitives[y]._iconElement!=null){
var _508=_506.GetCustomIcon().Image;
if(!_508){
_508=_506.IconUrl;
}
var _509=GetPushpinShape(_506.Primitives[0]._iconElement,_508);
pins.push(_509);
}
}
}else{
if(!Msn.VE.V6Control){
continue;
}else{
if(_506.Type=="Point"&&i>0){
var _508=_506.GetCustomIcon().Image;
if(!_508){
_508=_506.IconUrl;
}
var _509=GetPushpinShape(_506.Primitives[0]._iconElement,_508);
pins.push(_509);
}else{
var _50a=document.getElementById(_506.Primitives[0].iid);
if(!_50a){
continue;
}
var _508=_506.GetCustomIcon().Image;
if(!_508){
_508=_506.IconUrl;
}
var _509=_50a!=null?GetPushpinShape(_50a,_508):null;
pins.push(_509);
}
}
}
}
}
if(document.getElementById("veDDHighlight")!=null){
_503.push(GetPolyLine("veDDHighlight"));
}
return _503;
};
function GetPushpinShape(pin,icon){
var _50d=document.createElementNS(_4f4,"image");
if(!icon){
icon=pin.firstChild.src;
}
_50d.setAttributeNS(null,"x",pin.offsetLeft);
_50d.setAttributeNS(null,"y",pin.offsetTop);
_50d.setAttributeNS(null,"width",pin.clientWidth);
_50d.setAttributeNS(null,"height",pin.clientHeight);
_50d.setAttributeNS(null,"opacity","1");
_50d.setAttributeNS(_4f5,"xlink:href",icon);
if(pin.offsetParent!=null){
_50d.setAttributeNS(null,"transform","translate("+pin.offsetParent.offsetLeft+","+pin.offsetParent.offsetTop+")");
}
return _50d;
};
function GetPolyLine(_50e){
var _50f=document.getElementById(_50e);
var _510=document.createElementNS(_4f4,"polyline");
if(_50f!=null){
_510.setAttributeNS(null,"points",_50f.getAttribute("points"));
_510.setAttributeNS(null,"stroke",_50f.getAttribute("stroke"));
_510.setAttributeNS(null,"stroke-width",_50f.getAttribute("stroke-width"));
_510.setAttributeNS(null,"stroke-linejoin",_50f.getAttribute("stroke-linejoin"));
_510.setAttributeNS(null,"stroke-opacity",_50f.getAttribute("stroke-opacity"));
_510.setAttributeNS(null,"stroke-dasharray",_50f.getAttribute("stroke-dasharray"));
_510.setAttributeNS(null,"fill",_50f.getAttribute("fill"));
_510.setAttributeNS(null,"fill-opacity",_50f.getAttribute("fill-opacity"));
_510.setAttributeNS(null,"style",_50f.getAttribute("style"));
}
return _510;
};
function GetCopyrights(){
var _511=_4f7.lastChild;
var _512=new Array();
for(var i=0;i<6;i++){
_511=_511.previousSibling;
var _514=_511.cloneNode(true);
_514.id=_511.id+"_ff"+i;
_512.push(_514);
}
for(var i=0;i<_4f7.childNodes.length;i++){
if(_4f7.childNodes[i].className=="MSVE_PoweredByLogo"){
_511=_4f7.childNodes[i];
var _514=_511.cloneNode(true);
_514.id=_511.id+"_ff"+_512.length;
_512.push(_514);
break;
}
}
return _512;
};
function WriteSVG(){
var _515=document.createElementNS(_4f4,"svg");
_515.setAttribute("xmlns",_4f4);
_515.setAttribute("xmlns:xlink",_4f5);
_515.setAttribute("version","1.1");
_515.setAttribute("width",_4f7.style.width);
_515.setAttribute("height",_4f7.style.height);
var _516=GetTiles();
for(var i=0;i<_516.length;i++){
_515.appendChild(_516[i]);
}
var _518=new Array();
var _519=GetSvgShapes(_518);
for(var i=0;i<_519.length;i++){
_515.appendChild(_519[i]);
}
var pins=GetPins(_518);
for(var i=0;i<pins.length;i++){
_515.appendChild(pins[i]);
}
while(_4f8.hasChildNodes()){
_4f8.removeChild(_4f8.lastChild);
}
_4f8.appendChild(_515);
var _51b=GetCopyrights();
for(var i=0;i<_51b.length;i++){
_4f8.appendChild(_51b[i]);
}
};
function CloneMap(){
_4f8.style.width=_4f7.style.width;
_4f8.style.height=_4f7.style.height;
_4f8.style.position=_4f7.style.position;
cloneMap=new VEMap(_4f8.id);
cloneMap.LoadMap(_4f9.GetCenter(),_4f9.GetZoomLevel(),_4f9.GetMapStyle(),true,VEMapMode.Mode2D,false);
if(_4f9.m_vetilesourcemanager.m_vetilesources.length>0){
for(var i=0;i<_4f9.m_vetilesourcemanager.m_vetilesources.length;i++){
cloneMap.m_vetilesourcemanager.AddTileSource(_4f9.m_vetilesourcemanager.m_vetilesources[i]);
}
}
if(_4f9._dm.veroutecache.length>0){
var _51d=(_4f9._dm.lasttype==null||_4f9._dm.lasttype=="q")?VERouteType.Quickest:VERouteType.Shortest;
cloneMap.GetRoute(_4f9._dm.veroutecache[0].LatLong,_4f9._dm.veroutecache[_4f9._dm.veroutecache.length-1].LatLong,null,_51d,function(){
cloneMap.SetCenter(_4f9.GetCenter());
});
}
for(var i=0;i<_4f9.pushpins.length;i++){
cloneMap.AddPushpin(_4f9.pushpins[i]);
}
for(var x=0;x<_4f9.GetShapeLayerCount();x++){
if(_4f9.GetShapeLayerByIndex(x).Visibility!=true){
continue;
}
if(x>0){
var _51f=new VEShapeLayer();
cloneMap.AddShapeLayer(_51f);
}
for(var y=0;y<_4f9.GetShapeLayerByIndex(x).GetShapeCount();y++){
var _521=_4f9.GetShapeLayerByIndex(x).GetShapeByIndex(y);
if(_521.Visibility!=true){
continue;
}
var _522=new VEShape(_521.Type,_521.GetPoints());
var _523=_521.GetCustomIcon().Image;
if(_523){
_522.SetCustomIcon(_523);
}
_522.Primitives[0].symbol=_521.Primitives[0].symbol;
if(x>0){
_51f.AddShape(_522);
}else{
cloneMap.AddShape(_522);
}
}
}
_4f9.PanToLatLong(_4f9.GetCenter());
};
function PrintMap(){
switch(_4f6){
case "msie":
CloneMap();
break;
case "firefox":
WriteSVG();
break;
}
};
function TileLayerFix(_524){
var _525=document.getElementById(_524);
var imgs=_525.getElementsByTagName("img");
var divs=_525.getElementsByTagName("div");
var _528=new Array();
var _529=new Array();
for(var i=0;i<imgs.length;i++){
if(imgs[i].clientWidth==256&&imgs[i].clientHeight==256){
_528.push(imgs[i]);
}
}
for(var i=0;i<divs.length;i++){
if(divs[i].filters!=null&&divs[i].filters.length>0&&divs[i].id==""){
_528.push(divs[i]);
}
}
for(var i=0;i<_528.length;i++){
var _52b=_528[i];
if(_52b.longDesc=="matched"){
continue;
}
var _52c=_52b.style.zIndex;
var _52d=_52b;
_529.length=0;
_529.push(_52b);
for(var x=0;x<_528.length;x++){
var _52f=_528[x];
if(x==i){
continue;
}
if(_52b.offsetLeft==_52f.offsetLeft&&_52b.offsetTop==_52f.offsetTop){
_529.push(_52f);
_52c=Math.max(_52c,_52f.style.zIndex);
_528[x].longDesc="matched";
if(_52f.style.zIndex==_52c){
_52d=_52f;
}
}
}
if(_529.length<1){
continue;
}
var _530="http://localhost:8080/veprint/vefix?";
for(var y=0;y<_529.length;y++){
var _532=1;
var url=(_529[y].tagName=="IMG")?_529[y].src:/src=\'(.*)\',.*/.exec(_529[y].style.filter)[1];
if(_529[y].filters!=null&&_529[y].filters.length>0){
for(var z=0;z<_529[y].filters.length;z++){
if(_529[y].filters[z].opacity==null){
continue;
}
_532=_529[y].filters[z].opacity/100;
_529[y].filters[z].Enabled=false;
}
}
_529[y].style.filter="";
_530+="&src="+url+"!"+_529[y].style.zIndex+"!"+_532;
}
if(_52d.tagName=="img"){
_52d.src=_530;
}else{
_52d.outerHTML="<img style='width:256px; height:256px; z-index:"+_52d.style.zIndex+"; position:absolute; top:"+_52d.offsetTop+"px; left:"+_52d.offsetLeft+"px;' src='"+_530+"'/>";
}
}
};
this.Print=PrintMap;
};
dojo.addOnLoad(LigeoPrinter.capturePrintKeys);
dojo.provide("com.infonow.ligeo.address.LigeoAddressParser");
function LigeoAddressParser(){
};
LigeoAddressParser.myParsedAddress=null;
LigeoAddressParser.myFormToSubmit=null;
LigeoAddressParser.myResultElement=null;
LigeoAddressParser.setParsedAddress=function(_535,_536){
if(_535&&_535.indexOf("\\")>-1){
_535=_535.replace("\\"," ");
}
LigeoAddressParser.myParsedAddress=_535;
var _537=document.getElementById(_536);
if(LigeoVarUtils.isNotNullOrEmpty(_537)){
_537.fullAddress.value=_535;
}
};
LigeoAddressParser.getParsedAddress=function(){
return LigeoAddressParser.myParsedAddress;
};
LigeoAddressParser.setFormToSubmit=function(_538){
LigeoAddressParser.myFormToSubmit=_538;
};
LigeoAddressParser.setResultElement=function(_539){
LigeoAddressParser.myResultElement=_539;
};
LigeoAddressParser.parseAddress=function(_53a,_53b){
LigeoAddressParser.setFormToSubmit(_53a);
if(_53b!=null){
LigeoAddressParser.setResultElement(_53b);
}
var _53c=_53a.fullAddress.value;
LigeoAddressParser.addHidden("userInputAddressId","userInputAddress",_53c);
var _53d=_53a.fullAddress.value;
if(LigeoFeaturesAPI.addCountryToFullAddress){
_53d=LigeoVarUtils.addCountryToFullAddress(_53a);
}
if(_53d!=null){
_53d=LigeoAddressParser.preFixFormat(_53d);
}
if(_53d&&_53d.indexOf("\\")>-1){
_53d=_53d.replace("\\"," ");
}
var map=LigeoAPI.getLigeoMap().getVEMap();
try{
results=map.Find(null,_53d,null,null,0,20,false,false,false,false,LigeoAddressParser.findPlace);
}
catch(e){
LigeoAddressParser.findPlace(null,null,null,null,null);
}
return false;
};
LigeoAddressParser.findPlace=function(_53f,_540,_541,_542,_543){
_541=LigeoAddressParser.filterCountries(_541);
if(LigeoLogger.isDebugEnabled()){
LigeoAddressParser.debugVeCandidates(unescape(this.Where),_541);
}
if(LigeoAddressParser.hasCandidates(_541)){
for(var i=0;i<_541.length;i++){
LigeoAddressParser.addHidden("ligeo-candidate-lat-"+i,"candidates["+i+"].coordinate.latitude",_541[i].LatLong.Latitude);
LigeoAddressParser.addHidden("ligeo-candidate-long-"+i,"candidates["+i+"].coordinate.longitude",_541[i].LatLong.Longitude);
LigeoAddressParser.addHidden("ligeo-candidate-addr-"+i,"candidates["+i+"].address.fullAddress",_541[i].Name);
}
}else{
if(_541!=null&&_541.length>0){
LigeoAddressParser.addHidden("ligeo-lat","latitude",_541[0].LatLong.Latitude);
LigeoAddressParser.addHidden("ligeo-long","longitude",_541[0].LatLong.Longitude);
var _545=LigeoAddressParser.postFixFormat(_541[0].Name);
if(LigeoFeaturesAPI.showDisplayParsedAddressAsFullAddress){
LigeoAddressParser.myFormToSubmit.fullAddress.value=_545;
}else{
LigeoAddressParser.addHidden("correctedFullAddressId","correctedFullAddress",_545);
}
LigeoAddressParser.setParsedAddress(_545,null);
}else{
LigeoAddressParser.addHidden("ligeo-lat","latitude","");
LigeoAddressParser.addHidden("ligeo-long","longitude","");
}
}
if(LigeoFeaturesAPI.isSingleLineAsync){
LigeoAPI.ajaxHtmlMessages(LigeoAddressParser.myFormToSubmit,LigeoAddressParser.myResultElement);
}else{
LigeoAddressParser.myFormToSubmit.submit();
}
LigeoAddressParser.clearCandidates();
};
LigeoAddressParser.searchFromLatLon=function(_546,_547){
if(LigeoVarUtils.isNotNullOrEmpty(_546)){
LigeoAddressParser.addHidden("ligeo-lat","latitude",_546.Latitude);
LigeoAddressParser.addHidden("ligeo-long","longitude",_546.Longitude);
var _548="";
if(LigeoFeaturesAPI.showDisplayParsedAddressAsFullAddress){
LigeoAddressParser.myFormToSubmit.fullAddress.value=_548;
}else{
LigeoAddressParser.addHidden("correctedFullAddressId","correctedFullAddress",_548);
}
LigeoAddressParser.setParsedAddress(_548,LigeoAddressParser.myFormToSubmit);
}
LigeoAPI.ajaxHtmlMessages(LigeoAddressParser.myFormToSubmit,_547);
};
LigeoAddressParser.filterCountries=function(_549){
if(_549!=null&&_549.length>0){
var _54a=LigeoConfigurationAPI.getCountryFilterArray();
if(_54a!=null&&_54a.length>0){
for(var i=0;i<_54a.length;i++){
var _54c=_54a[i];
if(_549[0].Name==_54c){
_549=null;
return _549;
}
}
}
}
return _549;
};
LigeoAddressParser.clearCandidates=function(){
var _54d=document.getElementById("ligeo-lat");
LigeoDOMUtils.deleteElement(_54d);
var _54d=document.getElementById("ligeo-long");
LigeoDOMUtils.deleteElement(_54d);
for(var i=0;i<20;i++){
var _54d=document.getElementById("ligeo-candidate-lat-"+i);
LigeoDOMUtils.deleteElement(_54d);
var _54d=document.getElementById("ligeo-candidate-long-"+i);
LigeoDOMUtils.deleteElement(_54d);
var _54d=document.getElementById("ligeo-candidate-addr-"+i);
LigeoDOMUtils.deleteElement(_54d);
}
};
LigeoAddressParser.debugVeCandidates=function(_54f,_550){
var _551=["Interpolated","Rooftop"];
var _552=["None","Good","Ambiguous","UpHierarchy","Modified"];
var _553=["High","Medium","Low"];
var _554="Original Search: "+_54f+"\n\n";
for(var i=0;LigeoVarUtils.isNotNullOrEmpty(_550)&&i<_550.length;i++){
_554+=_550[i].Name;
_554+="\n    Precision: "+_551[_550[i].Precision];
_554+="\n    Match Code: "+_552[_550[i].MatchCode];
_554+="\n    Match Confidence:"+_553[_550[i].MatchConfidence];
_554+="\n    Score: "+_550[i].Score;
_554+="\n\n";
}
alert(_554);
};
LigeoAddressParser.hasCandidates=function(_556){
var _557=false;
if(LigeoVarUtils.isNotNullOrEmpty(_556)&&_556.length>1){
var _558=0;
var _559=0;
var _55a=0;
for(var i=0;i<_556.length;i++){
if(_556[i].MatchConfidence==VEMatchConfidence.High){
_558++;
}
if(_556[i].MatchConfidence==VEMatchConfidence.Medium){
_559++;
}
if(_556[i].MatchConfidence==VEMatchConfidence.Low){
_55a++;
}
}
if(_558>1){
_557=true;
}else{
if(_558==0&&_559>1){
_557=true;
}else{
if(_558==0&&_559==0&&_55a>1){
_557=true;
}
}
}
}
return _557;
};
LigeoAddressParser.addHidden=function(id,_55d,_55e){
var _55f=document.getElementById(id);
if(LigeoVarUtils.isNullOrEmpty(_55f)){
_55f=document.createElement("input");
_55f.setAttribute("type","hidden");
_55f.setAttribute("name",_55d);
_55f.setAttribute("id",id);
}
_55f.setAttribute("value",_55e);
LigeoAddressParser.myFormToSubmit.appendChild(_55f);
};
LigeoAddressParser.preFixFormat=function(_560){
_560=_560.replace(/\+/,"and");
_560=_560.replace(/ and /," & ");
_560=_560.replace(/ et /," & ");
_560=_560.replace(/#/," ");
return _560;
};
LigeoAddressParser.postFixFormat=function(_561){
_561=_561.replace(/\s\(.*\)/,"");
_561=_561.replace(/\s\[.*\]/,"");
_561=_561.replace(/&/,"and");
return _561;
};
dojo.provide("com.infonow.ligeo.LigeoAPI");
function LigeoAPI(){
};
LigeoAPI.ligeoAjaxService=new LigeoAjaxService();
LigeoAPI.DEFAULT_MAP_ID="ligeo-map";
LigeoAPI.RESULT_MAP_ID="ligeo-result-map";
LigeoAPI.ROUTE_MAP_ID="ligeo-route-map";
LigeoAPI.DRILL_MAP_ID="ligeo-drill-map";
LigeoAPI.DEFAULT_ROUTE_ID="ligeo-route";
LigeoAPI.myLigeoMap=null;
LigeoAPI.myLigeoRoute=null;
LigeoAPI.myCssStyle="DEFAULT";
LigeoAPI.myLigeoMaps=new Array();
LigeoAPI.mySkipGridSearch=false;
LigeoAPI.setLigeoMap=function(_562){
LigeoAPI.myLigeoMap=_562;
};
LigeoAPI.getLigeoMap=function(){
return LigeoAPI.myLigeoMap;
};
LigeoAPI.getCssStyle=function(){
return this.myCssStyle;
};
LigeoAPI.setCssStyle=function(_563){
this.myCssStyle=_563;
};
LigeoAPI.setCustomBalloonStyle=function(_564){
LigeoAPI.setCssStyle(_564);
LigeoBalloon.setHtmlStyle(_564);
};
LigeoAPI.configure=function(){
};
LigeoAPI.configureResults=function(){
};
LigeoAPI.configureRoute=function(){
};
LigeoAPI.configureDrill=function(){
};
LigeoAPI.addOnLoad=function(_565,name){
if(!name){
name="postInitialize";
}
LigeoAPI.eventAttach(name,_565);
};
LigeoAPI.initialize=function(){
try{
LigeoAPI.clear();
LigeoAPI.initializeAllMaps();
LigeoAPI.myDoRouting=false;
var _567=LigeoAPI.getLigeoMap();
if(LigeoAPI.containsMapDivID(LigeoAPI.RESULT_MAP_ID)){
LigeoAPI.setLigeoMap(LigeoAPI.getLigeoMapById(LigeoAPI.RESULT_MAP_ID));
LigeoAPI.configureResults();
}
if(LigeoAPI.containsMapDivID(LigeoAPI.DRILL_MAP_ID)){
LigeoAPI.setLigeoMap(LigeoAPI.getLigeoMapById(LigeoAPI.DRILL_MAP_ID));
LigeoAPI.configureDrill();
}
if(LigeoAPI.containsMapDivID(LigeoAPI.ROUTE_MAP_ID)){
LigeoAPI.setLigeoMap(LigeoAPI.getLigeoMapById(LigeoAPI.ROUTE_MAP_ID));
LigeoAPI.configureRoute();
}
if(LigeoAPI.containsMapDivID(LigeoAPI.DEFAULT_MAP_ID)){
LigeoAPI.setLigeoMap(LigeoAPI.getLigeoMapById(LigeoAPI.DEFAULT_MAP_ID));
LigeoAPI.configure();
}
LigeoAPI.setLigeoMap(_567);
if(LigeoConfigurationAPI.isApplicationReloaded()&&LigeoConfigurationAPI.getMyMapDivIDs().length>1){
LigeoAPI.getLigeoMap().renderAllMaps();
LigeoDOMUtils.showSelectedMap(LigeoConfigurationAPI.getMyMapDivIDs()[0]);
}else{
if(LigeoAPI.getLigeoMap().myId==LigeoAPI.ROUTE_MAP_ID){
LigeoAPI.getLigeoRoute().renderRoute(LigeoAPI.getLigeoMapById(LigeoAPI.ROUTE_MAP_ID));
}else{
if(LigeoAPI.getLigeoMap().myId==LigeoAPI.DRILL_MAP_ID||LigeoAPI.getLigeoMap().myId==LigeoAPI.RESULT_MAP_ID){
LigeoAPI.getLigeoMap().renderMap();
}else{
if(LigeoAPI.myDoRouting==true){
LigeoAPI.getLigeoRoute().renderRoute(LigeoAPI.getLigeoMapById(LigeoAPI.DEFAULT_MAP_ID));
}else{
LigeoAPI.getLigeoMap().renderMap();
}
}
}
}
LigeoConfigurationAPI.setApplicationReloaded(false);
LigeoAPI.freezeMap(false);
LigeoAPI.eventRun("postInitialize");
}
catch(error){
LigeoLogger.error("Initialize caught an exception = "+error);
}
};
LigeoAPI.containsMapDivID=function(_568){
hasId=false;
for(var i=0;i<LigeoConfigurationAPI.getMyMapDivIDs().length;i++){
if(LigeoConfigurationAPI.getMyMapDivIDs()[i]==_568){
hasId=true;
}
}
return hasId;
};
LigeoAPI.clear=function(){
if(LigeoVarUtils.isNotNull(LigeoAPI.getLigeoMap())){
LigeoAPI.getLigeoMap().clearResults();
}
if(LigeoVarUtils.isNotNull(LigeoAPI.myLigeoRoute)){
LigeoAPI.getLigeoRoute().clearRoutes();
}
};
LigeoAPI.initializeAllMaps=function(){
if(LigeoVarUtils.isNullOrEmpty(LigeoConfigurationAPI.getMyMapDivIDs())||LigeoConfigurationAPI.getMyMapDivIDs().length<1){
LigeoConfigurationAPI.setMyMapDivIDs(new Array(LigeoAPI.DEFAULT_MAP_ID));
}
if(LigeoVarUtils.isNull(LigeoAPI.getLigeoMap())){
for(var i=0;i<LigeoConfigurationAPI.getMyMapDivIDs().length;i++){
var _56b=new LigeoMap(LigeoConfigurationAPI.getMyMapDivIDs()[i],LigeoConfigurationAPI.myInitialLat,LigeoConfigurationAPI.myInitialLong,LigeoConfigurationAPI.myInitialZoom);
LigeoAPI.addLigeoMap(_56b);
}
LigeoAPI.setLigeoMap(LigeoAPI.getLigeoMapById(LigeoConfigurationAPI.getMyMapDivIDs()[0]));
}
};
LigeoAPI.refresh=function(){
LigeoAPI.clear();
LigeoAPI.initialize();
};
LigeoAPI.getLigeoMapById=function(id){
for(var i=0;i<LigeoAPI.myLigeoMaps.length;i++){
if(LigeoAPI.myLigeoMaps[i].myId==id){
return LigeoAPI.myLigeoMaps[i];
}
}
return null;
};
LigeoAPI.addLigeoMap=function(_56e){
var size=LigeoAPI.myLigeoMaps.length;
LigeoAPI.myLigeoMaps[size]=_56e;
};
LigeoAPI.getLigeoRoute=function(){
if(LigeoVarUtils.isNull(LigeoAPI.myLigeoRoute)){
LigeoAPI.myLigeoRoute=new LigeoRoute();
}
return LigeoAPI.myLigeoRoute;
};
LigeoAPI.setLocale=function(_570){
alert("LigeoAPI.setLocale has been depricated. The locale is now set by a query string in the ligeo.js script tag. If you need to override that setting, use LigeoEnvironment.setMapLocale.");
};
LigeoAPI.setMapDimensions=function(_571,_572){
LigeoAPI.getLigeoMap().setWidth(_571);
LigeoAPI.getLigeoMap().setHeight(_572);
};
LigeoAPI.setMapCenter=function(_573){
LigeoAPI.getLigeoMap().setCenter(_573);
};
LigeoAPI.addMapLocation=function(_574){
LigeoAPI.getLigeoMap().addLocation(_574);
};
LigeoAPI.setRouteTableHeaders=function(_575,_576,_577){
LigeoAPI.getLigeoRoute().setWaypointsHeader(_575);
LigeoAPI.getLigeoRoute().setInstructionsHeader(_576);
LigeoAPI.getLigeoRoute().setDistancesHeader(_577);
};
LigeoAPI.setRouteTurnIcon=function(_578){
LigeoAPI.getLigeoRoute().setNumberedIconPrefix(_578);
};
LigeoAPI.addRoute=function(_579,_57a){
LigeoAPI.myDoRouting=true;
var _57b=LigeoAPI.getLigeoRoute().getRouteLocations();
_57b.push(_579);
_57b.push(_57a);
};
LigeoAPI.setOverviewZoom=function(_57c){
var _57d=15;
if(LigeoVarUtils.isNotNullOrEmpty(_57c)){
_57c=parseInt(_57c);
if(!isNaN(_57c)){
_57d=_57c;
}
}
LigeoAPI.getLigeoMap().setOriginalZoom(_57d);
};
LigeoAPI.zoomIn=function(){
LigeoAPI.getLigeoMap().zoomIn();
};
LigeoAPI.zoomOut=function(){
LigeoAPI.getLigeoMap().zoomOut();
};
LigeoAPI.panMap=function(_57e,_57f){
LigeoAPI.getLigeoMap().pan(_57e,_57f);
};
LigeoAPI.setCenterAndZoomIn=function(_580,_581){
var _582=LigeoAPI.getLigeoMap().getZoomLevel()+1;
var _583=new VELatLong(_580,_581);
LigeoAPI.getLigeoMap().setCenterAndZoom(_583,_582);
};
LigeoAPI.setCenterAndZoomOut=function(_584,_585){
var _586=LigeoAPI.getLigeoMap().getZoomLevel()-1;
var _587=new VELatLong(_584,_585);
LigeoAPI.getLigeoMap().setCenterAndZoom(_587,_586);
};
LigeoAPI.recenterAndZoom=function(){
LigeoAPI.getLigeoMap().recenterAndZoom();
};
LigeoAPI.closeBalloon=function(){
LigeoBalloon.hide();
};
LigeoAPI.showPanel=function(_588){
LigeoBalloon.showPanel(_588);
};
LigeoAPI.ajaxHtmlMessages=function(form,_58a){
try{
LigeoAPI.ligeoAjaxService.ajaxHtmlMessages(form,_58a);
}
catch(error){
LigeoLogger.error(error);
}
return false;
};
LigeoAPI.DEFAULT_CSStemplateString=".display-none { display: none; }\n\n#ligeo-balloon\n{\n\tz-index: 200;\n\tdisplay: none;\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\twidth: 277px;\n\theight: 218px;\n\tfont-size: 11px;\n\tline-height: 14px;\n\tcolor: #333;\n\toverflow: hidden;\n}\n\n#ligeo-balloon iframe\n{\n\tposition: absolute;\n\ttop: 13px;\n\tleft: 13px;\n\tz-index: -1;\n\tfilter: mask();\n\twidth:251px;\n\theight:198px;\n}\n\n#ligeo-balloonBox\n{\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 5;\n\twidth: 277px;\n\theight: 218px;\n\tbackground-image: url(\"__image__server__URL__/balloonBack.gif\");\n}\n\n.ligeo-balloonBeaks\n{\n\tvisibility: hidden;\n\tposition: absolute;\n\tz-index: 100;\n\ttop: 0;\n\tleft: 0;\n\twidth: 277px;\n\theight: 218px;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-nw\n{\n\tbackground-image: url(\"__image__server__URL__/northWestBeak.gif\");\n\tbackground-position: 0 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-n\n{\n\tbackground-image: url(\"__image__server__URL__/northBeak.gif\");\n\tbackground-position: 50% 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-ne\n{\n\tbackground-image: url(\"__image__server__URL__/northEastBeak.gif\");\n\tbackground-position: 100% 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-w\n{\n\tbackground-image: url(\"__image__server__URL__/westBeak.gif\");\n\tbackground-position: 0 50%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-e\n{\n\tbackground-image: url(\"__image__server__URL__/eastBeak.gif\");\n\tbackground-position: 100% 50%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-sw\n{\n\tbackground-image: url(\"__image__server__URL__/southWestBeak.gif\");\n\tbackground-position: 0 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-s\n{\n\tbackground-image: url(\"__image__server__URL__/southBeak.gif\");\n\tbackground-position: 50% 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-se\n{\n\tbackground-image: url(\"__image__server__URL__/southEastBeak.gif\");\n\tbackground-position: 100% 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-nw .ligeo-nwBeak,\n.ligeo-balloonDock-n .ligeo-nBeak,\n.ligeo-balloonDock-ne .ligeo-neBeak,\n.ligeo-balloonDock-w .ligeo-wBeak,\n.ligeo-balloonDock-e .ligeo-eBeak,\n.ligeo-balloonDock-sw .ligeo-swBeak,\n.ligeo-balloonDock-s .ligeo-sBeak,\n.ligeo-balloonDock-se .ligeo-seBeak { visibility: visible; }\n\n.ligeo-nwBeak,\n.ligeo-neBeak,\n.ligeo-seBeak,\n.ligeo-swBeak\n{\n\twidth: 29px;\n\theight: 29px;\n}\n\n.ligeo-nBeak,\n.ligeo-sBeak\n{\n\twidth: 25px;\n\theight: 14px;\n\tleft: 128px;\n}\n\n.ligeo-nBeak { top: 0; }\n.ligeo-sBeak { bottom: 0; }\n\n.ligeo-eBeak,\n.ligeo-wBeak\n{\n\twidth: 14px;\n\theight: 25px;\n\ttop: 98px;\n}\n\n.ligeo-eBeak { right: 0; }\n.ligeo-wBeak { left: 0; }\n\n.ligeo-nwBeak\n{\n\ttop: 0;\n\tleft: 0;\n}\n\n.ligeo-neBeak\n{\n\ttop: 0;\n\tright: 0;\n}\n\n.ligeo-swBeak\n{\n\tbottom: 0;\n\tleft: 0;\n}\n\n.ligeo-seBeak\n{\n\tbottom: 0;\n\tright: 0;\n}\n\n#ligeo-balloonClose\n{\n\tz-index: 300;\n\tposition: absolute;\n\ttop: 25px;\n\tright: 25px;\n\tcursor: pointer;\n\twidth: 13px;\n\theight: 13px;\n\tbackground: url(\"__image__server__URL__/closeBox.gif\");\n}\n\n#ligeo-balloonTabs\n{\n\tz-index: 200;\n\tposition: absolute;\n\ttop: 17px;\n\tleft: 17px;\n\twidth: 243px;\n\theight: 30px;\n\tbackground: url(\"__image__server__URL__/tabBack.gif\") 0 0 no-repeat;\n}\n\n#ligeo-balloonTabs ul\n{\n\tlist-style: none;\n\theight: 30px;\n\tpadding-left: 8px;\n\tmargin: 0px;\n}\n\n#ligeo-balloonTabs li\n{\n\tfloat: left;\n\theight: 22px;\n\tline-height: 22px;\n\ttext-align: center;\n\tmargin: 8px 2px 0 0;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a,\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:link,\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:visited\n{\n\tdisplay: block;\n\tfloat: left;\n\twidth: auto;\n\ttext-decoration: none;\n\tcolor: #0033CC;\n\tfont-weight: normal;\n\tline-height: 22px;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:hover { color: inherit; }\n\n#ligeo-balloonTabs .ligeo-balloonTab-active\n{\n\tcolor: inherit;\n\tfont-weight: bold;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-active\n{\n\tbackground: url(\"__image__server__URL__/tabLeftOn.gif\") 0 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tdisplay: block;\n\tfloat: left;\n\twidth: auto;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive\n{\n\tbackground: url(\"__image__server__URL__/tabLeft.gif\") 0 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tdisplay: block;\n\tfloat: left;\n\twidth: auto;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTabContent-active\n{\n\tbackground: url(\"__image__server__URL__/tabRightOn.gif\") 100% 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tdisplay: block;\n\tfloat: left;\n\twidth: auto;\n\tpadding: 0 7px;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTabContent-inactive\n{\n\tbackground: url(\"__image__server__URL__/tabRight.gif\") 100% 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tdisplay: block;\n\tfloat: left;\n\twidth: auto;\n\tpadding: 0 7px;\n}\n\n#ligeo-balloonPanels\n{\n\tz-index: 400;\n\theight: 135px;\n\twidth: 227px;\n\tposition: absolute;\n\ttop: 55px;\n\tleft: 30px;\n\toverflow: auto;\n}\n\n.ligeo-balloon .ligeo-balloonContentBlock address,\n.ligeo-balloon .ligeo-balloonContentBlock p,\n.ligeo-balloon .ligeo-balloonContentBlock ul\n{\n\tfont-style: normal;\n\tmargin-bottom: 10px;\n}\n\n.ligeo-balloon .ligeo-balloonContentBlock ul,\n.ligeo-balloon .ligeo-balloonContentBlock ol { padding-left: 15px; }\n.ligeo-balloonContentBlock { padding-right: 10px; }\n\n#ligeo-mapCopyright\n{\n\tfont-size: 10px;\n\tfont-family: Arial, Helvetica, Verdana, sans-serif;\n}\n\n.ligeo-printable-map { display: none; }\n\n/* Infonow Copyright */\n.INOW_CopyrightForeground\n{\n\tcolor: black;\n\tright: 2px;\n\tz-index: 31;\n}\n\n.INOW_Copyright\n{\n\tdisplay: block;\n\tfont-size: 10px;\n\tpadding-top: 2px;\n\tpadding-bottom: 1px;\n\tposition: relative;\n}\n\n/* IMPORTANT!!! fixes a bug in the VE css file that sets part of the nav bar to a fixed width, this width is too small for languages other than english */\n#MSVE_navAction_styleGroup div,\n.MSVE_Dashboard_V6 .MSVE_MapStyle { width: auto !important; }\n\n#MSVE_MapLegend { padding-right: 0px !important; }\n#MSVE_TrafficLegend { width: auto !important; }\n#MSVE_TrafficLegend #MSVE_TL_Key { clear: none !important; }\n#MSVE_TrafficLegend #MSVE_TL_Slow\n{\n\tmargin-right: 5px;\n\tfloat: none !important;\n}\n#MSVE_TrafficLegend #MSVE_TL_Fast\n{\n\tmargin-left: 5px;\n\tfloat: none !important;\n}\n\n#MSVE_obliqueNotification { visibility: hidden; }\n\n.MSVE_Dashboard_V6 #Compass:hover,\n.MSVE_Dashboard_V6 #Compass.ms_pseudoHover\n{\n\t_background-image:none;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_compass_o.png\", sizingMethod=\"crop\");\n\t_height: 50px;\n\t_width: 50px;\n}\n\n.MSVE_Dashboard_V6 #Compass\n{\n\t_background-image:none;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_compass.png\", sizingMethod=\"crop\");\n\t_height: 50px;\n\t_width: 50px;\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_plus\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_in.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_minus\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_out.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_plus_disabled\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_in_d.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_minus_disabled\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_out_d.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_navAction_toggleGlyph\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_double_arrow_left.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6.collapsed .MSVE_navAction_toggleGlyph\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_double_arrow_right.png\", sizingMethod=\"crop\");\n}\n\n#MSVE_navAction_ccw {\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_rotate_ccw.png\", sizingMethod=\"crop\");\n}\n#MSVE_navAction_cw {\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_rotate_cw.png\", sizingMethod=\"crop\");\n}\n";
LigeoAPI.CUSTOM1_CSStemplateString=".display-none { display: none; }\n\n#ligeo-balloon\n{\n\tz-index: 200;\n\tdisplay: none;\n\tposition: absolute;\n\ttop: 0;\n\tpadding: 5px;\n\twidth: auto;\n\toverflow: hidden;\n}\n\n#ligeo-balloonBox\n{\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 5;\n\tbackground-image: url(\"__image__server__URL__/balloonBack.gif\");\n}\n\n.ligeo-balloonBeaks\n{\n\tvisibility: hidden;\n\tposition: absolute;\n\tz-index: 100;\n\ttop: 0;\n\tleft: 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-nw\n{\n\tbackground-image: url(\"__image__server__URL__/north_west.gif\");\n\tbackground-position: 0 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-n\n{\n\tbackground-image: url(\"__image__server__URL__/north.gif\");\n\tbackground-position: 50% 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-ne\n{\n\tbackground-image: url(\"__image__server__URL__/north_east.gif\");\n\tbackground-position: 100% 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-w\n{\n\tbackground-image: url(\"__image__server__URL__/west.gif\");\n\tbackground-position: 0 50%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-e\n{\n\tbackground-image: url(\"__image__server__URL__/east.gif\");\n\tbackground-position: 100% 50%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-sw\n{\n\tbackground-image: url(\"__image__server__URL__/south_west.gif\");\n\tbackground-position: 0 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-s\n{\n\tbackground-image: url(\"__image__server__URL__/south.gif\");\n\tbackground-position: 50% 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-se\n{\n\tbackground-image: url(\"__image__server__URL__/south_east.gif\");\n\tbackground-position: 100% 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-nw .ligeo-nwBeak,\n.ligeo-balloonDock-n .ligeo-nBeak,\n.ligeo-balloonDock-ne .ligeo-neBeak,\n.ligeo-balloonDock-w .ligeo-wBeak,\n.ligeo-balloonDock-e .ligeo-eBeak,\n.ligeo-balloonDock-sw .ligeo-swBeak,\n.ligeo-balloonDock-s .ligeo-sBeak,\n.ligeo-balloonDock-se .ligeo-seBeak { visibility: visible; }\n\n.ligeo-nwBeak,\n.ligeo-neBeak,\n.ligeo-seBeak,\n.ligeo-swBeak\n{\n\twidth: 29px;\n\theight: 29px;\n}\n\n.ligeo-nBeak,\n.ligeo-sBeak\n{\n\twidth: 25px;\n\theight: 14px;\n\tleft: 128px;\n}\n\n.ligeo-nBeak { top: 0; }\n.ligeo-sBeak { bottom: 0; }\n\n.ligeo-eBeak,\n.ligeo-wBeak\n{\n\twidth: 14px;\n\theight: 25px;\n\ttop: 98px;\n}\n\n.ligeo-eBeak { right: 0; }\n.ligeo-wBeak { left: 0; }\n\n.ligeo-nwBeak\n{\n\ttop: 0;\n\tleft: 0;\n}\n\n.ligeo-neBeak\n{\n\ttop: 0;\n\tright: 0;\n}\n\n.ligeo-swBeak\n{\n\tbottom: 0;\n\tleft: 0;\n}\n\n.ligeo-seBeak\n{\n\tbottom: 0;\n\tright: 0;\n}\n\n#ligeo-balloonClose\n{\n\tz-index: 300;\n\tposition: absolute;\n\ttop: 25px;\n\tright: 25px;\n\tcursor: pointer;\n\twidth: 13px;\n\theight: 13px;\n\tbackground: url(\"__image__server__URL__/closeBox.gif\");\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs\n{\n\tz-index: 200;\n\tposition: absolute;\n\ttop: 17px;\n\tleft: 17px;\n\twidth: 243px;\n\theight: 30px;\n\tbackground: url(\"__image__server__URL__/tabBack.gif\") 0 0 no-repeat;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs ul\n{\n\tlist-style: none;\n\theight: 30px;\n\tpadding-left: 8px;\n\tmargin: 0px;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs li\n{\n\tfloat: left;\n\theight: 22px;\n\tline-height: 22px;\n\ttext-align: center;\n\tmargin: 8px 2px 0 0;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a,\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:link,\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:visited\n{\n\tfloat: left;\n\twidth: auto;\n\ttext-decoration: none;\n\tcolor: #0033CC;\n\tfont-weight: normal;\n\tline-height: 22px;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:hover\n{\n\tcolor: inherit;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-active\n{\n\tcolor: inherit;\n\tfont-weight: bold;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-active\n{\n\tbackground: url(\"__image__server__URL__/tabLeftOn.gif\") 0 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive\n{\n\tbackground: url(\"__image__server__URL__/tabLeft.gif\") 0 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTabContent-active\n{\n\tbackground: url(\"__image__server__URL__/tabRightOn.gif\") 100% 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tpadding: 0 7px;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTabContent-inactive\n{\n\tbackground: url(\"__image__server__URL__/tabRight.gif\") 100% 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tpadding: 0 7px;\n\tdisplay: none;\n}\n\n#ligeo-balloonPanels\n{\n\tbackground: #FFF;\n\tborder: 1px solid #999;\n\tpadding: 10px;\n\theight: auto;\n\twidth: 220px;\n\t\\width: 220px;\n\tw\\idth: 220px;\n}\n\n#ligeo-balloonPanels p\n{\n\tfont-size: 11px;\n\tline-height: 15px;\n}\n\n#ligeo-balloonPanels p.locationType\n{\n\tfont-weight: bold;\n\tcolor: #C00;\n}\n\n#ligeo-balloonPanels p.actions\n{\n\tpadding: 5px 0 0 0;\n\tfont-weight: bold;\n}\n\n#ligeo-mapCopyright\n{\n\tfont-size: 10px;\n\tfont-family: Arial, Helvetica, Verdana, sans-serif;\n}\n\n.ligeo-printable-map { display: none; }\n\n.INOW_CopyrightForeground\n{\n\tcolor: black;\n\tright: 2px;\n\tz-index: 31;\n}\n\n.INOW_Copyright\n{\n\tdisplay: block;\n\tfont-size: 10px;\n\tpadding-top: 2px;\n\tpadding-bottom: 1px;\n\tposition: relative;\n}\n\n/* IMPORTANT!!! fixes a bug in the VE css file that sets part of the nav bar to a fixed width, this width is too small for languages other than english */\n#MSVE_navAction_styleGroup div,\n.MSVE_Dashboard_V6 .MSVE_MapStyle { width: auto !important; }\n\n#MSVE_MapLegend { padding-right: 0px !important; }\n#MSVE_TrafficLegend { width: auto !important; }\n#MSVE_TrafficLegend #MSVE_TL_Key { clear: none !important; }\n#MSVE_TrafficLegend #MSVE_TL_Slow\n{\n\tmargin-right: 5px;\n\tfloat: none !important;\n}\n#MSVE_TrafficLegend #MSVE_TL_Fast\n{\n\tmargin-left: 5px;\n\tfloat: none !important;\n}\n\n#MSVE_obliqueNotification { visibility: hidden; }\n\n.MSVE_Dashboard_V6 #Compass:hover,\n.MSVE_Dashboard_V6 #Compass.ms_pseudoHover\n{\n\t_background-image:none;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_compass_o.png\", sizingMethod=\"crop\");\n\t_height: 50px;\n\t_width: 50px;\n}\n\n.MSVE_Dashboard_V6 #Compass\n{\n\t_background-image:none;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_compass.png\", sizingMethod=\"crop\");\n\t_height: 50px;\n\t_width: 50px;\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_plus\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_in.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_minus\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_out.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_plus_disabled\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_in_d.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_minus_disabled\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_out_d.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_navAction_toggleGlyph\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_double_arrow_left.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6.collapsed .MSVE_navAction_toggleGlyph\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_double_arrow_right.png\", sizingMethod=\"crop\");\n}\n\n#MSVE_navAction_ccw {\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_rotate_ccw.png\", sizingMethod=\"crop\");\n}\n#MSVE_navAction_cw {\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_rotate_cw.png\", sizingMethod=\"crop\");\n}\n\n";
LigeoAPI.CUSTOM2_CSStemplateString=".display-none { display: none; }\n\n#ligeo-balloon\n{\n\tz-index: 200;\n\tdisplay: none;\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\twidth: 242px;\n\tpadding: 5px;\n\toverflow: hidden;\n}\n\n#ligeo-balloonBox\n{\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 5;\n\twidth: 277px;\n\theight: 218px;\n\tbackground-image: url(\"__image__server__URL__/balloonBack.gif\");\n}\n\n.ligeo-balloonBeaks\n{\n\tvisibility: hidden;\n\tposition: absolute;\n\tz-index: 100;\n\ttop: 0;\n\tleft: 0;\n\twidth: 220px;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-nw\n{\n\tbackground-image: url(\"__image__server__URL__/north_west.gif\");\n\tbackground-position: 0 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-n\n{\n\tbackground-image: url(\"__image__server__URL__/north.gif\");\n\tbackground-position: 50% 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-ne\n{\n\tbackground-image: url(\"__image__server__URL__/north_east.gif\");\n\tbackground-position: 100% 0;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-w\n{\n\tbackground-image: url(\"__image__server__URL__/west.gif\");\n\tbackground-position: 0 50%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-e\n{\n\tbackground-image: url(\"__image__server__URL__/east.gif\");\n\tbackground-position: 100% 50%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-sw\n{\n\tbackground-image: url(\"__image__server__URL__/south_west.gif\");\n\tbackground-position: 0 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-s\n{\n\tbackground-image: url(\"__image__server__URL__/south.gif\");\n\tbackground-position: 50% 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-se\n{\n\tbackground-image: url(\"__image__server__URL__/south_east.gif\");\n\tbackground-position: 100% 100%;\n\tbackground-repeat: no-repeat;\n}\n\n.ligeo-balloonDock-nw .ligeo-nwBeak,\n.ligeo-balloonDock-n .ligeo-nBeak,\n.ligeo-balloonDock-ne .ligeo-neBeak,\n.ligeo-balloonDock-w .ligeo-wBeak,\n.ligeo-balloonDock-e .ligeo-eBeak,\n.ligeo-balloonDock-sw .ligeo-swBeak,\n.ligeo-balloonDock-s .ligeo-sBeak,\n.ligeo-balloonDock-se .ligeo-seBeak { visibility: visible; }\n\n.ligeo-nwBeak,\n.ligeo-neBeak,\n.ligeo-seBeak,\n.ligeo-swBeak\n{\n\twidth: 29px;\n\theight: 29px;\n}\n\n.ligeo-nBeak,\n.ligeo-sBeak\n{\n\twidth: 25px;\n\theight: 14px;\n\tleft: 128px;\n}\n\n.ligeo-nBeak { top: 0; }\n.ligeo-sBeak { bottom: 0; }\n\n.ligeo-eBeak,\n.ligeo-wBeak\n{\n\twidth: 14px;\n\theight: 25px;\n\ttop: 98px;\n}\n\n.ligeo-eBeak { right: 0; }\n.ligeo-wBeak { left: 0; }\n\n.ligeo-nwBeak\n{\n\ttop: 0;\n\tleft: 0;\n}\n\n.ligeo-neBeak\n{\n\ttop: 0;\n\tright: 0;\n}\n\n.ligeo-swBeak\n{\n\tbottom: 0;\n\tleft: 0;\n}\n\n.ligeo-seBeak\n{\n\tbottom: 0;\n\tright: 0;\n}\n\n#ligeo-balloonClose\n{\n\tz-index: 300;\n\tposition: absolute;\n\ttop: 25px;\n\tright: 25px;\n\tcursor: pointer;\n\twidth: 13px;\n\theight: 13px;\n\tbackground: url(\"__image__server__URL__/closeBox.gif\");\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs\n{\n\tz-index: 200;\n\tposition: absolute;\n\ttop: 17px;\n\tleft: 17px;\n\twidth: 243px;\n\theight: 30px;\n\tbackground: url(\"__image__server__URL__/tabBack.gif\") 0 0 no-repeat;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs ul\n{\n\tlist-style: none;\n\theight: 30px;\n\tpadding-left: 8px;\n\tmargin: 0px;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs li\n{\n\tfloat: left;\n\theight: 22px;\n\tline-height: 22px;\n\ttext-align: center;\n\tmargin: 8px 2px 0 0;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a,\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:link,\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:visited\n{\n\tfloat: left;\n\twidth: auto;\n\ttext-decoration: none;\n\tcolor: #0033CC;\n\tfont-weight: normal;\n\tline-height: 22px;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive a:hover\n{\n\tcolor: inherit;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-active\n{\n\tcolor: inherit;\n\tfont-weight: bold;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-active\n{\n\tbackground: url(\"__image__server__URL__/tabLeftOn.gif\") 0 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTab-inactive\n{\n\tbackground: url(\"__image__server__URL__/tabLeft.gif\") 0 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTabContent-active\n{\n\tbackground: url(\"__image__server__URL__/tabRightOn.gif\") 100% 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tpadding: 0 7px;\n\tdisplay: none;\n}\n\n#ligeo-balloonTabs .ligeo-balloonTabContent-inactive\n{\n\tbackground: url(\"__image__server__URL__/tabRight.gif\") 100% 0 no-repeat;\n\theight: 22px;\n\tline-height: 22px;\n\tfloat: left;\n\twidth: auto;\n\tpadding: 0 7px;\n\tdisplay: none;\n}\n\n#ligeo-balloonPanels\n{\n\tbackground: #FFF;\n\tborder: 1px solid #999;\n\tpadding: 10px;\n\theight: auto;\n\twidth: 220px;\n}\n\n#ligeo-balloonPanels p\n{\n\tfont-size: 11px;\n\tline-height: 15px;\n}\n\n#ligeo-balloonPanels p.locationType\n{\n\tfont-weight: bold;\n\tcolor: #C00;\n}\n\n#ligeo-balloonPanels p.actions\n{\n\tpadding: 5px 0 0 0;\n\tfont-weight: bold;\n}\n\n#ligeo-mapCopyright\n{\n\tfont-size: 10px;\n\tfont-family: Arial, Helvetica, Verdana, sans-serif;\n}\n\n.ligeo-printable-map { display: none; }\n\n/* Infonow Copyright */\n.INOW_CopyrightForeground\n{\n\tcolor: black;\n\tright: 2px;\n\tz-index: 31;\n}\n\n.INOW_Copyright\n{\n\tdisplay: block;\n\tfont-size: 10px;\n\tpadding-top: 2px;\n\tpadding-bottom: 1px;\n\tposition: relative;\n}\n\n/* IMPORTANT!!! fixes a bug in the VE css file that sets part of the nav bar to a fixed width, this width is too small for languages other than english */\n#MSVE_navAction_styleGroup div,\n.MSVE_Dashboard_V6 .MSVE_MapStyle { width: auto !important; }\n\n#MSVE_MapLegend { padding-right: 0px !important; }\n#MSVE_TrafficLegend { width: auto !important; }\n#MSVE_TrafficLegend #MSVE_TL_Key { clear: none !important; }\n#MSVE_TrafficLegend #MSVE_TL_Slow\n{\n\tmargin-right: 5px;\n\tfloat: none !important;\n}\n#MSVE_TrafficLegend #MSVE_TL_Fast\n{\n\tmargin-left: 5px;\n\tfloat: none !important;\n}\n\n#MSVE_obliqueNotification { visibility: hidden; }\n\n.MSVE_Dashboard_V6 #Compass:hover,\n.MSVE_Dashboard_V6 #Compass.ms_pseudoHover\n{\n\t_background-image:none;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_compass_o.png\", sizingMethod=\"crop\");\n\t_height: 50px;\n\t_width: 50px;\n}\n\n.MSVE_Dashboard_V6 #Compass\n{\n\t_background-image:none;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_compass.png\", sizingMethod=\"crop\");\n\t_height: 50px;\n\t_width: 50px;\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_plus\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_in.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_minus\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_out.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_plus_disabled\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_in_d.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_ZoomBar_minus_disabled\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_zoom_out_d.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6 .MSVE_navAction_toggleGlyph\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_double_arrow_left.png\", sizingMethod=\"crop\");\n}\n\n.MSVE_Dashboard_V6.collapsed .MSVE_navAction_toggleGlyph\n{\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_double_arrow_right.png\", sizingMethod=\"crop\");\n}\n\n#MSVE_navAction_ccw {\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_rotate_ccw.png\", sizingMethod=\"crop\");\n}\n#MSVE_navAction_cw {\n\t_background-image:none !important;\n\t_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"__image__server__URL__/ve_rotate_cw.png\", sizingMethod=\"crop\");\n}\n";
LigeoAPI.renderCSSStyles=function(){
var _58b=LigeoAPI.DEFAULT_CSStemplateString;
var _58c;
if(LigeoVarUtils.isNotNullOrEmpty(LigeoAPI.getCssStyle())){
_58c=LigeoAPI.getCssStyle();
}
if(_58c=="CUSTOM1"){
_58b=LigeoAPI.CUSTOM1_CSStemplateString;
}
if(_58c=="CUSTOM2"){
_58b=LigeoAPI.CUSTOM2_CSStemplateString;
}
_58b=_58b.replace(/__image__server__URL__/g,LigeoEnvironment.getImageServer()+"mapimages");
dojo.html.insertCssText(_58b);
};
LigeoAPI.showLocation=function(_58d){
var _58e=LigeoAPI.getLigeoMap().myLocations[_58d];
if(typeof _58e=="object"){
_58e.getVEShape().Show();
}
};
LigeoAPI.hideLocation=function(_58f){
var _590=LigeoAPI.getLigeoMap().myLocations[_58f];
if(typeof _590=="object"){
_590.getVEShape().Hide();
}
};
LigeoAPI.print=function(_591){
LigeoPrinter.print(_591);
};
LigeoAPI.freezeMap=function(_592){
for(var i=0;i<LigeoAPI.myLigeoMaps.length;i++){
LigeoAPI.myLigeoMaps[i].isFreezeMap=_592;
}
};
LigeoAPI.skipGridSearch=function(_594){
LigeoAPI.mySkipGridSearch=_594;
};
LigeoAPI.fixNavMapStyles=function(){
LigeoMap.fixNavMapStyles("fromAPI");
};
LigeoAPI.setZoomLevelStatus=function(_595){
var map=LigeoAPI.getLigeoMap();
var _597=document.getElementById(_595);
if(map!=null&&_597!=null){
var _598=map.getZoomLevel();
var _599=19;
var _59a=map.getVEMap().GetMapStyle();
if(_59a==VEMapStyle.Birdseye){
_599=2;
}
var perc=Math.round(_598/_599*100);
_597.innerHTML=perc;
}
};
LigeoAPI.isShowTraffic=function(){
return LigeoMap.isShowTraffic(LigeoAPI.getLigeoMap().myId);
};
LigeoAPI.toggleTraffic=function(){
LigeoMap.toggleTraffic();
};
LigeoAPI.getImageServer=function(){
return LigeoEnvironment.getImageServer();
};
LigeoAPI.eventList=new Array();
LigeoAPI.eventObject=function(name,fun){
this.name=name;
this.fun=fun;
};
LigeoAPI.eventAttach=function(name,fun){
if(!name){
alert("Error calling LigeoAPI.eventAttach with invalid name");
return;
}
if(!fun){
alert("Error calling LigeoAPI.eventAttach with invalid function");
return;
}
LigeoAPI.eventList[LigeoAPI.eventList.length]=new LigeoAPI.eventObject(name,fun);
};
LigeoAPI.eventRun=function(name){
for(var i=0;i<LigeoAPI.eventList.length;i++){
if(!LigeoAPI.eventList[i]||!LigeoAPI.eventList[i].fun){
LigeoLogger.error("LigeoAPI.eventRun warning, cannot run event "+i);
}else{
if(LigeoAPI.eventList[i].name==name){
LigeoAPI.eventList[i].fun();
}
}
}
};
LigeoAPI.eventPrint=function(){
for(var i=0;i<LigeoAPI.eventList.length;i++){
if(LigeoAPI.eventList[i]){
LigeoLogger.error("LigeoAPI.eventPrint name="+LigeoAPI.eventList[i].name+" function="+LigeoAPI.eventList[i].fun);
}
}
};
LigeoAPI.eventRemove=function(name){
for(var i=0;i<LigeoAPI.eventList.length;i++){
if(LigeoAPI.eventList[i]&&LigeoAPI.eventList[i].name==name){
LigeoAPI.eventList[i]=null;
}
}
};
LigeoAPI.eventRemoveAll=function(){
LigeoAPI.eventList=new Array();
};
dojo.addOnLoad(LigeoAPI.initialize);
dojo.addOnLoad(LigeoAPI.renderCSSStyles);
dojo.kwCompoundRequire({common:["com.infonow.ligeo.LigeoAPI","com.infonow.ligeo.LigeoFeaturesAPI","com.infonow.ligeo.LigeoLocation"]});
dojo.provide("com.infonow.ligeo.*");

