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 O=new MQBrowser();O.name=O.version=O.os="unknown";var N=window.navigator.userAgent.toLowerCase();var M=window.navigator.appName;var L=window.navigator.appVersion;var J=new Array("firefox","msie","netscape","opera","safari");var H=new Array("linux","mac","windows","x11");var F=J.length;var E="";for(var D=0,A=F;D<A;D++){E=N.indexOf(J[D])+1;if(E>0){O.name=J[D];var K=E+O.name.length;var I=((O.name=="safari")||(N.charAt(K+4)>0&&N.charAt(K+4)<9))?5:3;O.version=N.substring(K,K+I);}}var G=H.length;for(var C=0,B=G;C<B;C++){E=N.indexOf(H[C])+1;if(E>0){O.os=H[C];}}if(M=="Netscape"){O.appname="ns";}else{if(M=="Microsoft Internet Explorer"){O.appname="ie";}}O.appVersion=L;O.vMajor=parseInt(O.appVersion);O.isNS=(O.appname=="ns"&&O.vMajor>=4);O.isNS4=(O.appname=="ns"&&O.vMajor==4);O.isNS6=(O.appname=="ns"&&O.vMajor==5);O.isIE=(O.appname=="ie"&&O.vMajor>=4);O.isIE4=(O.appVersion.indexOf("MSIE 4")>0);O.isIE5=(O.appVersion.indexOf("MSIE 5")>0);O.isDOM=(document.createElement&&document.appendChild&&document.getElementsByTagName)?true:false;O.isSafari=(O.name=="safari");if(N.indexOf("win")>-1){O.platform="win";}else{if(N.indexOf("mac")>-1){O.platform="mac";}else{O.platform="other";}}return O;}var mqBrowserInfo=mqGetBrowserInfo();function MQObject(){var B=null;this.getM_XmlDoc=function(){return B;};this.setM_XmlDoc=function(C){B=C;};var A=null;this.getM_Xpath=function(){return A;};this.setM_Xpath=function(C){A=C;};}MQObject.prototype.getClassName=function(){return"MQObject";};MQObject.prototype.getObjectVersion=function(){return 0;};MQObject.prototype.setProperty=function(F,E){var D;if(F!==null){D="/"+this.getM_Xpath()+"/"+F;}else{D="/"+this.getM_Xpath();}var C=mqSetNodeText(this.getM_XmlDoc(),D,E);if(C===null){var B=this.getM_XmlDoc().createElement(F);var A=this.getM_XmlDoc().documentElement.appendChild(B);C=mqSetNodeText(this.getM_XmlDoc(),D,E);}return C;};MQObject.prototype.getProperty=function(B){var A;if(B!==null){A="/"+this.getM_Xpath()+"/"+B;}else{A="/"+this.getM_Xpath();}return mqGetXPathNodeText(this.getM_XmlDoc(),A);};MQObject.prototype.copy=function(){var A=new this.constructor;A.loadXml(this.saveXml());return A;};MQObject.prototype.internalCopy=function(F){var D="<"+F.getM_Xpath();if(this.getObjectVersion()>0){D=D+' Version="'+this.getObjectVersion()+'"';}D=D+">";var B=this.getM_XmlDoc().documentElement;var C=B.childNodes;var A=C.length;for(var G=0;G<A;G++){D=D+mqXmlToStr(C[G]);}D=D+"</"+F.getM_Xpath()+">";var E=new this.constructor;E.loadXml(D);return E;};MQPoint.prototype=new MQObject();MQPoint.prototype.constructor=MQPoint;function MQPoint(B,A){MQObject.call(this);this.x=0;this.y=0;this.setM_Xpath("Point");if(arguments.length==1){this.setM_Xpath(B);}else{if(arguments.length==2){this.x=parseInt(B);this.y=parseInt(A);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(A){if("undefined"!==typeof (mqutils)){this.setM_XmlDoc(mqCreateXMLDoc(A));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(A){this.x=parseInt(A);if(isNaN(this.x)){throw new Error("MQPoint.setX called with invalid parameter");}};MQPoint.prototype.getX=function(){return this.x;};MQPoint.prototype.setY=function(A){this.y=parseInt(A);if(isNaN(this.y)){throw new Error("MQPoint.setY called with invalid parameter");}};MQPoint.prototype.getY=function(){return this.y;};MQPoint.prototype.setXY=function(A,B){this.x=parseInt(A);this.y=parseInt(B);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(A){if(A){return(this.x===A.x&&this.y===A.y);}return false;};MQPoint.prototype.toString=function(){return this.x+","+this.y;};MQLatLng.prototype=new MQObject();MQLatLng.prototype.constructor=MQLatLng;function MQLatLng(B,A){MQObject.call(this);this.lat=0;this.lng=0;this.setM_Xpath("LatLng");if(arguments.length==1){this.setM_Xpath(B);}else{if(arguments.length==2){this.lat=parseFloat(B);this.lng=parseFloat(A);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(A){if("undefined"!==typeof (mqutils)){this.setM_XmlDoc(mqCreateXMLDoc(A));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(A){this.lat=parseFloat(A);if(isNaN(this.lat)){throw new Error("MQLatLng.setLatitude called with invalid parameter");}};MQLatLng.prototype.getLatitude=function(){return this.lat;};MQLatLng.prototype.setLongitude=function(A){this.lng=parseFloat(A);if(isNaN(this.lng)){throw new Error("MQLatLng.setLongitude called with invalid parameter");}};MQLatLng.prototype.getLongitude=function(){return this.lng;};MQLatLng.prototype.setLatLng=function(B,A){this.lat=parseFloat(B);this.lng=parseFloat(A);if(isNaN(this.lat)||isNaN(this.lng)){throw new Error("MQLatLng.setLatLng called with invalid parameter");}};MQLatLng.prototype.arcDistance=function(D,G){if("undefined"!==typeof (mqutils)){if(D){if(D.getClassName()!=="MQLatLng"){alert("failure in arcDistance");throw"failure in arcDistance";}}else{alert("failure in arcDistance");throw"failure in arcDistance";}if(G){mqIsClass("MQDistanceUnits",G,false);}else{G=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(this.getLatitude()==D.getLatitude()&&this.getLongitude()==D.getLongitude()){return 0;}var E=D.getLongitude()-this.getLongitude();var A=MQCONSTANT.MQLATLNG_RADIANS*(90-this.getLatitude());var F=MQCONSTANT.MQLATLNG_RADIANS*(90-D.getLatitude());var C=(Math.cos(A)*Math.cos(F))+(Math.sin(A)*Math.sin(F)*Math.cos(MQCONSTANT.MQLATLNG_RADIANS*(E)));var B=(G.getValue()===MQCONSTANT.MQDISTANCEUNITS_MILES)?3963.205:6378.160187;if(C<-1){return MQCONSTANT.PI*B;}else{if(C>=1){return 0;}else{return Math.acos(C)*B;}}}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(A){if(A!==null){return(this.getLongitude()===A.getLongitude()&&this.getLatitude()===A.getLatitude());}return false;};MQLatLng.prototype.toString=function(){return this.lat+","+this.lng;};function mqCreateXMLDoc(C){var B;if(document.implementation.createDocument){var A=new window.DOMParser();if(mqBrowserInfo.isSafari){C=C.replace(/&/g,"&amp;");}B=A.parseFromString(C,"text/xml");}else{if(window.ActiveXObject){B=new window.ActiveXObject("Microsoft.XMLDOM");B.async="false";B.loadXML(C);}}return B;}function mqCreateXMLDocFromNode(C){var B;C=C.documentElement;if(document.implementation.createDocument){var B=document.implementation.createDocument("","",null);try{B.appendChild(B.importNode(C,true));}catch(A){alert(A);alert(C.nodeName);}}else{if(window.ActiveXObject){B=new ActiveXObject("Microsoft.XMLDOM");B.async="false";B.loadXML(C.xml);}}return B;}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.SINGLELINEADDRESS=null;this.GEOADDRESS=null;this.GEOCODEOPTIONS=null;this.MANEUVER=null;this.ROUTEOPTIONS=null;this.ROUTERESULTS=null;this.ROUTEMATRIXRESULTS=null;this.RADIUSSEARCHCRITERIA=null;this.RECTSEARCHCRITERIA=null;this.POLYSEARCHCRITERIA=null;this.CORRIDORSEARCHCRITERIA=null;this.SIGN=null;this.TREKROUTE=null;this.INTCOLLECTION=null;this.DTCOLLECTION=null;this.LATLNGCOLLECTION=null;this.LOCATIONCOLLECTION=null;this.LOCATIONCOLLECTIONCOLLECTION=null;this.MANEUVERCOLLECTION=null;this.SIGNCOLLECTION=null;this.STRINGCOLLECTION=null;this.STRCOLCOLLECTION=null;this.FEATURECOLLECTION=null;this.PRIMITIVECOLLECTION=null;this.POINTCOLLECTION=null;this.TREKROUTECOLLECTION=null;this.FEATURESPECIFIERCOLLECTION=null;this.GEOCODEOPTIONSCOLLECTION=null;this.COVERAGESTYLE=null;this.RECORDSET=null;this.MAPSTATE=null;this.SESSION=null;this.SESSIONID=null;this.DTSTYLE=null;this.DTSTYLEEX=null;this.DTFEATURESTYLEEX=null;this.FEATURESPECIFIER=null;this.BESTFIT=null;this.BESTFITLL=null;this.CENTER=null;this.CENTERLATLNG=null;this.PAN=null;this.ZOOMIN=null;this.ZOOMOUT=null;this.ZOOMTO=null;this.ZOOMTORECT=null;this.ZOOMTORECTLATLNG=null;this.getAUTOGEOCODECOVSWITCH=function(){if(this.AUTOGEOCODECOVSWITCH===null){this.AUTOGEOCODECOVSWITCH=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.getSINGLELINEADDRESS=function(){if(this.SINGLELINEADDRESS===null){this.SINGLELINEADDRESS=mqCreateXMLDoc("<SingleLineAddress/>");}return this.SINGLELINEADDRESS;};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.getLOCATIONCOLLECTIONCOLLECTION=function(){if(this.LOCATIONCOLLECTIONCOLLECTION===null){this.LOCATIONCOLLECTIONCOLLECTION=mqCreateXMLDoc('<LocationCollectionCollection Count="0"/>');}return this.LOCATIONCOLLECTIONCOLLECTION;};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.getPRIMITIVECOLLECTION=function(){if(this.PRIMITIVECOLLECTION===null){this.PRIMITIVECOLLECTION=mqCreateXMLDoc('<PrimitiveCollection Count="0"/>');}return this.PRIMITIVECOLLECTION;};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();MQObjectCollection.prototype=new MQObject();MQObjectCollection.prototype.constructor=MQObjectCollection;function MQObjectCollection(A){MQObject.call(this);var D=new Array();this.getM_Items=function(){return D;};var C=(A!==null)?A:-1;var B="MQObject";this.getValidClassName=function(){return B;};this.setValidClassName=function(F){B=F;};this.add=function(F){if(this.isValidObject(F)){if(C!==-1&&D.length===A){return ;}D.push(F);return D.length;}return ;};this.getSize=function(){return D.length;};this.get=function(F){return D[F];};this.remove=function(F){return D.splice(F,1);};this.removeAll=function(){D=null;D=new Array();};this.contains=function(H){var G=this.getSize();for(var F=0;F<G;F++){if(D[F]===H){return true;}}return false;};this.append=function(F){if(this.getClassName()===F.getClassName()){D=D.concat(F.getM_Items());}else{alert("Invalid attempt to append "+this.getClassName()+" to "+F.getClassName()+"!");throw"Invalid attempt to append "+this.getClassName()+" to "+F.getClassName()+"!";}};this.set=function(F,H){var G=get(F);D[F]=H;return G;};this.isValidObject=function(F){if(F!==null){if(B==="ALL"){return true;}else{if(B==="MQObject"){return true;}else{if(B==="String"){return true;}else{if(B==="int"){if(isNaN(F)){return false;}else{if(F===Math.floor(F)){return true;}}}else{if(F.getClassName()===B){return true;}}}}}}return false;};var E="Item";this.getM_itemXpath=function(){return E;};this.setM_itemXpath=function(F){E=F;};this.getById=function(G){try{for(var F=0;F<this.getSize();F++){if(D[F].getId()==G){return D[F];}}}catch(H){}return null;};this.removeItem=function(F){for(var G=0;G<D.length;G++){if(D[G]==F){this.remove(G);G=D.length;}}};}MQObjectCollection.prototype.getClassName=function(){return"MQObjectCollection";};MQObjectCollection.prototype.getObjectVersion=function(){return 0;};MQObjectCollection.prototype.getAt=function(A){return this.get(A);};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(A){this.removeAll();var B=mqCreateXMLDoc(A);this.setM_XmlDoc(B);if(B!==null){this._loadCollection(B);}};MQLatLngCollection.prototype.loadXmlFromNode=function(B){this.removeAll();var A=mqCreateXMLDocImportNode(B);this.setM_XmlDoc(A);if(A!==null){this._loadCollection(A);}};MQLatLngCollection.prototype._loadCollection=function(J){var I=J.documentElement;var H=I.childNodes;var G=H.length;G=(G<32678)?G:32678;var F=0;var E=0;var D=0;var C=0;var B=null;if(this.getValidClassName()==="MQLatLng"){for(var A=0;A<G;A++){if(A==0){if(H[A].firstChild!==null){D=H[A].firstChild.nodeValue/1000000;}A++;if(H[A].firstChild!==null){C=H[A].firstChild.nodeValue/1000000;}}else{if(H[A].firstChild!==null){D=F+(H[A].firstChild.nodeValue/1000000);}A++;if(H[A].firstChild!==null){C=E+(H[A].firstChild.nodeValue/1000000);}}F=D;E=C;B=new MQLatLng(D,C);this.add(B);}}};MQLatLngCollection.prototype.saveXml=function(){var E="<"+this.getM_Xpath()+' Version="'+this.getObjectVersion()+'" Count="'+this.getSize()+'">';var C=parseInt(this.getSize());if(C>=1){var B=nLng=nPrevLat=nPrevLng=nDeltaLat=nDeltaLng=0;var A=null;for(var D=0;D<C;D++){A=this.getAt(D);B=parseInt(A.getLatitude()*1000000);nLng=parseInt(A.getLongitude()*1000000);nDeltaLat=B-nPrevLat;nDeltaLng=nLng-nPrevLng;E+="<Lat>"+nDeltaLat+"</Lat>";E+="<Lng>"+nDeltaLng+"</Lng>";nPrevLat=B;nPrevLng=nLng;}}E=E+"</"+this.getM_Xpath()+">";return E;};MQLatLngCollection.prototype.generalize=function(M){var L=function(){this.pLL=null;this.dSegmentLength=0;this.dPriorLength=0;};var J=function(){this.pLL=null;this.ulOriginalPoint=0;};mqllAnchor=null;var I;var G;var F=0;var H=this.getSize();var E=new Array(H);var D=new Array(H);var C=0;if(H<2){return ;}for(G=0;G<H;G++){E[G]=new L();D[G]=new J();E[G].pLL=this.getAt(G);}for(G=0;G<H-1;G++){E[G].dSegmentLength=E[G].pLL.arcDistance(E[(G+1)].pLL);if(G==0){E[G].dPriorLength=0;}else{E[G].dPriorLength=F;}F+=E[G].dSegmentLength;}mqllAnchor=E[0].pLL;I=0;D[0].pLL=mqllAnchor;D[0].ulOriginalPoint=0;C=1;for(G=2;G<H;G++){if(!this.isEverybodyWithinDeviation(E,I,G,M)){mqllAnchor=E[(G-1)].pLL;I=(G-1);D[C].pLL=mqllAnchor;D[C].ulOriginalPoint=(G-1);C++;}}D[C].pLL=E[H-1].pLL;D[C].ulOriginalPoint=H-1;C++;var B=H;var A;for(A=(C-1);A>=0;A--){if((B-1)!=D[A].ulOriginalPoint){for(var N=(B-1);N>D[A].ulOriginalPoint;N--){try{this.remove(N);}catch(K){}}B=D[A].ulOriginalPoint;}else{B--;}}E=null;D=null;};MQLatLngCollection.prototype.isEverybodyWithinDeviation=function(C,B,A,I){var H=0;var G=0;var F=null;var E=null;var D=0;var T=0;var S=0;var U;var Q=null;var O=0;var N=0;var M=0;var L=0;var K=0;var J=0;var R=0;var P=0;H=DistanceApproximation.getMilesPerLngDeg(C[B].pLL.getLatitude());G=I*I;F=C[B].pLL;E=C[A].pLL;D=(E.getLatitude()-F.getLatitude())*DistanceApproximation.MILES_PER_LATITUDE;T=(E.getLongitude()-F.getLongitude())*H;S=D*D+T*T;for(U=B+1;U<A;U++){Q=C[U].pLL;O=(Q.getLatitude()-F.getLatitude())*DistanceApproximation.MILES_PER_LATITUDE;N=(Q.getLongitude()-F.getLongitude())*H;M=O*O+N*N;K=D*O+T*N;J=D*D+T*T;if(J==0){L=0;}else{L=K/J;}R=L*L*S;P=M-R;if(P>G){return false;}}return true;};var DistanceApproximation=new function(){this.m_testLat;this.m_testLng;this.m_mpd;this.m_milesPerLngDeg=new Array(69.170976,69.160441,69.128838,69.076177,69.002475,68.907753,68.792041,68.655373,68.497792,68.319345,68.120088,67.900079,67.659387,67.398085,67.116253,66.813976,66.491346,66.148462,65.785428,65.402355,64.999359,64.576564,64.134098,63.672096,63.190698,62.690052,62.17031,61.63163,61.074176,60.498118,59.903632,59.290899,58.660106,58.011443,57.345111,56.66131,55.96025,55.242144,54.507211,53.755675,52.987764,52.203713,51.403761,50.588151,49.757131,48.910956,48.049882,47.174172,46.284093,45.379915,44.461915,43.530372,42.58557,41.627796,40.657342,39.674504,38.679582,37.672877,36.654698,35.625354,34.585159,33.534429,32.473485,31.40265,30.322249,29.232613,28.134073,27.026963,25.911621,24.788387,23.657602,22.519612,21.374762,20.223401,19.065881,17.902554,16.733774,15.559897,14.38128,13.198283,12.011266,10.820591,9.626619,8.429716,7.230245,6.028572,4.825062,3.620083,2.414002,1.207185,1);this.MILES_PER_LATITUDE=69.170976;this.KILOMETERS_PER_MILE=1.609347;this.getMilesPerLngDeg=function(A){return(Math.abs(A)<=90)?this.m_milesPerLngDeg[parseInt(Math.abs(A)+0.5)]:69.170976;};};
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 B=Array.push.arguments.length;for(var A=0;A<B;A++){this[this.length]=Array.push.arguments[A];}return this.length;};}function mq_ParamExists(B){var A;return(B!==A);}function mqGetElementById(A){if(document.getElementById(A)){return document.getElementById(A);}return null;}function mqBuildUrl(B){var A=_mqServerPort.replace(/mapquest.com:?\d*/,"mapquest.com");return(_reqPrefix+A+"/oapi/transaction?"+B+"&key="+_mqKey);}function mqUrlLimit(){var A=2048;if(mqBrowserInfo.isNS){A=7168;}return A;}function mqLimitDisplay(){var A=2;if(mqBrowserInfo.isNS){A=7;}return A;}function mqDoRemote(E,D,C,B){var A=document.getElementsByTagName(C).item(0);var G=mqGetElementById(D);if(G){A.removeChild(G);}G=document.createElement("script");var F=mqBuildUrl(E);if(E.substring(0,4)=="http"){F=E;}if(F.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 ;}G.src=F;G.type="text/javascript";G.id=D;A.appendChild(G);}function mqCreateXMLDocImportNode(C){var B;if(document.implementation.createDocument){var B=document.implementation.createDocument("","",null);try{B.appendChild(B.importNode(C,true));}catch(A){alert(A);alert(C.nodeName);}}else{if(window.ActiveXObject){B=new ActiveXObject("Microsoft.XMLDOM");B.async="false";B.loadXML(C.xml);}}return B;}function mqXmlToStr(C){var B=new String;var A=null;if(C==null){return"";}if(mqBrowserInfo.isNS){A=new window.XMLSerializer();B=A.serializeToString(C);}else{if(mqBrowserInfo.isIE){B=C.xml;}}if(mqBrowserInfo.isSafari){A=new window.XMLSerializer();B=A.serializeToString(C);B=B||"";B=B.replace(/#38;/g,"&");}return B;}function mqCreateNSManager(B){var A={normalResolver:xmlDoc.createNSResolver(xmlDoc.documentElement),lookupNamespaceURI:function(C){switch(C){case"_mq":return B;default:return this.normalResolver.lookupNamespaceURI(C);}}};return A;}function mqGetNode(C,J){var H;if(mqBrowserInfo.isSafari){var G=new Array();G=J.split("/");if(G[G.length-1].indexOf("@")!=-1){G.splice(G.length-1,1);}var F=C.documentElement;var E=false;if(G.length==2&&F.tagName==G[1]){E=true;}else{var D=G.length-1;for(var K=1;K<D;K++){E=false;if(F.tagName==G[K]&&F.hasChildNodes()){var B=(F.hasChildNodes())?F.childNodes.length:0;for(var I=0;I<B;I++){if(F.childNodes[I].tagName==G[K+1]){F=F.childNodes[I];E=true;break;}}}if(G[K+1]&&G[K+1].indexOf("text()")!=-1){E=true;}if(G[K+1].indexOf("[")!=-1){var A=parseInt(G[K+1].substr(G[K+1].indexOf("[")+1,G[K+1].indexOf("]")-1));G[K+1]=G[K+1].substr(0,G[K+1].indexOf("["));F=C.getElementsByTagName(G[K+1]).item(A-1);E=true;}}}H=(E==true)?F:null;return H;}else{if(mqBrowserInfo.isIE){H=C.selectSingleNode(J);return H;}else{if(mqBrowserInfo.isNS){H=C.evaluate(J,C,null,9,null);return H.singleNodeValue;}}}return null;}function mqGetNodeText(B){var A="";if(mqBrowserInfo.isIE){A=B.text;}else{if(mqBrowserInfo.isNS&&B.firstChild){A=B.firstChild.nodeValue;}}if(mqBrowserInfo.isSafari&&B.firstChild){A=B.firstChild.nodeValue;A=(A?A:"");A=A.replace(/#38;/g,"&");}return A;}function mqGetXPathNodeText(E,D){var C;if(mqBrowserInfo.isSafari){C=mqGetNode(E,D);var B="";var F="";if(D.indexOf("@")!=-1){F=D.substr(D.indexOf("@")+1,D.length);B=C.attributes.getNamedItem(F).nodeValue;}else{if(C){B=mqGetNodeText(C);}}return B;}if(mqBrowserInfo.isIE){C=E.selectSingleNode(D);return(C==null?"":C.text);}else{if(mqBrowserInfo.isNS){try{C=E.evaluate(D,E,null,2,null);}catch(A){alert(D);alert(A);}return C.stringValue;}}return"";}function mqReplaceNode(D,C,B){var A=D.createTextNode(B);if(C.firstChild){return C.replaceChild(A,C.firstChild);}else{return C.appendChild(A);}}function mqReplaceElementNode(D,E,C){var B=D.documentElement;var A=E.documentElement;var F=D.getElementsByTagName(C).item(0);if(mqBrowserInfo.isIE){node=A;}else{node=D.importNode(A,true);}if(F){B.replaceChild(node,F);}else{B.appendChild(node);}return D;}function mqSetNodeText(D,C,B){var A=mqGetNode(D,C);if(A==null){return null;}return mqReplaceNode(D,A,B);}function mqTransformXMLFromString(C,G,F){var E=mqCreateXMLDoc(C);var D=mqCreateXMLDoc(G);var B;if(mqBrowserInfo.isNS){var A=new XSLTProcessor();A.importStylesheet(D);B=A.transformToFragment(E,document);F.appendChild(B);}else{if(mqBrowserInfo.isIE){var B=new ActiveXObject("Msxml2.DOMDocument.5.0");B=E.transformNode(D);F.innerHTML+=B;}}}function mqTransformXMLFromNode(F,E,D){var C=mqCreateXMLDoc(E);var B;if(mqBrowserInfo.isNS){var A=new XSLTProcessor();A.importStylesheet(C);B=A.transformToFragment(F,document);D.appendChild(B);}else{if(mqBrowserInfo.isIE){var B=new ActiveXObject("Msxml2.DOMDocument.5.0");B=F.transformNode(C);D.innerHTML+=B;}}}mqAddEvent(window,"load",alphaBackgrounds);function alphaBackgrounds(){if(navigator.platform=="Win32"&&navigator.appName=="Microsoft Internet Explorer"&&window.attachEvent){var D=navigator.appVersion.match(/MSIE (\d+\.\d+)/,"");var C=(D!=null&&Number(D[1])>=5.5);for(i=0;i<document.all.length;i++){var A=document.all[i].currentStyle.backgroundImage;if(C&&A){if(A.match(/\.png/i)!=null){var B=A.substring(5,A.length-2);document.all[i].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+B+"', sizingMethod='scale')";document.all[i].style.backgroundImage="url(/images/background-form-button.gif)";}}}}}function mqFormatNumber(A,B){return Math.floor(A*Math.pow(10,B))/Math.pow(10,B);}function mq_display_time(C){var B;if(C>3600){B=C/3600;var A=(" "+Math.floor(B)+" hours,");B=(C/60)%60;A+=(" "+mqFormatNumber(B,2)+" minutes");return A;}if(C>60){B=C/60;return(" "+mqFormatNumber(B,2)+" minutes");}}function mq_display_distance(A){return(" "+mqFormatNumber(A.value,2)+(A.units=="mi"?" miles":" kilometers"));}var isIE5Mac=(navigator.userAgent.indexOf("MSIE 5")!=-1&&navigator.userAgent.indexOf("Mac")!=-1);function mqCreateFormInput(D,C,A,M,K,I,G,F,E){var B=D.appendChild(document.createElement("div"));B.className="row";var L=B.appendChild(document.createElement("label"));L.htmlFor=C;L.appendChild(document.createTextNode(M));B.appendChild(document.createElement("br"));var J=document.createElement("input");J.id=C;J.type=K;J.name=I;if(F!=""){J.size=F;}if(!isNaN(parseInt(E))){J.maxLength=parseInt(E);}if(G!=""){J.value=G;}if(A!=""){var H=B.appendChild(document.createElement("span"));H.className=A;H.appendChild(J);}else{B.appendChild(J);}}function mqCreateInput(H,G,E,F,D,C,B){var A=document.createElement("input");A.id=G;A.type=E;A.name=F;if(C!=""){A.size=C;}if(!isNaN(parseInt(B))){A.maxLength=parseInt(B);}if(D!=""){A.value=D;}H.appendChild(A);}function mqCreateHiddenInput(D,E,C,B){var A;if(isIE5Mac){A=document.createElement("input type=hidden");}else{A=document.createElement("input");A.type="hidden";}A.name=C;if(E!=""){A.id=E;}if(B!=""){A.value=B;}D.appendChild(A);}function mqCreateFormSelect(_6a,id,_6c,_6d,_6e,_6f,_70){var div=_6a.appendChild(document.createElement("div"));div.className="row";var _72=div.appendChild(document.createElement("label"));_72.htmlFor=id;_72.appendChild(document.createTextNode(_6d));div.appendChild(document.createElement("br"));if(_6c!=""){var _73=div.appendChild(document.createElement("span"));_73.className=_6c;var _74=_73.appendChild(document.createElement("select"));}else{var _74=div.appendChild(document.createElement("select"));}_74.id=id;_74.name=_6e;length=_6f.length;for(x=0;x<length;x++){var _75=_74.appendChild(document.createElement("option"));eval("option.value = elements[x]."+_70);eval("option.appendChild (document.createTextNode (elements[x]."+_70+"))");}return _74;}function mqCreateDiv(B,A,D){var C=B.appendChild(document.createElement("div"));if(A!=""){C.className=A;}if(D!=""){C.id=D;}return C;}function mqCreateA(D,C,B){var A=D.appendChild(document.createElement("a"));A.href=C;if(B!=""){A.title=B;}return A;}function mqCreateSpan(C,B,D){var A=C.appendChild(document.createElement("span"));if(B!=""){A.className=B;}if(D!=""){A.id=D;}return A;}function mqCreateImg(A,G,F,E,H,C,D){var B=A.appendChild(document.createElement("img"));if(G!=""){B.src=G;}if(!isNaN(parseInt(F))){B.width=parseInt(F);}if(!isNaN(parseInt(E))){B.height=parseInt(E);}if(H!=""){B.id=H;}if(C!=""){B.name=C;}if(D!=""){B.alt=D;}return B;}function mqCreateImgDiv(E,F,C,B,H,A,D){var G=E.appendChild(document.createElement("div"));if(H!=""){G.id=H;}if(!isNaN(parseInt(C))){G.style.width=parseInt(C)+"px";}if(!isNaN(parseInt(B))){G.style.height=parseInt(B)+"px";}if(A!=""){G.name=A;}if(D!=""){G.alt=D;}return G;}function mqXMLHttpRequest(){var A=null;if(window.XMLHttpRequest){try{A=new XMLHttpRequest();}catch(B){A=null;}}else{if(window.ActiveXObject){try{A=new ActiveXObject("Msxml2.XMLHTTP");}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP");}catch(B){A=null;}}}}return A;}function mqAddEvent(B,A,C){if(window.opera&&mqBrowserInfo.version<8){var D=B.attachEvent("on"+A,C);return D;}else{if(B.addEventListener){((window.opera)&&(mqBrowserInfo.version>=8))?B.addEventListener(A,C,false):B.addEventListener(A,C,true);return true;}else{if(B.attachEvent){var D=B.attachEvent("on"+A,C);return D;}else{B["on"+A]=C;}}}}function mqRemoveEvent(_97,_98,fn){if(window.opera){eval("fObj.on"+_98+" = null");}if(_97.removeEventListener){((window.opera)&&(mqBrowserInfo.version>=8))?_97.removeEventListener(_98,fn,false):_97.removeEventListener(_98,fn,true);}else{if(_97.detachEvent){_97.detachEvent("on"+_98,fn);}else{_97["on"+_98]=null;}}}function mqGetEventData(A){fEventData=new Object();if(document.addEventListener){fEventData.id=A.target.id;fEventData.type=A.type;fEventData.element=A.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(A){xyData=new Object();if(!document.createElement||!document.getElementsByTagName){return ;}if(!document.createElementNS){document.createElementNS=function(H,G){return document.createElement(G);};}if(document.addEventListener&&typeof A.pageX=="number"){var E=A.target;var C=CalculatedTotalOffsetTop=0;while(E.offsetParent){C+=E.offsetLeft;CalculatedTotalOffsetTop+=E.offsetTop;E=E.offsetParent;}var F=A.pageX-C;var D=A.pageY-CalculatedTotalOffsetTop;xyData.elementId=A.target.id;xyData.elementX=F;xyData.elementY=D;xyData.pageX=A.pageX;xyData.pageY=A.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 B=mqGetElementById(xyData.elementId);while(B){xyData.pageX+=B.offsetLeft;xyData.pageY+=B.offsetTop;B=B.offsetParent;}xyData.pageX+=xyData.elementX;xyData.pageY+=xyData.elementY;}}return xyData;}function mqGetPDivSize(A){size=new MQSize();if(A.parent.style.width.length==0){A.parent.style.width="800px";}if(A.parent.style.height.length==0){A.parent.style.height="600px";}size.setWidth(parseInt(A.parent.style.width)-4);size.setHeight(parseInt(A.parent.style.height)-4);return size;}function mqSetPDivSize(B,A){B.parent.style.width=A.getWidth()+"px";B.parent.style.height=A.getHeight()+"px";}function mqurlencode(B){var A;A=B.replace(/%/g,"%25");A=A.replace(/&/g,"%26");A=A.replace(/#/g,"%23");A=A.replace(/\//g,"%2F");A=A.replace(/:/g,"%3A");A=A.replace(/;/g,"%3B");A=A.replace(/=/g,"%3D");A=A.replace(/\?/g,"%3F");A=A.replace(/@/g,"%40");A=A.replace(/\$/g,"%24");A=A.replace(/,/g,"%2C");A=A.replace(/\+/g,"%2B");return A;}function mqGetGuid(){var D=new Date(2006,0,1);var B=new Date();do{var C=new Date();}while(C-B<1);var A=C.getTime()-D.getTime();return(Math.ceil(A));}function mqPause(A){var B=new Date();var C=B.getTime()+A;while(true){B=new Date();if(B.getTime()>C){return ;}}}var _mqLogStartTime=null;var _mqLogCurTime=null;var _mqLogprevTime=null;function mqLogTime(E){if(mqGetElementById("mqTimeLogs")){var D=mqGetElementById("mqTimeLogs");var C=new Date();if(_mqLogStartTime==null){D.value="Time(ms) Difference\t Message\n";_mqLogStartTime=C.getTime();_mqLogprevTime=_mqLogStartTime;}_mqLogCurTime=C.getTime();var B=_mqLogCurTime-_mqLogStartTime;var A=_mqLogCurTime-_mqLogprevTime;D.value=D.value+B+"\t "+A+"\t\t "+E+"\n";_mqLogprevTime=_mqLogCurTime;}}function mqResetTimeLogs(){if(mqGetElementById("mqTimeLogs")){var B=mqGetElementById("mqTimeLogs");var A=new Date();B.value="Time(ms) Difference\t Message\n";_mqLogStartTime=A.getTime();_mqLogprevTime=_mqLogStartTime;}}function mqGetAdvantageResultPath(B){var A;if(B=="poiMap"){A="poiResults";}else{if(B=="locMap"){A="locations";}else{if(B=="search"){A="searchResults";}}}return A;}function mqGetAdvantageMapPath(B){var A;if(B=="locMap"){A="/advantage/"+B+"/locations/location/map";}else{A="/advantage/"+B+"/map";}return A;}function mqPrepareMapUrl(B){var A="";A=B.replace(/https?:\/\//,_reqPrefix);A=A.replace(/mapquest.com:?\d*/,"mapquest.com");A=A.replace(/iwebsys.aol.com:?\d*/,"iwebsys.aol.com");return A;}function display(G,F,E,C,D){if(mqGetElementById(G)){var B=mqGetElementById(G);var A=B.appendChild(document.createElement("label"));var H=A.appendChild(document.createElement("b"));H.appendChild(document.createTextNode(F));B.appendChild(document.createElement("br"));var I=B.appendChild(document.createElement("textarea"));I.className=D;I.style.overflow="auto";if(C!=null){I.id=C;}I.appendChild(document.createTextNode(E));B.appendChild(document.createElement("br"));B.appendChild(document.createElement("br"));}}
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(D,C,B){if(C!==null){try{C.getClassName();}catch(A){throw"InvalidClassException";}if(C.getClassName()===D){return true;}else{throw"InvalidClassException";}}else{if(B){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();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(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQSign.prototype.loadXmlFromNode=function(A){this.setM_XmlDoc(mqCreateXMLDocImportNode(A));};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(A){this.setProperty("Type",A);};MQSign.prototype.getType=function(){return this.getProperty("Type");};MQSign.prototype.setText=function(A){this.setProperty("Text",A);};MQSign.prototype.getText=function(){return this.getProperty("Text");};MQSign.prototype.setExtraText=function(A){this.setProperty("ExtraText",A);};MQSign.prototype.getExtraText=function(){return this.getProperty("ExtraText");};MQSign.prototype.setDirection=function(A){this.setProperty("Direction",A);};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(A){this.setProperty("Distance",A);};MQFeature.prototype.getName=function(){return this.getProperty("Name");};MQFeature.prototype.setName=function(A){this.setProperty("Name",A);};MQFeature.prototype.getSourceLayerName=function(){return this.getProperty("SourceLayerName");};MQFeature.prototype.setSourceLayerName=function(A){this.setProperty("SourceLayerName",A);};MQFeature.prototype.getKey=function(){return this.getProperty("Key");};MQFeature.prototype.setKey=function(A){this.setProperty("Key",A);};MQFeature.prototype.setGEFID=function(A){this.setProperty("GEFID",A);};MQFeature.prototype.getGEFID=function(){return this.getProperty("GEFID");};MQFeature.prototype.setDT=function(A){this.setProperty("DT",A);};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(E){this.setM_XmlDoc(mqCreateXMLDoc(E));var D=this.getCenterLatLng();var C=this.getCenterPoint();var B=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng");var A=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint");if(B!==null){D.loadXmlFromNode(B);}if(A!==null){C.loadXmlFromNode(A);}};MQPointFeature.prototype.loadXmlFromNode=function(B){this.setM_XmlDoc(mqCreateXMLDocImportNode(B));this.getCenterLatLng().setLatLng(this.getProperty("CenterLatLng/Lat"),this.getProperty("CenterLatLng/Lng"));var A=this.getProperty("CenterPoint/X");if(A!==""){this.getCenterPoint().setXY(A,this.getProperty("CenterPoint/Y"));}};MQPointFeature.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQPointFeature.prototype.getCenterLatLng=function(){return this.m_CenterLatLng;};MQPointFeature.prototype.setCenterLatLng=function(A){this.m_CenterLatLng.setLatLng(A.getLatitude(),A.getLongitude());};MQPointFeature.prototype.getCenterPoint=function(){return this.m_CenterPoint;};MQPointFeature.prototype.setCenterPoint=function(A){this.m_CenterPoint.setXY(A.getX(),A.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 B=new MQLatLngCollection();B.setM_Xpath("LatLngs");this.getLatLngs=function(){return B;};this.setLatLngs=function(C){if(C.getClassName()==="MQLatLngCollection"){B.removeAll();B.append(C);}else{alert("failure in setLatLngs");throw"failure in setLatLngs";}};var A=new MQPointCollection();A.setM_Xpath("Points");this.getPoints=function(){return A;};this.setPoints=function(C){A.removeAll();A.append(C);};}MQPolygonFeature.prototype.getClassName=function(){return"MQPolygonFeature";};MQPolygonFeature.prototype.getObjectVersion=function(){return 0;};MQPolygonFeature.prototype.loadXml=function(D){this.setM_XmlDoc(mqCreateXMLDoc(D));var B=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}var C=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}var A=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}var E=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){E.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}};MQPolygonFeature.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));A=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(E){this.setM_XmlDoc(mqCreateXMLDoc(E));var D=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){D.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}var C=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}var B=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}var A=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}};MQLineFeature.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));A=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Points"));return mqXmlToStr(this.getM_XmlDoc());};MQLineFeature.prototype.getLeftPostalCode=function(){return this.getProperty("LeftPostalCode");};MQLineFeature.prototype.setLeftPostalCode=function(A){this.setProperty("LeftPostalCode",A);};MQLineFeature.prototype.getRightPostalCode=function(){return this.getProperty("RightPostalCode");};MQLineFeature.prototype.setRightPostalCode=function(A){this.setProperty("RightPostalCode",A);};MQLineFeature.prototype.getLeftAddressHi=function(){return this.getProperty("LeftAddressHi");};MQLineFeature.prototype.setLeftAddressHi=function(A){this.setProperty("LeftAddressHi",A);};MQLineFeature.prototype.getRightAddressHi=function(){return this.getProperty("RightAddressHi");};MQLineFeature.prototype.setRightAddressHi=function(A){this.setProperty("RightAddressHi",A);};MQLineFeature.prototype.getLeftAddressLo=function(){return this.getProperty("LeftAddressLo");};MQLineFeature.prototype.setLeftAddressLo=function(A){this.setProperty("LeftAddressLo",A);};MQLineFeature.prototype.getRightAddressLo=function(){return this.getProperty("RightAddressLo");};MQLineFeature.prototype.setRightAddressLo=function(A){this.setProperty("RightAddressLo",A);};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(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQLocation.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};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(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQAddress.prototype.getAdminArea=function(A){return this.getProperty("AdminArea"+A);};MQAddress.prototype.setAdminArea=function(A,B){this.setProperty("AdminArea"+A,B);};MQAddress.prototype.getCountry=function(){return this.getProperty("AdminArea1");};MQAddress.prototype.setCountry=function(A){this.setProperty("AdminArea1",A);};MQAddress.prototype.getCounty=function(){return this.getProperty("AdminArea4");};MQAddress.prototype.setCounty=function(A){this.setProperty("AdminArea4",A);};MQAddress.prototype.getCity=function(){return this.getProperty("AdminArea5");};MQAddress.prototype.setCity=function(A){this.setProperty("AdminArea5",A);};MQAddress.prototype.getPostalCode=function(){return this.getProperty("PostalCode");};MQAddress.prototype.setPostalCode=function(A){this.setProperty("PostalCode",A);};MQAddress.prototype.getState=function(){return this.getProperty("AdminArea3");};MQAddress.prototype.setState=function(A){this.setProperty("AdminArea3",A);};MQAddress.prototype.setStreet=function(A){this.setProperty("Street",A);};MQAddress.prototype.getStreet=function(){return this.getProperty("Street");};MQSingleLineAddress.prototype=new MQLocation();MQSingleLineAddress.prototype.constructor=MQSingleLineAddress;function MQSingleLineAddress(){MQLocation.call(this);this.setM_Xpath("SingleLineAddress");if(this.getClassName()==="MQSingleLineAddress"){this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSINGLELINEADDRESS()));}}MQSingleLineAddress.prototype.getClassName=function(){return"MQSingleLineAddress";};MQSingleLineAddress.prototype.getObjectVersion=function(){return 0;};MQSingleLineAddress.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQSingleLineAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQSingleLineAddress.prototype.setAddress=function(A){this.setProperty("Address",A);};MQSingleLineAddress.prototype.getAddress=function(){return this.getProperty("Address");};MQSingleLineAddress.prototype.setCountry=function(A){this.setProperty("Country",A);};MQSingleLineAddress.prototype.getCountry=function(){return this.getProperty("Country");};MQGeoAddress.prototype=new MQAddress();MQGeoAddress.prototype.constructor=MQGeoAddress;function MQGeoAddress(){MQAddress.call(this);this.setM_Xpath("GeoAddress");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOADDRESS()));var A=new MQLatLng();this.getMQLatLng=function(){return A;};this.setMQLatLng=function(B){A=B;};}MQGeoAddress.prototype.getClassName=function(){return"MQGeoAddress";};MQGeoAddress.prototype.getObjectVersion=function(){return 0;};MQGeoAddress.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var C=this.getProperty("LatLng/Lat");var A=this.getProperty("LatLng/Lng");this.getMQLatLng().setLatLng(C,A);};MQGeoAddress.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getMQLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLng"));return mqXmlToStr(this.getM_XmlDoc());};MQGeoAddress.prototype.setDistAlong=function(A){this.setProperty("DistAlong",A);};MQGeoAddress.prototype.getDistAlong=function(){return this.getProperty("DistAlong");};MQGeoAddress.prototype.setGEFID=function(A){this.setProperty("GEFID",A);};MQGeoAddress.prototype.getGEFID=function(){return this.getProperty("GEFID");};MQGeoAddress.prototype.setResultCode=function(A){this.setProperty("ResultCode",A);};MQGeoAddress.prototype.getResultCode=function(){return this.getProperty("ResultCode");};MQGeoAddress.prototype.setSourceId=function(A){this.setProperty("SourceId",A);};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 C=new MQStringCollection("Item");C.setM_Xpath("Streets");this.getStreets=function(){return C;};this.setStreets=function(E){C.removeAll();C.append(E);};var A=new MQLatLngCollection();A.setM_Xpath("ShapePoints");this.getShapePoints=function(){return A;};this.setShapePoints=function(E){if(E.getClassName()==="MQLatLngCollection"){A.removeAll();A.append(E);}else{alert("failure in setShapePoints");throw"failure in setShapePoints";}};var D=new MQIntCollection("Item");D.setM_Xpath("GEFIDs");this.getGEFIDs=function(){return D;};this.setGEFIDs=function(E){D.removeAll();D.append(E);};var B=new MQSignCollection("Sign");B.setM_Xpath("Signs");this.getSigns=function(){return B;};this.setSigns=function(E){B.removeAll();B.append(E);};}MQManeuver.prototype.getClassName=function(){return"MQManeuver";};MQManeuver.prototype.getObjectVersion=function(){return 1;};MQManeuver.prototype.loadXml=function(E){this.setM_XmlDoc(mqCreateXMLDoc(E));var D=this.getStreets();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets")!==null){D.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets"));}var C=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints")!==null){C.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints"));}var B=this.getGEFIDs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")));}var A=this.getSigns();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs")!==null){A.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs"));}};MQManeuver.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getStreets().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Streets"));A=mqCreateXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"ShapePoints"));A=mqCreateXMLDoc(this.getGEFIDs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"GEFIDs"));A=mqCreateXMLDoc(this.getSigns().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Signs"));return mqXmlToStr(this.getM_XmlDoc());};MQManeuver.prototype.setTurnType=function(A){this.setProperty("TurnType",A);};MQManeuver.prototype.getTurnType=function(){return this.getProperty("TurnType");};MQManeuver.prototype.setDistance=function(A){this.setProperty("Distance",A);};MQManeuver.prototype.getDistance=function(){return this.getProperty("Distance");};MQManeuver.prototype.setTime=function(A){this.setProperty("Time",A);};MQManeuver.prototype.getTime=function(){return this.getProperty("Time");};MQManeuver.prototype.setDirection=function(A){this.setProperty("Direction",A);};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(A){this.setProperty("Attributes",A);};MQManeuver.prototype.getAttributes=function(){return this.getProperty("Attributes");};MQManeuver.prototype.setNarrative=function(A){this.setProperty("Narrative",A);};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 A=new MQManeuverCollection("Maneuver");A.setM_Xpath("Maneuvers");this.getManeuvers=function(){return A;};var D=null;this.getShapePoints=function(){if(D===null){C=0;B=0;D=new MQLatLngCollection();D.setM_Xpath("ShapePoints");for(var E=0;E<this.getManeuvers().getSize();E++){D.append(this.getManeuvers().get(E).getShapePoints());C+=parseFloat(this.getManeuvers().get(E).getDistance());B+=parseInt(this.getManeuvers().get(E).getTime());}}return D;};var C=null;this.getDistance=function(){if(C===null){C=0;B=0;D=new MQLatLngCollection();D.setM_Xpath("ShapePoints");for(var E=0;E<this.getManeuvers().getSize();E++){D.append(this.getManeuvers().get(E).getShapePoints());C+=parseFloat(this.getManeuvers().get(E).getDistance());B+=parseInt(this.getManeuvers().get(E).getTime());}}return C;};var B=null;this.getTime=function(){if(B===null){C=0;B=0;D=new MQLatLngCollection();D.setM_Xpath("ShapePoints");for(var E=0;E<this.getManeuvers().getSize();E++){D.append(this.getManeuvers().get(E).getShapePoints());C+=parseFloat(this.getManeuvers().get(E).getDistance());B+=parseInt(this.getManeuvers().get(E).getTime());}}return B;};}MQTrekRoute.prototype.getClassName=function(){return"MQTrekRoute";};MQTrekRoute.prototype.getObjectVersion=function(){return 0;};MQTrekRoute.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getManeuvers();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")));}};MQTrekRoute.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getManeuvers().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 B=new MQMatchType(0);this.getMatchType=function(){return B;};this.setMatchType=function(C){B=C;};var A=new MQQualityType(0);this.getQualityType=function(){return A;};this.setQualityType=function(C){A=C;};}MQGeocodeOptions.prototype.getClassName=function(){return"MQGeocodeOptions";};MQGeocodeOptions.prototype.getObjectVersion=function(){return 0;};MQGeocodeOptions.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));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(A){this.setProperty("CoverageName",A);};MQGeocodeOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};MQGeocodeOptions.prototype.setMaxMatches=function(A){this.setProperty("MaxMatches",A);};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 A=new MQStringCollection();A.setM_Xpath("AvoidAttributeList");this.getAvoidAttrList=function(){return A;};this.setAvoidAttrList=function(H){A.removeAll();A.append(H);};var G=new MQIntCollection();G.setM_Xpath("AvoidGefIdList");this.getAvoidGefIdList=function(){return G;};this.setAvoidGefIdList=function(H){G.removeAll();G.append(H);};var F=new MQIntCollection();F.setM_Xpath("AvoidAbsoluteGefIdList");this.getAvoidAbsGefIdList=function(){return F;};this.setAvoidAbsGefIdList=function(H){F.removeAll();F.append(H);};var E=new MQAutoRouteCovSwitch("CovSwitcher");this.getAutoRouteCovSwitch=function(){return E;};this.setAutoRouteCovSwitch=function(H){E=H;};var D=new MQRouteType(0);this.getRouteType=function(){return D;};this.setRouteType=function(H){D=H;};var C=new MQNarrativeType(0);this.getNarrativeType=function(){return C;};this.setNarrativeType=function(H){C=H;};var B=new MQDistanceUnits(0);this.getDistanceUnits=function(){return B;};this.setDistanceUnits=function(H){B=H;};}MQRouteOptions.prototype.getClassName=function(){return"MQRouteOptions";};MQRouteOptions.prototype.getObjectVersion=function(){return 3;};MQRouteOptions.prototype.loadXml=function(E){this.setM_XmlDoc(mqCreateXMLDoc(E));var D=this.getAvoidAttrList();D.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAttributeList")));var C=this.getAvoidGefIdList();C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidGefIdList")));var B=this.getAvoidAbsGefIdList();B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAbsoluteGefIdList")));var A=this.getAutoRouteCovSwitch();A.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 A=null;this.setProperty("RouteType",this.getRouteType().intValue());this.setProperty("NarrativeType",this.getNarrativeType().intValue());this.setProperty("NarrativeDistanceUnitType",this.getDistanceUnits().getValue());A=mqCreateXMLDoc(this.getAutoRouteCovSwitch().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CovSwitcher"));A=mqCreateXMLDoc(this.getAvoidAttrList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"AvoidAttributeList"));A=mqCreateXMLDoc(this.getAvoidGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"AvoidGefIdList"));A=mqCreateXMLDoc(this.getAvoidAbsGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"AvoidAbsoluteGefIdList"));return mqXmlToStr(this.getM_XmlDoc());};MQRouteOptions.prototype.setMaxShapePointsPerManeuver=function(A){this.setProperty("MaxShape",A);};MQRouteOptions.prototype.getMaxShapePointsPerManeuver=function(){return this.getProperty("MaxShape");};MQRouteOptions.prototype.setMaxGEFIDsPerManeuver=function(A){this.setProperty("MaxGEFID",A);};MQRouteOptions.prototype.getMaxGEFIDsPerManeuver=function(){return this.getProperty("MaxGEFID");};MQRouteOptions.prototype.setLanguage=function(A){this.setProperty("Language",A);};MQRouteOptions.prototype.getLanguage=function(){return this.getProperty("Language");};MQRouteOptions.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A);};MQRouteOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};MQRouteOptions.prototype.setStateBoundaryDisplay=function(A){this.setProperty("StateBoundaryDisplay",(A===true)?1:0);};MQRouteOptions.prototype.getStateBoundaryDisplay=function(){return(this.getProperty("StateBoundaryDisplay")==1)?true:false;};MQRouteOptions.prototype.setCountryBoundaryDisplay=function(A){this.setProperty("CountryBoundaryDisplay",(A===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 F=new MQLocationCollection();F.setM_Xpath("Locations");this.getLocations=function(){return F;};var D=new MQTrekRouteCollection("TrekRoute");D.setM_Xpath("TrekRoutes");this.getTrekRoutes=function(){return D;};var B=new MQRouteResultsCode(MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return B;};this.setResultCode=function(H){B=H;};var G=new MQStringCollection("Item");G.setM_Xpath("ResultMessages");this.getResultMessages=function(){return G;};var E=null;this.getShapePoints=function(){if(E===null){C=0;A=0;E=new MQLatLngCollection();E.setM_Xpath("ShapePoints");for(var I=0;I<this.getTrekRoutes().getSize();I++){var H=this.getTrekRoutes().get(I);for(var J=0;J<H.getManeuvers().getSize();J++){E.append(H.getManeuvers().get(J).getShapePoints());C+=parseFloat(H.getManeuvers().get(J).getDistance());A+=parseInt(H.getManeuvers().get(J).getTime());}}}return E;};var C=-1;this.getDistance=function(){if(C===-1){C=0;A=0;E=new MQLatLngCollection();E.setM_Xpath("ShapePoints");for(var I=0;I<this.getTrekRoutes().getSize();I++){var H=this.getTrekRoutes().get(I);for(var J=0;J<H.getManeuvers().getSize();J++){E.append(H.getManeuvers().get(J).getShapePoints());C+=parseFloat(H.getManeuvers().get(J).getDistance());A+=parseInt(H.getManeuvers().get(J).getTime());}}}return C;};var A=-1;this.getTime=function(){if(A===-1){C=0;A=0;E=new MQLatLngCollection();E.setM_Xpath("ShapePoints");for(var H=0;H<this.getTrekRoutes().getSize();H++){var I=this.getTrekRoutes().get(H);for(var J=0;J<I.getManeuvers().getSize();J++){E.append(I.getManeuvers().get(J).getShapePoints());C+=parseFloat(I.getManeuvers().get(J).getDistance());A+=parseInt(I.getManeuvers().get(J).getTime());}}}return A;};}MQRouteResults.prototype.getClassName=function(){return"MQRouteResults";};MQRouteResults.prototype.getObjectVersion=function(){return 1;};MQRouteResults.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getLocations();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")));}var D=this.getTrekRoutes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")!==null){D.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")));}var C=this.getResultMessages();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){C.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(A){this.setProperty("CoverageName",A);};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 D=-1;var C=null;this.setDistance=function(F){if(F){if(F.getClassName()==="MQIntCollection"){if(C!==null){C.removeAll();C.append(F);}else{C=F;}}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(F,H){if(D===-1){D=this.getProperty("LocationCount");}var G=((F*D)+H);return(C.get(G)/1000).toFixed(6);};var B=null;this.setTime=function(F){if(F){if(F.getClassName()==="MQIntCollection"){if(B!==null){B.removeAll();B.append(F);}else{B=F;}}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(F,H){if(D===-1){D=this.getProperty("LocationCount");}var G=((F*D)+H);return B.get(G);};var E=new MQRouteMatrixResultsCode(MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return E;};this.setResultCode=function(F){if(F){if(F.getClassName()==="MQRouteMatrixResultsCode"){E=F;}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 A=null;this.setResultMessages=function(F){if(F){if(F.getClassName()==="MQStringCollection"){if(A!==null){A.removeAll();A.append(F);}else{A=F;}}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 A;};}MQRouteMatrixResults.prototype.getClassName=function(){return"MQRouteMatrixResults";};MQRouteMatrixResults.prototype.getObjectVersion=function(){return 0;};MQRouteMatrixResults.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var C=new MQIntCollection();C.setM_Xpath("DistanceMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")));}this.setDistance(C);var D=new MQIntCollection();D.setM_Xpath("TimeMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")!==null){D.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")));}this.setTime(D);var B=new MQStringCollection();B.setM_Xpath("ResultMessages");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));}this.setResultMessages(B);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(A){this.setProperty("CoverageName",A);};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 F=true;var E=true;var D=0;var C=-1;var B=new MQStringCollection();B.setM_Xpath("Fields");var A=new MQStrColCollection("Record");A.setM_Xpath("Records");A.setValidClassName("MQStringCollection");this.moveFirst=function(){if(A.getSize()!==0){F=false;E=false;C=0;}else{alert(MQERROR.RECORDSET_MOVEFIRST_1);throw MQERROR.RECORDSET_MOVEFIRST_1;}};this.moveLast=function(){if(A.getSize()!==0){F=false;E=false;C=A.getSize()-1;}else{alert(MQERROR.RECORDSET_MOVELAST_1);throw MQERROR.RECORDSET_MOVELAST_1;}};this.moveNext=function(){var G=A.getSize();if(G!==0){if(C<G-1){C++;E=false;F=false;}else{if(C===G-1){C++;E=false;F=true;}else{if(F){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 E;};this.isEOF=function(){return F;};this.getFieldNames=function(){return B;};this.getField=function(G){if(!(0<=C&&C<D)){alert(MQERROR.RECORDSET_GETFIELD_1);throw MQERROR.RECORDSET_GETFIELD_1;}var I=-1;for(var H=0;H<B.getSize();H++){if(B.get(H)===G){I=H;break;}}if(I===-1){alert(MQERROR.RECORDSET_GETFIELD_2);throw MQERROR.RECORDSET_GETFIELD_2;}return A.get(C).get(I);};this.loadXml=function(L){var J=mqCreateXMLDoc(L);this.setM_XmlDoc(J);B.loadXml(mqXmlToStr(mqGetNode(J,"/"+this.getM_Xpath()+"/Fields")));if(J!==null){var I=J.documentElement;var H=I.childNodes;var N=H.length;N=(N<32678)?N:32678;var G=0;var K=null;A.removeAll();for(var M=G;M<N;M++){if(H[M].nodeName==="Record"){K=new MQStringCollection();K.setM_Xpath("Record");K.loadXml(mqXmlToStr(H[M]));A.add(K);}}}D=this.getProperty("RecordCount");if(D>0){C=0;E=false;F=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 A=new MQLatLng("Center");this.getCenter=function(){return A;};this.setCenter=function(B){A.setLatLng(B.getLatitude(),B.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(B){if(B){try{if(B.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(A){}}return false;};MQMapState.prototype.setMapName=function(A){this.setProperty("MapName",A);};MQMapState.prototype.getMapName=function(){this.getProperty("MapName");};MQMapState.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A);};MQMapState.prototype.getCoverageName=function(){this.getProperty("CoverageName");};MQMapState.prototype.setWidthInches=function(A){this.setProperty("Width",A);};MQMapState.prototype.getWidthInches=function(){return this.getProperty("Width");};MQMapState.prototype.setHeightInches=function(A){this.setProperty("Height",A);};MQMapState.prototype.getHeightInches=function(){return this.getProperty("Height");};MQMapState.prototype.setWidthPixels=function(B,A){if(A){this.setProperty("Width",parseFloat(B)/parseFloat(A));}else{this.setProperty("Width",parseFloat(B)/parseFloat(72));}};MQMapState.prototype.getWidthPixels=function(A){if(A){return Math.ceil(this.getProperty("Width")*A);}else{return Math.ceil(this.getProperty("Width")*72);}};MQMapState.prototype.setHeightPixels=function(A,B){if(B){this.setProperty("Height",parseFloat(A)/parseFloat(B));}else{this.setProperty("Height",parseFloat(A)/parseFloat(72));}};MQMapState.prototype.getHeightPixels=function(A){if(A){return Math.ceil(this.getProperty("Height")*A);}else{return Math.ceil(this.getProperty("Height")*72);}};MQMapState.prototype.setMapScale=function(A){this.setProperty("Scale",A);};MQMapState.prototype.getMapScale=function(){return this.getProperty("Scale");};MQMapState.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var C=this.getProperty("Center/Lat");var B=this.getProperty("Center/Lng");this.getCenter().setLatLng(C,B);};MQMapState.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(A){this.setProperty("MaxMatches",A);};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 A=new MQLatLng("CenterLatLng");this.getCenter=function(){return A;};this.setCenter=function(B){A.setLatLng(B.getLatitude(),B.getLongitude());};}MQRadiusSearchCriteria.prototype.getClassName=function(){return"MQRadiusSearchCriteria";};MQRadiusSearchCriteria.prototype.getObjectVersion=function(){return 0;};MQRadiusSearchCriteria.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var C=this.getProperty("CenterLatLng/Lat");var A=this.getProperty("CenterLatLng/Lng");this.getCenter().setLatLng(C,A);};MQRadiusSearchCriteria.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));return mqXmlToStr(this.getM_XmlDoc());};MQRadiusSearchCriteria.prototype.setRadius=function(B,A){if(A){mqIsClass("MQDistanceUnits",A,false);}else{A=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(A.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){B=B/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}this.setProperty("Radius",B);};MQRadiusSearchCriteria.prototype.getRadius=function(B){if(B){mqIsClass("MQDistanceUnits",B,false);}else{B=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}var A=this.getProperty("Radius");if(B.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){A=A*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}return A;};MQRectSearchCriteria.prototype=new MQSearchCriteria();MQRectSearchCriteria.prototype.constructor=MQRectSearchCriteria;function MQRectSearchCriteria(C){MQObject.call(this);this.setM_Xpath("RectSearchCriteria");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECTSEARCHCRITERIA()));var B=new MQLatLng("UpperLeftLatLng");this.getUpperLeft=function(){return B;};this.setUpperLeft=function(D){B.setLatLng(D.getLatitude(),D.getLongitude());};var A=new MQLatLng("LowerRightLatLng");this.getLowerRight=function(){return A;};this.setLowerRight=function(D){A.setLatLng(D.getLatitude(),D.getLongitude());};if(C){B.setLatLng(C.getUpperLeft().getLat(),C.getUpperLeft().getLng());A.setLatLng(C.getLowerRight().getLat(),C.getLowerRight().getLng());}}MQRectSearchCriteria.prototype.getClassName=function(){return"MQRectSearchCriteria";};MQRectSearchCriteria.prototype.getObjectVersion=function(){return 0;};MQRectSearchCriteria.prototype.loadXml=function(C){this.setM_XmlDoc(mqCreateXMLDoc(C));var B=this.getProperty("UpperLeftLatLng/Lat");var A=this.getProperty("UpperLeftLatLng/Lng");this.getUpperLeft().setLatLng(B,A);B=this.getProperty("LowerRightLatLng/Lat");A=this.getProperty("LowerRightLatLng/Lng");this.getLowerRight().setLatLng(B,A);};MQRectSearchCriteria.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getUpperLeft().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftLatLng"));A=mqCreateXMLDoc(this.getLowerRight().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 A=new MQLatLngCollection();A.setM_Xpath("LatLngs");this.getShapePoints=function(){return A;};this.setShapePoints=function(B){if(B.getClassName()==="MQLatLngCollection"){A.removeAll();A.append(B);}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(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}};MQPolySearchCriteria.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(A){this.setProperty("ExactLinks",(A===true)?1:0);};MQCorridorSearchCriteria.prototype.getCorrExactLinks=function(){return(this.getProperty("ExactLinks")==1)?true:false;};MQCorridorSearchCriteria.prototype.setCorridorWidth=function(A,B){if(B){mqIsClass("MQDistanceUnits",B,false);}else{B=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(B.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){A=A/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}this.setProperty("CorridorWidth",A);};MQCorridorSearchCriteria.prototype.getCorridorWidth=function(B){if(B){mqIsClass("MQDistanceUnits",B,false);}else{B=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}var A=this.getProperty("CorridorWidth");if(B.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){A=A*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}return A;};MQCorridorSearchCriteria.prototype.setCorridorBufferWidth=function(B,A){if(A){mqIsClass("MQDistanceUnits",A,false);}else{A=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}if(A.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){B=B/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}this.setProperty("CorridorBufferWidth",B);};MQCorridorSearchCriteria.prototype.getCorridorBufferWidth=function(B){if(B){mqIsClass("MQDistanceUnits",B,false);}else{B=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);}var A=this.getProperty("CorridorBufferWidth");if(B.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){A=A*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;}return A;};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(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQDBLayerQuery.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQDBLayerQuery.prototype.setDBLayerName=function(A){this.setProperty("LayerName",A);};MQDBLayerQuery.prototype.getDBLayerName=function(){return this.getProperty("LayerName");};MQDBLayerQuery.prototype.setExtraCriteria=function(A){this.setProperty("ExtraCriteria",A);};MQDBLayerQuery.prototype.getExtraCriteria=function(){return this.getProperty("ExtraCriteria");};MQPrimitive.prototype=new MQObject();MQPrimitive.prototype.constructor=MQPrimitive;function MQPrimitive(){MQObject.call(this);var A=new MQDrawTrigger(MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT);this.getDrawTrigger=function(){return A;};this.setDrawTrigger=function(C){if(C){if(C.getClassName()==="MQDrawTrigger"){A=C;}}};var B=new MQCoordinateType(MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC);this.getCoordinateType=function(){return B;};this.setCoordinateType=function(C){if(C){if(C.getClassName()==="MQCoordinateType"){B=C;}}};}MQPrimitive.prototype.getClassName=function(){return"MQPrimitive";};MQPrimitive.prototype.getObjectVersion=function(){return 2;};MQPrimitive.prototype.setKey=function(A){this.setProperty("Key",A);};MQPrimitive.prototype.getKey=function(){return this.getProperty("Key");};MQPrimitive.prototype.setOpacity=function(A){this.setProperty("Opacity",A);};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 D=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return D;};this.setColor=function(E){if(E){if(E.getClassName()==="MQColorStyle"){D=E;}}};var C=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return C;};this.setStyle=function(E){if(E){if(E.getClassName()==="MQPenStyle"){C=E;}}};var B=new MQPointCollection();B.setM_Xpath("Points");this.getPoints=function(){return B;};var A=new MQLatLngCollection();A.setM_Xpath("LatLngs");this.getLatLngs=function(){return A;};this.setLatLngs=function(E){if(E){if(E.getClassName()==="MQLatLngCollection"){A.removeAll();A.append(E);}}};}MQLinePrimitive.prototype.getClassName=function(){return"MQLinePrimitive";};MQLinePrimitive.prototype.getObjectVersion=function(){return 0;};MQLinePrimitive.prototype.loadXml=function(C){this.setM_XmlDoc(mqCreateXMLDoc(C));var B=new MQLatLngCollection();B.setM_Xpath("LatLngs");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}this.setLatLngs(B);var A=new MQPointCollection();A.setM_Xpath("Points");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}this.setPoints(B);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 A=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(A){this.setProperty("Width",A);};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 B=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return B;};this.setFillColor=function(C){if(C){if(C.getClassName()==="MQColorStyle"){B=C;}}};var A=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return A;};this.setFillStyle=function(C){if(C){if(C.getClassName()==="MQFillStyle"){A=C;}}};}MQPolygonPrimitive.prototype.getClassName=function(){return"MQPolygonPrimitive";};MQPolygonPrimitive.prototype.getObjectVersion=function(){return 0;};MQPolygonPrimitive.prototype.loadXml=function(C){this.setM_XmlDoc(mqCreateXMLDoc(C));var B=new MQLatLngCollection();B.setM_Xpath("LatLngs");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}this.setLatLngs(B);var A=new MQPointCollection();A.setM_Xpath("Points");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));}this.setPoints(B);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 A=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=mqCreateXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 E=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return E;};this.setColor=function(I){if(I){if(I.getClassName()==="MQColorStyle"){E=I;}}};var C=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return C;};this.setStyle=function(I){if(I){if(I.getClassName()==="MQPenStyle"){C=I;}}};var A=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return A;};this.setFillColor=function(I){if(I){if(I.getClassName()==="MQColorStyle"){A=I;}}};var D=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return D;};this.setFillStyle=function(I){if(I){if(I.getClassName()==="MQFillStyle"){D=I;}}};var B=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return B;};this.setUpperLeftLatLng=function(I){B.setLatLng(I.getLatitude(),I.getLongitude());};var H=new MQLatLng("LowerRightLatLng");this.getLowerRightLatLng=function(){return H;};this.setLowerRightLatLng=function(I){H.setLatLng(I.getLatitude(),I.getLongitude());};var G=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return G;};this.setUpperLeftPoint=function(I){G.setXY(I.getX(),I.getY());};var F=new MQPoint("LowerRightPoint");this.getLowerRightPoint=function(){return F;};this.setLowerRightPoint=function(I){F.setXY(I.getX(),I.getY());};}MQRectanglePrimitive.prototype.getClassName=function(){return"MQRectanglePrimitive";};MQRectanglePrimitive.prototype.getObjectVersion=function(){return 0;};MQRectanglePrimitive.prototype.loadXml=function(C){this.setM_XmlDoc(mqCreateXMLDoc(C));var B=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));}B=this.getLowerRightLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));}var A=this.getUpperLeftPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));}A=this.getLowerRightPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null){A.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 A=mqCreateXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftLatLng"));A=mqCreateXMLDoc(this.getLowerRightLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LowerRightLatLng"));A=mqCreateXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftPoint"));A=mqCreateXMLDoc(this.getLowerRightPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(A){this.setProperty("Width",A);};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 C=new MQPoint("CenterPoint");this.getCenterPoint=function(){return C;};this.setCenterPoint=function(D){C.setXY(D.getX(),D.getY());};var B=new MQLatLng("CenterLatLng");this.getCenterLatLng=function(){return B;};this.setCenterLatLng=function(D){B.setLatLng(D.getLatitude(),D.getLongitude());};var A=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return A;};this.setSymbolType=function(D){if(D){if(D.getClassName()==="MQSymbolType"){A=D;}}};}MQSymbolPrimitive.prototype.getClassName=function(){return"MQSymbolPrimitive";};MQSymbolPrimitive.prototype.getObjectVersion=function(){return 0;};MQSymbolPrimitive.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var C=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}var A=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.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 A=mqCreateXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=mqCreateXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(A){this.setProperty("SymbolName",A);};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 F=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return F;};this.setUpperLeftPoint=function(H){F.setXY(H.getX(),H.getY());};var E=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return E;};this.setUpperLeftLatLng=function(H){E.setLatLng(H.getLatitude(),H.getLongitude());};var C=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return C;};this.setColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){C=H;}}};var G=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_BOXED);this.getStyle=function(){return G;};this.setStyle=function(H){if(H){if(H.getClassName()==="MQFontStyle"){G=H;}}};var D=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_WHITE);this.getBkgdColor=function(){return D;};this.setBkgdColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){D=H;}}};var B=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getBoxOutlineColor=function(){return B;};this.setBoxOutlineColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){B=H;}}};var A=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getOutlineColor=function(){return A;};this.setOutlineColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){A=H;}}};}MQTextPrimitive.prototype.getClassName=function(){return"MQTextPrimitive";};MQTextPrimitive.prototype.getObjectVersion=function(){return 0;};MQTextPrimitive.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));}var C=this.getUpperLeftPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){C.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 A=mqCreateXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftLatLng"));A=mqCreateXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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(A){this.setProperty("Text",A);};MQTextPrimitive.prototype.getText=function(){return this.getProperty("Text");};MQTextPrimitive.prototype.setFontName=function(A){this.setProperty("FontName",A);};MQTextPrimitive.prototype.getFontName=function(){return this.getProperty("FontName");};MQTextPrimitive.prototype.setWidth=function(A){this.setProperty("Width",A);};MQTextPrimitive.prototype.getWidth=function(){return this.getProperty("Width");};MQTextPrimitive.prototype.setFontSize=function(A){this.setProperty("FontSize",A);};MQTextPrimitive.prototype.getFontSize=function(){return this.getProperty("FontSize");};MQTextPrimitive.prototype.setMargin=function(A){this.setProperty("Margin",A);};MQTextPrimitive.prototype.getMargin=function(){return this.getProperty("Margin");};MQTextPrimitive.prototype.setTextAlignment=function(A){this.setProperty("TextAlignment",A);};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 A=new MQFeatureSpeciferAttributeType(MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID);this.getAttributeType=function(){return A;};this.setAttributeType=function(B){if(B){if(B.getClassName()==="MQFeatureSpeciferAttributeType"){A=B;}}};}MQFeatureSpecifier.prototype.getClassName=function(){return"MQFeatureSpecifier";};MQFeatureSpecifier.prototype.getObjectVersion=function(){return 0;};MQFeatureSpecifier.prototype.setAttributeValue=function(A){this.setProperty("AttributeValue",A);};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(A){this.setProperty("DT",A);};MQBaseDTStyle.prototype.getDT=function(){return this.getProperty("DT");};MQBaseDTStyle.prototype.setHighScale=function(A){this.setProperty("HighScale",A);};MQBaseDTStyle.prototype.getHighScale=function(){return this.getProperty("HighScale");};MQBaseDTStyle.prototype.setLowScale=function(A){this.setProperty("LowScale",A);};MQBaseDTStyle.prototype.getLowScale=function(){return this.getProperty("LowScale");};MQBaseDTStyle.prototype.equals=function(C){if(C){try{var A=C.getClassName();}catch(B){alert("Invalid type for this function!");throw"Invalid type for this function!";}if(A===this.getClassName()){return(this.getDT()===C.getDT()&&this.getHighScale()===C.getHighScale()&&this.getLowScale()===C.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 B=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontColor=function(){return B;};this.setFontColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){B=G;}}};var F=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontOutlineColor=function(){return F;};this.setFontOutlineColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){F=G;}}};var D=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxBkgdColor=function(){return D;};this.setFontBoxBkgdColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){D=G;}}};var A=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxOutlineColor=function(){return A;};this.setFontBoxOutlineColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){A=G;}}};var E=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_INVALID);this.getFontStyle=function(){return E;};this.setFontStyle=function(G){if(G){if(G.getClassName()==="MQFontStyle"){E=G;}}};var C=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return C;};this.setSymbolType=function(G){if(G){if(G.getClassName()==="MQSymbolType"){C=G;}}};}MQDTStyle.prototype.getClassName=function(){return"MQDTStyle";};MQDTStyle.prototype.getObjectVersion=function(){return 0;};MQDTStyle.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));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(A){this.setProperty("SymbolName",A);};MQDTStyle.prototype.getSymbolName=function(){return this.getProperty("SymbolName");};MQDTStyle.prototype.setFontName=function(A){this.setProperty("FontName",A);};MQDTStyle.prototype.getFontName=function(){return this.getProperty("FontName");};MQDTStyle.prototype.setVisible=function(A){this.setProperty("Visible",(A===true)?1:0);};MQDTStyle.prototype.getVisible=function(){return(this.getProperty("Visible")==1)?true:false;};MQDTStyle.prototype.setLabelVisible=function(A){this.setProperty("LabelVisible",(A===true)?1:0);};MQDTStyle.prototype.getLabelVisible=function(){return(this.getProperty("LabelVisible")==1)?true:false;};MQDTStyle.prototype.setFontSize=function(A){this.setProperty("FontSize",A);};MQDTStyle.prototype.getFontSize=function(){return this.getProperty("FontSize");};MQDTStyle.prototype.setFontBoxMargin=function(A){this.setProperty("FontBoxMargin",A);};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(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQDTStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQDTStyleEx.prototype.setStyleString=function(A){this.setProperty("StyleString",A);};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 A=new MQFeatureSpecifierCollection("FeatureSpecifier");A.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return A;};this.setFeatureSpecifiers=function(B){if(mqIsClass(A.getClassName(),B,false)){A.removeAll();A.append(B);}};}MQDTFeatureStyleEx.prototype.getClassName=function(){return"MQDTFeatureStyleEx";};MQDTFeatureStyleEx.prototype.getObjectVersion=function(){return 0;};MQDTFeatureStyleEx.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};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 A=new MQFeatureSpecifierCollection("FeatureSpecifier");A.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return A;};this.setFeatureSpecifiers=function(B){if(B.getClassName()==="MQFeatureSpecifierCollection"){A=B;}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 A=new MQDTCollection();A.setM_Xpath("DisplayTypes");this.getDisplayTypes=function(){return A;};this.setDisplayTypes=function(B){A.removeAll();A.append(B);};}MQBestFit.prototype.getClassName=function(){return"MQBestFit";};MQBestFit.prototype.getObjectVersion=function(){return 2;};MQBestFit.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getDisplayTypes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")));}};MQBestFit.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getDisplayTypes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DisplayTypes"));return mqXmlToStr(this.getM_XmlDoc());};MQBestFit.prototype.setIncludePrimitives=function(A){this.setProperty("IncludePrimitives",(A===true)?1:0);};MQBestFit.prototype.getIncludePrimitives=function(){return(this.getProperty("IncludePrimitives")==1)?true:false;};MQBestFit.prototype.setKeepCenter=function(A){this.setProperty("KeepCenter",(A===true)?1:0);};MQBestFit.prototype.getKeepCenter=function(){return(this.getProperty("KeepCenter")==1)?true:false;};MQBestFit.prototype.setSnapToZoomLevel=function(A){this.setProperty("SnapToZoomLevel",(A===true)?1:0);};MQBestFit.prototype.getSnapToZoomLevel=function(){return(this.getProperty("SnapToZoomLevel")==1)?true:false;};MQBestFit.prototype.setScaleAdjustmentFactor=function(A){this.setProperty("ScaleAdjFactor",A);};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 A=new MQLatLngCollection();A.setM_Xpath("LatLngs");this.getLatLngs=function(){return A;};this.setLatLngs=function(B){A.removeAll();A.append(B);};}MQBestFitLL.prototype.getClassName=function(){return"MQBestFitLL";};MQBestFitLL.prototype.getObjectVersion=function(){return 0;};MQBestFitLL.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var B=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));}};MQBestFitLL.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));return mqXmlToStr(this.getM_XmlDoc());};MQBestFitLL.prototype.setKeepCenter=function(A){this.setProperty("KeepCenter",(A===true)?1:0);};MQBestFitLL.prototype.getKeepCenter=function(){return(this.getProperty("KeepCenter")==1)?true:false;};MQBestFitLL.prototype.setSnapToZoomLevel=function(A){this.setProperty("SnapToZoomLevel",(A===true)?1:0);};MQBestFitLL.prototype.getSnapToZoomLevel=function(){return(this.getProperty("SnapToZoomLevel")==1)?true:false;};MQBestFitLL.prototype.setScaleAdjustmentFactor=function(A){this.setProperty("ScaleAdjFactor",A);};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 A=new MQPoint("CenterPoint");this.getCenter=function(){return A;};this.setCenter=function(B){if(mqIsClass(A.getClassName(),B,false)){A=B.internalCopy(A);}};}MQCenter.prototype.getClassName=function(){return"MQCenter";};MQCenter.prototype.getObjectVersion=function(){return 0;};MQCenter.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQCenter.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 A=new MQLatLng("CenterLatLng");this.getCenter=function(){return A;};this.setCenter=function(B){if(mqIsClass(A.getClassName(),B,false)){A=B.internalCopy(A);}};}MQCenterLatLng.prototype.getClassName=function(){return"MQCenterLatLng";};MQCenterLatLng.prototype.getObjectVersion=function(){return 0;};MQCenterLatLng.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var B=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));}};MQCenterLatLng.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 A=new MQPoint("DeltaPoint");this.getPoint=function(){return A;};this.setDeltaXY=function(C,B){A.setXY(C,B);};this.setDeltaY=function(B){A.setY(B);};this.setDeltaX=function(B){A.setX(B);};}MQPan.prototype.getClassName=function(){return"MQPan";};MQPan.prototype.getObjectVersion=function(){return 0;};MQPan.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var B=this.getPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")));}};MQPan.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 A=new MQPoint("CenterPoint");this.getCenter=function(){return A;};this.setCenter=function(B){A=B;};}MQZoomIn.prototype.getClassName=function(){return"MQZoomIn";};MQZoomIn.prototype.getObjectVersion=function(){return 0;};MQZoomIn.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQZoomIn.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 A=new MQPoint("CenterPoint");this.getCenter=function(){return A;};this.setCenter=function(B){A=B;};}MQZoomOut.prototype.getClassName=function(){return"MQZoomOut";};MQZoomOut.prototype.getObjectVersion=function(){return 0;};MQZoomOut.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var B=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQZoomOut.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"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 A=new MQPoint("CenterPoint");this.getCenter=function(){return A;};this.setCenter=function(B){A=B;};}MQZoomTo.prototype.getClassName=function(){return"MQZoomTo";};MQZoomTo.prototype.getObjectVersion=function(){return 0;};MQZoomTo.prototype.loadXml=function(A){this.setM_XmlDoc(mqCreateXMLDoc(A));var B=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));}};MQZoomTo.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc());};MQZoomTo.prototype.getZoomLevel=function(){return this.getProperty("ZoomLevel");};MQZoomTo.prototype.setZoomLevel=function(A){this.setProperty("ZoomLevel",A);};MQZoomToRect.prototype=new MQMapCommand();MQZoomToRect.prototype.constructor=MQZoomToRect;function MQZoomToRect(){MQMapCommand.call(this);this.setM_Xpath("ZoomToRect");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTORECT()));var B=new MQPoint("UpperLeftPoint");var A=new MQPoint("LowerRightPoint");this.getRect=function(C,D){C.loadXml(B.copy().saveXml());D.loadXml(A.copy().saveXml());};this.setRect=function(C,D){if(mqIsClass(B.getClassName(),C,false)&&mqIsClass(A.getClassName(),D,false)){B=C.internalCopy(B);A=D.internalCopy(A);}};}MQZoomToRect.prototype.getClassName=function(){return"MQZoomToRect";};MQZoomToRect.prototype.getObjectVersion=function(){return 0;};MQZoomToRect.prototype.loadXml=function(C){this.setM_XmlDoc(mqCreateXMLDoc(C));var B=new MQPoint("UpperLeftPoint"),A=new MQPoint("LowerRightPoint");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));}if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")));}this.setRect(B,A);};MQZoomToRect.prototype.saveXml=function(){var B=new MQPoint("UpperLeftPoint"),A=new MQPoint("LowerRightPoint");this.getRect(B,A);var C=mqCreateXMLDoc(B.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),C,"UpperLeftPoint"));C=mqCreateXMLDoc(A.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),C,"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 B=new MQLatLng("UpperLeftLatLng");var A=new MQLatLng("LowerRightLatLng");this.getRect=function(C,D){C.loadXml(B.copy().saveXml());D.loadXml(A.copy().saveXml());};this.setRect=function(C,D){if(mqIsClass(B.getClassName(),C,false)&&mqIsClass(A.getClassName(),D,false)){B=C.internalCopy(B);A=D.internalCopy(A);}};}MQZoomToRectLatLng.prototype.getClassName=function(){return"MQZoomToRectLatLng";};MQZoomToRectLatLng.prototype.getObjectVersion=function(){return 0;};MQZoomToRectLatLng.prototype.loadXml=function(C){this.setM_XmlDoc(mqCreateXMLDoc(C));var B=new MQLatLng("UpperLeftLatLng"),A=new MQLatLng("LowerRightLatLng");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));}if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));}this.setRect(B,A);};MQZoomToRectLatLng.prototype.saveXml=function(){var B=new MQLatLng("UpperLeftLatLng"),A=new MQLatLng("LowerRightLatLng");this.getRect(B,A);var C=mqCreateXMLDoc(B.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),C,"UpperLeftLatLng"));C=mqCreateXMLDoc(A.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),C,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc());};function MQType(){}MQType.prototype.equals=function(C){if(C){try{var A=C.getClassName();}catch(B){alert("Invalid type for this function!");throw"Invalid type for this function!";}if(A===this.getClassName()){return(this.intValue()===C.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(B){var A=-1;switch(B){case MQCONSTANT.MQROUTETYPE_FASTEST:A=B;break;case MQCONSTANT.MQROUTETYPE_SHORTEST:A=B;break;case MQCONSTANT.MQROUTETYPE_PEDESTRIAN:A=B;break;case MQCONSTANT.MQROUTETYPE_OPTIMIZED:A=B;break;case MQCONSTANT.MQROUTETYPE_SELECT_DATASET_ONLY:A=B;break;default:alert(B+" is an invalid value for MQRouteType!");throw B+" invalid value for MQRouteType!";}this.intValue=function(){return A;};}MQRouteType.prototype.getClassName=function(){return"MQRouteType";};MQRouteType.prototype.getObjectVersion=function(){return 0;};MQNarrativeType.prototype=new MQType();MQNarrativeType.prototype.constructor=MQNarrativeType;function MQNarrativeType(B){var A=-2;switch(B){case MQCONSTANT.MQNARRATIVETYPE_DEFAULT:A=B;break;case MQCONSTANT.MQNARRATIVETYPE_HTML:A=B;break;case MQCONSTANT.MQNARRATIVETYPE_NONE:A=B;break;default:alert(B+" is an invalid value for MQNarrativeType!");throw B+" invalid value for MQNarrativeType!";}this.intValue=function(){return A;};}MQNarrativeType.prototype.getClassName=function(){return"MQNarrativeType";};MQNarrativeType.prototype.getObjectVersion=function(){return 0;};MQCoordinateType.prototype=new MQType();MQCoordinateType.prototype.constructor=MQCoordinateType;function MQCoordinateType(B){var A=-2;switch(B){case MQCONSTANT.MQCOORDINATETYPE_DISPLAY:A=B;break;case MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC:A=B;break;default:alert(B+" is an invalid value for MQCoordinateType!");throw B+" invalid value for MQCoordinateType!";}this.intValue=function(){return A;};}MQCoordinateType.prototype.getClassName=function(){return"MQCoordinateType";};MQCoordinateType.prototype.getObjectVersion=function(){return 0;};MQFeatureSpeciferAttributeType.prototype=new MQType();MQFeatureSpeciferAttributeType.prototype.constructor=MQFeatureSpeciferAttributeType;function MQFeatureSpeciferAttributeType(B){var A=-1;switch(B){case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID:A=B;break;case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_NAME:A=B;break;default:alert(B+" is an invalid value for MQFeatureSpeciferAttributeType!");throw B+" invalid value for MQFeatureSpeciferAttributeType!";}this.intValue=function(){return A;};}MQFeatureSpeciferAttributeType.prototype.getClassName=function(){return"MQFeatureSpeciferAttributeType";};MQFeatureSpeciferAttributeType.prototype.getObjectVersion=function(){return 0;};MQSymbolType.prototype=new MQType();MQSymbolType.prototype.constructor=MQSymbolType;function MQSymbolType(B){var A=-1;switch(B){case MQCONSTANT.MQSYMBOLTYPE_RASTER:A=B;break;case MQCONSTANT.MQSYMBOLTYPE_VECTOR:A=B;break;default:alert(B+" is an invalid value for MQSymbolType!");throw B+" invalid value for MQSymbolType!";}this.intValue=function(){return A;};}MQSymbolType.prototype.getClassName=function(){return"MQSymbolType";};MQSymbolType.prototype.getObjectVersion=function(){return 0;};MQMatchType.prototype=new MQType();MQMatchType.prototype.constructor=MQMatchType;function MQMatchType(B){var A=-1;switch(B){case MQCONSTANT.MQMATCHTYPE_LOC:A=B;break;case MQCONSTANT.MQMATCHTYPE_INTR:A=B;break;case MQCONSTANT.MQMATCHTYPE_NEARBLK:A=B;break;case MQCONSTANT.MQMATCHTYPE_REPBLK:A=B;break;case MQCONSTANT.MQMATCHTYPE_BLOCK:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA1:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA2:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA3:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA4:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA5:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA6:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA7:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC1:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC2:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC3:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC4:A=B;break;case MQCONSTANT.MQMATCHTYPE_POI:A=B;break;default:alert(B+" is an invalid value for MQMatchType!");throw B+" invalid value for MQMatchType!";}this.intValue=function(){return A;};}MQMatchType.prototype.getClassName=function(){return"MQMatchType";};MQMatchType.prototype.getObjectVersion=function(){return 0;};MQQualityType.prototype=new MQType();MQQualityType.prototype.constructor=MQQualityType;function MQQualityType(B){var A=-1;switch(B){case MQCONSTANT.MQQUALITYTYPE_EXACT:A=B;break;case MQCONSTANT.MQQUALITYTYPE_GOOD:A=B;break;case MQCONSTANT.MQQUALITYTYPE_APPROX:A=B;break;default:alert(B+" is an invalid value for MQQualityType!");throw B+" invalid value for MQQualityType!";}this.intValue=function(){return A;};}MQQualityType.prototype.getClassName=function(){return"MQQualityType";};MQQualityType.prototype.getObjectVersion=function(){return 0;};MQDrawTrigger.prototype=new MQType();MQDrawTrigger.prototype.constructor=MQDrawTrigger;function MQDrawTrigger(B){var A=-1;switch(B){case MQCONSTANT.MQDRAWTRIGGER_AFTER_POLYGONS:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_POLYGONS:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_TEXT:A=B;break;default:alert(B+" is an invalid value for MQDrawTrigger!");throw B+" invalid value for MQDrawTrigger!";}this.intValue=function(){return A;};}MQDrawTrigger.prototype.getClassName=function(){return"MQDrawTrigger";};MQDrawTrigger.prototype.getObjectVersion=function(){return 0;};MQPenStyle.prototype=new MQType();MQPenStyle.prototype.constructor=MQPenStyle;function MQPenStyle(B){var A=-1;switch(B){case MQCONSTANT.MQPENSTYLE_DASH:A=B;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT:A=B;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT_DOT:A=B;break;case MQCONSTANT.MQPENSTYLE_SOLID:A=B;break;case MQCONSTANT.MQPENSTYLE_DOT:A=B;break;case MQCONSTANT.MQPENSTYLE_NONE:A=B;break;default:alert(B+" is an invalid value for MQPenStyle!");throw B+" invalid value for MQPenStyle!";}this.intValue=function(){return A;};}MQPenStyle.prototype.getClassName=function(){return"MQPenStyle";};MQPenStyle.prototype.getObjectVersion=function(){return 0;};MQFontStyle.prototype=new MQType();MQFontStyle.prototype.constructor=MQFontStyle;function MQFontStyle(B){var A=-2;switch(B){case MQCONSTANT.MQFONTSTYLE_BOLD:A=B;break;case MQCONSTANT.MQFONTSTYLE_BOXED:A=B;break;case MQCONSTANT.MQFONTSTYLE_DOT:A=B;break;case MQCONSTANT.MQFONTSTYLE_ITALICS:A=B;break;case MQCONSTANT.MQFONTSTYLE_MAX_VALUE:A=B;break;case MQCONSTANT.MQFONTSTYLE_NORMAL:A=B;break;case MQCONSTANT.MQFONTSTYLE_OUTLINED:A=B;break;case MQCONSTANT.MQFONTSTYLE_SEMIBOLD:A=B;break;case MQCONSTANT.MQFONTSTYLE_STRIKEOUT:A=B;break;case MQCONSTANT.MQFONTSTYLE_THIN:A=B;break;case MQCONSTANT.MQFONTSTYLE_UNDERLINE:A=B;break;case MQCONSTANT.MQFONTSTYLE_INVALID:A=B;break;default:alert(B+" is an invalid value for MQFontStyle!");throw B+" invalid value for MQFontStyle!";}this.intValue=function(){return A;};}MQFontStyle.prototype.getClassName=function(){return"MQFontStyle";};MQFontStyle.prototype.getObjectVersion=function(){return 0;};MQColorStyle.prototype=new MQType();MQColorStyle.prototype.constructor=MQColorStyle;function MQColorStyle(B){var A=MQCONSTANT.MQCOLORSTYLE_INVALID;if(B!==null){A=B;}this.intValue=function(){return A;};}MQColorStyle.prototype.getClassName=function(){return"MQColorStyle";};MQColorStyle.prototype.getObjectVersion=function(){return 0;};MQColorStyle.prototype.getRGB=function(){var C=-16777216;var B=parseInt(parseInt(this.intValue()/65536)%256);var A=parseInt(parseInt(parseInt(this.intValue()/256)%256)*256);var D=parseInt(parseInt(this.intValue()%256)*65536);return C+B+A+D;};MQFillStyle.prototype=new MQType();MQFillStyle.prototype.constructor=MQFillStyle;function MQFillStyle(B){var A=-1;switch(B){case MQCONSTANT.MQFILLSTYLE_SOLID:A=B;break;case MQCONSTANT.MQFILLSTYLE_BDIAGONAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_CROSS:A=B;break;case MQCONSTANT.MQFILLSTYLE_DIAG_CROSS:A=B;break;case MQCONSTANT.MQFILLSTYLE_FDIAGONAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_HORIZONTAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_VERTICAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_NONE:A=B;break;default:alert(B+" is an invalid value for MQFillStyle!");throw B+" invalid value for MQFillStyle!";}this.intValue=function(){return A;};}MQFillStyle.prototype.getClassName=function(){return"MQFillStyle";};MQFillStyle.prototype.getObjectVersion=function(){return 0;};MQDistanceUnits.prototype=new MQType();MQDistanceUnits.prototype.constructor=MQDistanceUnits;function MQDistanceUnits(B){var A=0;B=B||0;switch(B){case MQCONSTANT.MQDISTANCEUNITS_MILES:A=B;break;case MQCONSTANT.MQDISTANCEUNITS_KILOMETERS:A=B;break;default:alert(B+" is an invalid value for MQDistanceUnits!");throw B+" invalid value for MQDistanceUnist!";}this.getValue=function(){return A;};}MQDistanceUnits.prototype.getClassName=function(){return"MQDistanceUnits";};MQDistanceUnits.prototype.getObjectVersion=function(){return 0;};MQRouteResultsCode.prototype=new MQType();MQRouteResultsCode.prototype.constructor=MQRouteResultsCode;function MQRouteResultsCode(B){var A=-2;switch(B){case MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_SUCCESS:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_INVALID_LOCATION:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_ROUTE_FAILURE:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_NO_DATASET_FOUND:A=B;break;default:alert(B+" is an invalid value for MQRouteResultsCode!");throw B+" invalid value for MQRouteResultsCode!";}this.intValue=function(){return A;};}MQRouteResultsCode.prototype.getClassName=function(){return"MQRouteResultsCode";};MQRouteResultsCode.prototype.getObjectVersion=function(){return 0;};MQRouteMatrixResultsCode.prototype=new MQType();MQRouteMatrixResultsCode.prototype.constructor=MQRouteMatrixResultsCode;function MQRouteMatrixResultsCode(B){var A=-2;switch(B){case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_SUCCESS:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS:A=B;break;default:alert(B+" is an invalid value for MQRouteMatrixResultsCode!");throw B+" invalid value for MQRouteMatrixResultsCode!";}this.intValue=function(){return A;};}MQRouteMatrixResultsCode.prototype.getClassName=function(){return"MQRouteMatrixResultsCode";};MQRouteMatrixResultsCode.prototype.getObjectVersion=function(){return 0;};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(F){this.removeAll();var E=mqCreateXMLDoc(F);this.setM_XmlDoc(E);if(E!==null){var C=E.documentElement;var D=C.childNodes;var B=D.length;B=(B<32678)?B:32678;var A=0;var H=null;for(var G=A;G<B;G++){if(D[G].nodeName==="Address"){H=new MQAddress();H.loadXml(mqXmlToStr(D[G]));}else{if(D[G].nodeName==="GeoAddress"){H=new MQGeoAddress();H.loadXml(mqXmlToStr(D[G]));}else{if(D[G].nodeName==="SingleLineAddress"){H=new MQSingleLineAddress();H.loadXml(mqXmlToStr(D[G]));}}}this.add(H);}}};MQLocationCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){D[D.length]=this.get(A).saveXml();}D[D.length]="</"+this.getM_Xpath()+">";var C=D.join("");return C;};MQLocationCollection.prototype.isValidObject=function(A){if(A){if(A.getClassName()==="MQGeoAddress"||A.getClassName()==="MQAddress"||A.getClassName()==="MQSingleLineAddress"){return true;}}return false;};MQLocationCollectionCollection.prototype=new MQObjectCollection(32678);MQLocationCollectionCollection.prototype.constructor=MQLocationCollectionCollection;function MQLocationCollectionCollection(){MQObjectCollection.call(this,32678);this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLOCATIONCOLLECTIONCOLLECTION()));this.setM_Xpath("LocationCollectionCollection");}MQLocationCollectionCollection.prototype.getClassName=function(){return"MQLocationCollectionCollection";};MQLocationCollectionCollection.prototype.getObjectVersion=function(){return 0;};MQLocationCollectionCollection.prototype.loadXml=function(G){this.removeAll();var F=mqCreateXMLDoc(G);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var E=A.childNodes;var D=E.length;D=(D<32678)?D:32678;var C=0;var H=null;for(var B=C;B<D;B++){H=new MQLocationCollection();H.loadXml(mqXmlToStr(E[B]));this.add(H);}}};MQLocationCollectionCollection.prototype.saveXml=function(){var A=new Array();A[A.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){A[A.length]=this.get(B).saveXml();}A[A.length]="</"+this.getM_Xpath()+">";var D=A.join("");return D;};MQLocationCollectionCollection.prototype.isValidObject=function(A){if(A){if(A.getClassName()==="MQLocationCollection"){return true;}}return false;};MQSignCollection.prototype=new MQObjectCollection(32678);MQSignCollection.prototype.constructor=MQSignCollection;function MQSignCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A);}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(F){this.removeAll();var D=mqCreateXMLDoc(F);this.setM_XmlDoc(D);if(D!==null){var B=D.documentElement;var H=B.childNodes;var G=H.length;G=(G<32678)?G:32678;var E=0;var A=null;if(this.getValidClassName()==="MQSign"){for(var C=E;C<G;C++){A=new MQSign();A.setM_Xpath(this.getM_itemXpath());A.loadXml(mqXmlToStr(H[C]));this.add(A);}}}};MQSignCollection.prototype.loadXmlFromNode=function(E){var C=mqCreateXMLDocImportNode(E);this.setM_XmlDoc(C);if(C!==null){var B=C.documentElement;var H=B.childNodes;var G=H.length;G=(G<32678)?G:32678;var F=0;var A=null;if(this.getValidClassName()==="MQSign"){for(var D=F;D<G;D++){A=new MQSign();A.setM_Xpath(this.getM_itemXpath());A.loadXmlFromNode(H[D]);this.add(A);}}}};MQSignCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml();}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D;};MQPointCollection.prototype=new MQObjectCollection(32678);MQPointCollection.prototype.constructor=MQPointCollection;function MQPointCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A);}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(B){this.removeAll();var J=mqCreateXMLDoc(B);this.setM_XmlDoc(J);if(J!==null){var D=J.documentElement;var I=D.childNodes;var H=I.length;H=(H<32678)?H:32678;var G=0;var A=null;if(this.getValidClassName()==="MQPoint"){for(var F=G;F<H;F++){var E;var C;if(I[F].firstChild!==null){E=I[F].firstChild.nodeValue;}F++;if(I[F].firstChild!==null){C=I[F].firstChild.nodeValue;}A=new MQPoint(E,C);this.add(A);}}}};MQPointCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml();}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D;};MQDBLayerQueryCollection.prototype=new MQObjectCollection(32678);MQDBLayerQueryCollection.prototype.constructor=MQDBLayerQueryCollection;function MQDBLayerQueryCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A);}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(H){this.removeAll();var G=mqCreateXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var B=G.documentElement;var E=B.childNodes;var F=E.length;F=(F<32678)?F:32678;var D=0;var A=null;if(this.getValidClassName()==="MQDBLayerQuery"){for(var C=D;C<F;C++){A=new MQDBLayerQuery();A.setM_Xpath(this.getM_itemXpath());A.loadXml(mqXmlToStr(E[C]));this.add(A);}}}};MQDBLayerQueryCollection.prototype.saveXml=function(){var A=new Array();A[A.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){A[A.length]=this.get(B).saveXml();}A[A.length]="</"+this.getM_Xpath()+">";var D=A.join("");return D;};MQManeuverCollection.prototype=new MQObjectCollection(32678);MQManeuverCollection.prototype.constructor=MQManeuverCollection;function MQManeuverCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A);}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(F){this.removeAll();var B=mqCreateXMLDoc(F);this.setM_XmlDoc(B);if(B!==null){var A=B.documentElement;var H=A.childNodes;var G=H.length;G=(G<32678)?G:32678;var E=0;var C=null;if(this.getValidClassName()==="MQManeuver"){for(var D=E;D<G;D++){C=new MQManeuver();C.setM_Xpath(this.getM_itemXpath());C.loadXml(mqXmlToStr(H[D]));this.add(C);}}}};MQManeuverCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){D[D.length]=this.get(B).saveXml();}D[D.length]="</"+this.getM_Xpath()+">";var A=D.join("");return A;};MQTrekRouteCollection.prototype=new MQObjectCollection(32678);MQTrekRouteCollection.prototype.constructor=MQTrekRouteCollection;function MQTrekRouteCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A);}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(E){this.removeAll();var C=mqCreateXMLDoc(E);this.setM_XmlDoc(C);if(C!==null){var B=C.documentElement;var H=B.childNodes;var F=H.length;F=(F<32678)?F:32678;var D=0;var G=null;if(this.getValidClassName()==="MQTrekRoute"){for(var A=D;A<F;A++){G=new MQTrekRoute();G.setM_Xpath(this.getM_itemXpath());G.loadXml(mqXmlToStr(H[A]));this.add(G);}}}};MQTrekRouteCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){D[D.length]=this.get(A).saveXml();}D[D.length]="</"+this.getM_Xpath()+">";var C=D.join("");return C;};MQIntCollection.prototype=new MQObjectCollection(32678);MQIntCollection.prototype.constructor=MQIntCollection;function MQIntCollection(A){MQObjectCollection.call(this,32678);this.setValidClassName("int");if(A){this.setM_itemXpath(A);}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(G){this.removeAll();var F=mqCreateXMLDoc(G);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var D=A.childNodes;var C=D.length;C=(C<32678)?C:32678;var B=0;var H=null;for(var E=B;E<C;E++){if(D[E].firstChild!==null){H=parseInt(D[E].firstChild.nodeValue);}else{H=0;}this.add(H);}}};MQIntCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){D[D.length]="<"+this.getM_itemXpath()+">"+this.get(B)+"</"+this.getM_itemXpath()+">";}D[D.length]="</"+this.getM_Xpath()+">";var A=D.join("");return A;};MQDTCollection.prototype=new MQIntCollection("Item");MQDTCollection.prototype.constructor=MQDTCollection;function MQDTCollection(A){MQIntCollection.call(this,A);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(H){this.removeAll();var F=mqCreateXMLDoc(H);this.setM_XmlDoc(F);if(F!==null){var I=F.documentElement;var E=I.childNodes;var D=E.length;D=(D<32678)?D:32678;var C=0;var G=null;var B="";for(var A=C;A<D;A++){B=E[A].nodeName;if(B==="LineFeature"){G=new MQLineFeature();G.loadXml(mqXmlToStr(E[A]));}else{if(B==="PointFeature"){G=new MQPointFeature();G.loadXmlFromNode(E[A]);}else{if(B==="PolygonFeature"){G=new MQPolygonFeature();G.loadXml(mqXmlToStr(E[A]));}}}this.add(G);}}};MQFeatureCollection.prototype.saveXml=function(){var A=new Array();A[A.length]="<"+this.getM_Xpath()+' Version="'+this.getObjectVersion()+'" Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){A[A.length]=this.get(B).saveXml();}A[A.length]="</"+this.getM_Xpath()+">";var D=A.join("");return D;};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(F){this.removeAll();var E=mqCreateXMLDoc(F);this.setM_XmlDoc(E);if(E!==null){var B=E.documentElement;var D=B.childNodes;var C=D.length;C=(C<32678)?C:32678;var A=0;var G=null;for(var H=A;H<C;H++){if(D[H].nodeName==="FeatureSpecifier"){G=new MQFeatureSpecifier();G.loadXml(mqXmlToStr(D[H]));}this.add(G);}}};MQFeatureSpecifierCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){D[D.length]=this.get(A).saveXml();}D[D.length]="</"+this.getM_Xpath()+">";var C=D.join("");return C;};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(E){this.removeAll();var H=mqCreateXMLDoc(E);this.setM_XmlDoc(H);if(H!==null){var B=H.documentElement;var G=B.childNodes;var F=G.length;F=(F<32678)?F:32678;var D=0;var A=null;for(var C=D;C<F;C++){if(G[C].nodeName==="GeocodeOptions"){A=new MQGeocodeOptions();A.loadXml(mqXmlToStr(G[C]));}this.add(A);}}};MQGeocodeOptionsCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){D[D.length]=this.get(B).saveXml();}D[D.length]="</"+this.getM_Xpath()+">";var A=D.join("");return A;};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(B){this.removeAll();var H=mqCreateXMLDoc(B);this.setM_XmlDoc(H);if(H!==null){var C=H.documentElement;var F=C.childNodes;var E=F.length;E=(E<32678)?E:32678;var A=0;var D=null;for(var G=A;G<E;G++){if(F[G].nodeName==="DTStyle"){D=new MQDTStyle();D.loadXml(mqXmlToStr(F[G]));}else{if(F[G].nodeName==="DTStyleEx"){D=new MQDTStyleEx();D.loadXml(mqXmlToStr(F[G]));}else{if(F[G].nodeName==="DTFeatureStyleEx"){D=new MQDTFeatureStyleEx();D.loadXml(mqXmlToStr(F[G]));}}}if(D!==null){this.add(D);}D=null;}}};MQCoverageStyle.prototype.saveXml=function(){var D=new Array();D[D.length]='<CoverageStyle Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){D[D.length]=this.get(A).saveXml();}D[D.length]="<Name>"+this.getProperty("Name")+"</Name>";D[D.length]="</CoverageStyle>";var C=D.join("");return C;};MQCoverageStyle.prototype.setName=function(A){this.setProperty("Name",A);};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.getPRIMITIVECOLLECTION()));this.setM_Xpath("PrimitiveCollection");}MQPrimitiveCollection.prototype.getClassName=function(){return"MQPrimitiveCollection";};MQPrimitiveCollection.prototype.getObjectVersion=function(){return 0;};MQPrimitiveCollection.prototype.loadXml=function(G){this.removeAll();var F=mqCreateXMLDoc(G);this.setM_XmlDoc(F);if(F!==null){var D=F.documentElement;var E=D.childNodes;var C=E.length;C=(C<32678)?C:32678;var A=0;var B=null;for(var H=A;H<C;H++){if(E[H].nodeName==="EllipsePrimitive"){B=new MQEllipsePrimitive();B.loadXml(mqXmlToStr(E[H]));}else{if(E[H].nodeName==="LinePrimitive"){B=new MQLinePrimitive();B.loadXml(mqXmlToStr(E[H]));}else{if(E[H].nodeName==="PolygonPrimitive"){B=new MQPolygonPrimitive();B.loadXml(mqXmlToStr(E[H]));}else{if(E[H].nodeName==="RectanglePrimitive"){B=new MQRectanglePrimitive();B.loadXml(mqXmlToStr(E[H]));}else{if(E[H].nodeName==="TextPrimitive"){B=new MQTextPrimitive();B.loadXml(mqXmlToStr(E[H]));}else{if(E[H].nodeName==="SymbolPrimitive"){B=new MQSymbolPrimitive();B.loadXml(mqXmlToStr(E[H]));}}}}}}this.add(B);}}};MQPrimitiveCollection.prototype.saveXml=function(){var A=new Array();A[A.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){A[A.length]=this.get(B).saveXml();}A[A.length]="</"+this.getM_Xpath()+">";var D=A.join("");return D;};MQStringCollection.prototype=new MQObjectCollection(32678);MQStringCollection.prototype.constructor=MQStringCollection;function MQStringCollection(A){MQObjectCollection.call(this,32678);this.setValidClassName("String");if(A){this.setM_itemXpath(A);}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(F){this.removeAll();var H=mqCreateXMLDoc(F);this.setM_XmlDoc(H);if(H!==null){var A=H.documentElement;var E=A.childNodes;var D=E.length;D=(D<32678)?D:32678;var C=0;var G=null;for(var B=C;B<D;B++){if(E[B].firstChild!==null){G=E[B].firstChild.nodeValue;}else{G="";}this.add(G);}}};MQStringCollection.prototype.loadXmlFromNode=function(G){this.setM_XmlDoc(mqCreateXMLDocImportNode(G));var C=this.getM_XmlDoc();if(C!==null){var B=C.documentElement;var F=B.childNodes;var E=F.length;E=(E<32678)?E:32678;var D=0;var H=null;for(var A=D;A<E;A++){if(F[A].firstChild!==null){H=F[A].firstChild.nodeValue;}else{H="";}this.add(H);}}};MQStringCollection.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){D[D.length]="<"+this.getM_itemXpath()+">"+this.get(A)+"</"+this.getM_itemXpath()+">";}D[D.length]="</"+this.getM_Xpath()+">";var C=D.join("");return C;};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 C=new Array();var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml();}strRet=C.join("");return strRet;};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(A){this.setM_XmlDoc(mqCreateXMLDoc(A));};MQAutoGeocodeCovSwitch.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};MQAutoGeocodeCovSwitch.prototype.setName=function(A){this.setProperty("Name",A);};MQAutoGeocodeCovSwitch.prototype.getName=function(){return this.getProperty("Name");};MQAutoGeocodeCovSwitch.prototype.setMaxMatches=function(A){this.setProperty("MaxMatches",A);};MQAutoGeocodeCovSwitch.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};MQAutoRouteCovSwitch.prototype=new MQObject();MQAutoRouteCovSwitch.prototype.constructor=MQAutoRouteCovSwitch;function MQAutoRouteCovSwitch(A){MQObject.call(this);if(this.getClassName()==="MQAutoRouteCovSwitch"){if(A){this.setM_Xpath(A);this.setM_XmlDoc(mqCreateXMLDoc("<"+A+'><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/></'+A+">"));}else{this.setM_Xpath("AutoRouteCovSwitch");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOROUTECOVSWITCH()));}}var B=new MQIntCollection();B.setM_Xpath("DataVendorCodes");this.getDataVendorCodes=function(){return B;};}MQAutoRouteCovSwitch.prototype.getClassName=function(){return"MQAutoRouteCovSwitch";};MQAutoRouteCovSwitch.prototype.getObjectVersion=function(){return 0;};MQAutoRouteCovSwitch.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getDataVendorCodes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")));}};MQAutoRouteCovSwitch.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc());};MQAutoRouteCovSwitch.prototype.setName=function(A){this.setProperty("Name",A);};MQAutoRouteCovSwitch.prototype.getName=function(){return this.getProperty("Name");};MQAutoRouteCovSwitch.prototype.setDataVendorCodeUsage=function(A){this.setProperty("DataVendorCodeUsage",A);};MQAutoRouteCovSwitch.prototype.getDataVendorCodeUsage=function(){return this.getProperty("DataVendorCodeUsage");};MQAutoMapCovSwitch.prototype=new MQAutoRouteCovSwitch();MQAutoMapCovSwitch.prototype.constructor=MQAutoMapCovSwitch;function MQAutoMapCovSwitch(B){MQAutoRouteCovSwitch.call(this);if(B){this.setM_Xpath(B);this.setM_XmlDoc(mqCreateXMLDoc("<"+B+'><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></'+B+">"));}else{this.setM_Xpath("AutoMapCovSwitch");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOMAPCOVSWITCH()));}var A=new MQIntCollection();A.setM_Xpath("ZoomLevels");A.add(6000);A.add(12000);A.add(24000);A.add(48000);A.add(96000);A.add(192000);A.add(400000);A.add(800000);A.add(1600000);A.add(3000000);A.add(6000000);A.add(12000000);A.add(24000000);A.add(48000000);this.getZoomLevels=function(){return A;};}MQAutoMapCovSwitch.prototype.getClassName=function(){return"MQAutoMapCovSwitch";};MQAutoMapCovSwitch.prototype.getObjectVersion=function(){return 0;};MQAutoMapCovSwitch.prototype.loadXml=function(B){this.setM_XmlDoc(mqCreateXMLDoc(B));var A=this.getDataVendorCodes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")));}};MQAutoMapCovSwitch.prototype.saveXml=function(){var A=mqCreateXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc());};MQAutoMapCovSwitch.prototype.setStyle=function(A){this.setProperty("Style",A);};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(G){var D=mqCreateXMLDoc(G);this.setM_XmlDoc(D);if(D!==null){var A=D.documentElement;var B=A.childNodes;var H=B.length;H=(H<32678)?H:32678;var F=0;var E=null;for(var C=F;C<H;C++){E=null;if(B[C].nodeName==="MapState"){E=new MQMapState();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="CoverageStyle"){E=new MQCoverageStyle();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="AutoMapCovSwitch"){E=new MQAutoMapCovSwitch();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="DBLayerQueryCollection"){E=new MQDBLayerQueryCollection();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="FeatureCollection"){E=new MQFeatureCollection();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="PrimitiveCollection"){E=new MQPrimitiveCollection();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="Center"){E=new MQCenter();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="CenterLL"){E=new MQCenterLL();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="ZoomIn"){E=new MQZoomIn();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="ZoomOut"){E=new MQZoomOut();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="ZoomTo"){E=new MQZoomTo();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="ZoomToRect"){E=new MQZoomToRect();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="ZoomToRectLL"){E=new MQZoomToRectLL();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="Pan"){E=new MQPan();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="BestFit"){E=new MQBestFit();E.loadXml(mqXmlToStr(B[C]));}else{if(B[C].nodeName==="BestFitLL"){E=new MQBestFitLL();E.loadXml(mqXmlToStr(B[C]));}}}}}}}}}}}}}}}}if(E!==null){this.add(E);}}}};MQSession.prototype.saveXml=function(){var D=new Array();D[D.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var C=this.getSize();for(var B=0;B<C;B++){D[D.length]=this.get(B).saveXml();}D[D.length]="</"+this.getM_Xpath()+">";var A=D.join("");return A;};MQSession.prototype.add=function(A){return this.addOne(A,null);};MQSession.prototype.isMapCommandObject=function(B){if(B){var A=B.getClassName();if(A==="MQCenter"||A==="MQCenterLatLng"||A==="MQZoomIn"||A==="MQZoomOut"||A==="MQZoomTo"||A==="MQZoomToRect"||A==="MQZoomToRectLatLng"||A==="MQPan"||A==="MQBestFit"||A==="MQBestFitLL"){return true;}else{return false;}}};MQSession.prototype.addOne=function(A,E){var D=this.getSize();var C=A.getClassName();var B=0;if(this.isValidObject(A)){if(this.isMapCommandObject(A)){for(B=0;B<D;B++){if(isMapCommandObject(get(B))){break;}}}else{for(B=0;B<D;B++){if(get(B).getClassId()==C){break;}}}}else{alert("Invalid object for this collection.");throw ("Invalid object for this collection.");}if(B<D){E=this.set(B,A);}else{m_collection.add(A);}return B;};MQSession.prototype.isValidObject=function(B){if(B){var A=B.getClassName();if(A==="MQCenter"||A==="MQCenterLatLng"||A==="MQZoomIn"||A==="MQZoomOut"||A==="MQZoomTo"||A==="MQZoomToRect"||A==="MQZoomToRectLatLng"||A==="MQPan"||A==="MQBestFit"||A==="MQBestFitLL"||A==="MQDBLayerQueryCollection"||A==="MQCoverageStyle"||A==="MQFeatureCollection"||A==="MQAutoMapCovSwitch"||A==="MQPrimitiveCollection"||A==="MQMapState"){return true;}else{return false;}}};function MQAuthentication(B){var A=(B!=null)?B:"";this.getInfo=function(){return A;};}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(D,B){var C=D;var A=B;this.saveXml=function(){return"<"+C+">"+A+"</"+C+">";};}
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(P,O,N,L,J,H){var E;var C;var A;var M;var K;var I;var G;var D="";var B;this.flashEnabled=false;try{B=new AAPIProxy("js/mqfjs/ClientConfig.xml");this.flashEnabled=true;E=P||"localhost";C=O||"mq";A=N||80;B=null;}catch(F){if(typeof P=="string"){E=P||"localhost";C=O||"mq";A=N||80;M=J||"";K=L||"";I=H||0;G=0;}else{if(P.getClassName()&&P.getClassName()=="MQExec"){E=P.getServerName();C=P.getServerPath();A=P.getServerPort();K=P.getProxyServerName();I=P.getProxyServerPort();M=P.getProxyServerPath();G=P.m_lSocketTimeout;}}}this.setServerName=function(Q){E=Q;};this.getServerName=function(){return E;};this.setServerPath=function(Q){C=Q;};this.getServerPath=function(){return C;};this.setServerPort=function(Q){A=Q;};this.getServerPort=function(){return A;};this.setProxyServerName=function(Q){K=Q;};this.getProxyServerName=function(){return K;};this.setProxyServerPath=function(Q){M=Q;};this.getProxyServerPath=function(){return M;};this.setProxyServerPort=function(Q){I=Q;};this.getProxyServerPort=function(){return I;};this.setTransactionInfo=function(Q){if(Q.length>32){D=Q.substring(0,32);}else{D=Q;}};this.getTransactionInfo=function(){return D;};}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.CREATESESSION_VERSION="0";MQExec.prototype.getRequestXml=function(C,B,A){var F=new Array();var E=A||"0";F.push('<?xml version="1.0" encoding="ISO-8859-1"?>\n');F.push("<"+C+' Version="'+E+'">\n');for(var D=0;D<B.length;D++){F.push(B[D].saveXml());F.push("\n");}F.push("</"+C+">");return F.join("");};MQExec.prototype.doTransaction=function(G,F,E,D){var C;var B;var A=mqXMLHttpRequest();var I="";F.push(new MQAuthentication(this.getTransactionInfo()));var H=this.getRequestXml(G,F,E);if(this.flashEnabled){A=new AAPIProxy("js/mqfjs/ClientConfig.xml");I+="http://"+this.getServerName();if(this.getServerPort()!=80){I+=":"+this.getServerPort();}I+="/"+this.getServerPath();I+="/?e=5";}else{if(this.getProxyServerName()!=""){I+="http://"+this.getProxyServerName();if(this.getProxyServerPort()!=0){I+=":"+this.getProxyServerPort();}I+="/";}I+=this.getProxyServerPath();I+="?sname="+this.getServerName();I+="&spath="+this.getServerPath();I+="&sport="+this.getServerPort();}display("mqXmlLogs","Request URL: ",I,"rURL","mqDisplay");display("mqXmlLogs","Request XML: ",H,"","mqDisplay");if(this.flashEnabled){A.onload=function(){MQExec.prototype.flashcallback(G,D,mqCreateXMLDoc(this.responseText),this.responseText);};A.onerror=function(){alert("Flash Proxy Request failed.");};A.open("POST",I,true);A.send(H);}else{A.open("POST",I,false);A.send(H);if(A.status==200){C=A.responseXML;}else{alert("HTTP Status: "+A.status+" ("+A.statusText+")\nDetails: \n"+A.responseText);C=null;}display("mqXmlLogs","Response XML: ",mqXmlToStr(C),"resXML","mqDisplay");return C;}};MQExec.prototype.geocode=function(G,E,C,A){var H;var F;var D=new Array();var B=new Array();B.push(A);if(G==null||(G.getClassName()!="MQAddress"&&G.getClassName()!="MQSingleLineAddress")){throw"Null or Illegal Argument passed for MQAddress";}else{D.push(G);}if(E==null||E.getClassName()!="MQLocationCollection"){throw"Null or Illegal Argument passed for MQLocationCollection";}else{B.push(E);}if(C!=null){if(C.getClassName()!="MQAutoGeocodeCovSwitch"&&C.getClassName()!="MQGeocodeOptionsCollection"){throw"Illegal Argument passed for Geocode Options";}else{D.push(C);}}mqLogTime("MQExec.geocode: Transaction Start");H=this.doTransaction("Geocode",D,this.GEOCODE_VERSION,B);mqLogTime("MQExec.geocode: Transaction End");if(!this.flashEnabled){mqLogTime("MQExec.geocode: Loading of GeocodeResponse Start");F=mqXmlToStr(mqGetNode(H,"/GeocodeResponse/LocationCollection"));E.loadXml(F);mqLogTime("MQExec.geocode: Loading of GeocodeResponse End");}};MQExec.prototype.batchGeocode=function(F,D,E,C){var B;var A;var H=new Array();var G=new Array();G.push(C);if(F==null||F.getClassName()!="MQLocationCollection"){throw"Null or Illegal Argument passed for MQLocationCollection";}else{H.push(F);}if(D==null||D.getClassName()!="MQLocationCollectionCollection"){throw"Null or Illegal Argument passed for MQLocationCollectionCollection";}else{G.push(D);}if(E!=null){if(E.getClassName()!="MQAutoGeocodeCovSwitch"&&E.getClassName()!="MQGeocodeOptionsCollection"){throw"Illegal Argument passed for Geocode Options";}else{H.push(E);}}mqLogTime("MQExec.batchGeocode: Transaction Start");B=this.doTransaction("BatchGeocode",H,this.GEOCODE_VERSION,G);mqLogTime("MQExec.batchGeocode: Transaction End");if(!this.flashEnabled){mqLogTime("MQExec.batchGeocode: Loading of GeocodeResponse Start");A=mqXmlToStr(mqGetNode(B,"/BatchGeocodeResponse/LocationCollectionCollection"));D.loadXml(A);mqLogTime("MQExec.batchGeocode: Loading of GeocodeResponse End");}};MQExec.prototype.doRoute=function(G,F,D,A,K,J){var I;var H;var E=new Array();var C=new Array();C.push(J);if(G==null||G.getClassName()!="MQLocationCollection"){throw"Null or Illegal Argument passed for MQLocationCollection";}else{E.push(G);}if(F==null||F.getClassName()!="MQRouteOptions"){throw"Null or Illegal Argument passed for MQRouteOptions";}else{E.push(F);}if(D==null||D.getClassName()!="MQRouteResults"){throw"Null or Illegal Argument passed for MQRouteResults";}else{var B=A||"";E.push(new MQXmlNodeObject("SessionID",B));C.push(D);C.push(K);C.push(B);mqLogTime("MQExec.doRoute: Transaction Start");I=this.doTransaction("DoRoute",E,this.ROUTE_VERSION,C);mqLogTime("MQExec.doRoute: Transaction End");}if(!this.flashEnabled){mqLogTime("MQExec.doRoute: Loading of RouteResults Start");H=mqXmlToStr(mqGetNode(I,"/DoRouteResponse/RouteResults"));D.loadXml(H);mqLogTime("MQExec.doRoute: Loading of RouteResults End");if(K!=null&&B!=""){this.getRouteBoundingBoxFromSessionResponse(B,K);}}};MQExec.prototype.createSessionEx=function(E,D){var C;var B=0;var A=new Array();var F=new Array();F.push(D);if(E==null||E.getClassName()!="MQSession"){throw"Null or Illegal Argument passed for MQSession";}else{A.push(E);}C=this.doTransaction("CreateSession",A,this.CREATESESSION_VERSION,F);if(!this.flashEnabled){B=mqGetNodeText(mqGetNode(C,"/CreateSessionResponse/SessionID"));return B;}};MQExec.prototype.getSession=function(G,E,C){var A;var H;var F=G||"";var D=new Array();var B=new Array();B.push(C);if(E==null||(E.getClassName()!="MQSession"&&E.getClassName()!="MQMapState")){throw"Null or Illegal Argument passed for MQSession";}else{B.push(E);}D.push(new MQXmlNodeObject("SessionID",F));A=this.doTransaction("GetSession",D,this.GETSESSION_VERSION,B);if(!this.flashEnabled){if(E.getClassName()==="MQMapState"){H=mqXmlToStr(mqGetNode(A,"/GetSessionResponse/Session/MapState"));E.loadXml(H);}else{if(E.getClassName()==="MQSession"){H=mqXmlToStr(mqGetNode(A,"/GetSessionResponse/Session"));E.loadXml(H);}}}};MQExec.prototype.doRouteMatrix=function(D,C,B,A,J){var I;var H;var G=new Array();var F=new Array();F.push(J);if(D==null||D.getClassName()!="MQLocationCollection"){throw"Null or Illegal Argument passed for MQLocationCollection";}else{G.push(D);}if(C==null||typeof C!="boolean"){throw"Null or Illegal Argument passed for bAllToAll";}else{var E=C?1:0;G.push(new MQXmlNodeObject("AllToAll",E));}if(B==null||B.getClassName()!="MQRouteOptions"){throw"Null or Illegal Argument passed for MQRouteOptions";}else{G.push(B);}if(A==null||A.getClassName()!="MQRouteMatrixResults"){throw"Null or Illegal Argument passed for MQRouteMatrixResults";}F.push(A);mqLogTime("MQExec.doRoute: Transaction Start");I=this.doTransaction("DoRouteMatrix",G,this.ROUTEMATRIX_VERSION,F);mqLogTime("MQExec.doRoute: Transaction End");if(!this.flashEnabled){mqLogTime("MQExec.doRoute: Loading of RouteResults Start");H=mqXmlToStr(mqGetNode(I,"/DoRouteMatrixResponse/RouteMatrixResults"));A.loadXml(H);mqLogTime("MQExec.doRoute: Loading of RouteResults End");}};MQExec.prototype.getRecordInfo=function(D,K,J,I,H){var G;var F;var E=new Array();var C=new Array();C.push(H);if(D==null||D.getClassName()!="MQStringCollection"){throw"Null or Illegal Argument passed for MQStringCollection";}else{var B=new MQStringCollection();B.setM_Xpath("Fields");B.append(D);E.push(B);}if(K==null||K.getClassName()!="MQDBLayerQuery"){throw"Null or Illegal Argument passed for MQDBLayerQuery";}else{E.push(K);}if(J==null||J.getClassName()!="MQRecordSet"){throw"Null or Illegal Argument passed for MQRecordSet";}else{C.push(J);}if(I==null||I.getClassName()!="MQStringCollection"){throw"Null or Illegal Argument passed for MQStringCollection";}else{var A=new MQStringCollection();A.setM_Xpath("RecordIds");A.append(I);E.push(A);}mqLogTime("MQExec.getRecordInfo: Transaction Start");G=this.doTransaction("GetRecordInfo",E,this.GETRECORDINFO_VERSION,C);mqLogTime("MQExec.getRecordInfo: Transaction End");if(!this.flashEnabled){mqLogTime("MQExec.getRecordInfo: Loading of RecordSet Start");F=mqXmlToStr(mqGetNode(G,"/GetRecordInfoResponse/RecordSet"));J.loadXml(F);mqLogTime("MQExec.getRecordInfo: Loading of RecordSet End");}};MQExec.prototype.reverseGeocode=function(I,H,F,D,B){var A;var K;var J=new Array();var G=new Array();G.push(B);if(I==null||I.getClassName()!="MQLatLng"){throw"Null or Illegal Argument passed for MQLatLng";}else{J.push(I);}if(H==null||H.getClassName()!="MQLocationCollection"){throw"Null or Illegal Argument passed for MQLocationCollection";}else{var E=F||"";J.push(new MQXmlNodeObject("MapPool",E));var C=D||"";J.push(new MQXmlNodeObject("GeocodePool",C));G.push(H);mqLogTime("MQExec.reverseGeocode: Transaction Start");A=this.doTransaction("ReverseGeocode",J,this.REVERSEGEOCODE_VERSION,G);mqLogTime("MQExec.reverseGeocode: Transaction End");}if(!this.flashEnabled){mqLogTime("MQExec.reverseGeocode: Loading of Response Start");K=mqXmlToStr(mqGetNode(A,"/ReverseGeocodeResponse/LocationCollection"));H.loadXml(K);mqLogTime("MQExec.reverseGeocode: Loading of Response End");}};MQExec.prototype.search=function(K,L,J,I,H,F,E){var D;var C;var B=new Array();var A=new Array();var G=K?K.getClassName():null;A.push(E);if(G==null||(G!="MQSearchCriteria"&&G!="MQRadiusSearchCriteria"&&G!="MQRectSearchCriteria"&&G!="MQPolySearchCriteria"&&G!="MQCorridorSearchCriteria")){throw"Null or Illegal Argument passed for Search Criteria";}else{B.push(K);}if(L==null||L.getClassName()!="MQFeatureCollection"){throw"Null or Illegal Argument passed for MQFeatureCollection";}else{A.push(L);}if(typeof J!="string"){throw"Illegal Argument passed for strCoverageName";}else{B.push(new MQXmlNodeObject("CoverageName",J));}if(I!=null&&I.getClassName()!="MQDBLayerQueryCollection"){throw"Illegal Argument passed for MQRouteOptions";}else{if(I==null){I=new MQDBLayerQueryCollection();}}B.push(I);if(H!=null&&H.getClassName()!="MQFeatureCollection"){throw"Illegal Argument passed for MQFeatureCollection";}else{if(H==null){H=new MQFeatureCollection();}}B.push(H);if(F!=null&&F.getClassName()!="MQDTCollection"){throw"Illegal Argument passed for MQDTCollection";}else{if(F==null){F=new MQDTCollection();}}B.push(F);mqLogTime("MQExec.Search: Transaction Start");D=this.doTransaction("Search",B,this.SEARCH_VERSION,A);mqLogTime("MQExec.Search: Transaction End");if(!this.flashEnabled){mqLogTime("MQExec.Search: Loading of Search results Start");C=mqXmlToStr(mqGetNode(D,"/SearchResponse/FeatureCollection"));L.loadXml(C);mqLogTime("MQExec.Search: Loading of Search results End");}};MQExec.prototype.getRouteBoundingBoxFromSessionResponse=function(H,G){var E;var D;var A=new Array();if(G==null){throw"Null or Illegal Argument passed for MQRectLL";}A.push(new MQXmlNodeObject("SessionID",H));E=this.doTransaction("GetRouteBoundingBoxFromSession",A);mqLogTime("MQExec.doRoute: Loading of MQRectLL Start");var C=E.documentElement.childNodes;var F=new MQLatLng();F.loadXml(mqXmlToStr(C[0]));var B=new MQLatLng();B.loadXml(mqXmlToStr(C[1]));G.setUpperLeft(F);G.setLowerRight(B);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(H,G){if(!this.isAlive()){return null;}var F;var D;var C;var B=H||0;var A=new Array();var E=new Array();E.push(G);if(typeof B!="number"){throw"Illegal Argument passed for lType";}else{A.push(new MQXmlNodeObject("Type",B));mqLogTime("MQExec.GetServerInfo: Transaction Start");D=this.doTransaction("GetServerInfo",A,null,E);mqLogTime("MQExec.GetServerInfo: Transaction End");}if(!this.flashEnabled){return D;}};MQExec.prototype.flashcallback=function(G,N,M,L){switch(G){case"Geocode":var K=N.pop();mqLogTime("MQExec.geocode: Loading of GeocodeResponse Start");K.loadXml(mqXmlToStr(mqGetNode(M,"/GeocodeResponse/LocationCollection")));mqLogTime("MQExec.geocode: Loading of GeocodeResponse End");N.pop().call(this,K);break;case"DoRoute":var J=N.pop();var I=N.pop();var H=N.pop();mqLogTime("MQExec.doRoute: Loading of RouteResults Start");H.loadXml(mqXmlToStr(mqGetNode(M,"/DoRouteResponse/RouteResults")));mqLogTime("MQExec.doRoute: Loading of RouteResults End");if(I!=null&&J!=""){this.getRouteBoundingBoxFromSessionResponse(J,I);}N.pop().call(this,H);break;case"CreateSession":strSessId=mqGetNodeText(mqGetNode(M,"/CreateSessionResponse/SessionID"));N.pop().call(this,strSessId);break;case"GetSession":var F=N.pop();if(F.getClassName()==="MQMapState"){F.loadXml(mqXmlToStr(mqGetNode(M,"/GetSessionResponse/Session/MapState")));}else{if(F.getClassName()==="MQSession"){F.loadXml(mqXmlToStr(mqGetNode(M,"/GetSessionResponse/Session")));}}N.pop().call(this,F);break;case"BatchGeocode":var E=N.pop();mqLogTime("MQExec.batchGeocode: Loading of GeocodeResponse Start");E.loadXml(mqXmlToStr(mqGetNode(M,"/BatchGeocodeResponse/LocationCollectionCollection")));mqLogTime("MQExec.batchGeocode: Loading of GeocodeResponse End");N.pop().call(this,E);break;case"DoRouteMatrix":var D=N.pop();mqLogTime("MQExec.doRoute: Loading of RouteResults Start");D.loadXml(mqXmlToStr(mqGetNode(M,"/DoRouteMatrixResponse/RouteMatrixResults")));mqLogTime("MQExec.doRoute: Loading of RouteResults End");N.pop().call(this,D);break;case"GetRecordInfo":var C=N.pop();mqLogTime("MQExec.getRecordInfo: Loading of RecordSet Start");C.loadXml(mqXmlToStr(mqGetNode(M,"/GetRecordInfoResponse/RecordSet")));mqLogTime("MQExec.getRecordInfo: Loading of RecordSet End");N.pop().call(this,C);break;case"ReverseGeocode":var B=N.pop();mqLogTime("MQExec.reverseGeocode: Loading of Response Start");B.loadXml(mqXmlToStr(mqGetNode(M,"/ReverseGeocodeResponse/LocationCollection")));mqLogTime("MQExec.reverseGeocode: Loading of Response End");N.pop().call(this,B);break;case"Search":var A=N.pop();mqLogTime("MQExec.Search: Loading of Search results Start");A.loadXml(mqXmlToStr(mqGetNode(M,"/SearchResponse/FeatureCollection")));mqLogTime("MQExec.Search: Loading of Search results End");N.pop().call(this,A);break;case"GetServerInfo":N.pop().call(this,M);break;}};
