try{var testCommons=new MQObject();testCommons=null;}catch(error){throw "You must include mqcommon.js or toolkit api script prior to mqutils.js.";}var mqutils=1;if(!Array.prototype.push){Array.prototype.push=function(){var _1=Array.push.arguments.length;for(var i=0;i<_1;i++){this[this.length]=Array.push.arguments[i];}return this.length;};}function mq_ParamExists(_3){var _4;return (_3!==_4);}function mqGetElementById(_5){if(document.getElementById(_5)){return document.getElementById(_5);}return null;}function mqBuildUrl(_6){var _7=_mqServerPort.replace(/mapquest.com:?\d*/,"mapquest.com");return (_reqPrefix+_7+"/oapi/transaction?"+_6+"&key="+_mqKey);}function mqUrlLimit(){var _8=2048;if(mqBrowserInfo.isNS){_8=7168;}return _8;}function mqLimitDisplay(){var _9=2;if(mqBrowserInfo.isNS){_9=7;}return _9;}function mqDoRemote(_a,_b,_c,_d){var _e=document.getElementsByTagName(_c).item(0);var _f=mqGetElementById(_b);if(_f){_e.removeChild(_f);}_f=document.createElement("script");var _10=mqBuildUrl(_a);if(_a.substring(0,4)=="http"){_10=_a;}if(_10.length>mqUrlLimit()){alert("The request query exceeds the limit ("+mqLimitDisplay()+" Kb) allowed for your browser type. Please reduce the amount of data in the request query!");return;}_f.src=_10;_f.type="text/javascript";_f.id=_b;_e.appendChild(_f);}function mqCreateXMLDoc(_11){var _12;if(document.implementation.createDocument){var _13=new window.DOMParser();if(mqBrowserInfo.isSafari){_11=_11.replace(/&/g,"&amp;");}_12=_13.parseFromString(_11,"text/xml");}else{if(window.ActiveXObject){_12=new window.ActiveXObject("Microsoft.XMLDOM");_12.async="false";_12.loadXML(_11);}}return _12;}function mqCreateXMLDocFromNode(_14){var _15;_14=_14.documentElement;if(document.implementation.createDocument){var _16=document.implementation.createDocument("","",null);try{_16.appendChild(_16.importNode(_14,true));}catch(error){alert(error);alert(_14.nodeName);}}else{if(window.ActiveXObject){_16=new ActiveXObject("Microsoft.XMLDOM");_16.async="false";_16.loadXML(_14.xml);}}return _16;}function mqCreateXMLDocImportNode(_17){var _18;if(document.implementation.createDocument){var _19=document.implementation.createDocument("","",null);try{_19.appendChild(_19.importNode(_17,true));}catch(error){alert(error);alert(_17.nodeName);}}else{if(window.ActiveXObject){_19=new ActiveXObject("Microsoft.XMLDOM");_19.async="false";_19.loadXML(_17.xml);}}return _19;}function mqXmlToStr(_1a){var _1b=new String;var _1c=null;if(_1a==null){return "";}if(mqBrowserInfo.isNS){_1c=new window.XMLSerializer();_1b=_1c.serializeToString(_1a);}else{if(mqBrowserInfo.isIE){_1b=_1a.xml;}}if(mqBrowserInfo.isSafari){_1c=new window.XMLSerializer();_1b=_1c.serializeToString(_1a);_1b=_1b||"";_1b=_1b.replace(/#38;/g,"&");}return _1b;}function mqCreateNSManager(_1d){var _1e={normalResolver:xmlDoc.createNSResolver(xmlDoc.documentElement),lookupNamespaceURI:function(_1f){switch(_1f){case "_mq":return _1d;default:return this.normalResolver.lookupNamespaceURI(_1f);}}};return _1e;}function mqGetNode(_20,_21){var _22;if(mqBrowserInfo.isSafari){var _23=new Array();_23=_21.split("/");if(_23[_23.length-1].indexOf("@")!=-1){_23.splice(_23.length-1,1);}var _24=_20.documentElement;var _25=false;if(_23.length==2&&_24.tagName==_23[1]){_25=true;}else{var _26=_23.length-1;for(var i=1;i<_26;i++){_25=false;if(_24.tagName==_23[i]&&_24.hasChildNodes()){var _28=(_24.hasChildNodes())?_24.childNodes.length:0;for(var j=0;j<_28;j++){if(_24.childNodes[j].tagName==_23[i+1]){_24=_24.childNodes[j];_25=true;break;}}}if(_23[i+1]&&_23[i+1].indexOf("text()")!=-1){_25=true;}if(_23[i+1].indexOf("[")!=-1){var _2a=parseInt(_23[i+1].substr(_23[i+1].indexOf("[")+1,_23[i+1].indexOf("]")-1));_23[i+1]=_23[i+1].substr(0,_23[i+1].indexOf("["));_24=_20.getElementsByTagName(_23[i+1]).item(_2a-1);_25=true;}}}_22=(_25==true)?_24:null;return _22;}else{if(mqBrowserInfo.isIE){_22=_20.selectSingleNode(_21);return _22;}else{if(mqBrowserInfo.isNS){_22=_20.evaluate(_21,_20,null,9,null);return _22.singleNodeValue;}}}return null;}function mqGetNodeText(_2b){var _2c="";if(mqBrowserInfo.isIE){_2c=_2b.text;}else{if(mqBrowserInfo.isNS&&_2b.firstChild){_2c=_2b.firstChild.nodeValue;}}if(mqBrowserInfo.isSafari&&_2b.firstChild){_2c=_2b.firstChild.nodeValue;_2c=(_2c?_2c:"");_2c=_2c.replace(/#38;/g,"&");}return _2c;}function mqGetXPathNodeText(_2d,_2e){var _2f;if(mqBrowserInfo.isSafari){_2f=mqGetNode(_2d,_2e);var _30="";var _31="";if(_2e.indexOf("@")!=-1){_31=_2e.substr(_2e.indexOf("@")+1,_2e.length);_30=_2f.attributes.getNamedItem(_31).nodeValue;}else{if(_2f){_30=mqGetNodeText(_2f);}}return _30;}if(mqBrowserInfo.isIE){_2f=_2d.selectSingleNode(_2e);return (_2f==null?"":_2f.text);}else{if(mqBrowserInfo.isNS){try{_2f=_2d.evaluate(_2e,_2d,null,2,null);}catch(error){alert(_2e);alert(error);}return _2f.stringValue;}}return "";}function mqReplaceNode(_32,_33,_34){var _35=_32.createTextNode(_34);if(_33.firstChild){return _33.replaceChild(_35,_33.firstChild);}else{return _33.appendChild(_35);}}function mqReplaceElementNode(_36,_37,_38){var _39=_36.documentElement;var _3a=_37.documentElement;var _3b=_36.getElementsByTagName(_38).item(0);if(mqBrowserInfo.isIE){node=_3a;}else{node=_36.importNode(_3a,true);}if(_3b){_39.replaceChild(node,_3b);}else{_39.appendChild(node);}return _36;}function mqSetNodeText(_3c,_3d,_3e){var _3f=mqGetNode(_3c,_3d);if(_3f==null){return null;}return mqReplaceNode(_3c,_3f,_3e);}function mqTransformXMLFromString(_40,_41,_42){var _43=mqCreateXMLDoc(_40);var _44=mqCreateXMLDoc(_41);var _45;if(mqBrowserInfo.isNS){var _46=new XSLTProcessor();_46.importStylesheet(_44);_45=_46.transformToFragment(_43,document);_42.appendChild(_45);}else{if(mqBrowserInfo.isIE){var _47=new ActiveXObject("Msxml2.DOMDocument.5.0");_47=_43.transformNode(_44);_42.innerHTML+=_47;}}}function mqTransformXMLFromNode(_48,_49,_4a){var _4b=mqCreateXMLDoc(_49);var _4c;if(mqBrowserInfo.isNS){var _4d=new XSLTProcessor();_4d.importStylesheet(_4b);_4c=_4d.transformToFragment(_48,document);_4a.appendChild(_4c);}else{if(mqBrowserInfo.isIE){var _4e=new ActiveXObject("Msxml2.DOMDocument.5.0");_4e=_48.transformNode(_4b);_4a.innerHTML+=_4e;}}}mqAddEvent(window,"load",alphaBackgrounds);function alphaBackgrounds(){if(navigator.platform=="Win32"&&navigator.appName=="Microsoft Internet Explorer"&&window.attachEvent){var _4f=navigator.appVersion.match(/MSIE (\d+\.\d+)/,"");var _50=(_4f!=null&&Number(_4f[1])>=5.5);for(i=0;i<document.all.length;i++){var bg=document.all[i].currentStyle.backgroundImage;if(_50&&bg){if(bg.match(/\.png/i)!=null){var _52=bg.substring(5,bg.length-2);document.all[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_52+"', sizingMethod='scale')";document.all[i].style.backgroundImage="url(/images/background-form-button.gif)";}}}}}function mqFormatNumber(num,dec){return Math.floor(num*Math.pow(10,dec))/Math.pow(10,dec);}function mq_display_time(_55){var _56;if(_55>3600){_56=_55/3600;var _57=(" "+Math.floor(_56)+" hours,");_56=(_55/60)%60;_57+=(" "+mqFormatNumber(_56,2)+" minutes");return _57;}if(_55>60){_56=_55/60;return (" "+mqFormatNumber(_56,2)+" minutes");}}function mq_display_distance(_58){return (" "+mqFormatNumber(_58.value,2)+(_58.units=="mi"?" miles":" kilometers"));}var isIE5Mac=(navigator.userAgent.indexOf("MSIE 5")!=-1&&navigator.userAgent.indexOf("Mac")!=-1);function mqCreateFormInput(_59,id,_5b,_5c,_5d,_5e,_5f,_60,_61){var div=_59.appendChild(document.createElement("div"));div.className="row";var _63=div.appendChild(document.createElement("label"));_63.htmlFor=id;_63.appendChild(document.createTextNode(_5c));div.appendChild(document.createElement("br"));var _64=document.createElement("input");_64.id=id;_64.type=_5d;_64.name=_5e;if(_60!=""){_64.size=_60;}if(!isNaN(parseInt(_61))){_64.maxLength=parseInt(_61);}if(_5f!=""){_64.value=_5f;}if(_5b!=""){var _65=div.appendChild(document.createElement("span"));_65.className=_5b;_65.appendChild(_64);}else{div.appendChild(_64);}}function mqCreateInput(_66,id,_68,_69,_6a,_6b,_6c){var _6d=document.createElement("input");_6d.id=id;_6d.type=_68;_6d.name=_69;if(_6b!=""){_6d.size=_6b;}if(!isNaN(parseInt(_6c))){_6d.maxLength=parseInt(_6c);}if(_6a!=""){_6d.value=_6a;}_66.appendChild(_6d);}function mqCreateHiddenInput(_6e,id,_70,_71){var _72;if(isIE5Mac){_72=document.createElement("input type=hidden");}else{_72=document.createElement("input");_72.type="hidden";}_72.name=_70;if(id!=""){_72.id=id;}if(_71!=""){_72.value=_71;}_6e.appendChild(_72);}function mqCreateFormSelect(_73,id,_75,_76,_77,_78,_79){var div=_73.appendChild(document.createElement("div"));div.className="row";var _7b=div.appendChild(document.createElement("label"));_7b.htmlFor=id;_7b.appendChild(document.createTextNode(_76));div.appendChild(document.createElement("br"));if(_75!=""){var _7c=div.appendChild(document.createElement("span"));_7c.className=_75;var _7d=_7c.appendChild(document.createElement("select"));}else{var _7e=div.appendChild(document.createElement("select"));}_7e.id=id;_7e.name=_77;length=_78.length;for(x=0;x<length;x++){var _7f=_7e.appendChild(document.createElement("option"));eval("option.value = elements[x]."+_79);eval("option.appendChild (document.createTextNode (elements[x]."+_79+"))");}return _7e;}function mqCreateDiv(_80,_81,id){var div=_80.appendChild(document.createElement("div"));if(_81!=""){div.className=_81;}if(id!=""){div.id=id;}return div;}function mqCreateA(_84,_85,_86){var a=_84.appendChild(document.createElement("a"));a.href=_85;if(_86!=""){a.title=_86;}return a;}function mqCreateSpan(_88,_89,id){var _8b=_88.appendChild(document.createElement("span"));if(_89!=""){_8b.className=_89;}if(id!=""){_8b.id=id;}return _8b;}function mqCreateImg(_8c,src,_8e,_8f,id,_91,alt){var img=_8c.appendChild(document.createElement("img"));if(src!=""){img.src=src;}if(!isNaN(parseInt(_8e))){img.width=parseInt(_8e);}if(!isNaN(parseInt(_8f))){img.height=parseInt(_8f);}if(id!=""){img.id=id;}if(_91!=""){img.name=_91;}if(alt!=""){img.alt=alt;}return img;}function mqCreateImgDiv(_94,src,_96,_97,id,_99,alt){var div=_94.appendChild(document.createElement("div"));if(id!=""){div.id=id;}if(!isNaN(parseInt(_96))){div.style.width=parseInt(_96)+"px";}if(!isNaN(parseInt(_97))){div.style.height=parseInt(_97)+"px";}if(_99!=""){div.name=_99;}if(alt!=""){div.alt=alt;}return div;}function mqXMLHttpRequest(){var _9c=null;if(window.XMLHttpRequest){try{_9c=new XMLHttpRequest();}catch(e){_9c=null;}}else{if(window.ActiveXObject){try{_9c=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{_9c=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){_9c=null;}}}}return _9c;}function mqAddEvent(_9d,_9e,fn){if(window.opera&&mqBrowserInfo.version<8){var r=_9d.attachEvent("on"+_9e,fn);return r;}else{if(_9d.addEventListener){((window.opera)&&(mqBrowserInfo.version>=8))?_9d.addEventListener(_9e,fn,false):_9d.addEventListener(_9e,fn,true);return true;}else{if(_9d.attachEvent){var r=_9d.attachEvent("on"+_9e,fn);return r;}else{_9d["on"+_9e]=fn;}}}}function mqRemoveEvent(_a2,_a3,fn){if(window.opera){eval("fObj.on"+_a3+" = null");}if(_a2.removeEventListener){((window.opera)&&(mqBrowserInfo.version>=8))?_a2.removeEventListener(_a3,fn,false):_a2.removeEventListener(_a3,fn,true);}else{if(_a2.detachEvent){_a2.detachEvent("on"+_a3,fn);}else{_a2["on"+_a3]=null;}}}function mqGetEventData(evt){fEventData=new Object();if(document.addEventListener){fEventData.id=evt.target.id;fEventData.type=evt.type;fEventData.element=evt.target;}else{if(window.event){fEventData.id=window.event.srcElement.id;fEventData.type=window.event.type;fEventData.element=window.event.srcElement;}else{return null;}}return fEventData;}function mqGetXY(evt){xyData=new Object();if(!document.createElement||!document.getElementsByTagName){return;}if(!document.createElementNS){document.createElementNS=function(ns,elt){return document.createElement(elt);};}if(document.addEventListener&&typeof evt.pageX=="number"){var _a9=evt.target;var _aa=CalculatedTotalOffsetTop=0;while(_a9.offsetParent){_aa+=_a9.offsetLeft;CalculatedTotalOffsetTop+=_a9.offsetTop;_a9=_a9.offsetParent;}var _ab=evt.pageX-_aa;var _ac=evt.pageY-CalculatedTotalOffsetTop;xyData.elementId=evt.target.id;xyData.elementX=_ab;xyData.elementY=_ac;xyData.pageX=evt.pageX;xyData.pageY=evt.pageY;}else{if(window.event&&typeof window.event.offsetX=="number"){xyData.elementId=window.event.srcElement.id;xyData.elementX=event.offsetX;xyData.elementY=event.offsetY;xyData.pageX=0;xyData.pageY=0;var _ad=mqGetElementById(xyData.elementId);while(_ad){xyData.pageX+=_ad.offsetLeft;xyData.pageY+=_ad.offsetTop;_ad=_ad.offsetParent;}xyData.pageX+=xyData.elementX;xyData.pageY+=xyData.elementY;}}return xyData;}function mqGetPDivSize(_ae){size=new MQSize();if(_ae.parent.style.width.length==0){_ae.parent.style.width="800px";}if(_ae.parent.style.height.length==0){_ae.parent.style.height="600px";}size.setWidth(parseInt(_ae.parent.style.width)-4);size.setHeight(parseInt(_ae.parent.style.height)-4);return size;}function mqSetPDivSize(_af,_b0){_af.parent.style.width=_b0.getWidth()+"px";_af.parent.style.height=_b0.getHeight()+"px";}function mqurlencode(_b1){var _b2;_b2=_b1.replace(/%/g,"%25");_b2=_b2.replace(/&/g,"%26");_b2=_b2.replace(/#/g,"%23");_b2=_b2.replace(/\//g,"%2F");_b2=_b2.replace(/:/g,"%3A");_b2=_b2.replace(/;/g,"%3B");_b2=_b2.replace(/=/g,"%3D");_b2=_b2.replace(/\?/g,"%3F");_b2=_b2.replace(/@/g,"%40");_b2=_b2.replace(/\$/g,"%24");_b2=_b2.replace(/,/g,"%2C");_b2=_b2.replace(/\+/g,"%2B");return _b2;}function mqGetGuid(){var org=new Date(2006,0,1);var now=new Date();do{var cur=new Date();}while(cur-now<1);var _b6=cur.getTime()-org.getTime();return (Math.ceil(_b6));}function mqPause(_b7){var now=new Date();var _b9=now.getTime()+_b7;while(true){now=new Date();if(now.getTime()>_b9){return;}}}var _mqLogStartTime=null;var _mqLogCurTime=null;var _mqLogprevTime=null;function mqLogTime(str){if(mqGetElementById("mqTimeLogs")){var _bb=mqGetElementById("mqTimeLogs");var _bc=new Date();if(_mqLogStartTime==null){_bb.value="Time(ms) Difference\t Message\n";_mqLogStartTime=_bc.getTime();_mqLogprevTime=_mqLogStartTime;}_mqLogCurTime=_bc.getTime();var _bd=_mqLogCurTime-_mqLogStartTime;var del=_mqLogCurTime-_mqLogprevTime;_bb.value=_bb.value+_bd+"\t "+del+"\t\t "+str+"\n";_mqLogprevTime=_mqLogCurTime;}}function mqResetTimeLogs(){if(mqGetElementById("mqTimeLogs")){var _bf=mqGetElementById("mqTimeLogs");var _c0=new Date();_bf.value="Time(ms) Difference\t Message\n";_mqLogStartTime=_c0.getTime();_mqLogprevTime=_mqLogStartTime;}}function mqGetAdvantageResultPath(_c1){var _c2;if(_c1=="poiMap"){_c2="poiResults";}else{if(_c1=="locMap"){_c2="locations";}else{if(_c1=="search"){_c2="searchResults";}}}return _c2;}function mqGetAdvantageMapPath(_c3){var _c4;if(_c3=="locMap"){_c4="/advantage/"+_c3+"/locations/location/map";}else{_c4="/advantage/"+_c3+"/map";}return _c4;}function mqPrepareMapUrl(_c5){var _c6="";_c6=_c5.replace(/https?:\/\//,_reqPrefix);_c6=_c6.replace(/mapquest.com:?\d*/,"mapquest.com");_c6=_c6.replace(/iwebsys.aol.com:?\d*/,"iwebsys.aol.com");return _c6;}function display(pid,_c8,_c9,id,_cb){if(mqGetElementById(pid)){var div=mqGetElementById(pid);var _cd=div.appendChild(document.createElement("label"));var bb=_cd.appendChild(document.createElement("b"));bb.appendChild(document.createTextNode(_c8));div.appendChild(document.createElement("br"));var _cf=div.appendChild(document.createElement("textarea"));_cf.className=_cb;_cf.style.overflow="auto";if(id!=null){_cf.id=id;}_cf.appendChild(document.createTextNode(_c9));div.appendChild(document.createElement("br"));div.appendChild(document.createElement("br"));}}function MQBrowser(){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;}function mqGetBrowserInfo(){var _d0=new MQBrowser();_d0.name=_d0.version=_d0.os="unknown";var _d1=window.navigator.userAgent.toLowerCase();var _d2=window.navigator.appName;var _d3=window.navigator.appVersion;var _d4=new Array("firefox","msie","netscape","opera","safari");var _d5=new Array("linux","mac","windows","x11");var _d6=_d4.length;var _d7="";for(var i=0,n=_d6;i<n;i++){_d7=_d1.indexOf(_d4[i])+1;if(_d7>0){_d0.name=_d4[i];var _d9=_d7+_d0.name.length;var _da=((_d0.name=="safari")||(_d1.charAt(_d9+4)>0&&_d1.charAt(_d9+4)<9))?5:3;_d0.version=_d1.substring(_d9,_d9+_da);}}var _db=_d5.length;for(var j=0,m=_db;j<m;j++){_d7=_d1.indexOf(_d5[j])+1;if(_d7>0){_d0.os=_d5[j];}}if(_d2=="Netscape"){_d0.appname="ns";}else{if(_d2=="Microsoft Internet Explorer"){_d0.appname="ie";}}_d0.appVersion=_d3;_d0.vMajor=parseInt(_d0.appVersion);_d0.isNS=(_d0.appname=="ns"&&_d0.vMajor>=4);_d0.isNS4=(_d0.appname=="ns"&&_d0.vMajor==4);_d0.isNS6=(_d0.appname=="ns"&&_d0.vMajor==5);_d0.isIE=(_d0.appname=="ie"&&_d0.vMajor>=4);_d0.isIE4=(_d0.appVersion.indexOf("MSIE 4")>0);_d0.isIE5=(_d0.appVersion.indexOf("MSIE 5")>0);_d0.isDOM=(document.createElement&&document.appendChild&&document.getElementsByTagName)?true:false;_d0.isSafari=(_d0.name=="safari");if(_d1.indexOf("win")>-1){_d0.platform="win";}else{if(_d1.indexOf("mac")>-1){_d0.platform="mac";}else{_d0.platform="other";}}return _d0;}var mqBrowserInfo=mqGetBrowserInfo();function MQObject(){var _dd=null;this.getM_XmlDoc=function(){return _dd;};this.setM_XmlDoc=function(_de){_dd=_de;};var _df=null;this.getM_Xpath=function(){return _df;};this.setM_Xpath=function(_e0){_df=_e0;};}MQObject.prototype.getClassName=function(){return "MQObject";};MQObject.prototype.getObjectVersion=function(){return 0;};MQObject.prototype.setProperty=function(_e1,_e2){var _e3;if(_e1!==null){_e3="/"+this.getM_Xpath()+"/"+_e1;}else{_e3="/"+this.getM_Xpath();}var _e4=mqSetNodeText(this.getM_XmlDoc(),_e3,_e2);if(_e4===null){var _e5=this.getM_XmlDoc().createElement(_e1);var _e6=this.getM_XmlDoc().documentElement.appendChild(_e5);_e4=mqSetNodeText(this.getM_XmlDoc(),_e3,_e2);}return _e4;};MQObject.prototype.getProperty=function(_e7){var _e8;if(_e7!==null){_e8="/"+this.getM_Xpath()+"/"+_e7;}else{_e8="/"+this.getM_Xpath();}return mqGetXPathNodeText(this.getM_XmlDoc(),_e8);};MQObject.prototype.copy=function(){var cp=new this.constructor;cp.loadXml(this.saveXml());return cp;};MQObject.prototype.internalCopy=function(obj){var _eb="<"+obj.getM_Xpath();if(this.getObjectVersion()>0){_eb=_eb+" Version=\""+this.getObjectVersion()+"\"";}_eb=_eb+">";var _ec=this.getM_XmlDoc().documentElement;var _ed=_ec.childNodes;var _ee=_ed.length;for(var _ef=0;_ef<_ee;_ef++){_eb=_eb+mqXmlToStr(_ed[_ef]);}_eb=_eb+"</"+obj.getM_Xpath()+">";var cp=new this.constructor;cp.loadXml(_eb);return cp;};MQPoint.prototype=new MQObject();MQPoint.prototype.constructor=MQPoint;function MQPoint(_f1,_f2){MQObject.call(this);this.x=0;this.y=0;this.setM_Xpath("Point");if(arguments.length==1){this.setM_Xpath(_f1);}else{if(arguments.length==2){this.x=parseInt(_f1);this.y=parseInt(_f2);if(isNaN(this.x)||isNaN(this.y)){throw new Error("MQPoint 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");}}}}MQPoint.prototype.getClassName=function(){return "MQPoint";};MQPoint.prototype.getObjectVersion=function(){return 0;};MQPoint.prototype.loadXml=function(_f3){if("undefined"!==typeof (mqutils)){this.setM_XmlDoc(mqCreateXMLDoc(_f3));this.x=this.getProperty("X");this.y=this.getProperty("Y");}};MQPoint.prototype.saveXml=function(){return "<"+this.getM_Xpath()+"><X>"+this.x+"</X><Y>"+this.y+"</Y></"+this.getM_Xpath()+">";};MQPoint.prototype.setX=function(x){this.x=parseInt(x);if(isNaN(this.x)){throw new Error("MQPoint.setX called with invalid parameter");}};MQPoint.prototype.getX=function(){return this.x;};MQPoint.prototype.setY=function(y){this.y=parseInt(y);if(isNaN(this.y)){throw new Error("MQPoint.setY called with invalid parameter");}};MQPoint.prototype.getY=function(){return this.y;};MQPoint.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");}};MQPoint.prototype.valid=function(){if("undefined"!==typeof (mqutils)){return (Math.abs(this.x!=MQCONSTANT.MQPOINT_INVALID)&&Math.abs(this.y!=MQCONSTANT.MQPOINT_INVALID));}return false;};MQPoint.prototype.equals=function(pt){if(pt){return (this.x===pt.x&&this.y===pt.y);}return false;};MQPoint.prototype.toString=function(){return this.x+","+this.y;};MQLatLng.prototype=new MQObject();MQLatLng.prototype.constructor=MQLatLng;function MQLatLng(_f9,_fa){MQObject.call(this);this.lat=0;this.lng=0;this.setM_Xpath("LatLng");if(arguments.length==1){this.setM_Xpath(_f9);}else{if(arguments.length==2){this.lat=parseFloat(_f9);this.lng=parseFloat(_fa);if(isNaN(this.lat)||isNaN(this.lng)){throw new Error("MQLatLng constructor called with invalid parameter");}}else{if(arguments.length>2){throw new Error("MQLatLng constructor called with "+arguments.length+" arguments, but it expects 0, 1, or 2 arguments.");}}}}MQLatLng.prototype.getClassName=function(){return "MQLatLng";};MQLatLng.prototype.getObjectVersion=function(){return 0;};MQLatLng.prototype.loadXml=function(_fb){if("undefined"!==typeof (mqutils)){this.setM_XmlDoc(mqCreateXMLDoc(_fb));this.lat=this.getProperty("Lat");this.lng=this.getProperty("Lng");}};MQLatLng.prototype.saveXml=function(){return "<"+this.getM_Xpath()+"><Lat>"+this.lat+"</Lat><Lng>"+this.lng+"</Lng></"+this.getM_Xpath()+">";};MQLatLng.prototype.setLatitude=function(_fc){this.lat=parseFloat(_fc);if(isNaN(this.lat)){throw new Error("MQLatLng.setLatitude called with invalid parameter");}};MQLatLng.prototype.getLatitude=function(){return this.lat;};MQLatLng.prototype.setLongitude=function(_fd){this.lng=parseFloat(_fd);if(isNaN(this.lng)){throw new Error("MQLatLng.setLongitude called with invalid parameter");}};MQLatLng.prototype.getLongitude=function(){return this.lng;};MQLatLng.prototype.setLatLng=function(_fe,_ff){this.lat=parseFloat(_fe);this.lng=parseFloat(_ff);if(isNaN(this.lat)||isNaN(this.lng)){throw new Error("MQLatLng.setLatLng called with invalid parameter");}};MQLatLng.prototype.arcDistance=function(ll2,_101){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(_101){mqIsClass("MQDistanceUnits",_101,false);}else{_101=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(this.getLatitude()==ll2.getLatitude()&&this.getLongitude()==ll2.getLongitude()){return 0;}var dLon=ll2.getLongitude()-this.getLongitude();var a=MQCONSTANT.MQLATLNG_RADIANS*(90-this.getLatitude());var c=MQCONSTANT.MQLATLNG_RADIANS*(90-ll2.getLatitude());var cosB=(Math.cos(a)*Math.cos(c))+(Math.sin(a)*Math.sin(c)*Math.cos(MQCONSTANT.MQLATLNG_RADIANS*(dLon)));var _106=(_101.getValue()===MQCONSTANT.MQDISTANCEUNITS_MILES)?3963.205:6378.160187;if(cosB<-1){return MQCONSTANT.PI*_106;}else{if(cosB>=1){return 0;}else{return Math.acos(cosB)*_106;}}}return -1;};MQLatLng.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;};MQLatLng.prototype.equals=function(ll){if(ll!==null){return (this.getLongitude()===ll.getLongitude()&&this.getLatitude()===ll.getLatitude());}return false;};MQLatLng.prototype.toString=function(){return this.lat+","+this.lng;};try{var testCommons=new MQObject();testCommons=null;}catch(error){throw "You must include mqcommon.js or toolkit api script prior to mqexec.js.";}function MQExec(_108,_109,_10a,_10b,_10c,_10d){var _10e;var _10f;var _110;var _111;var _112;var _113;var _114;var _115="";if(typeof _108=="string"){_10e=_108||"localhost";_10f=_109||"mq";_110=_10a||80;_111=_10c||"";_112=_10b||"";_113=_10d||0;_114=0;}else{if(_108.getClassName()&&_108.getClassName()=="MQExec"){_10e=_108.getServerName();_10f=_108.getServerPath();_110=_108.getServerPort();_112=_108.getProxyServerName();_113=_108.getProxyServerPort();_111=_108.getProxyServerPath();_114=_108.m_lSocketTimeout;}}this.setServerName=function(_116){_10e=_116;};this.getServerName=function(){return _10e;};this.setServerPath=function(_117){_10f=_117;};this.getServerPath=function(){return _10f;};this.setServerPort=function(_118){_110=_118;};this.getServerPort=function(){return _110;};this.setProxyServerName=function(_119){_112=_119;};this.getProxyServerName=function(){return _112;};this.setProxyServerPath=function(_11a){_111=_11a;};this.getProxyServerPath=function(){return _111;};this.setProxyServerPort=function(_11b){_113=_11b;};this.getProxyServerPort=function(){return _113;};this.setTransactionInfo=function(_11c){if(_11c.length>32){_115=_11c.substring(0,32);}else{_115=_11c;}};this.getTransactionInfo=function(){return _115;};}MQExec.prototype.ROUTE_VERSION="2";MQExec.prototype.SEARCH_VERSION="0";MQExec.prototype.GEOCODE_VERSION="1";MQExec.prototype.ROUTEMATRIX_VERSION="0";MQExec.prototype.GETRECORDINFO_VERSION="0";MQExec.prototype.REVERSEGEOCODE_VERSION="0";MQExec.prototype.GETSESSION_VERSION="1";MQExec.prototype.getRequestXml=function(_11d,_11e,_11f){var _120=new Array();var _121=_11f||"0";_120.push("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n");_120.push("<"+_11d+" Version=\""+_121+"\">\n");for(var i=0;i<_11e.length;i++){_120.push(_11e[i].saveXml());_120.push("\n");}_120.push("</"+_11d+">");return _120.join("");};MQExec.prototype.doTransaction=function(_123,_124,_125){var _126;var _127;var _128=mqXMLHttpRequest();var _129="";_124.push(new MQAuthentication(this.getTransactionInfo()));var _12a=this.getRequestXml(_123,_124,_125);if(this.getProxyServerName()!=""){_129+="http://"+this.getProxyServerName();if(this.getProxyServerPort()!=0){_129+=":"+this.getProxyServerPort();}_129+="/";}_129+=this.getProxyServerPath();_129+="?sname="+this.getServerName();_129+="&spath="+this.getServerPath();_129+="&sport="+this.getServerPort();display("mqXmlLogs","Request URL: ",_129,"rURL","mqDisplay");display("mqXmlLogs","Request XML: ",_12a,"","mqDisplay");_128.open("POST",_129,false);_128.send(_12a);if(_128.status==200){_126=_128.responseXML;}else{alert("HTTP Status: "+_128.status+" ("+_128.statusText+")\n"+"Details: \n"+_128.responseText);_126=null;}display("mqXmlLogs","Response XML: ",mqXmlToStr(_126),"resXML","mqDisplay");return _126;};MQExec.prototype.geocode=function(_12b,_12c,_12d){var _12e;var _12f;var _130=new Array();if(_12b==null||_12b.getClassName()!=="MQAddress"){throw "Null or Illegal Argument passed for MQAddress";}else{_130.push(_12b);}if(_12c==null||_12c.getClassName()!=="MQLocationCollection"){throw "Null or Illegal Argument passed for MQLocationCollection";}if(_12d!=null){if(_12d.getClassName()!=="MQAutoGeocodeCovSwitch"&&_12d.getClassName()!=="MQGeocodeOptionsCollection"){throw "Illegal Argument passed for Geocode Options";}else{_130.push(_12d);}}mqLogTime("MQExec.geocode: Transaction Start");_12e=this.doTransaction("Geocode",_130,this.GEOCODE_VERSION);mqLogTime("MQExec.geocode: Transaction End");mqLogTime("MQExec.geocode: Loading of GeocodeResponse Start");_12f=mqXmlToStr(mqGetNode(_12e,"/GeocodeResponse/LocationCollection"));_12c.loadXml(_12f);mqLogTime("MQExec.geocode: Loading of GeocodeResponse End");display("results","Response",mqXmlToStr(_12e),"","mqDisplay");};MQExec.prototype.doRoute=function(_131,_132,_133,_134,_135){var _136;var _137;var _138=new Array();if(_131==null||_131.getClassName()!=="MQLocationCollection"){throw "Null or Illegal Argument passed for MQLocationCollection";}else{_138.push(_131);}if(_132==null||_132.getClassName()!=="MQRouteOptions"){throw "Null or Illegal Argument passed for MQRouteOptions";}else{_138.push(_132);}if(_133==null||_133.getClassName()!=="MQRouteResults"){throw "Null or Illegal Argument passed for MQRouteResults";}else{var _139=_134||"";_138.push(new MQXmlNodeObject("SessionID",_139));}mqLogTime("MQExec.doRoute: Transaction Start");_136=this.doTransaction("DoRoute",_138,this.ROUTE_VERSION);mqLogTime("MQExec.doRoute: Transaction End");mqLogTime("MQExec.doRoute: Loading of RouteResults Start");_137=mqXmlToStr(mqGetNode(_136,"/DoRouteResponse/RouteResults"));_133.loadXml(_137);mqLogTime("MQExec.doRoute: Loading of RouteResults End");display("results","Response",mqXmlToStr(_136),"","mqDisplay");if(_135!==null&&_139!==""){this.getRouteBoundingBoxFromSessionResponse(_139,_135);}};MQExec.prototype.createSessionEx=function(_13a){var _13b;var _13c;var _13d=new Array();if(_13a==null||_13a.getClassName()!=="MQSession"){throw "Null or Illegal Argument passed for MQSession";}else{_13d.push(_13a);}_13b=this.doTransaction("CreateSession",_13d);_13c=mqGetNodeText(mqGetNode(_13b,"/CreateSessionResponse/SessionID"));return _13c;};MQExec.prototype.getSession=function(_13e,_13f){var _140;var _141;var _142=_13e||"";var _143=new Array();_143.push(new MQXmlNodeObject("SessionID",_142));_140=this.doTransaction("GetSession",_143,this.GETSESSION_VERSION);if(_13f.getClassName()==="MQMapState"){_141=mqXmlToStr(mqGetNode(_140,"/GetSessionResponse/Session/MapState"));_13f.loadXml(_141);}else{if(_13f.getClassName()==="MQSession"){_141=mqXmlToStr(mqGetNode(_140,"/GetSessionResponse/Session"));_13f.loadXml(_141);}}};MQExec.prototype.doRouteMatrix=function(_144,_145,_146,_147){var _148;var _149;var _14a=new Array();if(_144==null||_144.getClassName()!=="MQLocationCollection"){throw "Null or Illegal Argument passed for MQLocationCollection";}else{_14a.push(_144);}if(_145==null||typeof _145!="boolean"){throw "Null or Illegal Argument passed for bAllToAll";}else{var _14b=_145?1:0;_14a.push(new MQXmlNodeObject("AllToAll",_14b));}if(_146==null||_146.getClassName()!=="MQRouteOptions"){throw "Null or Illegal Argument passed for MQRouteOptions";}else{_14a.push(_146);}if(_147==null||_147.getClassName()!=="MQRouteMatrixResults"){throw "Null or Illegal Argument passed for MQRouteMatrixResults";}mqLogTime("MQExec.doRoute: Transaction Start");_148=this.doTransaction("DoRouteMatrix",_14a,this.ROUTEMATRIX_VERSION);mqLogTime("MQExec.doRoute: Transaction End");mqLogTime("MQExec.doRoute: Loading of RouteResults Start");_149=mqXmlToStr(mqGetNode(_148,"/DoRouteMatrixResponse/RouteMatrixResults"));_147.loadXml(_149);mqLogTime("MQExec.doRoute: Loading of RouteResults End");display("results","Response",mqXmlToStr(_148),"","mqDisplay");};MQExec.prototype.getRecordInfo=function(_14c,_14d,_14e,_14f){var _150;var _151;var _152=new Array();if(_14c==null||_14c.getClassName()!=="MQStringCollection"){throw "Null or Illegal Argument passed for MQStringCollection";}else{var _153=new MQStringCollection();_153.setM_Xpath("Fields");_153.append(_14c);_152.push(_153);}if(_14d==null||_14d.getClassName()!=="MQDBLayerQuery"){throw "Null or Illegal Argument passed for MQDBLayerQuery";}else{_152.push(_14d);}if(_14e==null||_14e.getClassName()!=="MQRecordSet"){throw "Null or Illegal Argument passed for MQRecordSet";}if(_14f==null||_14f.getClassName()!=="MQStringCollection"){throw "Null or Illegal Argument passed for MQStringCollection";}else{var _154=new MQStringCollection();_154.setM_Xpath("RecordIds");_154.append(_14f);_152.push(_154);}mqLogTime("MQExec.getRecordInfo: Transaction Start");_150=this.doTransaction("GetRecordInfo",_152,this.GETRECORDINFO_VERSION);mqLogTime("MQExec.getRecordInfo: Transaction End");mqLogTime("MQExec.getRecordInfo: Loading of RecordSet Start");_151=mqXmlToStr(mqGetNode(_150,"/GetRecordInfoResponse/RecordSet"));_14e.loadXml(_151);mqLogTime("MQExec.getRecordInfo: Loading of RecordSet End");display("results","Response",mqXmlToStr(_150),"","mqDisplay");};MQExec.prototype.reverseGeocode=function(_155,_156,_157,_158){var _159;var _15a;var _15b=new Array();if(_155==null||_155.getClassName()!=="MQLatLng"){throw "Null or Illegal Argument passed for MQLatLng";}else{_15b.push(_155);}if(_156==null||_156.getClassName()!=="MQLocationCollection"){throw "Null or Illegal Argument passed for MQLocationCollection";}var _15c=_157||"";_15b.push(new MQXmlNodeObject("MapPool",_15c));var _15d=_158||"";_15b.push(new MQXmlNodeObject("GeocodePool",_15d));mqLogTime("MQExec.reverseGeocode: Transaction Start");_159=this.doTransaction("ReverseGeocode",_15b,this.REVERSEGEOCODE_VERSION);mqLogTime("MQExec.reverseGeocode: Transaction End");mqLogTime("MQExec.reverseGeocode: Loading of Response Start");_15a=mqXmlToStr(mqGetNode(_159,"/ReverseGeocodeResponse/LocationCollection"));_156.loadXml(_15a);mqLogTime("MQExec.reverseGeocode: Loading of Response End");display("results","Response",mqXmlToStr(_159),"","mqDisplay");};MQExec.prototype.search=function(_15e,_15f,_160,_161,_162,_163){var _164;var _165;var _166=new Array();var _167=_15e?_15e.getClassName():null;if(_167==null||(_167!=="MQSearchCriteria"&&_167!=="MQRadiusSearchCriteria"&&_167!=="MQRectSearchCriteria"&&_167!=="MQPolySearchCriteria"&&_167!=="MQCorridorSearchCriteria")){throw "Null or Illegal Argument passed for Search Criteria";}else{_166.push(_15e);}if(_15f==null||_15f.getClassName()!=="MQFeatureCollection"){throw "Null or Illegal Argument passed for MQFeatureCollection";}if(typeof _160!=="string"){throw "Illegal Argument passed for strCoverageName";}else{_166.push(new MQXmlNodeObject("CoverageName",_160));}if(_161!=null&&_161.getClassName()!=="MQDBLayerQueryCollection"){throw "Illegal Argument passed for MQRouteOptions";}else{if(_161==null){_161=new MQDBLayerQueryCollection();}}_166.push(_161);if(_162!=null&&_162.getClassName()!=="MQFeatureCollection"){throw "Illegal Argument passed for MQFeatureCollection";}else{if(_162==null){_162=new MQFeatureCollection();}}_166.push(_162);if(_163!=null&&_163.getClassName()!=="MQDTCollection"){throw "Illegal Argument passed for MQDTCollection";}else{if(_163==null){_163=new MQDTCollection();}}_166.push(_163);mqLogTime("MQExec.Search: Transaction Start");_164=this.doTransaction("Search",_166,this.SEARCH_VERSION);mqLogTime("MQExec.Search: Transaction End");mqLogTime("MQExec.Search: Loading of Search results Start");_165=mqXmlToStr(mqGetNode(_164,"/SearchResponse/FeatureCollection"));_15f.loadXml(_165);mqLogTime("MQExec.Search: Loading of Search results End");display("results","Response",mqXmlToStr(_164),"","mqDisplay");};MQExec.prototype.getRouteBoundingBoxFromSessionResponse=function(_168,_169){var _16a;var _16b;var _16c=new Array();if(_169==null){throw "Null or Illegal Argument passed for MQRectLL";}_16c.push(new MQXmlNodeObject("SessionID",_168));_16a=this.doTransaction("GetRouteBoundingBoxFromSession",_16c);mqLogTime("MQExec.doRoute: Loading of MQRectLL Start");var _16d=_16a.documentElement.childNodes;var ul=new MQLatLng();ul.loadXml(mqXmlToStr(_16d[0]));var lr=new MQLatLng();lr.loadXml(mqXmlToStr(_16d[1]));_169.setUpperLeft(ul);_169.setLowerRight(lr);mqLogTime("MQExec.doRoute: Loading of MQRectLL End");};MQExec.prototype.isAlive=function(){if(this.getServerPort()==-1||this.getServerName()==""){return false;}return true;};MQExec.prototype.getServerInfo=function(_170){if(!this.isAlive()){return null;}var _171;var _172;var _173;var type=_170||0;var _175=new Array();if(typeof type!=="number"){throw "Illegal Argument passed for lType";}else{_175.push(new MQXmlNodeObject("Type",type));}mqLogTime("MQExec.GetServerInfo: Transaction Start");_172=this.doTransaction("GetServerInfo",_175);mqLogTime("MQExec.GetServerInfo: Transaction End");display("results","Response",mqXmlToStr(_172),"","mqDisplay");return _172;};try{var testCommons=new MQObject();testCommons=null;}catch(error){throw "You must include mqcommon.js or toolkit api script prior to mqobjects.js.";}function mqIsClass(_176,_177,_178){if(_177!==null){try{_177.getClassName();}catch(error){throw "InvalidClassException";}if(_177.getClassName()===_176){return true;}else{throw "InvalidClassException";}}else{if(_178){return true;}}throw "NullPointerException";}function MQConstants(){this.MQDISTANCEUNITS_MILES=0;this.MQDISTANCEUNITS_KILOMETERS=1;this.MQLATLNG_RADIANS=0.01745329251994;this.MQLATLNG_INVALID=314159.265358;this.MQLATLNG_TOLERANCE=0.000001;this.MQPOINT_INVALID=32767;this.PI=3.141592653589793;this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT=68.9;this.MQSEARCHCRITERIA_DEGREES_LAT_PER_MILE=(1/this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT);this.DISTANCEAPPROX_MILES_PER_LATITUDE=69.170976;this.DISTANCEAPPROX_KILOMETERS_PER_MILE=1.609347;this.MQROUTETYPE_FASTEST=0;this.MQROUTETYPE_SHORTEST=1;this.MQROUTETYPE_PEDESTRIAN=2;this.MQROUTETYPE_OPTIMIZED=3;this.MQROUTETYPE_SELECT_DATASET_ONLY=4;this.MQNARRATIVETYPE_DEFAULT=0;this.MQNARRATIVETYPE_HTML=1;this.MQNARRATIVETYPE_NONE=-1;this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_LIMITED_ACCESS="Limited Access";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_TOLL_ROAD="Toll Road";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_FERRY="Ferry";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_UNPAVED_ROAD="Unpaved";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_SEASONAL="Approximate seasonal closure";this.MQROUTEOPTIONS_LANGUAGE_ENGLISH="English";this.MQROUTEOPTIONS_LANGUAGE_FRENCH="French";this.MQROUTEOPTIONS_LANGUAGE_GERMAN="German";this.MQROUTEOPTIONS_LANGUAGE_ITALIAN="Italian";this.MQROUTEOPTIONS_LANGUAGE_SPANISH="Spanish";this.MQROUTEOPTIONS_LANGUAGE_DANISH="Danish";this.MQROUTEOPTIONS_LANGUAGE_DUTCH="Dutch";this.MQROUTEOPTIONS_LANGUAGE_NORWEGIAN="Norwegian";this.MQROUTEOPTIONS_LANGUAGE_SWEDISH="Swedish";this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_SPANISH="Iberian Spanish";this.MQROUTEOPTIONS_LANGUAGE_BRITISH_ENGLISH="British English";this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_PORTUGUESE="Iberian Portuguese";this.MQROUTERESULTSCODE_NOT_SPECIFIED=-1;this.MQROUTERESULTSCODE_SUCCESS=0;this.MQROUTERESULTSCODE_INVALID_LOCATION=1;this.MQROUTERESULTSCODE_ROUTE_FAILURE=2;this.MQROUTERESULTSCODE_NO_DATASET_FOUND=3;this.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED=-1;this.MQROUTEMATRIXRESULTSCODE_SUCCESS=0;this.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION=1;this.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE=2;this.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND=3;this.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION=4;this.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS=5;this.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS=6;this.MQMANEUVER_HEADING_NULL=0;this.MQMANEUVER_HEADING_NORTH=1;this.MQMANEUVER_HEADING_NORTH_WEST=2;this.MQMANEUVER_HEADING_NORTH_EAST=3;this.MQMANEUVER_HEADING_SOUTH=4;this.MQMANEUVER_HEADING_SOUTH_EAST=5;this.MQMANEUVER_HEADING_SOUTH_WEST=6;this.MQMANEUVER_HEADING_WEST=7;this.MQMANEUVER_HEADING_EAST=8;this.MQMANEUVER_TURN_TYPE_STRAIGHT=0;this.MQMANEUVER_TURN_TYPE_SLIGHT_RIGHT=1;this.MQMANEUVER_TURN_TYPE_RIGHT=2;this.MQMANEUVER_TURN_TYPE_SHARP_RIGHT=3;this.MQMANEUVER_TURN_TYPE_REVERSE=4;this.MQMANEUVER_TURN_TYPE_SHARP_LEFT=5;this.MQMANEUVER_TURN_TYPE_LEFT=6;this.MQMANEUVER_TURN_TYPE_SLIGHT_LEFT=7;this.MQMANEUVER_TURN_TYPE_RIGHT_UTURN=8;this.MQMANEUVER_TURN_TYPE_LEFT_UTURN=9;this.MQMANEUVER_TURN_TYPE_RIGHT_MERGE=10;this.MQMANEUVER_TURN_TYPE_LEFT_MERGE=11;this.MQMANEUVER_TURN_TYPE_RIGHT_ON_RAMP=12;this.MQMANEUVER_TURN_TYPE_LEFT_ON_RAMP=13;this.MQMANEUVER_TURN_TYPE_RIGHT_OFF_RAMP=14;this.MQMANEUVER_TURN_TYPE_LEFT_OFF_RAMP=15;this.MQMANEUVER_TURN_TYPE_RIGHT_FORK=16;this.MQMANEUVER_TURN_TYPE_LEFT_FORK=17;this.MQMANEUVER_TURN_TYPE_STRAIGHT_FORK=18;this.MQMANEUVER_ATTRIBUTE_PORTIONS_TOLL=1;this.MQMANEUVER_ATTRIBUTE_PORTIONS_UNPAVED=2;this.MQMANEUVER_ATTRIBUTE_POSSIBLE_SEASONAL_ROAD_CLOSURE=4;this.MQMANEUVER_ATTRIBUTE_GATE=8;this.MQMANEUVER_ATTRIBUTE_FERRY=16;this.MQCOORDINATETYPE_GEOGRAPHIC=1;this.MQCOORDINATETYPE_DISPLAY=2;this.MQDRAWTRIGGER_BEFORE_POLYGONS=3585;this.MQDRAWTRIGGER_AFTER_POLYGONS=3586;this.MQDRAWTRIGGER_BEFORE_TEXT=3588;this.MQDRAWTRIGGER_AFTER_TEXT=3618;this.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT=3616;this.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT=3617;this.MQPENSTYLE_SOLID=0;this.MQPENSTYLE_DASH=1;this.MQPENSTYLE_DOT=2;this.MQPENSTYLE_DASH_DOT=3;this.MQPENSTYLE_DASH_DOT_DOT=4;this.MQPENSTYLE_NONE=5;this.MQCOLORSTYLE_INVALID=4294967295;this.MQCOLORSTYLE_BLACK=0;this.MQCOLORSTYLE_BLUE=16711680;this.MQCOLORSTYLE_CYAN=16776960;this.MQCOLORSTYLE_DARK_GRAY=4210752;this.MQCOLORSTYLE_GRAY=8421504;this.MQCOLORSTYLE_GREEN=65280;this.MQCOLORSTYLE_LIGHT_GRAY=12632256;this.MQCOLORSTYLE_MAGENTA=16711935;this.MQCOLORSTYLE_ORANGE=51455;this.MQCOLORSTYLE_PINK=11513855;this.MQCOLORSTYLE_RED=255;this.MQCOLORSTYLE_WHITE=16777215;this.MQCOLORSTYLE_YELLOW=65535;this.MQFILLSTYLE_SOLID=0;this.MQFILLSTYLE_BDIAGONAL=1;this.MQFILLSTYLE_CROSS=2;this.MQFILLSTYLE_DIAG_CROSS=3;this.MQFILLSTYLE_FDIAGONAL=4;this.MQFILLSTYLE_HORIZONTAL=5;this.MQFILLSTYLE_VERTICAL=6;this.MQFILLSTYLE_NONE=7;this.MQSYMBOLTYPE_RASTER=0;this.MQSYMBOLTYPE_VECTOR=1;this.MQTEXTALIGNMENT_CENTER=1;this.MQTEXTALIGNMENT_LEFT=2;this.MQTEXTALIGNMENT_RIGHT=4;this.MQTEXTALIGNMENT_BASELINE=8;this.MQTEXTALIGNMENT_BOTTOM=16;this.MQTEXTALIGNMENT_TOP=32;this.MQFONTSTYLE_INVALID=-1;this.MQFONTSTYLE_NORMAL=0;this.MQFONTSTYLE_BOLD=1;this.MQFONTSTYLE_BOXED=2;this.MQFONTSTYLE_OUTLINED=4;this.MQFONTSTYLE_ITALICS=8;this.MQFONTSTYLE_UNDERLINE=16;this.MQFONTSTYLE_STRIKEOUT=32;this.MQFONTSTYLE_THIN=64;this.MQFONTSTYLE_SEMIBOLD=128;this.MQFONTSTYLE_MAX_VALUE=256;this.MQBASEDTSTYLE_DT_NULL=65532;this.MQBASEDTSTYLE_CT_ROAD=0;this.MQBASEDTSTYLE_CT_LINE=1;this.MQBASEDTSTYLE_CT_POLYGON=2;this.MQBASEDTSTYLE_CT_POINT=3;this.MQBASEDTSTYLE_CT_POI=4;this.MQBASEDTSTYLE_CT_SEED=5;this.MQBASEDTSTYLE_CT_DISPLAYLIST=6;this.MQBASEDTSTYLE_CT_APP=7;this.MQBASEDTSTYLE_CT_XA=8;this.MQBASEDTSTYLE_BT_LINE=0;this.MQBASEDTSTYLE_BT_POLYGON=1;this.MQBASEDTSTYLE_BT_POINT=2;this.MQBASEDTSTYLE_BT_OTHER=3;this.MQBASEDTSTYLE_BT_XA=4;this.MQFEATURESPECIFERATTRIBUTETYPE_GEFID=0;this.MQFEATURESPECIFERATTRIBUTETYPE_NAME=1;this.MQMATCHTYPE_LOC=0;this.MQMATCHTYPE_INTR=1;this.MQMATCHTYPE_NEARBLK=2;this.MQMATCHTYPE_REPBLK=3;this.MQMATCHTYPE_BLOCK=4;this.MQMATCHTYPE_AA1=5;this.MQMATCHTYPE_AA2=6;this.MQMATCHTYPE_AA3=7;this.MQMATCHTYPE_AA4=8;this.MQMATCHTYPE_AA5=9;this.MQMATCHTYPE_AA6=10;this.MQMATCHTYPE_AA7=11;this.MQMATCHTYPE_PC1=12;this.MQMATCHTYPE_PC2=13;this.MQMATCHTYPE_PC3=14;this.MQMATCHTYPE_PC4=15;this.MQMATCHTYPE_POI=16;this.MQQUALITYTYPE_EXACT=0;this.MQQUALITYTYPE_GOOD=1;this.MQQUALITYTYPE_APPROX=2;}var MQCONSTANT=new MQConstants();function MQErrors(){this.RECORDSET_GETFIELD_1="failure in getField -- m_curRec is not Pointing to an existing Record";this.RECORDSET_GETFIELD_2="failure in getField -- could not find strFieldName";this.RECORDSET_MOVEFIRST_1="failure in moveFirst -- Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVELAST_1="Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVENEXT_1="Error Moving Cursor, EOF was true.";this.RECORDSET_MOVENEXT_2="Error Moving Cursor, Unknown Error.";this.RECORDSET_MOVENEXT_3="Error Moving Cursor, RecordSet is Empty.";}var MQERROR=new MQErrors();function MQXMLDOC(){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.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.MANEUVERCOLLECTION=null;this.SIGNCOLLECTION=null;this.STRINGCOLLECTION=null;this.STRCOLCOLLECTION=null;this.FEATURECOLLECTION=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=mqCreateXMLDoc("<AutoGeocodeCovSwitch/>");}return this.AUTOGEOCODECOVSWITCH;};this.getAUTOROUTECOVSWITCH=function(){if(this.AUTOROUTECOVSWITCH===null){this.AUTOROUTECOVSWITCH=mqCreateXMLDoc("<AutoRouteCovSwitch><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/></AutoRouteCovSwitch>");}return this.AUTOROUTECOVSWITCH;};this.getAUTOMAPCOVSWITCH=function(){if(this.AUTOMAPCOVSWITCH===null){this.AUTOMAPCOVSWITCH=mqCreateXMLDoc("<AutoMapCovSwitch><Name/><Style/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/><ZoomLevels Count=\"14\"><Item>6000</Item><Item>12000</Item><Item>24000</Item><Item>48000</Item><Item>96000</Item><Item>192000</Item><Item>400000</Item><Item>800000</Item><Item>1600000</Item><Item>3000000</Item><Item>6000000</Item><Item>12000000</Item><Item>24000000</Item><Item>48000000</Item></ZoomLevels></AutoMapCovSwitch>");}return this.AUTOMAPCOVSWITCH;};this.getDBLAYERQUERY=function(){if(this.DBLAYERQUERY===null){this.DBLAYERQUERY=mqCreateXMLDoc("<DBLayerQuery/>");}return this.DBLAYERQUERY;};this.getLINEPRIMITIVE=function(){if(this.LINEPRIMITIVE===null){this.LINEPRIMITIVE=mqCreateXMLDoc("<LinePrimitive Version=\"2\"/>");}return this.LINEPRIMITIVE;};this.getPOLYGONPRIMITIVE=function(){if(this.POLYGONPRIMITIVE===null){this.POLYGONPRIMITIVE=mqCreateXMLDoc("<PolygonPrimitive Version=\"2\"/>");}return this.POLYGONPRIMITIVE;};this.getRECTANGLEPRIMITIVE=function(){if(this.RECTANGLEPRIMITIVE===null){this.RECTANGLEPRIMITIVE=mqCreateXMLDoc("<RectanglePrimitive Version=\"2\"/>");}return this.RECTANGLEPRIMITIVE;};this.getELLIPSEPRIMITIVE=function(){if(this.ELLIPSEPRIMITIVE===null){this.ELLIPSEPRIMITIVE=mqCreateXMLDoc("<EllipsePrimitive Version=\"2\"/>");}return this.ELLIPSEPRIMITIVE;};this.getTEXTPRIMITIVE=function(){if(this.TEXTPRIMITIVE===null){this.TEXTPRIMITIVE=mqCreateXMLDoc("<TextPrimitive Version=\"2\"/>");}return this.TEXTPRIMITIVE;};this.getSYMBOLPRIMITIVE=function(){if(this.SYMBOLPRIMITIVE===null){this.SYMBOLPRIMITIVE=mqCreateXMLDoc("<SymbolPrimitive Version=\"2\"/>");}return this.SYMBOLPRIMITIVE;};this.getLATLNG=function(){if(this.LATLNG===null){this.LATLNG=mqCreateXMLDoc("<LatLng/>");}return this.LATLNG;};this.getPOINT=function(){if(this.POINT===null){this.POINT=mqCreateXMLDoc("<Point/>");}return this.POINT;};this.getPOINTFEATURE=function(){if(this.POINTFEATURE===null){this.POINTFEATURE=mqCreateXMLDoc("<PointFeature/>");}return this.POINTFEATURE;};this.getLINEFEATURE=function(){if(this.LINEFEATURE===null){this.LINEFEATURE=mqCreateXMLDoc("<LineFeature/>");}return this.LINEFEATURE;};this.getPOLYGONFEATURE=function(){if(this.POLYGONFEATURE===null){this.POLYGONFEATURE=mqCreateXMLDoc("<PolygonFeature/>");}return this.POLYGONFEATURE;};this.getLOCATION=function(){if(this.LOCATION===null){this.LOCATION=mqCreateXMLDoc("<Location/>");}return this.LOCATION;};this.getADDRESS=function(){if(this.ADDRESS===null){this.ADDRESS=mqCreateXMLDoc("<Address/>");}return this.ADDRESS;};this.getGEOADDRESS=function(){if(this.GEOADDRESS===null){this.GEOADDRESS=mqCreateXMLDoc("<GeoAddress/>");}return this.GEOADDRESS;};this.getGEOCODEOPTIONS=function(){if(this.GEOCODEOPTIONS===null){this.GEOCODEOPTIONS=mqCreateXMLDoc("<GeocodeOptions/>");}return this.GEOCODEOPTIONS;};this.getMANEUVER=function(){if(this.MANEUVER===null){this.MANEUVER=mqCreateXMLDoc("<Maneuver Version=\"1\"><Narrative/><Streets Count=\"0\"/><TurnType>-1</TurnType><Distance>0.0</Distance><Time>-1</Time><Direction>0</Direction><ShapePoints Count=\"0\"/><GEFIDs Count=\"0\"/><Signs  Count=\"0\"/></Maneuver>");}return this.MANEUVER;};this.getROUTEOPTIONS=function(){if(this.ROUTEOPTIONS===null){this.ROUTEOPTIONS=mqCreateXMLDoc("<RouteOptions Version=\"3\"><RouteType>0</RouteType><NarrativeType>1</NarrativeType><NarrativeDistanceUnitType>0</NarrativeDistanceUnitType><MaxShape>0</MaxShape><MaxGEFID>0</MaxGEFID><Language>English</Language><CoverageName>navt_r</CoverageName><CovSwitcher><Name></Name><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/></CovSwitcher><AvoidAttributeList Count=\"0\"/><AvoidGefIdList Count=\"0\"/><AvoidAbsoluteGefIdList Count=\"0\"/><StateBoundaryDisplay>1</StateBoundaryDisplay><CountryBoundaryDisplay>1</CountryBoundaryDisplay></RouteOptions>");}return this.ROUTEOPTIONS;};this.getROUTERESULTS=function(){if(this.ROUTERESULTS===null){this.ROUTERESULTS=mqCreateXMLDoc("<RouteResults Version=\"1\"><Locations Count=\"0\"/><CoverageName/><ResultMessages Count=\"0\"/><TrekRoutes Count=\"0\"/></RouteResults>");}return this.ROUTERESULTS;};this.getROUTEMATRIXRESULTS=function(){if(this.ROUTEMATRIXRESULTS===null){this.ROUTEMATRIXRESULTS=mqCreateXMLDoc("<RouteMatrixResults/>");}return this.ROUTEMATRIXRESULTS;};this.getRADIUSSEARCHCRITERIA=function(){if(this.RADIUSSEARCHCRITERIA===null){this.RADIUSSEARCHCRITERIA=mqCreateXMLDoc("<RadiusSearchCriteria/>");}return this.RADIUSSEARCHCRITERIA;};this.getRECTSEARCHCRITERIA=function(){if(this.RECTSEARCHCRITERIA===null){this.RECTSEARCHCRITERIA=mqCreateXMLDoc("<RectSearchCriteria/>");}return this.RECTSEARCHCRITERIA;};this.getPOLYSEARCHCRITERIA=function(){if(this.POLYSEARCHCRITERIA===null){this.POLYSEARCHCRITERIA=mqCreateXMLDoc("<PolySearchCriteria/>");}return this.POLYSEARCHCRITERIA;};this.getCORRIDORSEARCHCRITERIA=function(){if(this.CORRIDORSEARCHCRITERIA===null){this.CORRIDORSEARCHCRITERIA=mqCreateXMLDoc("<CorridorSearchCriteria/>");}return this.CORRIDORSEARCHCRITERIA;};this.getSIGN=function(){if(this.SIGN===null){this.SIGN=mqCreateXMLDoc("<Sign><Type>0</Type><Text></Text><ExtraText></ExtraText><Direction>0</Direction></Sign>");}return this.SIGN;};this.getTREKROUTE=function(){if(this.TREKROUTE===null){this.TREKROUTE=mqCreateXMLDoc("<TrekRoute><Maneuvers Count=\"0\"/></TrekRoute>");}return this.TREKROUTE;};this.getINTCOLLECTION=function(){if(this.INTCOLLECTION===null){this.INTCOLLECTION=mqCreateXMLDoc("<IntCollection Count=\"0\"/>");}return this.INTCOLLECTION;};this.getDTCOLLECTION=function(){if(this.DTCOLLECTION===null){this.DTCOLLECTION=mqCreateXMLDoc("<DTCollection Version=\"1\" Count=\"0\"/>");}return this.DTCOLLECTION;};this.getLATLNGCOLLECTION=function(){if(this.LATLNGCOLLECTION===null){this.LATLNGCOLLECTION=mqCreateXMLDoc("<LatLngCollection Version=\"1\" Count=\"0\"/>");}return this.LATLNGCOLLECTION;};this.getLOCATIONCOLLECTION=function(){if(this.LOCATIONCOLLECTION===null){this.LOCATIONCOLLECTION=mqCreateXMLDoc("<LocationCollection Count=\"0\"/>");}return this.LOCATIONCOLLECTION;};this.getMANEUVERCOLLECTION=function(){if(this.MANEUVERCOLLECTION===null){this.MANEUVERCOLLECTION=mqCreateXMLDoc("<ManeuverCollection Count=\"0\"/>");}return this.MANEUVERCOLLECTION;};this.getSIGNCOLLECTION=function(){if(this.SIGNCOLLECTION===null){this.SIGNCOLLECTION=mqCreateXMLDoc("<SignCollection Count=\"0\"/>");}return this.SIGNCOLLECTION;};this.getSTRINGCOLLECTION=function(){if(this.STRINGCOLLECTION===null){this.STRINGCOLLECTION=mqCreateXMLDoc("<StringCollection Count=\"0\"/>");}return this.STRINGCOLLECTION;};this.getSTRCOLCOLLECTION=function(){if(this.STRCOLCOLLECTION===null){this.STRCOLCOLLECTION=mqCreateXMLDoc("<StrColCollectin/>");}return this.STRCOLCOLLECTION;};this.getFEATURECOLLECTION=function(){if(this.FEATURECOLLECTION===null){this.FEATURECOLLECTION=mqCreateXMLDoc("<FeatureCollection Count=\"0\"/>");}return this.FEATURECOLLECTION;};this.getPOINTCOLLECTION=function(){if(this.POINTCOLLECTION===null){this.POINTCOLLECTION=mqCreateXMLDoc("<PointCollection Count=\"0\"/>");}return this.POINTCOLLECTION;};this.getTREKROUTECOLLECTION=function(){if(this.TREKROUTECOLLECTION===null){this.TREKROUTECOLLECTION=mqCreateXMLDoc("<TrekRouteCollection Count=\"0\"/>");}return this.TREKROUTECOLLECTION;};this.getFEATURESPECIFIERCOLLECTION=function(){if(this.FEATURESPECIFIERCOLLECTION===null){this.FEATURESPECIFIERCOLLECTION=mqCreateXMLDoc("<FeatureSpecifierCollection Count=\"0\"/>");}return this.FEATURESPECIFIERCOLLECTION;};this.getGEOCODEOPTIONSCOLLECTION=function(){if(this.GEOCODEOPTIONSCOLLECTION===null){this.GEOCODEOPTIONSCOLLECTION=mqCreateXMLDoc("<GeocodeOptionsCollection Count=\"0\"/>");}return this.GEOCODEOPTIONSCOLLECTION;};this.getCOVERAGESTYLE=function(){if(this.COVERAGESTYLE===null){this.COVERAGESTYLE=mqCreateXMLDoc("<CoverageStyle/>");}return this.COVERAGESTYLE;};this.getRECORDSET=function(){if(this.RECORDSET===null){this.RECORDSET=mqCreateXMLDoc("<RecordSet/>");}return this.RECORDSET;};this.getMAPSTATE=function(){if(this.MAPSTATE===null){this.MAPSTATE=mqCreateXMLDoc("<MapState/>");}return this.MAPSTATE;};this.getSESSION=function(){if(this.SESSION===null){this.SESSION=mqCreateXMLDoc("<Session Count=\"0\"/>");}return this.SESSION;};this.getSESSIONID=function(){if(this.SESSIONID===null){this.SESSIONID=mqCreateXMLDoc("<SessionID/>");}return this.SESSIONID;};this.getDTSTYLE=function(){if(this.DTSTYLE===null){this.DTSTYLE=mqCreateXMLDoc("<DTStyle/>");}return this.DTSTYLE;};this.getDTSTYLEEX=function(){if(this.DTSTYLEEX===null){this.DTSTYLEEX=mqCreateXMLDoc("<DTStyleEx/>");}return this.DTSTYLEEX;};this.getDTFEATURESTYLEEX=function(){if(this.DTFEATURESTYLEEX===null){this.DTFEATURESTYLEEX=mqCreateXMLDoc("<DTFeatureStyleEx/>");}return this.DTFEATURESTYLEEX;};this.getFEATURESPECIFIER=function(){if(this.FEATURESPECIFIER===null){this.FEATURESPECIFIER=mqCreateXMLDoc("<FeatureSpecifier/>");}return this.FEATURESPECIFIER;};this.getBESTFIT=function(){if(this.BESTFIT===null){this.BESTFIT=mqCreateXMLDoc("<BestFit Version=\"2\"/>");}return this.BESTFIT;};this.getBESTFITLL=function(){if(this.BESTFITLL===null){this.BESTFITLL=mqCreateXMLDoc("<BestFitLL Version=\"2\"/>");}return this.BESTFITLL;};this.getCENTER=function(){if(this.CENTER===null){this.CENTER=mqCreateXMLDoc("<Center/>");}return this.CENTER;};this.getCENTERLATLNG=function(){if(this.CENTERLATLNG===null){this.CENTERLATLNG=mqCreateXMLDoc("<CenterLatLng/>");}return this.CENTERLATLNG;};this.getPAN=function(){if(this.PAN===null){this.PAN=mqCreateXMLDoc("<Pan/>");}return this.PAN;};this.getZOOMIN=function(){if(this.ZOOMIN===null){this.ZOOMIN=mqCreateXMLDoc("<ZoomIn/>");}return this.ZOOMIN;};this.getZOOMOUT=function(){if(this.ZOOMOUT===null){this.ZOOMOUT=mqCreateXMLDoc("<ZoomOut/>");}return this.ZOOMOUT;};this.getZOOMTO=function(){if(this.ZOOMTO===null){this.ZOOMTO=mqCreateXMLDoc("<ZoomTo/>");}return this.ZOOMTO;};this.getZOOMTORECT=function(){if(this.ZOOMTORECT===null){this.ZOOMTORECT=mqCreateXMLDoc("<ZoomToRect/>");}return this.ZOOMTORECT;};this.getZOOMTORECTLATLNG=function(){if(this.ZOOMTORECTLATLNG===null){this.ZOOMTORECTLATLNG=mqCreateXMLDoc("<ZoomToRectLatLng/>");}return this.ZOOMTORECTLATLNG;};}var MQXML=new MQXMLDOC();MQSign.prototype=new MQObject();MQSign.prototype.constructor=MQSign;function MQSign(){MQObject.call(this);this.setM_Xpath("Sign");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGN()));}MQSign.prototype.getClassName=function(){return "MQSign";};MQSign.prototype.getObjectVersion=function(){return 0;};MQSign.prototype.loadXml=function(_179){this.setM_XmlDoc(mqCreateXMLDoc(_179));};MQSign.prototype.loadXmlFromNode=function(node){this.setM_XmlDoc(mqCreateXMLDocImportNode(node));};MQSign.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQSign.prototype.clear=function(){this.setType(0);this.setText("");this.setExtraText("");this.setDirection(MQCONSTANT.MQMANEUVER_HEADING_NULL);};MQSign.prototype.setType=function(type){this.setProperty("Type",type);};MQSign.prototype.getType=function(){return this.getProperty("Type");};MQSign.prototype.setText=function(text){this.setProperty("Text",text);};MQSign.prototype.getText=function(){return this.getProperty("Text");};MQSign.prototype.setExtraText=function(_17d){this.setProperty("ExtraText",_17d);};MQSign.prototype.getExtraText=function(){return this.getProperty("ExtraText");};MQSign.prototype.setDirection=function(_17e){this.setProperty("Direction",_17e);};MQSign.prototype.getDirection=function(){return this.getProperty("Direction");};MQFeature.prototype=new MQObject();MQFeature.prototype.constructor=MQFeature;function MQFeature(){MQObject.call(this);}MQFeature.prototype.getClassName=function(){return "MQFeature";};MQFeature.prototype.getObjectVersion=function(){return 0;};MQFeature.prototype.getDistance=function(){return this.getProperty("Distance");};MQFeature.prototype.setDistance=function(_17f){this.setProperty("Distance",_17f);};MQFeature.prototype.getName=function(){return this.getProperty("Name");};MQFeature.prototype.setName=function(_180){this.setProperty("Name",_180);};MQFeature.prototype.getSourceLayerName=function(){return this.getProperty("SourceLayerName");};MQFeature.prototype.setSourceLayerName=function(_181){this.setProperty("SourceLayerName",_181);};MQFeature.prototype.getKey=function(){return this.getProperty("Key");};MQFeature.prototype.setKey=function(_182){this.setProperty("Key",_182);};MQFeature.prototype.setGEFID=function(_183){this.setProperty("GEFID",_183);};MQFeature.prototype.getGEFID=function(){return this.getProperty("GEFID");};MQFeature.prototype.setDT=function(_184){this.setProperty("DT",_184);};MQFeature.prototype.getDT=function(){return this.getProperty("DT");};MQPointFeature.prototype=new MQFeature();MQPointFeature.prototype.constructor=MQPointFeature;function MQPointFeature(){MQObject.call(this);this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOINTFEATURE()));this.setM_Xpath("PointFeature");this.m_CenterLatLng=new MQLatLng("CenterLatLng");this.m_CenterPoint=new MQPoint("CenterPoint");}MQPointFeature.prototype.getClassName=function(){return "MQPointFeature";};MQPointFeature.prototype.getObjectVersion=function(){return 0;};MQPointFeature.prototype.loadXml=function(_185){this.setM_XmlDoc(mqCreateXMLDoc(_185));var _186=this.getCenterLatLng();var _187=this.getCenterPoint();var _188=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng");var _189=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint");if(_188!==null){_186.loadXmlFromNode(_188);}if(_189!==null){_187.loadXmlFromNode(_189);}};MQPointFeature.prototype.loadXmlFromNode=function(node){this.setM_XmlDoc(mqCreateXMLDocImportNode(node));this.getCenterLatLng().setLatLng(this.getProperty("CenterLatLng/Lat"),this.getProperty("CenterLatLng/Lng"));var x=this.getProperty("CenterPoint/X");if(x!==""){this.getCenterPoint().setXY(x,this.getProperty("CenterPoint/Y"));}};MQPointFeature.prototype.saveXml=function(){var _18c=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_18c,"CenterLatLng"));_18c=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_18c,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQPointFeature.prototype.getCenterLatLng=function(){return this.m_CenterLatLng;};MQPointFeature.prototype.setCenterLatLng=function(_18d){this.m_CenterLatLng.setLatLng(_18d.getLatitude(),_18d.getLongitude());};MQPointFeature.prototype.getCenterPoint=function(){return this.m_CenterPoint;};MQPointFeature.prototype.setCenterPoint=function(_18e){this.m_CenterPoint.setXY(_18e.getX(),_18e.getY());};MQPolygonFeature.prototype=new MQPointFeature();MQPolygonFeature.prototype.constructor=MQPolygonFeature;function MQPolygonFeature(){MQPointFeature.call(this);this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOLYGONFEATURE()));this.setM_Xpath("PolygonFeature");var _18f=new MQLatLngCollection();_18f.setM_Xpath("LatLngs");this.getLatLngs=function(){return _18f;};this.setLatLngs=function(_190){if(_190.getClassName()==="MQLatLngCollection"){_18f.removeAll();_18f.append(_190);}else{alert("failure in setLatLngs");throw "failure in setLatLngs";}};var _191=new MQPointCollection();_191.setM_Xpath("Points");this.getPoints=function(){return _191;};this.setPoints=function(pts){_191.removeAll();_191.append(pts);};}MQPolygonFeature.prototype.getClassName=function(){return "MQPolygonFeature";};MQPolygonFeature.prototype.getObjectVersion=function(){return 0;};MQPolygonFeature.prototype.loadXml=function(_193){this.setM_XmlDoc(mqCreateXMLDoc(_193));var _194=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){_194.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}var _195=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){_195.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}var _196=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){_196.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}var _197=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){_197.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}};MQPolygonFeature.prototype.saveXml=function(){var _198=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_198,"CenterLatLng"));_198=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_198,"CenterPoint"));_198=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_198,"LatLngs"));_198=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_198,"Points"));return mqXmlToStr(this.getM_XmlDoc());};MQLineFeature.prototype=new MQPolygonFeature();MQLineFeature.prototype.constructor=MQLineFeature;function MQLineFeature(){MQPolygonFeature.call(this);this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLINEFEATURE()));this.setM_Xpath("LineFeature");}MQLineFeature.prototype.getClassName=function(){return "MQLineFeature";};MQLineFeature.prototype.getObjectVersion=function(){return 0;};MQLineFeature.prototype.loadXml=function(_199){this.setM_XmlDoc(mqCreateXMLDoc(_199));var _19a=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){_19a.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}var _19b=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){_19b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}var _19c=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){_19c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}var _19d=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){_19d.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}};MQLineFeature.prototype.saveXml=function(){var _19e=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_19e,"CenterLatLng"));_19e=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_19e,"CenterPoint"));_19e=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_19e,"LatLngs"));_19e=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_19e,"Points"));return mqXmlToStr(this.getM_XmlDoc());};MQLineFeature.prototype.getLeftPostalCode=function(){return this.getProperty("LeftPostalCode");};MQLineFeature.prototype.setLeftPostalCode=function(_19f){this.setProperty("LeftPostalCode",_19f);};MQLineFeature.prototype.getRightPostalCode=function(){return this.getProperty("RightPostalCode");};MQLineFeature.prototype.setRightPostalCode=function(_1a0){this.setProperty("RightPostalCode",_1a0);};MQLineFeature.prototype.getLeftAddressHi=function(){return this.getProperty("LeftAddressHi");};MQLineFeature.prototype.setLeftAddressHi=function(_1a1){this.setProperty("LeftAddressHi",_1a1);};MQLineFeature.prototype.getRightAddressHi=function(){return this.getProperty("RightAddressHi");};MQLineFeature.prototype.setRightAddressHi=function(_1a2){this.setProperty("RightAddressHi",_1a2);};MQLineFeature.prototype.getLeftAddressLo=function(){return this.getProperty("LeftAddressLo");};MQLineFeature.prototype.setLeftAddressLo=function(_1a3){this.setProperty("LeftAddressLo",_1a3);};MQLineFeature.prototype.getRightAddressLo=function(){return this.getProperty("RightAddressLo");};MQLineFeature.prototype.setRightAddressLo=function(_1a4){this.setProperty("RightAddressLo",_1a4);};MQLocation.prototype=new MQObject();MQLocation.prototype.constructor=MQLocation;function MQLocation(){MQObject.call(this);this.setM_Xpath("Location");}MQLocation.prototype.getClassName=function(){return "MQLocation";};MQLocation.prototype.getObjectVersion=function(){return 0;};MQLocation.prototype.loadXml=function(_1a5){this.setM_XmlDoc(mqCreateXMLDoc(_1a5));};MQLocation.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQLocation.prototype.getAdminArea=function(_1a6){return this.getProperty("AdminArea"+_1a6);};MQLocation.prototype.setAdminArea=function(_1a7,_1a8){this.setProperty("AdminArea"+_1a7,_1a8);};MQLocation.prototype.getCountry=function(){return this.getProperty("AdminArea1");};MQLocation.prototype.setCountry=function(_1a9){this.setProperty("AdminArea1",_1a9);};MQLocation.prototype.getCounty=function(){return this.getProperty("AdminArea4");};MQLocation.prototype.setCounty=function(_1aa){this.setProperty("AdminArea4",_1aa);};MQLocation.prototype.getCity=function(){return this.getProperty("AdminArea5");};MQLocation.prototype.setCity=function(_1ab){this.setProperty("AdminArea5",_1ab);};MQLocation.prototype.getPostalCode=function(){return this.getProperty("PostalCode");};MQLocation.prototype.setPostalCode=function(_1ac){this.setProperty("PostalCode",_1ac);};MQLocation.prototype.getState=function(){return this.getProperty("AdminArea3");};MQLocation.prototype.setState=function(_1ad){this.setProperty("AdminArea3",_1ad);};MQAddress.prototype=new MQLocation();MQAddress.prototype.constructor=MQAddress;function MQAddress(){MQLocation.call(this);this.setM_Xpath("Address");if(this.getClassName()==="MQAddress"){this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getADDRESS()));}}MQAddress.prototype.getClassName=function(){return "MQAddress";};MQAddress.prototype.getObjectVersion=function(){return 0;};MQAddress.prototype.loadXml=function(_1ae){this.setM_XmlDoc(mqCreateXMLDoc(_1ae));};MQAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQAddress.prototype.setStreet=function(_1af){this.setProperty("Street",_1af);};MQAddress.prototype.getStreet=function(){return this.getProperty("Street");};MQGeoAddress.prototype=new MQAddress();MQGeoAddress.prototype.constructor=MQGeoAddress;function MQGeoAddress(){MQAddress.call(this);this.setM_Xpath("GeoAddress");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOADDRESS()));var _1b0=new MQLatLng();this.getMQLatLng=function(){return _1b0;};this.setMQLatLng=function(_1b1){_1b0=_1b1;};}MQGeoAddress.prototype.getClassName=function(){return "MQGeoAddress";};MQGeoAddress.prototype.getObjectVersion=function(){return 0;};MQGeoAddress.prototype.loadXml=function(_1b2){this.setM_XmlDoc(mqCreateXMLDoc(_1b2));var lat=this.getProperty("LatLng/Lat");var lng=this.getProperty("LatLng/Lng");this.getMQLatLng().setLatLng(lat,lng);};MQGeoAddress.prototype.saveXml=function(){var _1b5=mqCreateXMLDoc(this.getMQLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1b5,"LatLng"));return mqXmlToStr(this.getM_XmlDoc());};MQGeoAddress.prototype.setDistAlong=function(_1b6){this.setProperty("DistAlong",_1b6);};MQGeoAddress.prototype.getDistAlong=function(){return this.getProperty("DistAlong");};MQGeoAddress.prototype.setGEFID=function(_1b7){this.setProperty("GEFID",_1b7);};MQGeoAddress.prototype.getGEFID=function(){return this.getProperty("GEFID");};MQGeoAddress.prototype.setResultCode=function(_1b8){this.setProperty("ResultCode",_1b8);};MQGeoAddress.prototype.getResultCode=function(){return this.getProperty("ResultCode");};MQGeoAddress.prototype.setSourceId=function(_1b9){this.setProperty("SourceId",_1b9);};MQGeoAddress.prototype.getSourceId=function(){return this.getProperty("SourceId");};MQManeuver.prototype=new MQObject();MQManeuver.prototype.constructor=MQManeuver;function MQManeuver(){MQObject.call(this);this.setM_Xpath("Maneuver");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getMANEUVER()));var _1ba=new MQStringCollection("Item");_1ba.setM_Xpath("Streets");this.getStreets=function(){return _1ba;};this.setStreets=function(_1bb){_1ba.removeAll();_1ba.append(_1bb);};var _1bc=new MQLatLngCollection();_1bc.setM_Xpath("ShapePoints");this.getShapePoints=function(){return _1bc;};this.setShapePoints=function(_1bd){if(_1bd.getClassName()==="MQLatLngCollection"){_1bc.removeAll();_1bc.append(_1bd);}else{alert("failure in setShapePoints");throw "failure in setShapePoints";}};var _1be=new MQIntCollection("Item");_1be.setM_Xpath("GEFIDs");this.getGEFIDs=function(){return _1be;};this.setGEFIDs=function(_1bf){_1be.removeAll();_1be.append(_1bf);};var _1c0=new MQSignCollection("Sign");_1c0.setM_Xpath("Signs");this.getSigns=function(){return _1c0;};this.setSigns=function(_1c1){_1c0.removeAll();_1c0.append(_1c1);};}MQManeuver.prototype.getClassName=function(){return "MQManeuver";};MQManeuver.prototype.getObjectVersion=function(){return 1;};MQManeuver.prototype.loadXml=function(_1c2){this.setM_XmlDoc(mqCreateXMLDoc(_1c2));var _1c3=this.getStreets();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets")!==null){_1c3.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets"));}var _1c4=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints")!==null){_1c4.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints"));}var _1c5=this.getGEFIDs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")!==null){_1c5.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")));}var _1c6=this.getSigns();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs")!==null){_1c6.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs"));}};MQManeuver.prototype.saveXml=function(){var _1c7=mqCreateXMLDoc(this.getStreets().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1c7,"Streets"));_1c7=mqCreateXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1c7,"ShapePoints"));_1c7=mqCreateXMLDoc(this.getGEFIDs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1c7,"GEFIDs"));_1c7=mqCreateXMLDoc(this.getSigns().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1c7,"Signs"));return mqXmlToStr(this.getM_XmlDoc());};MQManeuver.prototype.setTurnType=function(type){this.setProperty("TurnType",type);};MQManeuver.prototype.getTurnType=function(){return this.getProperty("TurnType");};MQManeuver.prototype.setDistance=function(_1c9){this.setProperty("Distance",_1c9);};MQManeuver.prototype.getDistance=function(){return this.getProperty("Distance");};MQManeuver.prototype.setTime=function(_1ca){this.setProperty("Time",_1ca);};MQManeuver.prototype.getTime=function(){return this.getProperty("Time");};MQManeuver.prototype.setDirection=function(_1cb){this.setProperty("Direction",_1cb);};MQManeuver.prototype.getDirection=function(){return this.getProperty("Direction");};MQManeuver.prototype.getDirectionName=function(){switch(parseInt(this.getDirection())){case MQCONSTANT.MQMANEUVER_HEADING_NORTH:return "North";case MQCONSTANT.MQMANEUVER_HEADING_NORTH_WEST:return "Northwest";case MQCONSTANT.MQMANEUVER_HEADING_NORTH_EAST:return "Northeast";case MQCONSTANT.MQMANEUVER_HEADING_SOUTH:return "South";case MQCONSTANT.MQMANEUVER_HEADING_SOUTH_EAST:return "Southeast";case MQCONSTANT.MQMANEUVER_HEADING_SOUTH_WEST:return "Southwest";case MQCONSTANT.MQMANEUVER_HEADING_WEST:return "West";case MQCONSTANT.MQMANEUVER_HEADING_EAST:return "East";default:return "";}};MQManeuver.prototype.setAttributes=function(_1cc){this.setProperty("Attributes",_1cc);};MQManeuver.prototype.getAttributes=function(){return this.getProperty("Attributes");};MQManeuver.prototype.setNarrative=function(_1cd){this.setProperty("Narrative",_1cd);};MQManeuver.prototype.getNarrative=function(){return this.getProperty("Narrative");};MQTrekRoute.prototype=new MQObject();MQTrekRoute.prototype.constructor=MQTrekRoute;function MQTrekRoute(){MQObject.call(this);this.setM_Xpath("TrekRoute");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getTREKROUTE()));var _1ce=new MQManeuverCollection("Maneuver");_1ce.setM_Xpath("Maneuvers");this.getManeuvers=function(){return _1ce;};var _1cf=null;this.getShapePoints=function(){if(_1cf===null){distance=0;time=0;_1cf=new MQLatLngCollection();_1cf.setM_Xpath("ShapePoints");for(var man=0;man<this.getManeuvers().getSize();man++){_1cf.append(this.getManeuvers().get(man).getShapePoints());distance+=parseFloat(this.getManeuvers().get(man).getDistance());time+=parseInt(this.getManeuvers().get(man).getTime());}}return _1cf;};var _1d1=null;this.getDistance=function(){if(_1d1===null){_1d1=0;time=0;_1cf=new MQLatLngCollection();_1cf.setM_Xpath("ShapePoints");for(var man=0;man<this.getManeuvers().getSize();man++){_1cf.append(this.getManeuvers().get(man).getShapePoints());_1d1+=parseFloat(this.getManeuvers().get(man).getDistance());time+=parseInt(this.getManeuvers().get(man).getTime());}}return _1d1;};var time=null;this.getTime=function(){if(time===null){_1d1=0;time=0;_1cf=new MQLatLngCollection();_1cf.setM_Xpath("ShapePoints");for(var man=0;man<this.getManeuvers().getSize();man++){_1cf.append(this.getManeuvers().get(man).getShapePoints());_1d1+=parseFloat(this.getManeuvers().get(man).getDistance());time+=parseInt(this.getManeuvers().get(man).getTime());}}return time;};}MQTrekRoute.prototype.getClassName=function(){return "MQTrekRoute";};MQTrekRoute.prototype.getObjectVersion=function(){return 0;};MQTrekRoute.prototype.loadXml=function(_1d5){this.setM_XmlDoc(mqCreateXMLDoc(_1d5));var _1d6=this.getManeuvers();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")!==null){_1d6.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")));}};MQTrekRoute.prototype.saveXml=function(){var _1d7=mqCreateXMLDoc(this.getManeuvers().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1d7,"Maneuvers"));return mqXmlToStr(this.getM_XmlDoc());};MQGeocodeOptions.prototype=new MQObject();MQGeocodeOptions.prototype.constructor=MQGeocodeOptions;function MQGeocodeOptions(){MQObject.call(this);this.setM_Xpath("GeocodeOptions");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOCODEOPTIONS()));var _1d8=new MQMatchType(0);this.getMatchType=function(){return _1d8;};this.setMatchType=function(_1d9){_1d8=_1d9;};var _1da=new MQQualityType(0);this.getQualityType=function(){return _1da;};this.setQualityType=function(_1db){_1da=_1db;};}MQGeocodeOptions.prototype.getClassName=function(){return "MQGeocodeOptions";};MQGeocodeOptions.prototype.getObjectVersion=function(){return 0;};MQGeocodeOptions.prototype.loadXml=function(_1dc){this.setM_XmlDoc(mqCreateXMLDoc(_1dc));this.setMatchType(new MQMatchType(Math.floor(this.getProperty("MatchType"))));this.getQualityType(new MQQualityType(Math.floor(this.getProperty("QualityType"))));};MQGeocodeOptions.prototype.saveXml=function(){this.setProperty("MatchType",this.getMatchType().intValue());this.setProperty("QualityType",this.getQualityType().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQGeocodeOptions.prototype.setCoverageName=function(_1dd){this.setProperty("Name",_1dd);};MQGeocodeOptions.prototype.getCoverageName=function(){return this.getProperty("Name");};MQGeocodeOptions.prototype.setMaxMatches=function(nMax){this.setProperty("MaxMatches",nMax);};MQGeocodeOptions.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};MQRouteOptions.prototype=new MQObject();MQRouteOptions.prototype.constructor=MQRouteOptions;function MQRouteOptions(){MQObject.call(this);this.setM_Xpath("RouteOptions");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getROUTEOPTIONS()));var _1df=new MQStringCollection();_1df.setM_Xpath("AvoidAttributeList");this.getAvoidAttrList=function(){return _1df;};this.setAvoidAttrList=function(_1e0){_1df.removeAll();_1df.append(_1e0);};var _1e1=new MQIntCollection();_1e1.setM_Xpath("AvoidGefIdList");this.getAvoidGefIdList=function(){return _1e1;};this.setAvoidGefIdList=function(_1e2){_1e1.removeAll();_1e1.append(_1e2);};var _1e3=new MQIntCollection();_1e3.setM_Xpath("AvoidAbsoluteGefIdList");this.getAvoidAbsGefIdList=function(){return _1e3;};this.setAvoidAbsGefIdList=function(_1e4){_1e3.removeAll();_1e3.append(_1e4);};var _1e5=new MQAutoRouteCovSwitch("CovSwitcher");this.getAutoRouteCovSwitch=function(){return _1e5;};this.setAutoRouteCovSwitch=function(_1e6){_1e5=_1e6;};var _1e7=new MQRouteType(0);this.getRouteType=function(){return _1e7;};this.setRouteType=function(_1e8){_1e7=_1e8;};var _1e9=new MQNarrativeType(0);this.getNarrativeType=function(){return _1e9;};this.setNarrativeType=function(_1ea){_1e9=_1ea;};var _1eb=new MQDistanceUnits(0);this.getDistanceUnits=function(){return _1eb;};this.setDistanceUnits=function(_1ec){_1eb=_1ec;};}MQRouteOptions.prototype.getClassName=function(){return "MQRouteOptions";};MQRouteOptions.prototype.getObjectVersion=function(){return 3;};MQRouteOptions.prototype.loadXml=function(_1ed){this.setM_XmlDoc(mqCreateXMLDoc(_1ed));var _1ee=this.getAvoidAttrList();_1ee.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAttributeList")));var _1ef=this.getAvoidGefIdList();_1ef.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidGefIdList")));var _1f0=this.getAvoidAbsGefIdList();_1f0.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAbsoluteGefIdList")));var _1f1=this.getAutoRouteCovSwitch();_1f1.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CovSwitcher")));this.setRouteType(new MQRouteType(Math.floor(this.getProperty("RouteType"))));this.getNarrativeType(new MQNarrativeType(Math.floor(this.getProperty("NarrativeType"))));this.getDistanceUnits(new MQDistanceUnits(Math.floor(this.getProperty("NarrativeDistanceUnitType"))));};MQRouteOptions.prototype.saveXml=function(){var _1f2=null;this.setProperty("RouteType",this.getRouteType().intValue());this.setProperty("NarrativeType",this.getNarrativeType().intValue());this.setProperty("NarrativeDistanceUnitType",this.getDistanceUnits().getValue());_1f2=mqCreateXMLDoc(this.getAutoRouteCovSwitch().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1f2,"CovSwitcher"));_1f2=mqCreateXMLDoc(this.getAvoidAttrList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1f2,"AvoidAttributeList"));_1f2=mqCreateXMLDoc(this.getAvoidGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1f2,"AvoidGefIdList"));_1f2=mqCreateXMLDoc(this.getAvoidAbsGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_1f2,"AvoidAbsoluteGefIdList"));return mqXmlToStr(this.getM_XmlDoc());};MQRouteOptions.prototype.setMaxShapePointsPerManeuver=function(_1f3){this.setProperty("MaxShape",_1f3);};MQRouteOptions.prototype.getMaxShapePointsPerManeuver=function(){return this.getProperty("MaxShape");};MQRouteOptions.prototype.setMaxGEFIDsPerManeuver=function(_1f4){this.setProperty("MaxGEFID",_1f4);};MQRouteOptions.prototype.getMaxGEFIDsPerManeuver=function(){return this.getProperty("MaxGEFID");};MQRouteOptions.prototype.setLanguage=function(_1f5){this.setProperty("Language",_1f5);};MQRouteOptions.prototype.getLanguage=function(){return this.getProperty("Language");};MQRouteOptions.prototype.setCoverageName=function(_1f6){this.setProperty("CoverageName",_1f6);};MQRouteOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};MQRouteOptions.prototype.setStateBoundaryDisplay=function(_1f7){this.setProperty("StateBoundaryDisplay",(_1f7===true)?1:0);};MQRouteOptions.prototype.getStateBoundaryDisplay=function(){return (this.getProperty("StateBoundaryDisplay")==1)?true:false;};MQRouteOptions.prototype.setCountryBoundaryDisplay=function(_1f8){this.setProperty("CountryBoundaryDisplay",(_1f8===true)?1:0);};MQRouteOptions.prototype.getCountryBoundaryDisplay=function(){return (this.getProperty("CountryBoundaryDisplay")==1)?true:false;};MQRouteResults.prototype=new MQObject();MQRouteResults.prototype.constructor=MQRouteResults;function MQRouteResults(){MQObject.call(this);this.setM_Xpath("RouteResults");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getROUTERESULTS()));var _1f9=new MQLocationCollection();_1f9.setM_Xpath("Locations");this.getLocations=function(){return _1f9;};var _1fa=new MQTrekRouteCollection("TrekRoute");_1fa.setM_Xpath("TrekRoutes");this.getTrekRoutes=function(){return _1fa;};var _1fb=new MQRouteResultsCode(MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return _1fb;};this.setResultCode=function(_1fc){_1fb=_1fc;};var _1fd=new MQStringCollection("Item");_1fd.setM_Xpath("ResultMessages");this.getResultMessages=function(){return _1fd;};var _1fe=null;this.getShapePoints=function(){if(_1fe===null){distance=0;time=0;_1fe=new MQLatLngCollection();_1fe.setM_Xpath("ShapePoints");for(var tr=0;tr<this.getTrekRoutes().getSize();tr++){var trek=this.getTrekRoutes().get(tr);for(var man=0;man<trek.getManeuvers().getSize();man++){_1fe.append(trek.getManeuvers().get(man).getShapePoints());distance+=parseFloat(trek.getManeuvers().get(man).getDistance());time+=parseInt(trek.getManeuvers().get(man).getTime());}}}return _1fe;};var _202=-1;this.getDistance=function(){if(_202===-1){_202=0;time=0;_1fe=new MQLatLngCollection();_1fe.setM_Xpath("ShapePoints");for(var tr=0;tr<this.getTrekRoutes().getSize();tr++){var trek=this.getTrekRoutes().get(tr);for(var man=0;man<trek.getManeuvers().getSize();man++){_1fe.append(trek.getManeuvers().get(man).getShapePoints());_202+=parseFloat(trek.getManeuvers().get(man).getDistance());time+=parseInt(trek.getManeuvers().get(man).getTime());}}}return _202;};var time=-1;this.getTime=function(){if(time===-1){_202=0;time=0;_1fe=new MQLatLngCollection();_1fe.setM_Xpath("ShapePoints");for(var tr=0;tr<this.getTrekRoutes().getSize();tr++){var trek=this.getTrekRoutes().get(tr);for(var man=0;man<trek.getManeuvers().getSize();man++){_1fe.append(trek.getManeuvers().get(man).getShapePoints());_202+=parseFloat(trek.getManeuvers().get(man).getDistance());time+=parseInt(trek.getManeuvers().get(man).getTime());}}}return time;};}MQRouteResults.prototype.getClassName=function(){return "MQRouteResults";};MQRouteResults.prototype.getObjectVersion=function(){return 1;};MQRouteResults.prototype.loadXml=function(_20a){this.setM_XmlDoc(mqCreateXMLDoc(_20a));var locs=this.getLocations();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")!==null){locs.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")));}var trek=this.getTrekRoutes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")!==null){trek.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")));}var _20d=this.getResultMessages();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){_20d.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));}this.setResultCode(new MQRouteResultsCode(Math.floor(this.getProperty("ResultCode"))));};MQRouteResults.prototype.saveXml=function(){this.setProperty("ResultCode",this.getResultCode().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQRouteResults.prototype.setCoverageName=function(_20e){this.setProperty("CoverageName",_20e);};MQRouteResults.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};MQRouteMatrixResults.prototype=new MQObject();MQRouteMatrixResults.prototype.constructor=MQRouteMatrixResults;function MQRouteMatrixResults(){MQObject.call(this);this.setM_Xpath("RouteMatrixResults");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getROUTEMATRIXRESULTS()));var _20f=-1;var _210=null;this.setDistance=function(col){if(col){if(col.getClassName()==="MQIntCollection"){if(_210!==null){_210.removeAll();_210.append(col);}else{_210=col;}}else{alert("failure in setDistance -- col is not MQIntCollection type");throw "failure in setDistance -- col is not MQIntCollection type";}}else{alert("failure in setDistance -- col is null");throw "failure in setDistance -- col is null";}};this.getDistance=function(from,to){if(_20f===-1){_20f=this.getProperty("LocationCount");}var pos=((from*_20f)+to);return (_210.get(pos)/1000).toFixed(6);};var _215=null;this.setTime=function(col){if(col){if(col.getClassName()==="MQIntCollection"){if(_215!==null){_215.removeAll();_215.append(col);}else{_215=col;}}else{alert("failure in setTime -- col is not MQIntCollection type");throw "failure in setTime -- col is not MQIntCollection type";}}else{alert("failure in setTime -- col is null");throw "failure in setTime -- col is null";}};this.getTime=function(from,to){if(_20f===-1){_20f=this.getProperty("LocationCount");}var pos=((from*_20f)+to);return _215.get(pos);};var _21a=new MQRouteMatrixResultsCode(MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return _21a;};this.setResultCode=function(rc){if(rc){if(rc.getClassName()==="MQRouteMatrixResultsCode"){_21a=rc;}else{alert("failure in setResultsCode -- rc is not MQRouteMatrixResultsCode type");throw "failure in setResultsCode -- rc is not MQRouteMatrixResultsCode type";}}else{alert("failure in setResultsCode -- rc is null");throw "failure in setResultsCode -- rc is null";}};var _21c=null;this.setResultMessages=function(col){if(col){if(col.getClassName()==="MQStringCollection"){if(_21c!==null){_21c.removeAll();_21c.append(col);}else{_21c=col;}}else{alert("failure in setResultMessages -- col is not MQStringCollection type");throw "failure in setResultMessages -- col is not MQStringCollection type";}}else{alert("failure in setResultMessages -- col is null");throw "failure in setResultMessages -- col is null";}};this.getResultsMessages=function(){return _21c;};}MQRouteMatrixResults.prototype.getClassName=function(){return "MQRouteMatrixResults";};MQRouteMatrixResults.prototype.getObjectVersion=function(){return 0;};MQRouteMatrixResults.prototype.loadXml=function(_21e){this.setM_XmlDoc(mqCreateXMLDoc(_21e));var dis=new MQIntCollection();dis.setM_Xpath("DistanceMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")!==null){dis.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")));}this.setDistance(dis);var tim=new MQIntCollection();tim.setM_Xpath("TimeMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")!==null){tim.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")));}this.setTime(tim);var mes=new MQStringCollection();mes.setM_Xpath("ResultMessages");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){mes.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));}this.setResultMessages(mes);this.setResultCode(new MQRouteMatrixResultsCode(Math.floor(this.getProperty("ResultCode"))));};MQRouteMatrixResults.prototype.saveXml=function(){this.setProperty("ResultCode",this.getResultCode().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQRouteMatrixResults.prototype.setCoverageName=function(_222){this.setProperty("CoverageName",_222);};MQRouteMatrixResults.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};MQRouteMatrixResults.prototype.getAllToAllFlag=function(){return (this.getProperty("AllToAll")==1)?true:false;};MQRecordSet.prototype=new MQObject();MQRecordSet.prototype.constructor=MQRecordSet;function MQRecordSet(){MQObject.call(this);this.setM_Xpath("RecordSet");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECORDSET()));var _223=true;var _224=true;var _225=0;var _226=-1;var _227=new MQStringCollection();_227.setM_Xpath("Fields");var _228=new MQStrColCollection("Record");_228.setM_Xpath("Records");_228.setValidClassName("MQStringCollection");this.moveFirst=function(){if(_228.getSize()!==0){_223=false;_224=false;_226=0;}else{alert(MQERROR.RECORDSET_MOVEFIRST_1);throw MQERROR.RECORDSET_MOVEFIRST_1;}};this.moveLast=function(){if(_228.getSize()!==0){_223=false;_224=false;_226=_228.getSize()-1;}else{alert(MQERROR.RECORDSET_MOVELAST_1);throw MQERROR.RECORDSET_MOVELAST_1;}};this.moveNext=function(){var _229=_228.getSize();if(_229!==0){if(_226<_229-1){_226++;_224=false;_223=false;}else{if(_226===_229-1){_226++;_224=false;_223=true;}else{if(_223){alert(MQERROR.RECORDSET_MOVENEXT_1);throw MQERROR.RECORDSET_MOVENEXT_1;}else{alert(MQERROR.RECORDSET_MOVENEXT_2);throw MQERROR.RECORDSET_MOVENEXT_2;}}}}else{alert(MQERROR.RECORDSET_MOVENEXT_3);throw MQERROR.RECORDSET_MOVENEXT_3;}};this.isBOF=function(){return _224;};this.isEOF=function(){return _223;};this.getFieldNames=function(){return _227;};this.getField=function(_22a){if(!(0<=_226&&_226<_225)){alert(MQERROR.RECORDSET_GETFIELD_1);throw MQERROR.RECORDSET_GETFIELD_1;}var pos=-1;for(var i=0;i<_227.getSize();i++){if(_227.get(i)===_22a){pos=i;break;}}if(pos===-1){alert(MQERROR.RECORDSET_GETFIELD_2);throw MQERROR.RECORDSET_GETFIELD_2;}return _228.get(_226).get(pos);};this.loadXml=function(_22d){var _22e=mqCreateXMLDoc(_22d);this.setM_XmlDoc(_22e);_227.loadXml(mqXmlToStr(mqGetNode(_22e,"/"+this.getM_Xpath()+"/Fields")));if(_22e!==null){var root=_22e.documentElement;var _230=root.childNodes;var _231=_230.length;_231=(_231<32678)?_231:32678;var _232=0;var col=null;_228.removeAll();for(var _234=_232;_234<_231;_234++){if(_230[_234].nodeName==="Record"){col=new MQStringCollection();col.setM_Xpath("Record");col.loadXml(mqXmlToStr(_230[_234]));_228.add(col);}}}_225=this.getProperty("RecordCount");if(_225>0){_226=0;_224=false;_223=false;}};}MQRecordSet.prototype.getClassName=function(){return "MQRecordSet";};MQRecordSet.prototype.getObjectVersion=function(){return 0;};MQRecordSet.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQMapState.prototype=new MQObject();MQMapState.prototype.constructor=MQMapState;function MQMapState(){MQObject.call(this);this.setM_Xpath("MapState");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getMAPSTATE()));var _235=new MQLatLng("Center");this.getCenter=function(){return _235;};this.setCenter=function(_236){_235.setLatLng(_236.getLatitude(),_236.getLongitude());};}MQMapState.prototype.getClassName=function(){return "MQMapState";};MQMapState.prototype.getObjectVersion=function(){return 0;};MQMapState.prototype.initObject=function(){this.setProperty("Scale",0);this.setCenter(new MQLatLng(0,0));this.setProperty("Width",-1);this.setProperty("Height",-1);this.setProperty("MapName","");this.setProperty("CoverageName","");};MQMapState.prototype.equals=function(_237){if(_237){try{if(_237.getClassName()==="MQMapState"){return m_nScale==other.m_nScale&&m_strMapName===other.m_strMapName&&m_strCoverageName===other.m_strCoverageName&&m_llCenter.equals(other.m_llCenter)&&m_dMapWidth===other.m_dMapWidth&&m_dMapHeight===other.m_dMapHeight;}}catch(error){}}return false;};MQMapState.prototype.setMapName=function(_238){this.setProperty("MapName",_238);};MQMapState.prototype.getMapName=function(){this.getProperty("MapName");};MQMapState.prototype.setCoverageName=function(_239){this.setProperty("CoverageName",_239);};MQMapState.prototype.getCoverageName=function(){this.getProperty("CoverageName");};MQMapState.prototype.setWidthInches=function(_23a){this.setProperty("Width",_23a);};MQMapState.prototype.getWidthInches=function(){return this.getProperty("Width");};MQMapState.prototype.setHeightInches=function(_23b){this.setProperty("Height",_23b);};MQMapState.prototype.getHeightInches=function(){return this.getProperty("Height");};MQMapState.prototype.setWidthPixels=function(_23c,dpi){if(dpi){this.setProperty("Width",parseFloat(_23c)/parseFloat(dpi));}else{this.setProperty("Width",parseFloat(_23c)/parseFloat(72));}};MQMapState.prototype.getWidthPixels=function(dpi){if(dpi){return Math.ceil(this.getProperty("Width")*dpi);}else{return Math.ceil(this.getProperty("Width")*72);}};MQMapState.prototype.setHeightPixels=function(_23f,dpi){if(dpi){this.setProperty("Height",parseFloat(_23f)/parseFloat(dpi));}else{this.setProperty("Height",parseFloat(_23f)/parseFloat(72));}};MQMapState.prototype.getHeightPixels=function(dpi){if(dpi){return Math.ceil(this.getProperty("Height")*dpi);}else{return Math.ceil(this.getProperty("Height")*72);}};MQMapState.prototype.setMapScale=function(_242){this.setProperty("Scale",_242);};MQMapState.prototype.getMapScale=function(){return this.getProperty("Scale");};MQMapState.prototype.loadXml=function(_243){this.setM_XmlDoc(mqCreateXMLDoc(_243));var lat=this.getProperty("Center/Lat");var lng=this.getProperty("Center/Lng");this.getCenter().setLatLng(lat,lng);};MQMapState.prototype.saveXml=function(){var _246=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_246,"Center"));return mqXmlToStr(this.getM_XmlDoc());};MQSearchCriteria.prototype=new MQObject();MQSearchCriteria.prototype.constructor=MQSearchCriteria;function MQSearchCriteria(){MQObject.call(this);}MQSearchCriteria.prototype.getClassName=function(){return "MQSearchCriteria";};MQSearchCriteria.prototype.getObjectVersion=function(){return 0;};MQSearchCriteria.prototype.setMaxMatches=function(nMax){this.setProperty("MaxMatches",nMax);};MQSearchCriteria.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};MQRadiusSearchCriteria.prototype=new MQSearchCriteria();MQRadiusSearchCriteria.prototype.constructor=MQRadiusSearchCriteria;function MQRadiusSearchCriteria(){MQObject.call(this);this.setM_Xpath("RadiusSearchCriteria");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRADIUSSEARCHCRITERIA()));var _248=new MQLatLng("CenterLatLng");this.getCenter=function(){return _248;};this.setCenter=function(_249){_248.setLatLng(_249.getLatitude(),_249.getLongitude());};}MQRadiusSearchCriteria.prototype.getClassName=function(){return "MQRadiusSearchCriteria";};MQRadiusSearchCriteria.prototype.getObjectVersion=function(){return 0;};MQRadiusSearchCriteria.prototype.loadXml=function(_24a){this.setM_XmlDoc(mqCreateXMLDoc(_24a));var lat=this.getProperty("CenterLatLng/Lat");var lng=this.getProperty("CenterLatLng/Lng");this.getCenter().setLatLng(lat,lng);};MQRadiusSearchCriteria.prototype.saveXml=function(){var _24d=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_24d,"CenterLatLng"));return mqXmlToStr(this.getM_XmlDoc());};MQRadiusSearchCriteria.prototype.setRadius=function(_24e,_24f){if(_24f){mqIsClass("MQDistanceUnits",_24f,false);}else{_24f=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(_24f.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){_24e=_24e/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}this.setProperty("Radius",_24e);};MQRadiusSearchCriteria.prototype.getRadius=function(_250){if(_250){mqIsClass("MQDistanceUnits",_250,false);}else{_250=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}var _251=this.getProperty("Radius");if(_250.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){_251=_251*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}return _251;};MQRectSearchCriteria.prototype=new MQSearchCriteria();MQRectSearchCriteria.prototype.constructor=MQRectSearchCriteria;function MQRectSearchCriteria(_252){MQObject.call(this);this.setM_Xpath("RectSearchCriteria");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECTSEARCHCRITERIA()));var _253=new MQLatLng("UpperLeftLatLng");this.getUpperLeft=function(){return _253;};this.setUpperLeft=function(_254){_253.setLatLng(_254.getLatitude(),_254.getLongitude());};var _255=new MQLatLng("LowerRightLatLng");this.getLowerRight=function(){return _255;};this.setLowerRight=function(_256){_255.setLatLng(_256.getLatitude(),_256.getLongitude());};if(_252){_253.setLatLng(_252.getUpperLeft().getLat(),_252.getUpperLeft().getLng());_255.setLatLng(_252.getLowerRight().getLat(),_252.getLowerRight().getLng());}}MQRectSearchCriteria.prototype.getClassName=function(){return "MQRectSearchCriteria";};MQRectSearchCriteria.prototype.getObjectVersion=function(){return 0;};MQRectSearchCriteria.prototype.loadXml=function(_257){this.setM_XmlDoc(mqCreateXMLDoc(_257));var lat=this.getProperty("UpperLeftLatLng/Lat");var lng=this.getProperty("UpperLeftLatLng/Lng");this.getUpperLeft().setLatLng(lat,lng);lat=this.getProperty("LowerRightLatLng/Lat");lng=this.getProperty("LowerRightLatLng/Lng");this.getLowerRight().setLatLng(lat,lng);};MQRectSearchCriteria.prototype.saveXml=function(){var _25a=mqCreateXMLDoc(this.getUpperLeft().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_25a,"UpperLeftLatLng"));_25a=mqCreateXMLDoc(this.getLowerRight().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_25a,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc());};MQPolySearchCriteria.prototype=new MQSearchCriteria();MQPolySearchCriteria.prototype.constructor=MQPolySearchCriteria;function MQPolySearchCriteria(){MQObject.call(this);this.setM_Xpath("PolySearchCriteria");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOLYSEARCHCRITERIA()));var _25b=new MQLatLngCollection();_25b.setM_Xpath("LatLngs");this.getShapePoints=function(){return _25b;};this.setShapePoints=function(_25c){if(_25c.getClassName()==="MQLatLngCollection"){_25b.removeAll();_25b.append(_25c);}else{alert("failure in setShapePoints");throw "failure in setShapePoints";}};}MQPolySearchCriteria.prototype.getClassName=function(){return "MQPolySearchCriteria";};MQPolySearchCriteria.prototype.getObjectVersion=function(){return 0;};MQPolySearchCriteria.prototype.loadXml=function(_25d){this.setM_XmlDoc(mqCreateXMLDoc(_25d));var _25e=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){_25e.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}};MQPolySearchCriteria.prototype.saveXml=function(){var _25f=mqCreateXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_25f,"LatLngs"));return mqXmlToStr(this.getM_XmlDoc());};MQCorridorSearchCriteria.prototype=new MQPolySearchCriteria();MQCorridorSearchCriteria.prototype.constructor=MQCorridorSearchCriteria;function MQCorridorSearchCriteria(){MQPolySearchCriteria.call(this);this.setM_Xpath("CorridorSearchCriteria");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCORRIDORSEARCHCRITERIA()));}MQCorridorSearchCriteria.prototype.getClassName=function(){return "MQCorridorSearchCriteria";};MQCorridorSearchCriteria.prototype.getObjectVersion=function(){return 0;};MQCorridorSearchCriteria.prototype.setCorrExactLinks=function(_260){this.setProperty("ExactLinks",(_260===true)?1:0);};MQCorridorSearchCriteria.prototype.getCorrExactLinks=function(){return (this.getProperty("ExactLinks")==1)?true:false;};MQCorridorSearchCriteria.prototype.setCorridorWidth=function(_261,_262){if(_262){mqIsClass("MQDistanceUnits",_262,false);}else{_262=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(_262.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){_261=_261/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}this.setProperty("CorridorWidth",_261);};MQCorridorSearchCriteria.prototype.getCorridorWidth=function(_263){if(_263){mqIsClass("MQDistanceUnits",_263,false);}else{_263=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}var _264=this.getProperty("CorridorWidth");if(_263.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){_264=_264*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}return _264;};MQCorridorSearchCriteria.prototype.setCorridorBufferWidth=function(_265,_266){if(_266){mqIsClass("MQDistanceUnits",_266,false);}else{_266=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(_266.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){_265=_265/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}this.setProperty("CorridorBufferWidth",_265);};MQCorridorSearchCriteria.prototype.getCorridorBufferWidth=function(_267){if(_267){mqIsClass("MQDistanceUnits",_267,false);}else{_267=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}var _268=this.getProperty("CorridorBufferWidth");if(_267.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){_268=_268*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}return _268;};MQDBLayerQuery.prototype=new MQObject();MQDBLayerQuery.prototype.constructor=MQDBLayerQuery;function MQDBLayerQuery(){MQObject.call(this);this.setM_Xpath("DBLayerQuery");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDBLAYERQUERY()));}MQDBLayerQuery.prototype.getClassName=function(){return "MQDBLayerQuery";};MQDBLayerQuery.prototype.getObjectVersion=function(){return 0;};MQDBLayerQuery.prototype.loadXml=function(_269){this.setM_XmlDoc(mqCreateXMLDoc(_269));};MQDBLayerQuery.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQDBLayerQuery.prototype.setDBLayerName=function(_26a){this.setProperty("LayerName",_26a);};MQDBLayerQuery.prototype.getDBLayerName=function(){return this.getProperty("LayerName");};MQDBLayerQuery.prototype.setExtraCriteria=function(_26b){this.setProperty("ExtraCriteria",_26b);};MQDBLayerQuery.prototype.getExtraCriteria=function(){return this.getProperty("ExtraCriteria");};MQPrimitive.prototype=new MQObject();MQPrimitive.prototype.constructor=MQPrimitive;function MQPrimitive(){MQObject.call(this);var _26c=new MQDrawTrigger(MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT);this.getDrawTrigger=function(){return _26c;};this.setDrawTrigger=function(dt){if(dt){if(dt.getClassName()==="MQDrawTrigger"){_26c=dt;}}};var _26e=new MQCoordinateType(MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC);this.getCoordinateType=function(){return _26e;};this.setCoordinateType=function(dt){if(dt){if(dt.getClassName()==="MQCoordinateType"){_26e=dt;}}};}MQPrimitive.prototype.getClassName=function(){return "MQPrimitive";};MQPrimitive.prototype.getObjectVersion=function(){return 2;};MQPrimitive.prototype.setKey=function(_270){this.setProperty("Key",_270);};MQPrimitive.prototype.getKey=function(){return this.getProperty("Key");};MQPrimitive.prototype.setOpacity=function(_271){this.setProperty("Opacity",_271);};MQPrimitive.prototype.getOpacity=function(){return this.getProperty("Opacity");};MQLinePrimitive.prototype=new MQPrimitive();MQLinePrimitive.prototype.constructor=MQLinePrimitive;function MQLinePrimitive(){MQPrimitive.call(this);this.setM_Xpath("LinePrimitive");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLINEPRIMITIVE()));var _272=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return _272;};this.setColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_272=obj;}}};var _274=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return _274;};this.setStyle=function(obj){if(obj){if(obj.getClassName()==="MQPenStyle"){_274=obj;}}};var _276=new MQPointCollection();_276.setM_Xpath("Points");this.getPoints=function(){return _276;};var _277=new MQLatLngCollection();_277.setM_Xpath("LatLngs");this.getLatLngs=function(){return _277;};this.setLatLngs=function(obj){if(obj){if(obj.getClassName()==="MQLatLngCollection"){_277.removeAll();_277.append(obj);}}};}MQLinePrimitive.prototype.getClassName=function(){return "MQLinePrimitive";};MQLinePrimitive.prototype.getObjectVersion=function(){return 0;};MQLinePrimitive.prototype.loadXml=function(_279){this.setM_XmlDoc(mqCreateXMLDoc(_279));var ll=new MQLatLngCollection();ll.setM_Xpath("LatLngs");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){ll.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}this.setLatLngs(ll);var pt=new MQPointCollection();pt.setM_Xpath("Points");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){pt.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}this.setPoints(ll);this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));};MQLinePrimitive.prototype.saveXml=function(){var _27c=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_27c,"LatLngs"));_27c=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_27c,"Points"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQLinePrimitive.prototype.setWidth=function(_27d){this.setProperty("Width",_27d);};MQLinePrimitive.prototype.getWidth=function(){return this.getProperty("Width");};MQPolygonPrimitive.prototype=new MQLinePrimitive();MQPolygonPrimitive.prototype.constructor=MQPolygonPrimitive;function MQPolygonPrimitive(){MQLinePrimitive.call(this);this.setM_Xpath("LinePrimitive");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOLYGONPRIMITIVE()));var _27e=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return _27e;};this.setFillColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_27e=obj;}}};var _280=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return _280;};this.setFillStyle=function(obj){if(obj){if(obj.getClassName()==="MQFillStyle"){_280=obj;}}};}MQPolygonPrimitive.prototype.getClassName=function(){return "MQPolygonPrimitive";};MQPolygonPrimitive.prototype.getObjectVersion=function(){return 0;};MQPolygonPrimitive.prototype.loadXml=function(_282){this.setM_XmlDoc(mqCreateXMLDoc(_282));var ll=new MQLatLngCollection();ll.setM_Xpath("LatLngs");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){ll.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}this.setLatLngs(ll);var pt=new MQPointCollection();pt.setM_Xpath("Points");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){pt.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}this.setPoints(ll);this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));this.setFillColor(new MQColorStyle(Math.floor(this.getProperty("FillColor"))));this.setFillStyle(new MQFillStyle(Math.floor(this.getProperty("FillStyle"))));};MQPolygonPrimitive.prototype.saveXml=function(){var _285=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_285,"LatLngs"));_285=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_285,"Points"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());this.setProperty("FillColor",this.getFillColor().intValue());this.setProperty("FillStyle",this.getFillStyle().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQRectanglePrimitive.prototype=new MQPrimitive();MQRectanglePrimitive.prototype.constructor=MQRectanglePrimitive;function MQRectanglePrimitive(){MQPrimitive.call(this);this.setM_Xpath("RectanglePrimitive");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECTANGLEPRIMITIVE()));var _286=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return _286;};this.setColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_286=obj;}}};var _288=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return _288;};this.setStyle=function(obj){if(obj){if(obj.getClassName()==="MQPenStyle"){_288=obj;}}};var _28a=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return _28a;};this.setFillColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_28a=obj;}}};var _28c=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return _28c;};this.setFillStyle=function(obj){if(obj){if(obj.getClassName()==="MQFillStyle"){_28c=obj;}}};var _28e=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return _28e;};this.setUpperLeftLatLng=function(_28f){_28e.setLatLng(_28f.getLatitude(),_28f.getLongitude());};var _290=new MQLatLng("LowerRightLatLng");this.getLowerRightLatLng=function(){return _290;};this.setLowerRightLatLng=function(_291){_290.setLatLng(_291.getLatitude(),_291.getLongitude());};var _292=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return _292;};this.setUpperLeftPoint=function(_293){_292.setXY(_293.getX(),_293.getY());};var _294=new MQPoint("LowerRightPoint");this.getLowerRightPoint=function(){return _294;};this.setLowerRightPoint=function(_295){_294.setXY(_295.getX(),_295.getY());};}MQRectanglePrimitive.prototype.getClassName=function(){return "MQRectanglePrimitive";};MQRectanglePrimitive.prototype.getObjectVersion=function(){return 0;};MQRectanglePrimitive.prototype.loadXml=function(_296){this.setM_XmlDoc(mqCreateXMLDoc(_296));var _297=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){_297.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));}_297=this.getLowerRightLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){_297.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));}var _298=this.getUpperLeftPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){_298.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));}_298=this.getLowerRightPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null){_298.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")));}this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));this.setFillColor(new MQColorStyle(Math.floor(this.getProperty("FillColor"))));this.setFillStyle(new MQFillStyle(Math.floor(this.getProperty("FillStyle"))));};MQRectanglePrimitive.prototype.saveXml=function(){var _299=mqCreateXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_299,"UpperLeftLatLng"));_299=mqCreateXMLDoc(this.getLowerRightLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_299,"LowerRightLatLng"));_299=mqCreateXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_299,"UpperLeftPoint"));_299=mqCreateXMLDoc(this.getLowerRightPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_299,"LowerRightPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());this.setProperty("FillColor",this.getFillColor().intValue());this.setProperty("FillStyle",this.getFillStyle().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQRectanglePrimitive.prototype.setWidth=function(_29a){this.setProperty("Width",_29a);};MQRectanglePrimitive.prototype.getWidth=function(){return this.getProperty("Width");};MQEllipsePrimitive.prototype=new MQRectanglePrimitive();MQEllipsePrimitive.prototype.constructor=MQEllipsePrimitive;function MQEllipsePrimitive(){MQRectanglePrimitive.call(this);this.setM_Xpath("EllipsePrimitive");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getELLIPSEPRIMITIVE()));}MQEllipsePrimitive.prototype.getClassName=function(){return "MQEllipsePrimitive";};MQEllipsePrimitive.prototype.getObjectVersion=function(){return 0;};MQSymbolPrimitive.prototype=new MQPrimitive();MQSymbolPrimitive.prototype.constructor=MQSymbolPrimitive;function MQSymbolPrimitive(){MQPrimitive.call(this);this.setM_Xpath("SymbolPrimitive");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSYMBOLPRIMITIVE()));var m_pt=new MQPoint("CenterPoint");this.getCenterPoint=function(){return m_pt;};this.setCenterPoint=function(_29c){m_pt.setXY(_29c.getX(),_29c.getY());};var m_ll=new MQLatLng("CenterLatLng");this.getCenterLatLng=function(){return m_ll;};this.setCenterLatLng=function(_29e){m_ll.setLatLng(_29e.getLatitude(),_29e.getLongitude());};var _29f=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return _29f;};this.setSymbolType=function(obj){if(obj){if(obj.getClassName()==="MQSymbolType"){_29f=obj;}}};}MQSymbolPrimitive.prototype.getClassName=function(){return "MQSymbolPrimitive";};MQSymbolPrimitive.prototype.getObjectVersion=function(){return 0;};MQSymbolPrimitive.prototype.loadXml=function(_2a1){this.setM_XmlDoc(mqCreateXMLDoc(_2a1));var _2a2=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){_2a2.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}var _2a3=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){_2a3.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setSymbolType(new MQSymbolType(Math.floor(this.getProperty("SymbolType"))));};MQSymbolPrimitive.prototype.saveXml=function(){var _2a4=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2a4,"CenterLatLng"));_2a4=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2a4,"CenterPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("SymbolType",this.getSymbolType().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQSymbolPrimitive.prototype.setSymbolName=function(_2a5){this.setProperty("SymbolName",_2a5);};MQSymbolPrimitive.prototype.getSymbolName=function(){return this.getProperty("SymbolName");};MQTextPrimitive.prototype=new MQPrimitive();MQTextPrimitive.prototype.constructor=MQTextPrimitive;function MQTextPrimitive(){MQPrimitive.call(this);this.setM_Xpath("TextPrimitive");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getTEXTPRIMITIVE()));var m_pt=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return m_pt;};this.setUpperLeftPoint=function(_2a7){m_pt.setXY(_2a7.getX(),_2a7.getY());};var m_ll=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return m_ll;};this.setUpperLeftLatLng=function(_2a9){m_ll.setLatLng(_2a9.getLatitude(),_2a9.getLongitude());};var _2aa=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return _2aa;};this.setColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2aa=obj;}}};var _2ac=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_BOXED);this.getStyle=function(){return _2ac;};this.setStyle=function(obj){if(obj){if(obj.getClassName()==="MQFontStyle"){_2ac=obj;}}};var _2ae=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_WHITE);this.getBkgdColor=function(){return _2ae;};this.setBkgdColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2ae=obj;}}};var _2b0=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getBoxOutlineColor=function(){return _2b0;};this.setBoxOutlineColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2b0=obj;}}};var _2b2=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getOutlineColor=function(){return _2b2;};this.setOutlineColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2b2=obj;}}};}MQTextPrimitive.prototype.getClassName=function(){return "MQTextPrimitive";};MQTextPrimitive.prototype.getObjectVersion=function(){return 0;};MQTextPrimitive.prototype.loadXml=function(_2b4){this.setM_XmlDoc(mqCreateXMLDoc(_2b4));var _2b5=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){_2b5.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));}var _2b6=this.getUpperLeftPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){_2b6.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));}this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQFontStyle(Math.floor(this.getProperty("Style"))));this.setBkgdColor(new MQColorStyle(Math.floor(this.getProperty("BkgdColor"))));this.setBoxOutlineColor(new MQColorStyle(Math.floor(this.getProperty("BoxOutlineColor"))));this.setOutlineColor(new MQColorStyle(Math.floor(this.getProperty("OutlineColor"))));};MQTextPrimitive.prototype.saveXml=function(){var _2b7=mqCreateXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2b7,"UpperLeftLatLng"));_2b7=mqCreateXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2b7,"UpperLeftPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());this.setProperty("BkgdColor",this.getBkgdColor().intValue());this.setProperty("BoxOutlineColor",this.getBoxOutlineColor().intValue());this.setProperty("OutlineColor",this.getOutlineColor().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQTextPrimitive.prototype.setText=function(str){this.setProperty("Text",str);};MQTextPrimitive.prototype.getText=function(){return this.getProperty("Text");};MQTextPrimitive.prototype.setFontName=function(str){this.setProperty("FontName",str);};MQTextPrimitive.prototype.getFontName=function(){return this.getProperty("FontName");};MQTextPrimitive.prototype.setWidth=function(val){this.setProperty("Width",val);};MQTextPrimitive.prototype.getWidth=function(){return this.getProperty("Width");};MQTextPrimitive.prototype.setFontSize=function(val){this.setProperty("FontSize",val);};MQTextPrimitive.prototype.getFontSize=function(){return this.getProperty("FontSize");};MQTextPrimitive.prototype.setMargin=function(val){this.setProperty("Margin",val);};MQTextPrimitive.prototype.getMargin=function(){return this.getProperty("Margin");};MQTextPrimitive.prototype.setTextAlignment=function(val){this.setProperty("TextAlignment",val);};MQTextPrimitive.prototype.getTextAlignment=function(){return this.getProperty("TextAlignment");};MQFeatureSpecifier.prototype=new MQObject();MQFeatureSpecifier.prototype.constructor=MQFeatureSpecifier;function MQFeatureSpecifier(){MQObject.call(this);this.setM_Xpath("FeatureSpecifier");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURESPECIFIER()));var _2be=new MQFeatureSpeciferAttributeType(MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID);this.getAttributeType=function(){return _2be;};this.setAttributeType=function(obj){if(obj){if(obj.getClassName()==="MQFeatureSpeciferAttributeType"){_2be=obj;}}};}MQFeatureSpecifier.prototype.getClassName=function(){return "MQFeatureSpecifier";};MQFeatureSpecifier.prototype.getObjectVersion=function(){return 0;};MQFeatureSpecifier.prototype.setAttributeValue=function(val){this.setProperty("AttributeValue",val);};MQFeatureSpecifier.prototype.getAttributeValue=function(){return this.getProperty("AttributeValue");};MQBaseDTStyle.prototype=new MQObject();MQBaseDTStyle.prototype.constructor=MQBaseDTStyle;function MQBaseDTStyle(){MQObject.call(this);}MQBaseDTStyle.prototype.getClassName=function(){return "MQBaseDTStyle";};MQBaseDTStyle.prototype.getObjectVersion=function(){return 0;};MQBaseDTStyle.prototype.setDT=function(val){this.setProperty("DT",val);};MQBaseDTStyle.prototype.getDT=function(){return this.getProperty("DT");};MQBaseDTStyle.prototype.setHighScale=function(val){this.setProperty("HighScale",val);};MQBaseDTStyle.prototype.getHighScale=function(){return this.getProperty("HighScale");};MQBaseDTStyle.prototype.setLowScale=function(val){this.setProperty("LowScale",val);};MQBaseDTStyle.prototype.getLowScale=function(){return this.getProperty("LowScale");};MQBaseDTStyle.prototype.equals=function(type){if(type){try{var _2c5=type.getClassName();}catch(error){alert("Invalid type for this function!");throw "Invalid type for this function!";}if(_2c5===this.getClassName()){return (this.getDT()===type.getDT()&&this.getHighScale()===type.getHighScale()&&this.getLowScale()===type.getLowScale());}else{alert("Invalid type for this function!");throw "Invalid type for this function!";}}else{alert("An MQBaseDTStyle parameter must be provided for this function!");throw "An MQBaseDTStyle parameter must be provided for this function!";}};MQDTStyle.prototype=new MQBaseDTStyle();MQDTStyle.prototype.constructor=MQDTStyle;function MQDTStyle(){MQBaseDTStyle.call(this);this.setM_Xpath("DTStyle");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTSTYLE()));var _2c6=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontColor=function(){return _2c6;};this.setFontColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2c6=obj;}}};var _2c8=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontOutlineColor=function(){return _2c8;};this.setFontOutlineColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2c8=obj;}}};var _2ca=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxBkgdColor=function(){return _2ca;};this.setFontBoxBkgdColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2ca=obj;}}};var _2cc=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxOutlineColor=function(){return _2cc;};this.setFontBoxOutlineColor=function(obj){if(obj){if(obj.getClassName()==="MQColorStyle"){_2cc=obj;}}};var _2ce=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_INVALID);this.getFontStyle=function(){return _2ce;};this.setFontStyle=function(obj){if(obj){if(obj.getClassName()==="MQFontStyle"){_2ce=obj;}}};var _2d0=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return _2d0;};this.setSymbolType=function(obj){if(obj){if(obj.getClassName()==="MQSymbolType"){_2d0=obj;}}};}MQDTStyle.prototype.getClassName=function(){return "MQDTStyle";};MQDTStyle.prototype.getObjectVersion=function(){return 0;};MQDTStyle.prototype.loadXml=function(_2d2){this.setM_XmlDoc(mqCreateXMLDoc(_2d2));this.setFontColor(new MQColorStyle(Math.floor(this.getProperty("FontColor"))));this.setFontOutlineColor(new MQColorStyle(Math.floor(this.getProperty("FontOutlineColor"))));this.setFontBoxBkgdColor(new MQColorStyle(Math.floor(this.getProperty("FontBoxBkgdColor"))));this.setFontBoxOutlineColor(new MQColorStyle(Math.floor(this.getProperty("FontBoxOutlineColor"))));this.setFontStyle(new MQFontStyle(Math.floor(this.getProperty("FeatureSpeciferAttributeType"))));this.setSymbolType(new MQSymbolType(Math.floor(this.getProperty("SymbolType"))));};MQDTStyle.prototype.saveXml=function(){this.setProperty("FontColor",this.getFontColor().intValue());this.setProperty("FontOutlineColor",this.getFontOutlineColor().intValue());this.setProperty("FontBoxBkgdColor",this.getFontBoxBkgdColor().intValue());this.setProperty("FontBoxOutlineColor",this.getFontBoxOutlineColor().intValue());this.setProperty("FontStyle",this.getFontStyle().intValue());this.setProperty("SymbolType",this.getSymbolType().intValue());return mqXmlToStr(this.getM_XmlDoc());};MQDTStyle.prototype.setSymbolName=function(val){this.setProperty("SymbolName",val);};MQDTStyle.prototype.getSymbolName=function(){return this.getProperty("SymbolName");};MQDTStyle.prototype.setFontName=function(val){this.setProperty("FontName",val);};MQDTStyle.prototype.getFontName=function(){return this.getProperty("FontName");};MQDTStyle.prototype.setVisible=function(_2d5){this.setProperty("Visible",(_2d5===true)?1:0);};MQDTStyle.prototype.getVisible=function(){return (this.getProperty("Visible")==1)?true:false;};MQDTStyle.prototype.setLabelVisible=function(_2d6){this.setProperty("LabelVisible",(_2d6===true)?1:0);};MQDTStyle.prototype.getLabelVisible=function(){return (this.getProperty("LabelVisible")==1)?true:false;};MQDTStyle.prototype.setFontSize=function(val){this.setProperty("FontSize",val);};MQDTStyle.prototype.getFontSize=function(){return this.getProperty("FontSize");};MQDTStyle.prototype.setFontBoxMargin=function(val){this.setProperty("FontBoxMargin",val);};MQDTStyle.prototype.getFontBoxMargin=function(){return this.getProperty("FontBoxMargin");};MQDTStyleEx.prototype=new MQBaseDTStyle();MQDTStyleEx.prototype.constructor=MQDTStyleEx;function MQDTStyleEx(){MQBaseDTStyle.call(this);this.setM_Xpath("DTStyleEx");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTSTYLEEX()));}MQDTStyleEx.prototype.getClassName=function(){return "MQDTStyleEx";};MQDTStyleEx.prototype.getObjectVersion=function(){return 0;};MQDTStyleEx.prototype.loadXml=function(_2d9){this.setM_XmlDoc(mqCreateXMLDoc(_2d9));};MQDTStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQDTStyleEx.prototype.setStyleString=function(val){this.setProperty("StyleString",val);};MQDTStyleEx.prototype.getStyleString=function(){return this.getProperty("StyleString");};MQDTFeatureStyleEx.prototype=new MQDTStyleEx();MQDTFeatureStyleEx.prototype.constructor=MQDTFeatureStyleEx;function MQDTFeatureStyleEx(){MQBaseDTStyle.call(this);this.setM_Xpath("DTStyleEx");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTFEATURESTYLEEX()));var _2db=new MQFeatureSpecifierCollection("FeatureSpecifier");_2db.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return _2db;};this.setFeatureSpecifiers=function(col){if(mqIsClass(_2db.getClassName(),col,false)){_2db.removeAll();_2db.append(col);}};}MQDTFeatureStyleEx.prototype.getClassName=function(){return "MQDTFeatureStyleEx";};MQDTFeatureStyleEx.prototype.getObjectVersion=function(){return 0;};MQDTFeatureStyleEx.prototype.loadXml=function(_2dd){this.setM_XmlDoc(mqCreateXMLDoc(_2dd));};MQDTFeatureStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQMapCommand.prototype=new MQObject();MQMapCommand.prototype.constructor=MQMapCommand;function MQMapCommand(){MQObject.call(this);this.setM_Xpath("DTStyleEx");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTFEATURESTYLEEX()));var _2de=new MQFeatureSpecifierCollection("FeatureSpecifier");_2de.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return _2de;};this.setFeatureSpecifiers=function(col){if(col.getClassName()==="MQFeatureSpecifierCollection"){_2de=col;}else{alert("failure in setFeatureSpecifiers");throw "failure in setFeatureSpecifiers";}};}MQMapCommand.prototype.getClassName=function(){return "MQMapCommand";};MQMapCommand.prototype.getObjectVersion=function(){return 0;};MQBestFit.prototype=new MQMapCommand();MQBestFit.prototype.constructor=MQBestFit;function MQBestFit(){MQMapCommand.call(this);this.setM_Xpath("BestFit");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getBESTFIT()));var _2e0=new MQDTCollection();_2e0.setM_Xpath("DisplayTypes");this.getDisplayTypes=function(){return _2e0;};this.setDisplayTypes=function(col){_2e0.removeAll();_2e0.append(col);};}MQBestFit.prototype.getClassName=function(){return "MQBestFit";};MQBestFit.prototype.getObjectVersion=function(){return 2;};MQBestFit.prototype.loadXml=function(_2e2){this.setM_XmlDoc(mqCreateXMLDoc(_2e2));var obj=this.getDisplayTypes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")));}};MQBestFit.prototype.saveXml=function(){var _2e4=mqCreateXMLDoc(this.getDisplayTypes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2e4,"DisplayTypes"));return mqXmlToStr(this.getM_XmlDoc());};MQBestFit.prototype.setIncludePrimitives=function(_2e5){this.setProperty("IncludePrimitives",(_2e5===true)?1:0);};MQBestFit.prototype.getIncludePrimitives=function(){return (this.getProperty("IncludePrimitives")==1)?true:false;};MQBestFit.prototype.setKeepCenter=function(_2e6){this.setProperty("KeepCenter",(_2e6===true)?1:0);};MQBestFit.prototype.getKeepCenter=function(){return (this.getProperty("KeepCenter")==1)?true:false;};MQBestFit.prototype.setSnapToZoomLevel=function(_2e7){this.setProperty("SnapToZoomLevel",(_2e7===true)?1:0);};MQBestFit.prototype.getSnapToZoomLevel=function(){return (this.getProperty("SnapToZoomLevel")==1)?true:false;};MQBestFit.prototype.setScaleAdjustmentFactor=function(val){this.setProperty("ScaleAdjFactor",val);};MQBestFit.prototype.getScaleAdjustmentFactor=function(){return this.getProperty("ScaleAdjFactor");};MQBestFitLL.prototype=new MQMapCommand();MQBestFitLL.prototype.constructor=MQBestFitLL;function MQBestFitLL(){MQMapCommand.call(this);this.setM_Xpath("BestFitLL");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getBESTFITLL()));var _2e9=new MQLatLngCollection();_2e9.setM_Xpath("LatLngs");this.getLatLngs=function(){return _2e9;};this.setLatLngs=function(col){_2e9.removeAll();_2e9.append(col);};}MQBestFitLL.prototype.getClassName=function(){return "MQBestFitLL";};MQBestFitLL.prototype.getObjectVersion=function(){return 0;};MQBestFitLL.prototype.loadXml=function(_2eb){this.setM_XmlDoc(mqCreateXMLDoc(_2eb));var obj=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}};MQBestFitLL.prototype.saveXml=function(){var _2ed=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2ed,"LatLngs"));return mqXmlToStr(this.getM_XmlDoc());};MQBestFitLL.prototype.setKeepCenter=function(_2ee){this.setProperty("KeepCenter",(_2ee===true)?1:0);};MQBestFitLL.prototype.getKeepCenter=function(){return (this.getProperty("KeepCenter")==1)?true:false;};MQBestFitLL.prototype.setSnapToZoomLevel=function(_2ef){this.setProperty("SnapToZoomLevel",(_2ef===true)?1:0);};MQBestFitLL.prototype.getSnapToZoomLevel=function(){return (this.getProperty("SnapToZoomLevel")==1)?true:false;};MQBestFitLL.prototype.setScaleAdjustmentFactor=function(val){this.setProperty("ScaleAdjFactor",val);};MQBestFitLL.prototype.getScaleAdjustmentFactor=function(){return this.getProperty("ScaleAdjFactor");};MQCenter.prototype=new MQMapCommand();MQCenter.prototype.constructor=MQCenter;function MQCenter(){MQMapCommand.call(this);this.setM_Xpath("Center");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCENTER()));var _2f1=new MQPoint("CenterPoint");this.getCenter=function(){return _2f1;};this.setCenter=function(pt){if(mqIsClass(_2f1.getClassName(),pt,false)){_2f1=pt.internalCopy(_2f1);}};}MQCenter.prototype.getClassName=function(){return "MQCenter";};MQCenter.prototype.getObjectVersion=function(){return 0;};MQCenter.prototype.loadXml=function(_2f3){this.setM_XmlDoc(mqCreateXMLDoc(_2f3));var obj=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQCenter.prototype.saveXml=function(){var _2f5=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2f5,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQCenterLatLng.prototype=new MQMapCommand();MQCenterLatLng.prototype.constructor=MQCenterLatLng;function MQCenterLatLng(){MQMapCommand.call(this);this.setM_Xpath("CenterLatLng");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCENTERLATLNG()));var _2f6=new MQLatLng("CenterLatLng");this.getCenter=function(){return _2f6;};this.setCenter=function(ll){if(mqIsClass(_2f6.getClassName(),ll,false)){_2f6=ll.internalCopy(_2f6);}};}MQCenterLatLng.prototype.getClassName=function(){return "MQCenterLatLng";};MQCenterLatLng.prototype.getObjectVersion=function(){return 0;};MQCenterLatLng.prototype.loadXml=function(_2f8){this.setM_XmlDoc(mqCreateXMLDoc(_2f8));var obj=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}};MQCenterLatLng.prototype.saveXml=function(){var _2fa=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_2fa,"CenterLatLng"));return mqXmlToStr(this.getM_XmlDoc());};MQPan.prototype=new MQMapCommand();MQPan.prototype.constructor=MQPan;function MQPan(){MQMapCommand.call(this);this.setM_Xpath("Pan");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPAN()));var _2fb=new MQPoint("DeltaPoint");this.getPoint=function(){return _2fb;};this.setDeltaXY=function(dblX,dblY){_2fb.setXY(dblX,dblY);};this.setDeltaY=function(dblY){_2fb.setY(dblY);};this.setDeltaX=function(dblX){_2fb.setX(dblX);};}MQPan.prototype.getClassName=function(){return "MQPan";};MQPan.prototype.getObjectVersion=function(){return 0;};MQPan.prototype.loadXml=function(_300){this.setM_XmlDoc(mqCreateXMLDoc(_300));var obj=this.getPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")));}};MQPan.prototype.saveXml=function(){var _302=mqCreateXMLDoc(this.getPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_302,"DeltaPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQZoomIn.prototype=new MQMapCommand();MQZoomIn.prototype.constructor=MQZoomIn;function MQZoomIn(){MQMapCommand.call(this);this.setM_Xpath("ZoomIn");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMIN()));var _303=new MQPoint("CenterPoint");this.getCenter=function(){return _303;};this.setCenter=function(pt){_303=pt;};}MQZoomIn.prototype.getClassName=function(){return "MQZoomIn";};MQZoomIn.prototype.getObjectVersion=function(){return 0;};MQZoomIn.prototype.loadXml=function(_305){this.setM_XmlDoc(mqCreateXMLDoc(_305));var obj=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQZoomIn.prototype.saveXml=function(){var _307=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_307,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQZoomOut.prototype=new MQMapCommand();MQZoomOut.prototype.constructor=MQZoomOut;function MQZoomOut(){MQMapCommand.call(this);this.setM_Xpath("ZoomOut");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMOUT()));var _308=new MQPoint("CenterPoint");this.getCenter=function(){return _308;};this.setCenter=function(pt){_308=pt;};}MQZoomOut.prototype.getClassName=function(){return "MQZoomOut";};MQZoomOut.prototype.getObjectVersion=function(){return 0;};MQZoomOut.prototype.loadXml=function(_30a){this.setM_XmlDoc(mqCreateXMLDoc(_30a));var obj=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQZoomOut.prototype.saveXml=function(){var _30c=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_30c,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQZoomTo.prototype=new MQMapCommand();MQZoomTo.prototype.constructor=MQZoomTo;function MQZoomTo(){MQMapCommand.call(this);this.setM_Xpath("ZoomTo");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTO()));var _30d=new MQPoint("CenterPoint");this.getCenter=function(){return _30d;};this.setCenter=function(pt){_30d=pt;};}MQZoomTo.prototype.getClassName=function(){return "MQZoomTo";};MQZoomTo.prototype.getObjectVersion=function(){return 0;};MQZoomTo.prototype.loadXml=function(_30f){this.setM_XmlDoc(mqCreateXMLDoc(_30f));var obj=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQZoomTo.prototype.saveXml=function(){var _311=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_311,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQZoomTo.prototype.getZoomLevel=function(){return this.getProperty("ZoomLevel");};MQZoomTo.prototype.setZoomLevel=function(val){this.setProperty("ZoomLevel",val);};MQZoomToRect.prototype=new MQMapCommand();MQZoomToRect.prototype.constructor=MQZoomToRect;function MQZoomToRect(){MQMapCommand.call(this);this.setM_Xpath("ZoomToRect");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTORECT()));var _313=new MQPoint("UpperLeftPoint");var _314=new MQPoint("LowerRightPoint");this.getRect=function(ulpt,lrpt){ulpt.loadXml(_313.copy().saveXml());lrpt.loadXml(_314.copy().saveXml());};this.setRect=function(ulpt,lrpt){if(mqIsClass(_313.getClassName(),ulpt,false)&&mqIsClass(_314.getClassName(),lrpt,false)){_313=ulpt.internalCopy(_313);_314=lrpt.internalCopy(_314);}};}MQZoomToRect.prototype.getClassName=function(){return "MQZoomToRect";};MQZoomToRect.prototype.getObjectVersion=function(){return 0;};MQZoomToRect.prototype.loadXml=function(_319){this.setM_XmlDoc(mqCreateXMLDoc(_319));var ul=new MQPoint("UpperLeftPoint"),lr=new MQPoint("LowerRightPoint");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){ul.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));}if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null){lr.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")));}this.setRect(ul,lr);};MQZoomToRect.prototype.saveXml=function(){var ul=new MQPoint("UpperLeftPoint"),lr=new MQPoint("LowerRightPoint");this.getRect(ul,lr);var _31c=mqCreateXMLDoc(ul.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_31c,"UpperLeftPoint"));_31c=mqCreateXMLDoc(lr.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_31c,"LowerRightPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQZoomToRectLatLng.prototype=new MQMapCommand();MQZoomToRectLatLng.prototype.constructor=MQZoomToRectLatLng;function MQZoomToRectLatLng(){MQMapCommand.call(this);this.setM_Xpath("ZoomToRectLatLng");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTORECTLATLNG()));var _31d=new MQLatLng("UpperLeftLatLng");var _31e=new MQLatLng("LowerRightLatLng");this.getRect=function(ulll,lrll){ulll.loadXml(_31d.copy().saveXml());lrll.loadXml(_31e.copy().saveXml());};this.setRect=function(ulll,lrll){if(mqIsClass(_31d.getClassName(),ulll,false)&&mqIsClass(_31e.getClassName(),lrll,false)){_31d=ulll.internalCopy(_31d);_31e=lrll.internalCopy(_31e);}};}MQZoomToRectLatLng.prototype.getClassName=function(){return "MQZoomToRectLatLng";};MQZoomToRectLatLng.prototype.getObjectVersion=function(){return 0;};MQZoomToRectLatLng.prototype.loadXml=function(_323){this.setM_XmlDoc(mqCreateXMLDoc(_323));var ul=new MQLatLng("UpperLeftLatLng"),lr=new MQLatLng("LowerRightLatLng");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){ul.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));}if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){lr.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));}this.setRect(ul,lr);};MQZoomToRectLatLng.prototype.saveXml=function(){var ul=new MQLatLng("UpperLeftLatLng"),lr=new MQLatLng("LowerRightLatLng");this.getRect(ul,lr);var _326=mqCreateXMLDoc(ul.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_326,"UpperLeftLatLng"));_326=mqCreateXMLDoc(lr.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_326,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc());};function MQType(){}MQType.prototype.equals=function(type){if(type){try{var _328=type.getClassName();}catch(error){alert("Invalid type for this function!");throw "Invalid type for this function!";}if(_328===this.getClassName()){return (this.intValue()===type.intValue());}else{alert("Invalid type for this function!");throw "Invalid type for this function!";}}else{alert("An MQType parameter must be provided for this function!");throw "An MQType parameter must be provided for this function!";}};MQRouteType.prototype=new MQType();MQRouteType.prototype.constructor=MQRouteType;function MQRouteType(val){var _32a=-1;switch(val){case MQCONSTANT.MQROUTETYPE_FASTEST:_32a=val;break;case MQCONSTANT.MQROUTETYPE_SHORTEST:_32a=val;break;case MQCONSTANT.MQROUTETYPE_PEDESTRIAN:_32a=val;break;case MQCONSTANT.MQROUTETYPE_OPTIMIZED:_32a=val;break;case MQCONSTANT.MQROUTETYPE_SELECT_DATASET_ONLY:_32a=val;break;default:alert(val+" is an invalid value for MQRouteType!");throw val+" invalid value for MQRouteType!";}this.intValue=function(){return _32a;};}MQRouteType.prototype.getClassName=function(){return "MQRouteType";};MQRouteType.prototype.getObjectVersion=function(){return 0;};MQNarrativeType.prototype=new MQType();MQNarrativeType.prototype.constructor=MQNarrativeType;function MQNarrativeType(val){var _32c=-2;switch(val){case MQCONSTANT.MQNARRATIVETYPE_DEFAULT:_32c=val;break;case MQCONSTANT.MQNARRATIVETYPE_HTML:_32c=val;break;case MQCONSTANT.MQNARRATIVETYPE_NONE:_32c=val;break;default:alert(val+" is an invalid value for MQNarrativeType!");throw val+" invalid value for MQNarrativeType!";}this.intValue=function(){return _32c;};}MQNarrativeType.prototype.getClassName=function(){return "MQNarrativeType";};MQNarrativeType.prototype.getObjectVersion=function(){return 0;};MQCoordinateType.prototype=new MQType();MQCoordinateType.prototype.constructor=MQCoordinateType;function MQCoordinateType(val){var _32e=-2;switch(val){case MQCONSTANT.MQCOORDINATETYPE_DISPLAY:_32e=val;break;case MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC:_32e=val;break;default:alert(val+" is an invalid value for MQCoordinateType!");throw val+" invalid value for MQCoordinateType!";}this.intValue=function(){return _32e;};}MQCoordinateType.prototype.getClassName=function(){return "MQCoordinateType";};MQCoordinateType.prototype.getObjectVersion=function(){return 0;};MQFeatureSpeciferAttributeType.prototype=new MQType();MQFeatureSpeciferAttributeType.prototype.constructor=MQFeatureSpeciferAttributeType;function MQFeatureSpeciferAttributeType(val){var _330=-1;switch(val){case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID:_330=val;break;case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_NAME:_330=val;break;default:alert(val+" is an invalid value for MQFeatureSpeciferAttributeType!");throw val+" invalid value for MQFeatureSpeciferAttributeType!";}this.intValue=function(){return _330;};}MQFeatureSpeciferAttributeType.prototype.getClassName=function(){return "MQFeatureSpeciferAttributeType";};MQFeatureSpeciferAttributeType.prototype.getObjectVersion=function(){return 0;};MQSymbolType.prototype=new MQType();MQSymbolType.prototype.constructor=MQSymbolType;function MQSymbolType(val){var _332=-1;switch(val){case MQCONSTANT.MQSYMBOLTYPE_RASTER:_332=val;break;case MQCONSTANT.MQSYMBOLTYPE_VECTOR:_332=val;break;default:alert(val+" is an invalid value for MQSymbolType!");throw val+" invalid value for MQSymbolType!";}this.intValue=function(){return _332;};}MQSymbolType.prototype.getClassName=function(){return "MQSymbolType";};MQSymbolType.prototype.getObjectVersion=function(){return 0;};MQMatchType.prototype=new MQType();MQMatchType.prototype.constructor=MQMatchType;function MQMatchType(val){var _334=-1;switch(val){case MQCONSTANT.MQMATCHTYPE_LOC:_334=val;break;case MQCONSTANT.MQMATCHTYPE_INTR:_334=val;break;case MQCONSTANT.MQMATCHTYPE_NEARBLK:_334=val;break;case MQCONSTANT.MQMATCHTYPE_REPBLK:_334=val;break;case MQCONSTANT.MQMATCHTYPE_BLOCK:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA1:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA2:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA3:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA4:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA5:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA6:_334=val;break;case MQCONSTANT.MQMATCHTYPE_AA7:_334=val;break;case MQCONSTANT.MQMATCHTYPE_PC1:_334=val;break;case MQCONSTANT.MQMATCHTYPE_PC2:_334=val;break;case MQCONSTANT.MQMATCHTYPE_PC3:_334=val;break;case MQCONSTANT.MQMATCHTYPE_PC4:_334=val;break;case MQCONSTANT.MQMATCHTYPE_POI:_334=val;break;default:alert(val+" is an invalid value for MQMatchType!");throw val+" invalid value for MQMatchType!";}this.intValue=function(){return _334;};}MQMatchType.prototype.getClassName=function(){return "MQMatchType";};MQMatchType.prototype.getObjectVersion=function(){return 0;};MQQualityType.prototype=new MQType();MQQualityType.prototype.constructor=MQQualityType;function MQQualityType(val){var _336=-1;switch(val){case MQCONSTANT.MQQUALITYTYPE_EXACT:_336=val;break;case MQCONSTANT.MQQUALITYTYPE_GOOD:_336=val;break;case MQCONSTANT.MQQUALITYTYPE_APPROX:_336=val;break;default:alert(val+" is an invalid value for MQQualityType!");throw val+" invalid value for MQQualityType!";}this.intValue=function(){return _336;};}MQQualityType.prototype.getClassName=function(){return "MQQualityType";};MQQualityType.prototype.getObjectVersion=function(){return 0;};MQDrawTrigger.prototype=new MQType();MQDrawTrigger.prototype.constructor=MQDrawTrigger;function MQDrawTrigger(val){var _338=-1;switch(val){case MQCONSTANT.MQDRAWTRIGGER_AFTER_POLYGONS:_338=val;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT:_338=val;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT:_338=val;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_POLYGONS:_338=val;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT:_338=val;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_TEXT:_338=val;break;default:alert(val+" is an invalid value for MQDrawTrigger!");throw val+" invalid value for MQDrawTrigger!";}this.intValue=function(){return _338;};}MQDrawTrigger.prototype.getClassName=function(){return "MQDrawTrigger";};MQDrawTrigger.prototype.getObjectVersion=function(){return 0;};MQPenStyle.prototype=new MQType();MQPenStyle.prototype.constructor=MQPenStyle;function MQPenStyle(val){var _33a=-1;switch(val){case MQCONSTANT.MQPENSTYLE_DASH:_33a=val;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT:_33a=val;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT_DOT:_33a=val;break;case MQCONSTANT.MQPENSTYLE_SOLID:_33a=val;break;case MQCONSTANT.MQPENSTYLE_DOT:_33a=val;break;case MQCONSTANT.MQPENSTYLE_NONE:_33a=val;break;default:alert(val+" is an invalid value for MQPenStyle!");throw val+" invalid value for MQPenStyle!";}this.intValue=function(){return _33a;};}MQPenStyle.prototype.getClassName=function(){return "MQPenStyle";};MQPenStyle.prototype.getObjectVersion=function(){return 0;};MQFontStyle.prototype=new MQType();MQFontStyle.prototype.constructor=MQFontStyle;function MQFontStyle(val){var _33c=-2;switch(val){case MQCONSTANT.MQFONTSTYLE_BOLD:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_BOXED:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_DOT:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_ITALICS:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_MAX_VALUE:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_NORMAL:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_OUTLINED:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_SEMIBOLD:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_STRIKEOUT:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_THIN:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_UNDERLINE:_33c=val;break;case MQCONSTANT.MQFONTSTYLE_INVALID:_33c=val;break;default:alert(val+" is an invalid value for MQFontStyle!");throw val+" invalid value for MQFontStyle!";}this.intValue=function(){return _33c;};}MQFontStyle.prototype.getClassName=function(){return "MQFontStyle";};MQFontStyle.prototype.getObjectVersion=function(){return 0;};MQColorStyle.prototype=new MQType();MQColorStyle.prototype.constructor=MQColorStyle;function MQColorStyle(val){var _33e=MQCONSTANT.MQCOLORSTYLE_INVALID;if(val!==null){_33e=val;}this.intValue=function(){return _33e;};}MQColorStyle.prototype.getClassName=function(){return "MQColorStyle";};MQColorStyle.prototype.getObjectVersion=function(){return 0;};MQColorStyle.prototype.getRGB=function(){var rgb=-16777216;var a=parseInt(parseInt(this.intValue()/65536)%256);var b=parseInt(parseInt(parseInt(this.intValue()/256)%256)*256);var c=parseInt(parseInt(this.intValue()%256)*65536);return rgb+a+b+c;};MQFillStyle.prototype=new MQType();MQFillStyle.prototype.constructor=MQFillStyle;function MQFillStyle(val){var _344=-1;switch(val){case MQCONSTANT.MQFILLSTYLE_SOLID:_344=val;break;case MQCONSTANT.MQFILLSTYLE_BDIAGONAL:_344=val;break;case MQCONSTANT.MQFILLSTYLE_CROSS:_344=val;break;case MQCONSTANT.MQFILLSTYLE_DIAG_CROSS:_344=val;break;case MQCONSTANT.MQFILLSTYLE_FDIAGONAL:_344=val;break;case MQCONSTANT.MQFILLSTYLE_HORIZONTAL:_344=val;break;case MQCONSTANT.MQFILLSTYLE_VERTICAL:_344=val;break;case MQCONSTANT.MQFILLSTYLE_NONE:_344=val;break;default:alert(val+" is an invalid value for MQFillStyle!");throw val+" invalid value for MQFillStyle!";}this.intValue=function(){return _344;};}MQFillStyle.prototype.getClassName=function(){return "MQFillStyle";};MQFillStyle.prototype.getObjectVersion=function(){return 0;};MQDistanceUnits.prototype=new MQType();MQDistanceUnits.prototype.constructor=MQDistanceUnits;function MQDistanceUnits(val){var _346=0;val=val||0;switch(val){case MQCONSTANT.MQDISTANCEUNITS_MILES:_346=val;break;case MQCONSTANT.MQDISTANCEUNITS_KILOMETERS:_346=val;break;default:alert(val+" is an invalid value for MQDistanceUnits!");throw val+" invalid value for MQDistanceUnist!";}this.getValue=function(){return _346;};}MQDistanceUnits.prototype.getClassName=function(){return "MQDistanceUnits";};MQDistanceUnits.prototype.getObjectVersion=function(){return 0;};MQRouteResultsCode.prototype=new MQType();MQRouteResultsCode.prototype.constructor=MQRouteResultsCode;function MQRouteResultsCode(val){var _348=-2;switch(val){case MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED:_348=val;break;case MQCONSTANT.MQROUTERESULTSCODE_SUCCESS:_348=val;break;case MQCONSTANT.MQROUTERESULTSCODE_INVALID_LOCATION:_348=val;break;case MQCONSTANT.MQROUTERESULTSCODE_ROUTE_FAILURE:_348=val;break;case MQCONSTANT.MQROUTERESULTSCODE_NO_DATASET_FOUND:_348=val;break;default:alert(val+" is an invalid value for MQRouteResultsCode!");throw val+" invalid value for MQRouteResultsCode!";}this.intValue=function(){return _348;};}MQRouteResultsCode.prototype.getClassName=function(){return "MQRouteResultsCode";};MQRouteResultsCode.prototype.getObjectVersion=function(){return 0;};MQRouteMatrixResultsCode.prototype=new MQType();MQRouteMatrixResultsCode.prototype.constructor=MQRouteMatrixResultsCode;function MQRouteMatrixResultsCode(val){var _34a=-2;switch(val){case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_SUCCESS:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS:_34a=val;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS:_34a=val;break;default:alert(val+" is an invalid value for MQRouteMatrixResultsCode!");throw val+" invalid value for MQRouteMatrixResultsCode!";}this.intValue=function(){return _34a;};}MQRouteMatrixResultsCode.prototype.getClassName=function(){return "MQRouteMatrixResultsCode";};MQRouteMatrixResultsCode.prototype.getObjectVersion=function(){return 0;};MQObjectCollection.prototype=new MQObject();MQObjectCollection.prototype.constructor=MQObjectCollection;function MQObjectCollection(max){MQObject.call(this);var _34c=new Array();this.getM_Items=function(){return _34c;};var _34d=(max!==null)?max:-1;var _34e="MQObject";this.getValidClassName=function(){return _34e;};this.setValidClassName=function(_34f){_34e=_34f;};this.add=function(obj){if(this.isValidObject(obj)){if(_34d!==-1&&_34c.length===max){return;}_34c.push(obj);return _34c.length;}return;};this.getSize=function(){return _34c.length;};this.get=function(i){return _34c[i];};this.remove=function(_352){return _34c.splice(_352,1);};this.removeAll=function(){_34c=null;_34c=new Array();};this.contains=function(item){var size=this.getSize();for(var _355=0;_355<size;_355++){if(_34c[_355]===item){return true;}}return false;};this.append=function(_356){if(this.getClassName()===_356.getClassName()){_34c=_34c.concat(_356.getM_Items());}else{alert("Invalid attempt to append "+this.getClassName()+" to "+_356.getClassName()+"!");throw "Invalid attempt to append "+this.getClassName()+" to "+_356.getClassName()+"!";}};this.set=function(i,newO){var oldO=get(i);_34c[i]=newO;return oldO;};this.isValidObject=function(obj){if(obj!==null){if(_34e==="ALL"){return true;}else{if(_34e==="MQObject"){return true;}else{if(_34e==="String"){return true;}else{if(_34e==="int"){if(isNaN(obj)){return false;}else{if(obj===Math.floor(obj)){return true;}}}else{if(obj.getClassName()===_34e){return true;}}}}}}return false;};var _35b="Item";this.getM_itemXpath=function(){return _35b;};this.setM_itemXpath=function(_35c){_35b=_35c;};this.getById=function(_35d){try{for(var _35e=0;_35e<this.getSize();_35e++){if(_34c[_35e].getId()==_35d){return _34c[_35e];}}}catch(Error){}return null;};this.removeItem=function(item){for(var i=0;i<_34c.length;i++){if(_34c[i]==item){this.remove(i);i=_34c.length;}}};}MQObjectCollection.prototype.getClassName=function(){return "MQObjectCollection";};MQObjectCollection.prototype.getObjectVersion=function(){return 0;};MQObjectCollection.prototype.getAt=function(i){return this.get(i);};MQLocationCollection.prototype=new MQObjectCollection(32678);MQLocationCollection.prototype.constructor=MQLocationCollection;function MQLocationCollection(){MQObjectCollection.call(this,32678);this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLOCATIONCOLLECTION()));this.setM_Xpath("LocationCollection");}MQLocationCollection.prototype.getClassName=function(){return "MQLocationCollection";};MQLocationCollection.prototype.getObjectVersion=function(){return 0;};MQLocationCollection.prototype.loadXml=function(_362){this.removeAll();var _363=mqCreateXMLDoc(_362);this.setM_XmlDoc(_363);if(_363!==null){var root=_363.documentElement;var _365=root.childNodes;var _366=_365.length;_366=(_366<32678)?_366:32678;var _367=0;var loc=null;for(var _369=_367;_369<_366;_369++){if(_365[_369].nodeName==="Address"){loc=new MQAddress();loc.loadXml(mqXmlToStr(_365[_369]));}else{if(_365[_369].nodeName==="GeoAddress"){loc=new MQGeoAddress();loc.loadXml(mqXmlToStr(_365[_369]));}}this.add(loc);}}};MQLocationCollection.prototype.saveXml=function(){var _36a="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_36a=_36a+this.get(i).saveXml();}_36a=_36a+"</"+this.getM_Xpath()+">";return _36a;};MQLocationCollection.prototype.isValidObject=function(obj){if(obj){if(obj.getClassName()==="MQGeoAddress"||obj.getClassName()==="MQAddress"){return true;}}return false;};MQLatLngCollection.prototype=new MQObjectCollection(32678);MQLatLngCollection.prototype.constructor=MQLatLngCollection;function MQLatLngCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQLatLng");this.setM_Xpath("LatLngCollection");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLATLNGCOLLECTION()));}MQLatLngCollection.prototype.getClassName=function(){return "MQLatLngCollection";};MQLatLngCollection.prototype.getObjectVersion=function(){return 1;};MQLatLngCollection.prototype.loadXml=function(_36e){this.removeAll();var _36f=mqCreateXMLDoc(_36e);this.setM_XmlDoc(_36f);if(_36f!==null){var root=_36f.documentElement;var _371=root.childNodes;var _372=_371.length;_372=(_372<32678)?_372:32678;var lat1=0;var lng1=0;var lat=0;var lng=0;var _377=null;if(this.getValidClassName()==="MQLatLng"){for(var _378=0;_378<_372;_378++){if(_378===0){if(_371[_378].firstChild!==null){lat1=_371[_378].firstChild.nodeValue/1000000;}_378++;if(_371[_378].firstChild!==null){lng1=_371[_378].firstChild.nodeValue/1000000;}_377=new MQLatLng(lat1,lng1);}else{if(_371[_378].firstChild!==null){lat=lat1+(_371[_378].firstChild.nodeValue/1000000);}else{lat=lat1;}_378++;if(_371[_378].firstChild!==null){lng=lng1+(_371[_378].firstChild.nodeValue/1000000);}else{lng=lng1;}_377=new MQLatLng(lat.toFixed(6),lng.toFixed(6));}this.add(_377);}}}};MQLatLngCollection.prototype.loadXmlFromNode=function(_379){this.removeAll();var _37a=mqCreateXMLDocImportNode(_379);this.setM_XmlDoc(_37a);if(_37a!==null){var root=_37a.documentElement;var _37c=root.childNodes;var _37d=_37c.length;_37d=(_37d<32678)?_37d:32678;var lat1=0;var lng1=0;var lat=0;var lng=0;var _382=null;if(this.getValidClassName()==="MQLatLng"){for(var _383=0;_383<_37d;_383++){if(_383===0){if(_37c[_383].firstChild!==null){lat1=_37c[_383].firstChild.nodeValue/1000000;}_383++;if(_37c[_383].firstChild!==null){lng1=_37c[_383].firstChild.nodeValue/1000000;}_382=new MQLatLng(lat1,lng1);}else{if(_37c[_383].firstChild!==null){lat=lat1+(_37c[_383].firstChild.nodeValue/1000000);}else{lat=lat1;}_383++;if(_37c[_383].firstChild!==null){lng=lng1+(_37c[_383].firstChild.nodeValue/1000000);}else{lng=lng1;}_382=new MQLatLng(lat.toFixed(6),lng.toFixed(6));}this.add(_382);}}}};MQLatLngCollection.prototype.saveXml=function(){var _384="<"+this.getM_Xpath()+" Version=\""+this.getObjectVersion()+"\" Count=\""+this.getSize()+"\">";var _385=0;var _386=0;var lat=0;var lng=0;var size=this.getSize();for(var i=0;i<size;i++){if(i===0){_385=1000000*this.get(i).getLatitude();_386=1000000*this.get(i).getLongitude();_384+=" <Lat>"+_385+"</Lat><Lng>"+_386+"</Lng>";}else{lat=(1000000*this.get(i).getLatitude())-_385;lng=(1000000*this.get(i).getLongitude())-_386;_384+=" <Lat>"+lat+"</Lat><Lng>"+lng+"</Lng>";}}_384=_384+"</"+this.getM_Xpath()+">";return _384;};MQSignCollection.prototype=new MQObjectCollection(32678);MQSignCollection.prototype.constructor=MQSignCollection;function MQSignCollection(_38b){MQObjectCollection.call(this,32678);if(_38b){this.setM_itemXpath(_38b);}this.setValidClassName("MQSign");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGNCOLLECTION()));this.setM_Xpath("SignCollection");}MQSignCollection.prototype.getClassName=function(){return "MQSignCollection";};MQSignCollection.prototype.getObjectVersion=function(){return 0;};MQSignCollection.prototype.loadXml=function(_38c){this.removeAll();var _38d=mqCreateXMLDoc(_38c);this.setM_XmlDoc(_38d);if(_38d!==null){var root=_38d.documentElement;var _38f=root.childNodes;var _390=_38f.length;_390=(_390<32678)?_390:32678;var _391=0;var sign=null;if(this.getValidClassName()==="MQSign"){for(var _393=_391;_393<_390;_393++){sign=new MQSign();sign.setM_Xpath(this.getM_itemXpath());sign.loadXml(mqXmlToStr(_38f[_393]));this.add(sign);}}}};MQSignCollection.prototype.loadXmlFromNode=function(node){var _395=mqCreateXMLDocImportNode(node);this.setM_XmlDoc(_395);if(_395!==null){var root=_395.documentElement;var _397=root.childNodes;var _398=_397.length;_398=(_398<32678)?_398:32678;var _399=0;var sign=null;if(this.getValidClassName()==="MQSign"){for(var _39b=_399;_39b<_398;_39b++){sign=new MQSign();sign.setM_Xpath(this.getM_itemXpath());sign.loadXmlFromNode(_397[_39b]);this.add(sign);}}}};MQSignCollection.prototype.saveXml=function(){var _39c="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_39c=_39c+this.get(i).saveXml();}_39c=_39c+"</"+this.getM_Xpath()+">";return _39c;};MQPointCollection.prototype=new MQObjectCollection(32678);MQPointCollection.prototype.constructor=MQPointCollection;function MQPointCollection(_39f){MQObjectCollection.call(this,32678);if(_39f){this.setM_itemXpath(_39f);}this.setValidClassName("MQPoint");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOINTCOLLECTION()));this.setM_Xpath("PointCollection");}MQPointCollection.prototype.getClassName=function(){return "MQPointCollection";};MQPointCollection.prototype.getObjectVersion=function(){return 0;};MQPointCollection.prototype.loadXml=function(_3a0){this.removeAll();var _3a1=mqCreateXMLDoc(_3a0);this.setM_XmlDoc(_3a1);if(_3a1!==null){var root=_3a1.documentElement;var _3a3=root.childNodes;var _3a4=_3a3.length;_3a4=(_3a4<32678)?_3a4:32678;var _3a5=0;var pnt=null;if(this.getValidClassName()==="MQPoint"){for(var _3a7=_3a5;_3a7<_3a4;_3a7++){pnt=new MQPoint(this.getM_itemXpath());pnt.loadXml(mqXmlToStr(_3a3[_3a7]));this.add(pnt);}}}};MQPointCollection.prototype.saveXml=function(){var _3a8="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3a8=_3a8+this.get(i).saveXml();}_3a8=_3a8+"</"+this.getM_Xpath()+">";return _3a8;};MQDBLayerQueryCollection.prototype=new MQObjectCollection(32678);MQDBLayerQueryCollection.prototype.constructor=MQDBLayerQueryCollection;function MQDBLayerQueryCollection(_3ab){MQObjectCollection.call(this,32678);if(_3ab){this.setM_itemXpath(_3ab);}this.setValidClassName("MQDBLayerQuery");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGNCOLLECTION()));this.setM_Xpath("DBLayerQueryCollection");}MQDBLayerQueryCollection.prototype.getClassName=function(){return "MQDBLayerQueryCollection";};MQDBLayerQueryCollection.prototype.getObjectVersion=function(){return 0;};MQDBLayerQueryCollection.prototype.loadXml=function(_3ac){this.removeAll();var _3ad=mqCreateXMLDoc(_3ac);this.setM_XmlDoc(_3ad);if(_3ad!==null){var root=_3ad.documentElement;var _3af=root.childNodes;var _3b0=_3af.length;_3b0=(_3b0<32678)?_3b0:32678;var _3b1=0;var sign=null;if(this.getValidClassName()==="MQDBLayerQuery"){for(var _3b3=_3b1;_3b3<_3b0;_3b3++){sign=new MQDBLayerQuery();sign.setM_Xpath(this.getM_itemXpath());sign.loadXml(mqXmlToStr(_3af[_3b3]));this.add(sign);}}}};MQDBLayerQueryCollection.prototype.saveXml=function(){var _3b4="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3b4=_3b4+this.get(i).saveXml();}_3b4=_3b4+"</"+this.getM_Xpath()+">";return _3b4;};MQManeuverCollection.prototype=new MQObjectCollection(32678);MQManeuverCollection.prototype.constructor=MQManeuverCollection;function MQManeuverCollection(_3b7){MQObjectCollection.call(this,32678);if(_3b7){this.setM_itemXpath(_3b7);}this.setValidClassName("MQManeuver");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getMANEUVERCOLLECTION()));this.setM_Xpath("ManeuverCollection");}MQManeuverCollection.prototype.getClassName=function(){return "MQManeuverCollection";};MQManeuverCollection.prototype.getObjectVersion=function(){return 0;};MQManeuverCollection.prototype.loadXml=function(_3b8){this.removeAll();var _3b9=mqCreateXMLDoc(_3b8);this.setM_XmlDoc(_3b9);if(_3b9!==null){var root=_3b9.documentElement;var _3bb=root.childNodes;var _3bc=_3bb.length;_3bc=(_3bc<32678)?_3bc:32678;var _3bd=0;var _3be=null;if(this.getValidClassName()==="MQManeuver"){for(var _3bf=_3bd;_3bf<_3bc;_3bf++){_3be=new MQManeuver();_3be.setM_Xpath(this.getM_itemXpath());_3be.loadXml(mqXmlToStr(_3bb[_3bf]));this.add(_3be);}}}};MQManeuverCollection.prototype.saveXml=function(){var _3c0="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3c0=_3c0+this.get(i).saveXml();}_3c0=_3c0+"</"+this.getM_Xpath()+">";return _3c0;};MQTrekRouteCollection.prototype=new MQObjectCollection(32678);MQTrekRouteCollection.prototype.constructor=MQTrekRouteCollection;function MQTrekRouteCollection(_3c3){MQObjectCollection.call(this,32678);if(_3c3){this.setM_itemXpath(_3c3);}this.setValidClassName("MQTrekRoute");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getTREKROUTECOLLECTION()));this.setM_Xpath("TrekRouteCollection");}MQTrekRouteCollection.prototype.getClassName=function(){return "MQTrekRouteCollection";};MQTrekRouteCollection.prototype.getObjectVersion=function(){return 0;};MQTrekRouteCollection.prototype.loadXml=function(_3c4){this.removeAll();var _3c5=mqCreateXMLDoc(_3c4);this.setM_XmlDoc(_3c5);if(_3c5!==null){var root=_3c5.documentElement;var _3c7=root.childNodes;var _3c8=_3c7.length;_3c8=(_3c8<32678)?_3c8:32678;var _3c9=0;var trek=null;if(this.getValidClassName()==="MQTrekRoute"){for(var _3cb=_3c9;_3cb<_3c8;_3cb++){trek=new MQTrekRoute();trek.setM_Xpath(this.getM_itemXpath());trek.loadXml(mqXmlToStr(_3c7[_3cb]));this.add(trek);}}}};MQTrekRouteCollection.prototype.saveXml=function(){var _3cc="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3cc=_3cc+this.get(i).saveXml();}_3cc=_3cc+"</"+this.getM_Xpath()+">";return _3cc;};MQIntCollection.prototype=new MQObjectCollection(32678);MQIntCollection.prototype.constructor=MQIntCollection;function MQIntCollection(_3cf){MQObjectCollection.call(this,32678);this.setValidClassName("int");if(_3cf){this.setM_itemXpath(_3cf);}if(this.getClassName()==="MQIntCollection"){this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getINTCOLLECTION()));this.setM_Xpath("IntCollection");}}MQIntCollection.prototype.getClassName=function(){return "MQIntCollection";};MQIntCollection.prototype.getObjectVersion=function(){return 0;};MQIntCollection.prototype.loadXml=function(_3d0){this.removeAll();var _3d1=mqCreateXMLDoc(_3d0);this.setM_XmlDoc(_3d1);if(_3d1!==null){var root=_3d1.documentElement;var _3d3=root.childNodes;var _3d4=_3d3.length;_3d4=(_3d4<32678)?_3d4:32678;var _3d5=0;var str=null;for(var _3d7=_3d5;_3d7<_3d4;_3d7++){if(_3d3[_3d7].firstChild!==null){str=parseInt(_3d3[_3d7].firstChild.nodeValue);}else{str=0;}this.add(str);}}};MQIntCollection.prototype.saveXml=function(){var _3d8="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3d8=_3d8+"<"+this.getM_itemXpath()+">"+this.get(i)+"</"+this.getM_itemXpath()+">";}_3d8=_3d8+"</"+this.getM_Xpath()+">";return _3d8;};MQDTCollection.prototype=new MQIntCollection("Item");MQDTCollection.prototype.constructor=MQDTCollection;function MQDTCollection(_3db){MQIntCollection.call(this,_3db);this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTCOLLECTION()));this.setM_Xpath("DTCollection");}MQDTCollection.prototype.getClassName=function(){return "MQDTCollection";};MQDTCollection.prototype.getObjectVersion=function(){return 1;};MQFeatureCollection.prototype=new MQObjectCollection(32678);MQFeatureCollection.prototype.constructor=MQFeatureCollection;function MQFeatureCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURECOLLECTION()));this.setM_Xpath("FeatureCollection");}MQFeatureCollection.prototype.getClassName=function(){return "MQFeatureCollection";};MQFeatureCollection.prototype.getObjectVersion=function(){return 0;};MQFeatureCollection.prototype.loadXml=function(_3dc){this.removeAll();var _3dd=mqCreateXMLDoc(_3dc);this.setM_XmlDoc(_3dd);if(_3dd!==null){var root=_3dd.documentElement;var _3df=root.childNodes;var _3e0=_3df.length;_3e0=(_3e0<32678)?_3e0:32678;var _3e1=0;var feat=null;var _3e3="";for(var _3e4=_3e1;_3e4<_3e0;_3e4++){_3e3=_3df[_3e4].nodeName;if(_3e3==="LineFeature"){feat=new MQLineFeature();feat.loadXml(mqXmlToStr(_3df[_3e4]));}else{if(_3e3==="PointFeature"){feat=new MQPointFeature();feat.loadXmlFromNode(_3df[_3e4]);}else{if(_3e3==="PolygonFeature"){feat=new MQPolygonFeature();feat.loadXml(mqXmlToStr(_3df[_3e4]));}}}this.add(feat);}}};MQFeatureCollection.prototype.saveXml=function(){var _3e5="<"+this.getM_Xpath()+" Version=\""+this.getObjectVersion()+"\" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3e5=_3e5+this.get(i).saveXml();}_3e5=_3e5+"</"+this.getM_Xpath()+">";return _3e5;};MQFeatureSpecifierCollection.prototype=new MQObjectCollection(32678);MQFeatureSpecifierCollection.prototype.constructor=MQFeatureSpecifierCollection;function MQFeatureSpecifierCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQFeatureSpecifier");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURESPECIFIERCOLLECTION()));this.setM_Xpath("FeatureCollection");}MQFeatureSpecifierCollection.prototype.getClassName=function(){return "MQFeatureSpecifierCollection";};MQFeatureSpecifierCollection.prototype.getObjectVersion=function(){return 0;};MQFeatureSpecifierCollection.prototype.loadXml=function(_3e8){this.removeAll();var _3e9=mqCreateXMLDoc(_3e8);this.setM_XmlDoc(_3e9);if(_3e9!==null){var root=_3e9.documentElement;var _3eb=root.childNodes;var _3ec=_3eb.length;_3ec=(_3ec<32678)?_3ec:32678;var _3ed=0;var feat=null;for(var _3ef=_3ed;_3ef<_3ec;_3ef++){if(_3eb[_3ef].nodeName==="FeatureSpecifier"){feat=new MQFeatureSpecifier();feat.loadXml(mqXmlToStr(_3eb[_3ef]));}this.add(feat);}}};MQFeatureSpecifierCollection.prototype.saveXml=function(){var _3f0="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3f0=_3f0+this.get(i).saveXml();}_3f0=_3f0+"</"+this.getM_Xpath()+">";return _3f0;};MQGeocodeOptionsCollection.prototype=new MQObjectCollection(32678);MQGeocodeOptionsCollection.prototype.constructor=MQGeocodeOptionsCollection;function MQGeocodeOptionsCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQGeocodeOptions");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOCODEOPTIONSCOLLECTION()));this.setM_Xpath("GeocodeOptionsCollection");}MQGeocodeOptionsCollection.prototype.getClassName=function(){return "MQGeocodeOptionsCollection";};MQGeocodeOptionsCollection.prototype.getObjectVersion=function(){return 0;};MQGeocodeOptionsCollection.prototype.loadXml=function(_3f3){this.removeAll();var _3f4=mqCreateXMLDoc(_3f3);this.setM_XmlDoc(_3f4);if(_3f4!==null){var root=_3f4.documentElement;var _3f6=root.childNodes;var _3f7=_3f6.length;_3f7=(_3f7<32678)?_3f7:32678;var _3f8=0;var geoO=null;for(var _3fa=_3f8;_3fa<_3f7;_3fa++){if(_3f6[_3fa].nodeName==="GeocodeOptions"){geoO=new MQGeocodeOptions();geoO.loadXml(mqXmlToStr(_3f6[_3fa]));}this.add(geoO);}}};MQGeocodeOptionsCollection.prototype.saveXml=function(){var _3fb="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_3fb=_3fb+this.get(i).saveXml();}_3fb=_3fb+"</"+this.getM_Xpath()+">";return _3fb;};MQCoverageStyle.prototype=new MQObjectCollection(32678);MQCoverageStyle.prototype.constructor=MQCoverageStyle;function MQCoverageStyle(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCOVERAGESTYLE()));this.setM_Xpath("CoverageStyle");}MQCoverageStyle.prototype.getClassName=function(){return "MQCoverageStyle";};MQCoverageStyle.prototype.getObjectVersion=function(){return 0;};MQCoverageStyle.prototype.loadXml=function(_3fe){this.removeAll();var _3ff=mqCreateXMLDoc(_3fe);this.setM_XmlDoc(_3ff);if(_3ff!==null){var root=_3ff.documentElement;var _401=root.childNodes;var _402=_401.length;_402=(_402<32678)?_402:32678;var _403=0;var dt=null;for(var _405=_403;_405<_402;_405++){if(_401[_405].nodeName==="DTStyle"){dt=new MQDTStyle();dt.loadXml(mqXmlToStr(_401[_405]));}else{if(_401[_405].nodeName==="DTStyleEx"){dt=new MQDTStyleEx();dt.loadXml(mqXmlToStr(_401[_405]));}else{if(_401[_405].nodeName==="DTFeatureStyleEx"){dt=new MQDTFeatureStyleEx();dt.loadXml(mqXmlToStr(_401[_405]));}}}if(dt!==null){this.add(dt);}dt=null;}}};MQCoverageStyle.prototype.saveXml=function(){var _406="<CoverageStyle Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_406=_406+this.get(i).saveXml();}_406=_406+"<Name>"+this.getProperty("Name");+"</Name>";_406=_406+"</CoverageStyle>";return _406;};MQCoverageStyle.prototype.setName=function(_409){this.setProperty("Name",_409);};MQCoverageStyle.prototype.getName=function(){return this.getProperty("Name");};MQPrimitiveCollection.prototype=new MQObjectCollection(32678);MQPrimitiveCollection.prototype.constructor=MQPrimitiveCollection;function MQPrimitiveCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURECOLLECTION()));this.setM_Xpath("FeatureCollection");}MQPrimitiveCollection.prototype.getClassName=function(){return "MQPrimitiveCollection";};MQPrimitiveCollection.prototype.getObjectVersion=function(){return 0;};MQPrimitiveCollection.prototype.loadXml=function(_40a){this.removeAll();var _40b=mqCreateXMLDoc(_40a);this.setM_XmlDoc(_40b);if(_40b!==null){var root=_40b.documentElement;var _40d=root.childNodes;var _40e=_40d.length;_40e=(_40e<32678)?_40e:32678;var _40f=0;var prim=null;for(var _411=_40f;_411<_40e;_411++){if(_40d[_411].nodeName==="EllipsePrimitive"){prim=new MQEllipsePrimitive();prim.loadXml(mqXmlToStr(_40d[_411]));}else{if(_40d[_411].nodeName==="LinePrimitive"){prim=new MQLinePrimitive();prim.loadXml(mqXmlToStr(_40d[_411]));}else{if(_40d[_411].nodeName==="PolygonPrimitive"){prim=new MQPolygonPrimitive();prim.loadXml(mqXmlToStr(_40d[_411]));}else{if(_40d[_411].nodeName==="RectanglePrimitive"){prim=new MQRectanglePrimitive();prim.loadXml(mqXmlToStr(_40d[_411]));}else{if(_40d[_411].nodeName==="TextPrimitive"){prim=new MQTextPrimitive();prim.loadXml(mqXmlToStr(_40d[_411]));}else{if(_40d[_411].nodeName==="SymbolPrimitive"){prim=new MQSymbolPrimitive();prim.loadXml(mqXmlToStr(_40d[_411]));}}}}}}this.add(prim);}}};MQPrimitiveCollection.prototype.saveXml=function(){var _412="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_412=_412+this.get(i).saveXml();}_412=_412+"</"+this.getM_Xpath()+">";return _412;};MQStringCollection.prototype=new MQObjectCollection(32678);MQStringCollection.prototype.constructor=MQStringCollection;function MQStringCollection(_415){MQObjectCollection.call(this,32678);this.setValidClassName("String");if(_415){this.setM_itemXpath(_415);}this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSTRINGCOLLECTION()));this.setM_Xpath("StringCollection");}MQStringCollection.prototype.getClassName=function(){return "MQStringCollection";};MQStringCollection.prototype.getObjectVersion=function(){return 0;};MQStringCollection.prototype.loadXml=function(_416){this.removeAll();var _417=mqCreateXMLDoc(_416);this.setM_XmlDoc(_417);if(_417!==null){var root=_417.documentElement;var _419=root.childNodes;var _41a=_419.length;_41a=(_41a<32678)?_41a:32678;var _41b=0;var str=null;for(var _41d=_41b;_41d<_41a;_41d++){if(_419[_41d].firstChild!==null){str=_419[_41d].firstChild.nodeValue;}else{str="";}this.add(str);}}};MQStringCollection.prototype.loadXmlFromNode=function(node){this.setM_XmlDoc(mqCreateXMLDocImportNode(node));};MQStringCollection.prototype.saveXml=function(){var _41f="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_41f=_41f+"<"+this.getM_itemXpath()+">"+this.get(i)+"</"+this.getM_itemXpath()+">";}_41f=_41f+"</"+this.getM_Xpath()+">";return _41f;};MQStrColCollection.prototype=new MQObjectCollection(32678);MQStrColCollection.prototype.constructor=MQStrColCollection;function MQStrColCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQStringCollection");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSTRCOLCOLLECTION()));}MQStrColCollection.prototype.getClassName=function(){return "MQStrColCollection";};MQStrColCollection.prototype.getObjectVersion=function(){return 0;};MQStrColCollection.prototype.saveXml=function(){var _422="";var size=this.getSize();for(var i=0;i<size;i++){_422=_422+this.get(i).saveXml();}_422=_422;return _422;};MQAutoGeocodeCovSwitch.prototype=new MQObject();MQAutoGeocodeCovSwitch.prototype.constructor=MQAutoGeocodeCovSwitch;function MQAutoGeocodeCovSwitch(){MQObject.call(this);this.setM_Xpath("AutoGeocodeCovSwitch");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOGEOCODECOVSWITCH()));}MQAutoGeocodeCovSwitch.prototype.getClassName=function(){return "MQAutoGeocodeCovSwitch";};MQAutoGeocodeCovSwitch.prototype.getObjectVersion=function(){return 0;};MQAutoGeocodeCovSwitch.prototype.loadXml=function(_425){this.setM_XmlDoc(mqCreateXMLDoc(_425));};MQAutoGeocodeCovSwitch.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQAutoGeocodeCovSwitch.prototype.setName=function(_426){this.setProperty("Name",_426);};MQAutoGeocodeCovSwitch.prototype.getName=function(){return this.getProperty("Name");};MQAutoGeocodeCovSwitch.prototype.setMaxMatches=function(_427){this.setProperty("MaxMatches",_427);};MQAutoGeocodeCovSwitch.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};MQAutoRouteCovSwitch.prototype=new MQObject();MQAutoRouteCovSwitch.prototype.constructor=MQAutoRouteCovSwitch;function MQAutoRouteCovSwitch(_428){MQObject.call(this);if(this.getClassName()==="MQAutoRouteCovSwitch"){if(_428){this.setM_Xpath(_428);this.setM_XmlDoc(mqCreateXMLDoc("<"+_428+"><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/></"+_428+">"));}else{this.setM_Xpath("AutoRouteCovSwitch");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOROUTECOVSWITCH()));}}var _429=new MQIntCollection();_429.setM_Xpath("DataVendorCodes");this.getDataVendorCodes=function(){return _429;};}MQAutoRouteCovSwitch.prototype.getClassName=function(){return "MQAutoRouteCovSwitch";};MQAutoRouteCovSwitch.prototype.getObjectVersion=function(){return 0;};MQAutoRouteCovSwitch.prototype.loadXml=function(_42a){this.setM_XmlDoc(mqCreateXMLDoc(_42a));var _42b=this.getDataVendorCodes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null){_42b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")));}};MQAutoRouteCovSwitch.prototype.saveXml=function(){var _42c=mqCreateXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_42c,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc());};MQAutoRouteCovSwitch.prototype.setName=function(_42d){this.setProperty("Name",_42d);};MQAutoRouteCovSwitch.prototype.getName=function(){return this.getProperty("Name");};MQAutoRouteCovSwitch.prototype.setDataVendorCodeUsage=function(_42e){this.setProperty("DataVendorCodeUsage",_42e);};MQAutoRouteCovSwitch.prototype.getDataVendorCodeUsage=function(){return this.getProperty("DataVendorCodeUsage");};MQAutoMapCovSwitch.prototype=new MQAutoRouteCovSwitch();MQAutoMapCovSwitch.prototype.constructor=MQAutoMapCovSwitch;function MQAutoMapCovSwitch(_42f){MQAutoRouteCovSwitch.call(this);if(_42f){this.setM_Xpath(_42f);this.setM_XmlDoc(mqCreateXMLDoc("<"+_42f+"><Name/><Style/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/><ZoomLevels Count=\"14\"><Item>6000</Item><Item>12000</Item><Item>24000</Item><Item>48000</Item><Item>96000</Item><Item>192000</Item><Item>400000</Item><Item>800000</Item><Item>1600000</Item><Item>3000000</Item><Item>6000000</Item><Item>12000000</Item><Item>24000000</Item><Item>48000000</Item></ZoomLevels></"+_42f+">"));}else{this.setM_Xpath("AutoMapCovSwitch");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOMAPCOVSWITCH()));}var _430=new MQIntCollection();_430.setM_Xpath("ZoomLevels");_430.add(6000);_430.add(12000);_430.add(24000);_430.add(48000);_430.add(96000);_430.add(192000);_430.add(400000);_430.add(800000);_430.add(1600000);_430.add(3000000);_430.add(6000000);_430.add(12000000);_430.add(24000000);_430.add(48000000);this.getZoomLevels=function(){return _430;};}MQAutoMapCovSwitch.prototype.getClassName=function(){return "MQAutoMapCovSwitch";};MQAutoMapCovSwitch.prototype.getObjectVersion=function(){return 0;};MQAutoMapCovSwitch.prototype.loadXml=function(_431){this.setM_XmlDoc(mqCreateXMLDoc(_431));var _432=this.getDataVendorCodes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null){_432.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")));}};MQAutoMapCovSwitch.prototype.saveXml=function(){var _433=mqCreateXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),_433,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc());};MQAutoMapCovSwitch.prototype.setStyle=function(_434){this.setProperty("Style",_434);};MQAutoMapCovSwitch.prototype.getStyle=function(){return this.getProperty("Style");};MQSession.prototype=new MQObjectCollection(32678);MQSession.prototype.constructor=MQSession;function MQSession(){MQObjectCollection.call(this,32678);this.setM_Xpath("Session");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSESSION()));}MQSession.prototype.getClassName=function(){return "MQSession";};MQSession.prototype.getObjectVersion=function(){return 0;};MQSession.prototype.loadXml=function(_435){var _436=mqCreateXMLDoc(_435);this.setM_XmlDoc(_436);if(_436!==null){var root=_436.documentElement;var _438=root.childNodes;var _439=_438.length;_439=(_439<32678)?_439:32678;var _43a=0;var obj=null;for(var _43c=_43a;_43c<_439;_43c++){obj=null;if(_438[_43c].nodeName==="MapState"){obj=new MQMapState();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="CoverageStyle"){obj=new MQCoverageStyle();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="AutoMapCovSwitch"){obj=new MQAutoMapCovSwitch();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="DBLayerQueryCollection"){obj=new MQDBLayerQueryCollection();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="FeatureCollection"){obj=new MQFeatureCollection();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="PrimitiveCollection"){obj=new MQPrimitiveCollection();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="Center"){obj=new MQCenter();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="CenterLL"){obj=new MQCenterLL();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="ZoomIn"){obj=new MQZoomIn();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="ZoomOut"){obj=new MQZoomOut();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="ZoomTo"){obj=new MQZoomTo();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="ZoomToRect"){obj=new MQZoomToRect();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="ZoomToRectLL"){obj=new MQZoomToRectLL();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="Pan"){obj=new MQPan();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="BestFit"){obj=new MQBestFit();obj.loadXml(mqXmlToStr(_438[_43c]));}else{if(_438[_43c].nodeName==="BestFitLL"){obj=new MQBestFitLL();obj.loadXml(mqXmlToStr(_438[_43c]));}}}}}}}}}}}}}}}}if(obj!==null){this.add(obj);}}}};MQSession.prototype.saveXml=function(){var _43d="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";var size=this.getSize();for(var i=0;i<size;i++){_43d=_43d+this.get(i).saveXml();}_43d=_43d+"</"+this.getM_Xpath()+">";return _43d;};MQSession.prototype.add=function(obj){return this.addOne(obj,null);};MQSession.prototype.isMapCommandObject=function(obj){if(obj){var cls=obj.getClassName();if(cls==="MQCenter"||cls==="MQCenterLatLng"||cls==="MQZoomIn"||cls==="MQZoomOut"||cls==="MQZoomTo"||cls==="MQZoomToRect"||cls==="MQZoomToRectLatLng"||cls==="MQPan"||cls==="MQBestFit"||cls==="MQBestFitLL"){return true;}else{return false;}}};MQSession.prototype.addOne=function(_443,_444){var _445=this.getSize();var _446=_443.getClassName();var _447=0;if(this.isValidObject(_443)){if(this.isMapCommandObject(_443)){for(_447=0;_447<_445;_447++){if(isMapCommandObject(get(_447))){break;}}}else{for(_447=0;_447<_445;_447++){if(get(_447).getClassId()==_446){break;}}}}else{alert("Invalid object for this collection.");throw ("Invalid object for this collection.");}if(_447<_445){_444=this.set(_447,_443);}else{m_collection.add(_443);}return _447;};MQSession.prototype.isValidObject=function(obj){if(obj){var cls=obj.getClassName();if(cls==="MQCenter"||cls==="MQCenterLatLng"||cls==="MQZoomIn"||cls==="MQZoomOut"||cls==="MQZoomTo"||cls==="MQZoomToRect"||cls==="MQZoomToRectLatLng"||cls==="MQPan"||cls==="MQBestFit"||cls==="MQBestFitLL"||cls==="MQDBLayerQueryCollection"||cls==="MQCoverageStyle"||cls==="MQFeatureCollection"||cls==="MQAutoMapCovSwitch"||cls==="MQPrimitiveCollection"||cls==="MQMapState"){return true;}else{return false;}}};function MQAuthentication(_44a){var _44b=(_44a!=null)?_44a:"";this.getInfo=function(){return _44b;};}MQAuthentication.prototype.saveXml=function(){return "<Authentication Version=\""+this.getObjectVersion()+"\">"+"<TransactionInfo>"+this.getInfo()+"</TransactionInfo>"+"</Authentication>";};MQAuthentication.prototype.getClassName=function(){return "MQAuthentication";};MQAuthentication.prototype.getObjectVersion=function(){return 2;};function MQXmlNodeObject(_44c,_44d){var _44e=_44c;var _44f=_44d;this.saveXml=function(){return "<"+_44e+">"+_44f+"</"+_44e+">";};}