MAPSERVER=new Array("tile21.mqcdn.com","tile22.mqcdn.com","tile23.mqcdn.com","tile24.mqcdn.com"); HYBSERVER=new Array("tile21.mqcdn.com","tile22.mqcdn.com","tile23.mqcdn.com","tile24.mqcdn.com"); SATSERVER=new Array("tile21.mqcdn.com","tile22.mqcdn.com","tile23.mqcdn.com","tile24.mqcdn.com"); RESSERVER="tile21.mqcdn.com"; LOGSERVER="btilelog.access.mapquest.com:80"; STATICSERVER="btileprint.access.mapquest.com"; TRAFFSERVER="btraffic.access.mapquest.com"; IsDotCom=false; document.write(""); Key="mjtd%7Clu6znua2nu%2Cbs%3Do5-la7sg"; if(typeof (MQA)=="undefined"){ MQA=new Object(); } MQA={PIXERSPERLATDEGREE:315552459.661917,PIXERSPERLNGDEGREE:250344597.90989706,TILESIZE:256,SLIDESTEPS:9,SLIDEDELAY:11,SCALES:new Array(0,88011773,29337258,9779086,3520471,1504475,701289,324767,154950,74999,36000,18000,9000,4700,2500,1500,1000),MODS:new Array(0,4,12,36,100,234,502,1084,2272,4694,9778,19558,39116,74900,140818,234698,352047),VENDORLIST:new Array("","mz1copy.gif","mz4copy.gif","mz7copy.gif","mz0copy.gif"),MAPVENDORS:new Array(0,1,1,1,2,2,2,3,3,3,4,4,4,4,4,4,4),RESOURCES:"http://"+RESSERVER+"/res/",STATICRESOURCES:"http://"+STATICSERVER+"/tileprint.php",CORNER_TOPLEFT:0,CORNER_TOPRIGHT:1,CORNER_BOTTOMLEFT:2,CORNER_BOTTOMRIGHT:3,LOGO_MQ_LOGO:0,LOGO_MQ_SCALES:1,LOGO_MQ_COPY:2,LOGO_NT_COPY:3,LOGO_I3_COPY:4,LOGO_MAP_COPY:3,LOGO_SAT_COPY:4,EVENT_NONE:-1,EVENT_CLICK:0,EVENT_DBLCLICK:1,OPER_RECENTER:0,OPER_RECENTERZOOM:1,MAXMAPHEIGHT:7168,MAXMAPWIDTH:7168,BUTTON_MQ_LEFT:0,BUTTON_MQ_MIDDLE:1,BUTTON_MQ_RIGHT:2,MASTER_BROKER:null,SAFARI_BROWSER:(navigator.userAgent.indexOf("Safari")>=0),PAN_NORTH:0,PAN_SOUTH:1,PAN_EAST:2,PAN_WEST:3,CONTROL_PANZOOM:0,CONTROL_PAN:1,CONTROL_ZOOM:2,CONTROL_TYPE:3,CONTROL_TRAFFIC:4}; MQA.SURFACE_OFFSET=2*MQA.TILESIZE; MQA.NOTHING=MQA.RESOURCES+"nothing.gif"; MQA.MAP_TYPE={MAP:"map",SAT:"sat",HYB:"hyb",NONE:"none"}; MQA.TILE_LAYER_ID={MAP:"mqmaptilediv",SAT:"mqsattilediv",HYB:"mqhybtilediv"}; MQA.TILE_LAYER_TYPE={MAP:1,SAT:2,STRLBL:3,HOODPOLY:4,PARCEL:5}; if(typeof (MQA)=="undefined"){ MQA=new Object(); } if(typeof (MQA.Common)=="undefined"){ MQA.Common=new Object(); } MQA.createXMLDoc=function(_1){ var _2; if(document.implementation.createDocument){ var _3=new window.DOMParser(); if(MQA.BrowserInfo.isSafari){ _1=_1.replace(/&/g,"&"); } _2=_3.parseFromString(_1,"text/xml"); }else{ if(window.ActiveXObject){ _2=new window.ActiveXObject("Microsoft.XMLDOM"); _2.async="false"; _2.loadXML(_1); } } return _2; }; mqCreateXMLDoc=MQA.createXMLDoc; MQA.createXMLDocFromNode=function(_4){ var _5; _4=_4.documentElement; if(document.implementation.createDocument){ var _5=document.implementation.createDocument("","",null); try{ _5.appendChild(_5.importNode(_4,true)); } catch(error){ alert(error); alert(_4.nodeName); } }else{ if(window.ActiveXObject){ _5=new ActiveXObject("Microsoft.XMLDOM"); _5.async="false"; _5.loadXML(_4.xml); } } return _5; }; mqCreateXMLDocFromNode=MQA.createXMLDocFromNode; MQA.Browser=function(){ this.name=null; this.version=null; this.os=null; this.appname=null; this.appVersion=null; this.vMajor=null; this.isNS=null; this.isNS4=null; this.isNS6=null; this.isIE=null; this.isIE4=null; this.isIE5=null; this.isDOM=null; this.isSafari=null; this.platform=null; }; MQBrowser=MQA.Browser; MQA.getBrowserInfo=function(){ var _6=new MQA.Browser(); _6.name=_6.version=_6.os="unknown"; var _7=window.navigator.userAgent.toLowerCase(); var _8=window.navigator.appName; var _9=window.navigator.appVersion; var _a=new Array("firefox","msie","netscape","opera","safari"); var _b=new Array("linux","mac","windows","x11"); var _c=_a.length; var _d=""; for(var i=0,n=_c;i0){ _6.name=_a[i]; var _10=_d+_6.name.length; var _11=((_6.name=="safari")||(_7.charAt(_10+4)>0&&_7.charAt(_10+4)<9))?5:3; _6.version=_7.substring(_10,_10+_11); } } var _12=_b.length; for(var j=0,m=_12;j0){ _6.os=_b[j]; } } if(_8=="Netscape"){ _6.appname="ns"; }else{ if(_8=="Microsoft Internet Explorer"){ _6.appname="ie"; } } _6.appVersion=_9; _6.vMajor=parseInt(_6.appVersion); _6.isNS=(_6.appname=="ns"&&_6.vMajor>=4); _6.isNS4=(_6.appname=="ns"&&_6.vMajor==4); _6.isNS6=(_6.appname=="ns"&&_6.vMajor==5); _6.isIE=(_6.appname=="ie"&&_6.vMajor>=4); _6.isIE4=(_6.appVersion.indexOf("MSIE 4")>0); _6.isIE5=(_6.appVersion.indexOf("MSIE 5")>0); _6.isDOM=(document.createElement&&document.appendChild&&document.getElementsByTagName)?true:false; _6.isSafari=(_6.name=="safari"); if(_7.indexOf("win")>-1){ _6.platform="win"; }else{ if(_7.indexOf("mac")>-1){ _6.platform="mac"; }else{ _6.platform="other"; } } return _6; }; mqGetBrowserInfo=MQA.getBrowserInfo; MQA.BrowserInfo=MQA.getBrowserInfo(); MQA.Object=function(){ var _15=null; this.getM_XmlDoc=function(){ return _15; }; this.setM_XmlDoc=function(_16){ _15=_16; }; var _17=null; this.getM_Xpath=function(){ return _17; }; this.setM_Xpath=function(_18){ _17=_18; }; }; MQA.Object.prototype.getClassName=function(){ return "MQObject"; }; MQA.Object.prototype.getObjectVersion=function(){ return 0; }; MQA.Object.prototype.setProperty=function(_19,_1a){ var _1b; if(_19!==null){ _1b="/"+this.getM_Xpath()+"/"+_19; }else{ _1b="/"+this.getM_Xpath(); } var _1c=mqSetNodeText(this.getM_XmlDoc(),_1b,_1a); if(_1c===null){ var _1d=this.getM_XmlDoc().createElement(_19); var _1e=this.getM_XmlDoc().documentElement.appendChild(_1d); _1c=mqSetNodeText(this.getM_XmlDoc(),_1b,_1a); } return _1c; }; MQA.Object.prototype.getProperty=function(_1f){ var _20; if(_1f!==null){ _20="/"+this.getM_Xpath()+"/"+_1f; }else{ _20="/"+this.getM_Xpath(); } return mqGetXPathNodeText(this.getM_XmlDoc(),_20); }; MQA.Object.prototype.copy=function(){ var cp=new this.constructor; cp.loadXml(this.saveXml()); return cp; }; MQA.Object.prototype.internalCopy=function(obj){ var _23="<"+obj.getM_Xpath(); if(this.getObjectVersion()>0){ _23=_23+" Version=\""+this.getObjectVersion()+"\""; } _23=_23+">"; var _24=this.getM_XmlDoc().documentElement; var _25=_24.childNodes; var _26=_25.length; for(var _27=0;_27<_26;_27++){ _23=_23+mqXmlToStr(_25[_27]); } _23=_23+""; var cp=new this.constructor; cp.loadXml(_23); return cp; }; MQObject=MQA.Object; MQA.Point=function(_29,_2a){ this.x=0; this.y=0; this.setM_Xpath("Point"); if(arguments.length==1){ this.setM_Xpath(_29); }else{ if(arguments.length==2){ this.x=parseInt(_29); this.y=parseInt(_2a); if(isNaN(this.x)||isNaN(this.y)){ throw new Error("1MQPoint constructor called with invalid parameter"); } }else{ if(arguments.length>2){ throw new Error("MQPoint constructor called with "+arguments.length+" arguments, but it expects 0, 1, or 2 arguments"); } } } }; MQA.Point.prototype=new MQA.Object(); MQA.Point.prototype.constructor=MQA.Point; MQA.Point.prototype.getClassName=function(){ return "MQPoint"; }; MQA.Point.prototype.getObjectVersion=function(){ return 0; }; MQA.Point.prototype.loadXml=function(_2b){ if("undefined"!==typeof (mqutils)){ this.setM_XmlDoc(MQA.createXMLDoc(_2b)); this.x=this.getProperty("X"); this.y=this.getProperty("Y"); } }; MQA.Point.prototype.saveXml=function(){ return "<"+this.getM_Xpath()+">"+this.x+""+this.y+""; }; MQA.Point.prototype.setX=function(x){ this.x=parseInt(x); if(isNaN(this.x)){ throw new Error("MQPoint.setX called with invalid parameter"); } }; MQA.Point.prototype.getX=function(){ return this.x; }; MQA.Point.prototype.setY=function(y){ this.y=parseInt(y); if(isNaN(this.y)){ throw new Error("MQPoint.setY called with invalid parameter"); } }; MQA.Point.prototype.getY=function(){ return this.y; }; MQA.Point.prototype.setXY=function(x,y){ this.x=parseInt(x); this.y=parseInt(y); if(isNaN(this.x)||isNaN(this.y)){ throw new Error("MQPoint.setXY called with invalid parameter"); } }; MQA.Point.prototype.valid=function(){ if("undefined"!==typeof (mqutils)){ return (Math.abs(this.x!=MQCONSTANT.MQPOINT_INVALID)&&Math.abs(this.y!=MQCONSTANT.MQPOINT_INVALID)); } return false; }; MQA.Point.prototype.equals=function(pt){ if(pt){ return (this.x===pt.x&&this.y===pt.y); } return false; }; MQA.Point.prototype.toString=function(){ return this.x+","+this.y; }; MQPoint=MQA.Point; MQA.LatLng=function(_31,_32){ MQA.Object.call(this); this.lat=0; this.lng=0; this.setM_Xpath("LatLng"); if(arguments.length==1){ this.setM_Xpath(_31); }else{ if(arguments.length==2){ this.lat=parseFloat(_31); this.lng=parseFloat(_32); if(isNaN(this.lat)||isNaN(this.lng)){ throw new Error("MQA.LatLng constructor called with invalid parameter"); } }else{ if(arguments.length>2){ throw new Error("MQA.LatLng constructor called with "+arguments.length+" arguments, but it expects 0, 1, or 2 arguments."); } } } }; MQA.LatLng.prototype=new MQA.Object(); MQA.LatLng.prototype.constructor=MQA.LatLng; MQA.LatLng.prototype.getClassName=function(){ return "MQLatLng"; }; MQA.LatLng.prototype.getObjectVersion=function(){ return 0; }; MQA.LatLng.prototype.loadXml=function(_33){ if("undefined"!==typeof (mqutils)){ this.setM_XmlDoc(MQA.createXMLDoc(_33)); this.lat=this.getProperty("Lat"); this.lng=this.getProperty("Lng"); } }; MQA.LatLng.prototype.saveXml=function(){ return "<"+this.getM_Xpath()+">"+this.lat+""+this.lng+""; }; MQA.LatLng.prototype.setLatitude=function(_34){ this.lat=parseFloat(_34); if(isNaN(this.lat)){ throw new Error("MQA.LatLng.setLatitude called with invalid parameter"); } }; MQA.LatLng.prototype.getLatitude=function(){ return this.lat; }; MQA.LatLng.prototype.setLongitude=function(_35){ this.lng=parseFloat(_35); if(isNaN(this.lng)){ throw new Error("MQA.LatLng.setLongitude called with invalid parameter"); } }; MQA.LatLng.prototype.getLongitude=function(){ return this.lng; }; MQA.LatLng.prototype.setLatLng=function(_36,_37){ this.lat=parseFloat(_36); this.lng=parseFloat(_37); if(isNaN(this.lat)||isNaN(this.lng)){ throw new Error("MQA.LatLng.setLatLng called with invalid parameter"); } }; MQA.LatLng.prototype.arcDistance=function(ll2,_39){ if("undefined"!==typeof (mqutils)){ if(ll2){ if(ll2.getClassName()!=="MQLatLng"){ alert("failure in arcDistance"); throw "failure in arcDistance"; } }else{ alert("failure in arcDistance"); throw "failure in arcDistance"; } if(_39){ mqIsClass("MQDistanceUnits",_39,false); }else{ _39=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES); } if(this.getLatitude()==ll2.getLatitude()&&this.getLongitude()==ll2.getLongitude()){ return 0; } var _3a=ll2.getLongitude()-this.getLongitude(); var a=MQCONSTANT.MQLATLNG_RADIANS*(90-this.getLatitude()); var c=MQCONSTANT.MQLATLNG_RADIANS*(90-ll2.getLatitude()); var _3d=(Math.cos(a)*Math.cos(c))+(Math.sin(a)*Math.sin(c)*Math.cos(MQCONSTANT.MQLATLNG_RADIANS*(_3a))); var _3e=(_39.getValue()===MQCONSTANT.MQDISTANCEUNITS_MILES)?3963.205:6378.160187; if(_3d<-1){ return MQCONSTANT.PI*_3e; }else{ if(_3d>=1){ return 0; }else{ return Math.acos(_3d)*_3e; } } } return -1; }; MQA.LatLng.prototype.valid=function(){ if("undefined"!==typeof (mqutils)){ return (Math.abs(this.getLatitude()-MQCONSTANT.MQLATLNG_INVALID)>MQCONSTANT.MQLATLNG_TOLERANCE&&Math.abs(this.getLongitude()-MQCONSTANT.MQLATLNG_INVALID)>MQCONSTANT.MQLATLNG_TOLERANCE); } return false; }; MQA.LatLng.prototype.equals=function(ll){ if(ll!==null){ return (this.getLongitude()===ll.getLongitude()&&this.getLatitude()===ll.getLatitude()); } return false; }; MQA.LatLng.prototype.toString=function(){ return this.lat+","+this.lng; }; MQLatLng=MQA.LatLng; MQA.XMLDOC=function(){ this.AUTOGEOCODECOVSWITCH=null; this.AUTOROUTECOVSWITCH=null; this.AUTOMAPCOVSWITCH=null; this.DBLAYERQUERY=null; this.LINEPRIMITIVE=null; this.POLYGONPRIMITIVE=null; this.RECTANGLEPRIMITIVE=null; this.ELLIPSEPRIMITIVE=null; this.TEXTPRIMITIVE=null; this.SYMBOLPRIMITIVE=null; this.LATLNG=null; this.POINT=null; this.POINTFEATURE=null; this.LINEFEATURE=null; this.POLYGONFEATURE=null; this.LOCATION=null; this.ADDRESS=null; this.SINGLELINEADDRESS=null; this.GEOADDRESS=null; this.GEOCODEOPTIONS=null; this.MANEUVER=null; this.ROUTEOPTIONS=null; this.ROUTERESULTS=null; this.ROUTEMATRIXRESULTS=null; this.RADIUSSEARCHCRITERIA=null; this.RECTSEARCHCRITERIA=null; this.POLYSEARCHCRITERIA=null; this.CORRIDORSEARCHCRITERIA=null; this.SIGN=null; this.TREKROUTE=null; this.INTCOLLECTION=null; this.DTCOLLECTION=null; this.LATLNGCOLLECTION=null; this.LOCATIONCOLLECTION=null; this.LOCATIONCOLLECTIONCOLLECTION=null; this.MANEUVERCOLLECTION=null; this.SIGNCOLLECTION=null; this.STRINGCOLLECTION=null; this.STRCOLCOLLECTION=null; this.FEATURECOLLECTION=null; this.PRIMITIVECOLLECTION=null; this.POINTCOLLECTION=null; this.TREKROUTECOLLECTION=null; this.FEATURESPECIFIERCOLLECTION=null; this.GEOCODEOPTIONSCOLLECTION=null; this.COVERAGESTYLE=null; this.RECORDSET=null; this.MAPSTATE=null; this.SESSION=null; this.SESSIONID=null; this.DTSTYLE=null; this.DTSTYLEEX=null; this.DTFEATURESTYLEEX=null; this.FEATURESPECIFIER=null; this.BESTFIT=null; this.BESTFITLL=null; this.CENTER=null; this.CENTERLATLNG=null; this.PAN=null; this.ZOOMIN=null; this.ZOOMOUT=null; this.ZOOMTO=null; this.ZOOMTORECT=null; this.ZOOMTORECTLATLNG=null; this.getAUTOGEOCODECOVSWITCH=function(){ if(this.AUTOGEOCODECOVSWITCH===null){ this.AUTOGEOCODECOVSWITCH=MQA.createXMLDoc(""); } return this.AUTOGEOCODECOVSWITCH; }; this.getAUTOROUTECOVSWITCH=function(){ if(this.AUTOROUTECOVSWITCH===null){ this.AUTOROUTECOVSWITCH=MQA.createXMLDoc("0"); } return this.AUTOROUTECOVSWITCH; }; this.getAUTOMAPCOVSWITCH=function(){ if(this.AUTOMAPCOVSWITCH===null){ this.AUTOMAPCOVSWITCH=MQA.createXMLDoc("