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(c,b,a){if(b!==null){try{b.getClassName()}catch(d){throw"InvalidClassException"}if(b.getClassName()===c){return true}else{throw"InvalidClassException"}}else{if(a){return true}}throw"NullPointerException"}function MQConstants(){this.MQDISTANCEUNITS_MILES=0;this.MQDISTANCEUNITS_KILOMETERS=1;this.MQLATLNG_RADIANS=0.01745329251994;this.MQLATLNG_INVALID=314159.265358;this.MQLATLNG_TOLERANCE=0.000001;this.MQPOINT_INVALID=32767;this.PI=3.141592653589793;this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT=68.9;this.MQSEARCHCRITERIA_DEGREES_LAT_PER_MILE=(1/this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT);this.DISTANCEAPPROX_MILES_PER_LATITUDE=69.170976;this.DISTANCEAPPROX_KILOMETERS_PER_MILE=1.609347;this.MQROUTETYPE_FASTEST=0;this.MQROUTETYPE_SHORTEST=1;this.MQROUTETYPE_PEDESTRIAN=2;this.MQROUTETYPE_OPTIMIZED=3;this.MQROUTETYPE_SELECT_DATASET_ONLY=4;this.MQNARRATIVETYPE_DEFAULT=0;this.MQNARRATIVETYPE_HTML=1;this.MQNARRATIVETYPE_NONE=-1;this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_LIMITED_ACCESS="Limited Access";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_TOLL_ROAD="Toll Road";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_FERRY="Ferry";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_UNPAVED_ROAD="Unpaved";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_SEASONAL="Approximate seasonal closure";this.MQROUTEOPTIONS_LANGUAGE_ENGLISH="English";this.MQROUTEOPTIONS_LANGUAGE_FRENCH="French";this.MQROUTEOPTIONS_LANGUAGE_GERMAN="German";this.MQROUTEOPTIONS_LANGUAGE_ITALIAN="Italian";this.MQROUTEOPTIONS_LANGUAGE_SPANISH="Spanish";this.MQROUTEOPTIONS_LANGUAGE_DANISH="Danish";this.MQROUTEOPTIONS_LANGUAGE_DUTCH="Dutch";this.MQROUTEOPTIONS_LANGUAGE_NORWEGIAN="Norwegian";this.MQROUTEOPTIONS_LANGUAGE_SWEDISH="Swedish";this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_SPANISH="Iberian Spanish";this.MQROUTEOPTIONS_LANGUAGE_BRITISH_ENGLISH="British English";this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_PORTUGUESE="Iberian Portuguese";this.MQROUTERESULTSCODE_NOT_SPECIFIED=-1;this.MQROUTERESULTSCODE_SUCCESS=0;this.MQROUTERESULTSCODE_INVALID_LOCATION=1;this.MQROUTERESULTSCODE_ROUTE_FAILURE=2;this.MQROUTERESULTSCODE_NO_DATASET_FOUND=3;this.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED=-1;this.MQROUTEMATRIXRESULTSCODE_SUCCESS=0;this.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION=1;this.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE=2;this.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND=3;this.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION=4;this.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS=5;this.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS=6;this.MQMANEUVER_HEADING_NULL=0;this.MQMANEUVER_HEADING_NORTH=1;this.MQMANEUVER_HEADING_NORTH_WEST=2;this.MQMANEUVER_HEADING_NORTH_EAST=3;this.MQMANEUVER_HEADING_SOUTH=4;this.MQMANEUVER_HEADING_SOUTH_EAST=5;this.MQMANEUVER_HEADING_SOUTH_WEST=6;this.MQMANEUVER_HEADING_WEST=7;this.MQMANEUVER_HEADING_EAST=8;this.MQMANEUVER_TURN_TYPE_STRAIGHT=0;this.MQMANEUVER_TURN_TYPE_SLIGHT_RIGHT=1;this.MQMANEUVER_TURN_TYPE_RIGHT=2;this.MQMANEUVER_TURN_TYPE_SHARP_RIGHT=3;this.MQMANEUVER_TURN_TYPE_REVERSE=4;this.MQMANEUVER_TURN_TYPE_SHARP_LEFT=5;this.MQMANEUVER_TURN_TYPE_LEFT=6;this.MQMANEUVER_TURN_TYPE_SLIGHT_LEFT=7;this.MQMANEUVER_TURN_TYPE_RIGHT_UTURN=8;this.MQMANEUVER_TURN_TYPE_LEFT_UTURN=9;this.MQMANEUVER_TURN_TYPE_RIGHT_MERGE=10;this.MQMANEUVER_TURN_TYPE_LEFT_MERGE=11;this.MQMANEUVER_TURN_TYPE_RIGHT_ON_RAMP=12;this.MQMANEUVER_TURN_TYPE_LEFT_ON_RAMP=13;this.MQMANEUVER_TURN_TYPE_RIGHT_OFF_RAMP=14;this.MQMANEUVER_TURN_TYPE_LEFT_OFF_RAMP=15;this.MQMANEUVER_TURN_TYPE_RIGHT_FORK=16;this.MQMANEUVER_TURN_TYPE_LEFT_FORK=17;this.MQMANEUVER_TURN_TYPE_STRAIGHT_FORK=18;this.MQMANEUVER_ATTRIBUTE_PORTIONS_TOLL=1;this.MQMANEUVER_ATTRIBUTE_PORTIONS_UNPAVED=2;this.MQMANEUVER_ATTRIBUTE_POSSIBLE_SEASONAL_ROAD_CLOSURE=4;this.MQMANEUVER_ATTRIBUTE_GATE=8;this.MQMANEUVER_ATTRIBUTE_FERRY=16;this.MQCOORDINATETYPE_GEOGRAPHIC=1;this.MQCOORDINATETYPE_DISPLAY=2;this.MQDRAWTRIGGER_BEFORE_POLYGONS=3585;this.MQDRAWTRIGGER_AFTER_POLYGONS=3586;this.MQDRAWTRIGGER_BEFORE_TEXT=3588;this.MQDRAWTRIGGER_AFTER_TEXT=3618;this.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT=3616;this.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT=3617;this.MQPENSTYLE_SOLID=0;this.MQPENSTYLE_DASH=1;this.MQPENSTYLE_DOT=2;this.MQPENSTYLE_DASH_DOT=3;this.MQPENSTYLE_DASH_DOT_DOT=4;this.MQPENSTYLE_NONE=5;this.MQCOLORSTYLE_INVALID=4294967295;this.MQCOLORSTYLE_BLACK=0;this.MQCOLORSTYLE_BLUE=16711680;this.MQCOLORSTYLE_CYAN=16776960;this.MQCOLORSTYLE_DARK_GRAY=4210752;this.MQCOLORSTYLE_GRAY=8421504;this.MQCOLORSTYLE_GREEN=65280;this.MQCOLORSTYLE_LIGHT_GRAY=12632256;this.MQCOLORSTYLE_MAGENTA=16711935;this.MQCOLORSTYLE_ORANGE=51455;this.MQCOLORSTYLE_PINK=11513855;this.MQCOLORSTYLE_RED=255;this.MQCOLORSTYLE_WHITE=16777215;this.MQCOLORSTYLE_YELLOW=65535;this.MQFILLSTYLE_SOLID=0;this.MQFILLSTYLE_BDIAGONAL=1;this.MQFILLSTYLE_CROSS=2;this.MQFILLSTYLE_DIAG_CROSS=3;this.MQFILLSTYLE_FDIAGONAL=4;this.MQFILLSTYLE_HORIZONTAL=5;this.MQFILLSTYLE_VERTICAL=6;this.MQFILLSTYLE_NONE=7;this.MQSYMBOLTYPE_RASTER=0;this.MQSYMBOLTYPE_VECTOR=1;this.MQTEXTALIGNMENT_CENTER=1;this.MQTEXTALIGNMENT_LEFT=2;this.MQTEXTALIGNMENT_RIGHT=4;this.MQTEXTALIGNMENT_BASELINE=8;this.MQTEXTALIGNMENT_BOTTOM=16;this.MQTEXTALIGNMENT_TOP=32;this.MQFONTSTYLE_INVALID=-1;this.MQFONTSTYLE_NORMAL=0;this.MQFONTSTYLE_BOLD=1;this.MQFONTSTYLE_BOXED=2;this.MQFONTSTYLE_OUTLINED=4;this.MQFONTSTYLE_ITALICS=8;this.MQFONTSTYLE_UNDERLINE=16;this.MQFONTSTYLE_STRIKEOUT=32;this.MQFONTSTYLE_THIN=64;this.MQFONTSTYLE_SEMIBOLD=128;this.MQFONTSTYLE_MAX_VALUE=256;this.MQBASEDTSTYLE_DT_NULL=65532;this.MQBASEDTSTYLE_CT_ROAD=0;this.MQBASEDTSTYLE_CT_LINE=1;this.MQBASEDTSTYLE_CT_POLYGON=2;this.MQBASEDTSTYLE_CT_POINT=3;this.MQBASEDTSTYLE_CT_POI=4;this.MQBASEDTSTYLE_CT_SEED=5;this.MQBASEDTSTYLE_CT_DISPLAYLIST=6;this.MQBASEDTSTYLE_CT_APP=7;this.MQBASEDTSTYLE_CT_XA=8;this.MQBASEDTSTYLE_BT_LINE=0;this.MQBASEDTSTYLE_BT_POLYGON=1;this.MQBASEDTSTYLE_BT_POINT=2;this.MQBASEDTSTYLE_BT_OTHER=3;this.MQBASEDTSTYLE_BT_XA=4;this.MQFEATURESPECIFERATTRIBUTETYPE_GEFID=0;this.MQFEATURESPECIFERATTRIBUTETYPE_NAME=1;this.MQMATCHTYPE_LOC=0;this.MQMATCHTYPE_INTR=1;this.MQMATCHTYPE_NEARBLK=2;this.MQMATCHTYPE_REPBLK=3;this.MQMATCHTYPE_BLOCK=4;this.MQMATCHTYPE_AA1=5;this.MQMATCHTYPE_AA2=6;this.MQMATCHTYPE_AA3=7;this.MQMATCHTYPE_AA4=8;this.MQMATCHTYPE_AA5=9;this.MQMATCHTYPE_AA6=10;this.MQMATCHTYPE_AA7=11;this.MQMATCHTYPE_PC1=12;this.MQMATCHTYPE_PC2=13;this.MQMATCHTYPE_PC3=14;this.MQMATCHTYPE_PC4=15;this.MQMATCHTYPE_POI=16;this.MQQUALITYTYPE_EXACT=0;this.MQQUALITYTYPE_GOOD=1;this.MQQUALITYTYPE_APPROX=2}var MQCONSTANT=new MQConstants();function MQErrors(){this.RECORDSET_GETFIELD_1="failure in getField -- m_curRec is not Pointing to an existing Record";this.RECORDSET_GETFIELD_2="failure in getField -- could not find strFieldName";this.RECORDSET_MOVEFIRST_1="failure in moveFirst -- Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVELAST_1="Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVENEXT_1="Error Moving Cursor, EOF was true.";this.RECORDSET_MOVENEXT_2="Error Moving Cursor, Unknown Error.";this.RECORDSET_MOVENEXT_3="Error Moving Cursor, RecordSet is Empty."}var MQERROR=new MQErrors();function MQXMLDOC(){this.AUTOGEOCODECOVSWITCH=null;this.AUTOROUTECOVSWITCH=null;this.AUTOMAPCOVSWITCH=null;this.DBLAYERQUERY=null;this.LINEPRIMITIVE=null;this.POLYGONPRIMITIVE=null;this.RECTANGLEPRIMITIVE=null;this.ELLIPSEPRIMITIVE=null;this.TEXTPRIMITIVE=null;this.SYMBOLPRIMITIVE=null;this.LATLNG=null;this.POINT=null;this.POINTFEATURE=null;this.LINEFEATURE=null;this.POLYGONFEATURE=null;this.LOCATION=null;this.ADDRESS=null;this.GEOADDRESS=null;this.GEOCODEOPTIONS=null;this.MANEUVER=null;this.ROUTEOPTIONS=null;this.ROUTERESULTS=null;this.ROUTEMATRIXRESULTS=null;this.RADIUSSEARCHCRITERIA=null;this.RECTSEARCHCRITERIA=null;this.POLYSEARCHCRITERIA=null;this.CORRIDORSEARCHCRITERIA=null;this.SIGN=null;this.TREKROUTE=null;this.INTCOLLECTION=null;this.DTCOLLECTION=null;this.LATLNGCOLLECTION=null;this.LOCATIONCOLLECTION=null;this.MANEUVERCOLLECTION=null;this.SIGNCOLLECTION=null;this.STRINGCOLLECTION=null;this.STRCOLCOLLECTION=null;this.FEATURECOLLECTION=null;this.POINTCOLLECTION=null;this.TREKROUTECOLLECTION=null;this.FEATURESPECIFIERCOLLECTION=null;this.GEOCODEOPTIONSCOLLECTION=null;this.COVERAGESTYLE=null;this.RECORDSET=null;this.MAPSTATE=null;this.SESSION=null;this.SESSIONID=null;this.DTSTYLE=null;this.DTSTYLEEX=null;this.DTFEATURESTYLEEX=null;this.FEATURESPECIFIER=null;this.BESTFIT=null;this.BESTFITLL=null;this.CENTER=null;this.CENTERLATLNG=null;this.PAN=null;this.ZOOMIN=null;this.ZOOMOUT=null;this.ZOOMTO=null;this.ZOOMTORECT=null;this.ZOOMTORECTLATLNG=null;this.getAUTOGEOCODECOVSWITCH=function(){if(this.AUTOGEOCODECOVSWITCH===null){this.AUTOGEOCODECOVSWITCH=mqCreateXMLDoc("<AutoGeocodeCovSwitch/>")}return this.AUTOGEOCODECOVSWITCH};this.getAUTOROUTECOVSWITCH=function(){if(this.AUTOROUTECOVSWITCH===null){this.AUTOROUTECOVSWITCH=mqCreateXMLDoc('<AutoRouteCovSwitch><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/></AutoRouteCovSwitch>')}return this.AUTOROUTECOVSWITCH};this.getAUTOMAPCOVSWITCH=function(){if(this.AUTOMAPCOVSWITCH===null){this.AUTOMAPCOVSWITCH=mqCreateXMLDoc('<AutoMapCovSwitch><Name/><Style/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/><ZoomLevels Count="14"><Item>6000</Item><Item>12000</Item><Item>24000</Item><Item>48000</Item><Item>96000</Item><Item>192000</Item><Item>400000</Item><Item>800000</Item><Item>1600000</Item><Item>3000000</Item><Item>6000000</Item><Item>12000000</Item><Item>24000000</Item><Item>48000000</Item></ZoomLevels></AutoMapCovSwitch>')}return this.AUTOMAPCOVSWITCH};this.getDBLAYERQUERY=function(){if(this.DBLAYERQUERY===null){this.DBLAYERQUERY=mqCreateXMLDoc("<DBLayerQuery/>")}return this.DBLAYERQUERY};this.getLINEPRIMITIVE=function(){if(this.LINEPRIMITIVE===null){this.LINEPRIMITIVE=mqCreateXMLDoc('<LinePrimitive Version="2"/>')}return this.LINEPRIMITIVE};this.getPOLYGONPRIMITIVE=function(){if(this.POLYGONPRIMITIVE===null){this.POLYGONPRIMITIVE=mqCreateXMLDoc('<PolygonPrimitive Version="2"/>')}return this.POLYGONPRIMITIVE};this.getRECTANGLEPRIMITIVE=function(){if(this.RECTANGLEPRIMITIVE===null){this.RECTANGLEPRIMITIVE=mqCreateXMLDoc('<RectanglePrimitive Version="2"/>')}return this.RECTANGLEPRIMITIVE};this.getELLIPSEPRIMITIVE=function(){if(this.ELLIPSEPRIMITIVE===null){this.ELLIPSEPRIMITIVE=mqCreateXMLDoc('<EllipsePrimitive Version="2"/>')}return this.ELLIPSEPRIMITIVE};this.getTEXTPRIMITIVE=function(){if(this.TEXTPRIMITIVE===null){this.TEXTPRIMITIVE=mqCreateXMLDoc('<TextPrimitive Version="2"/>')}return this.TEXTPRIMITIVE};this.getSYMBOLPRIMITIVE=function(){if(this.SYMBOLPRIMITIVE===null){this.SYMBOLPRIMITIVE=mqCreateXMLDoc('<SymbolPrimitive Version="2"/>')}return this.SYMBOLPRIMITIVE};this.getLATLNG=function(){if(this.LATLNG===null){this.LATLNG=mqCreateXMLDoc("<LatLng/>")}return this.LATLNG};this.getPOINT=function(){if(this.POINT===null){this.POINT=mqCreateXMLDoc("<Point/>")}return this.POINT};this.getPOINTFEATURE=function(){if(this.POINTFEATURE===null){this.POINTFEATURE=mqCreateXMLDoc("<PointFeature/>")}return this.POINTFEATURE};this.getLINEFEATURE=function(){if(this.LINEFEATURE===null){this.LINEFEATURE=mqCreateXMLDoc("<LineFeature/>")}return this.LINEFEATURE};this.getPOLYGONFEATURE=function(){if(this.POLYGONFEATURE===null){this.POLYGONFEATURE=mqCreateXMLDoc("<PolygonFeature/>")}return this.POLYGONFEATURE};this.getLOCATION=function(){if(this.LOCATION===null){this.LOCATION=mqCreateXMLDoc("<Location/>")}return this.LOCATION};this.getADDRESS=function(){if(this.ADDRESS===null){this.ADDRESS=mqCreateXMLDoc("<Address/>")}return this.ADDRESS};this.getGEOADDRESS=function(){if(this.GEOADDRESS===null){this.GEOADDRESS=mqCreateXMLDoc("<GeoAddress/>")}return this.GEOADDRESS};this.getGEOCODEOPTIONS=function(){if(this.GEOCODEOPTIONS===null){this.GEOCODEOPTIONS=mqCreateXMLDoc("<GeocodeOptions/>")}return this.GEOCODEOPTIONS};this.getMANEUVER=function(){if(this.MANEUVER===null){this.MANEUVER=mqCreateXMLDoc('<Maneuver Version="1"><Narrative/><Streets Count="0"/><TurnType>-1</TurnType><Distance>0.0</Distance><Time>-1</Time><Direction>0</Direction><ShapePoints Count="0"/><GEFIDs Count="0"/><Signs  Count="0"/></Maneuver>')}return this.MANEUVER};this.getROUTEOPTIONS=function(){if(this.ROUTEOPTIONS===null){this.ROUTEOPTIONS=mqCreateXMLDoc('<RouteOptions Version="3"><RouteType>0</RouteType><NarrativeType>1</NarrativeType><NarrativeDistanceUnitType>0</NarrativeDistanceUnitType><MaxShape>0</MaxShape><MaxGEFID>0</MaxGEFID><Language>English</Language><CoverageName>navt_r</CoverageName><CovSwitcher><Name></Name><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/></CovSwitcher><AvoidAttributeList Count="0"/><AvoidGefIdList Count="0"/><AvoidAbsoluteGefIdList Count="0"/><StateBoundaryDisplay>1</StateBoundaryDisplay><CountryBoundaryDisplay>1</CountryBoundaryDisplay></RouteOptions>')}return this.ROUTEOPTIONS};this.getROUTERESULTS=function(){if(this.ROUTERESULTS===null){this.ROUTERESULTS=mqCreateXMLDoc('<RouteResults Version="1"><Locations Count="0"/><CoverageName/><ResultMessages Count="0"/><TrekRoutes Count="0"/></RouteResults>')}return this.ROUTERESULTS};this.getROUTEMATRIXRESULTS=function(){if(this.ROUTEMATRIXRESULTS===null){this.ROUTEMATRIXRESULTS=mqCreateXMLDoc("<RouteMatrixResults/>")}return this.ROUTEMATRIXRESULTS};this.getRADIUSSEARCHCRITERIA=function(){if(this.RADIUSSEARCHCRITERIA===null){this.RADIUSSEARCHCRITERIA=mqCreateXMLDoc("<RadiusSearchCriteria/>")}return this.RADIUSSEARCHCRITERIA};this.getRECTSEARCHCRITERIA=function(){if(this.RECTSEARCHCRITERIA===null){this.RECTSEARCHCRITERIA=mqCreateXMLDoc("<RectSearchCriteria/>")}return this.RECTSEARCHCRITERIA};this.getPOLYSEARCHCRITERIA=function(){if(this.POLYSEARCHCRITERIA===null){this.POLYSEARCHCRITERIA=mqCreateXMLDoc("<PolySearchCriteria/>")}return this.POLYSEARCHCRITERIA};this.getCORRIDORSEARCHCRITERIA=function(){if(this.CORRIDORSEARCHCRITERIA===null){this.CORRIDORSEARCHCRITERIA=mqCreateXMLDoc("<CorridorSearchCriteria/>")}return this.CORRIDORSEARCHCRITERIA};this.getSIGN=function(){if(this.SIGN===null){this.SIGN=mqCreateXMLDoc("<Sign><Type>0</Type><Text></Text><ExtraText></ExtraText><Direction>0</Direction></Sign>")}return this.SIGN};this.getTREKROUTE=function(){if(this.TREKROUTE===null){this.TREKROUTE=mqCreateXMLDoc('<TrekRoute><Maneuvers Count="0"/></TrekRoute>')}return this.TREKROUTE};this.getINTCOLLECTION=function(){if(this.INTCOLLECTION===null){this.INTCOLLECTION=mqCreateXMLDoc('<IntCollection Count="0"/>')}return this.INTCOLLECTION};this.getDTCOLLECTION=function(){if(this.DTCOLLECTION===null){this.DTCOLLECTION=mqCreateXMLDoc('<DTCollection Version="1" Count="0"/>')}return this.DTCOLLECTION};this.getLATLNGCOLLECTION=function(){if(this.LATLNGCOLLECTION===null){this.LATLNGCOLLECTION=mqCreateXMLDoc('<LatLngCollection Version="1" Count="0"/>')}return this.LATLNGCOLLECTION};this.getLOCATIONCOLLECTION=function(){if(this.LOCATIONCOLLECTION===null){this.LOCATIONCOLLECTION=mqCreateXMLDoc('<LocationCollection Count="0"/>')}return this.LOCATIONCOLLECTION};this.getMANEUVERCOLLECTION=function(){if(this.MANEUVERCOLLECTION===null){this.MANEUVERCOLLECTION=mqCreateXMLDoc('<ManeuverCollection Count="0"/>')}return this.MANEUVERCOLLECTION};this.getSIGNCOLLECTION=function(){if(this.SIGNCOLLECTION===null){this.SIGNCOLLECTION=mqCreateXMLDoc('<SignCollection Count="0"/>')}return this.SIGNCOLLECTION};this.getSTRINGCOLLECTION=function(){if(this.STRINGCOLLECTION===null){this.STRINGCOLLECTION=mqCreateXMLDoc('<StringCollection Count="0"/>')}return this.STRINGCOLLECTION};this.getSTRCOLCOLLECTION=function(){if(this.STRCOLCOLLECTION===null){this.STRCOLCOLLECTION=mqCreateXMLDoc("<StrColCollectin/>")}return this.STRCOLCOLLECTION};this.getFEATURECOLLECTION=function(){if(this.FEATURECOLLECTION===null){this.FEATURECOLLECTION=mqCreateXMLDoc('<FeatureCollection Count="0"/>')}return this.FEATURECOLLECTION};this.getPOINTCOLLECTION=function(){if(this.POINTCOLLECTION===null){this.POINTCOLLECTION=mqCreateXMLDoc('<PointCollection Count="0"/>')}return this.POINTCOLLECTION};this.getTREKROUTECOLLECTION=function(){if(this.TREKROUTECOLLECTION===null){this.TREKROUTECOLLECTION=mqCreateXMLDoc('<TrekRouteCollection Count="0"/>')}return this.TREKROUTECOLLECTION};this.getFEATURESPECIFIERCOLLECTION=function(){if(this.FEATURESPECIFIERCOLLECTION===null){this.FEATURESPECIFIERCOLLECTION=mqCreateXMLDoc('<FeatureSpecifierCollection Count="0"/>')}return this.FEATURESPECIFIERCOLLECTION};this.getGEOCODEOPTIONSCOLLECTION=function(){if(this.GEOCODEOPTIONSCOLLECTION===null){this.GEOCODEOPTIONSCOLLECTION=mqCreateXMLDoc('<GeocodeOptionsCollection Count="0"/>')}return this.GEOCODEOPTIONSCOLLECTION};this.getCOVERAGESTYLE=function(){if(this.COVERAGESTYLE===null){this.COVERAGESTYLE=mqCreateXMLDoc("<CoverageStyle/>")}return this.COVERAGESTYLE};this.getRECORDSET=function(){if(this.RECORDSET===null){this.RECORDSET=mqCreateXMLDoc("<RecordSet/>")}return this.RECORDSET};this.getMAPSTATE=function(){if(this.MAPSTATE===null){this.MAPSTATE=mqCreateXMLDoc("<MapState/>")}return this.MAPSTATE};this.getSESSION=function(){if(this.SESSION===null){this.SESSION=mqCreateXMLDoc('<Session Count="0"/>')}return this.SESSION};this.getSESSIONID=function(){if(this.SESSIONID===null){this.SESSIONID=mqCreateXMLDoc("<SessionID/>")}return this.SESSIONID};this.getDTSTYLE=function(){if(this.DTSTYLE===null){this.DTSTYLE=mqCreateXMLDoc("<DTStyle/>")}return this.DTSTYLE};this.getDTSTYLEEX=function(){if(this.DTSTYLEEX===null){this.DTSTYLEEX=mqCreateXMLDoc("<DTStyleEx/>")}return this.DTSTYLEEX};this.getDTFEATURESTYLEEX=function(){if(this.DTFEATURESTYLEEX===null){this.DTFEATURESTYLEEX=mqCreateXMLDoc("<DTFeatureStyleEx/>")}return this.DTFEATURESTYLEEX};this.getFEATURESPECIFIER=function(){if(this.FEATURESPECIFIER===null){this.FEATURESPECIFIER=mqCreateXMLDoc("<FeatureSpecifier/>")}return this.FEATURESPECIFIER};this.getBESTFIT=function(){if(this.BESTFIT===null){this.BESTFIT=mqCreateXMLDoc('<BestFit Version="2"/>')}return this.BESTFIT};this.getBESTFITLL=function(){if(this.BESTFITLL===null){this.BESTFITLL=mqCreateXMLDoc('<BestFitLL Version="2"/>')}return this.BESTFITLL};this.getCENTER=function(){if(this.CENTER===null){this.CENTER=mqCreateXMLDoc("<Center/>")}return this.CENTER};this.getCENTERLATLNG=function(){if(this.CENTERLATLNG===null){this.CENTERLATLNG=mqCreateXMLDoc("<CenterLatLng/>")}return this.CENTERLATLNG};this.getPAN=function(){if(this.PAN===null){this.PAN=mqCreateXMLDoc("<Pan/>")}return this.PAN};this.getZOOMIN=function(){if(this.ZOOMIN===null){this.ZOOMIN=mqCreateXMLDoc("<ZoomIn/>")}return this.ZOOMIN};this.getZOOMOUT=function(){if(this.ZOOMOUT===null){this.ZOOMOUT=mqCreateXMLDoc("<ZoomOut/>")}return this.ZOOMOUT};this.getZOOMTO=function(){if(this.ZOOMTO===null){this.ZOOMTO=mqCreateXMLDoc("<ZoomTo/>")}return this.ZOOMTO};this.getZOOMTORECT=function(){if(this.ZOOMTORECT===null){this.ZOOMTORECT=mqCreateXMLDoc("<ZoomToRect/>")}return this.ZOOMTORECT};this.getZOOMTORECTLATLNG=function(){if(this.ZOOMTORECTLATLNG===null){this.ZOOMTORECTLATLNG=mqCreateXMLDoc("<ZoomToRectLatLng/>")}return this.ZOOMTORECTLATLNG}}var MQXML=new MQXMLDOC();MQSign.prototype=new MQObject();MQSign.prototype.constructor=MQSign;function MQSign(){MQObject.call(this);this.setM_Xpath("Sign");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGN()))}MQSign.prototype.getClassName=function(){return"MQSign"};MQSign.prototype.getObjectVersion=function(){return 0};MQSign.prototype.loadXml=function(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(d){this.setM_XmlDoc(mqCreateXMLDoc(d));var e=this.getCenterLatLng();var a=this.getCenterPoint();var b=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng");var c=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint");if(b!==null){e.loadXmlFromNode(b)}if(c!==null){a.loadXmlFromNode(c)}};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 a=new MQLatLngCollection();a.setM_Xpath("LatLngs");this.getLatLngs=function(){return a};this.setLatLngs=function(c){if(c.getClassName()==="MQLatLngCollection"){a.removeAll();a.append(c)}else{alert("failure in setLatLngs");throw"failure in setLatLngs"}};var b=new MQPointCollection();b.setM_Xpath("Points");this.getPoints=function(){return b};this.setPoints=function(c){b.removeAll();b.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 e=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){e.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))}var b=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){b.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 c=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){c.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(d){this.setM_XmlDoc(mqCreateXMLDoc(d));var e=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){e.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))}var b=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){b.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 c=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){c.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())};MQLocation.prototype.getAdminArea=function(a){return this.getProperty("AdminArea"+a)};MQLocation.prototype.setAdminArea=function(b,a){this.setProperty("AdminArea"+b,a)};MQLocation.prototype.getCountry=function(){return this.getProperty("AdminArea1")};MQLocation.prototype.setCountry=function(a){this.setProperty("AdminArea1",a)};MQLocation.prototype.getCounty=function(){return this.getProperty("AdminArea4")};MQLocation.prototype.setCounty=function(a){this.setProperty("AdminArea4",a)};MQLocation.prototype.getCity=function(){return this.getProperty("AdminArea5")};MQLocation.prototype.setCity=function(a){this.setProperty("AdminArea5",a)};MQLocation.prototype.getPostalCode=function(){return this.getProperty("PostalCode")};MQLocation.prototype.setPostalCode=function(a){this.setProperty("PostalCode",a)};MQLocation.prototype.getState=function(){return this.getProperty("AdminArea3")};MQLocation.prototype.setState=function(a){this.setProperty("AdminArea3",a)};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.setStreet=function(a){this.setProperty("Street",a)};MQAddress.prototype.getStreet=function(){return this.getProperty("Street")};MQGeoAddress.prototype=new MQAddress();MQGeoAddress.prototype.constructor=MQGeoAddress;function MQGeoAddress(){MQAddress.call(this);this.setM_Xpath("GeoAddress");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOADDRESS()));var 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(c){this.setM_XmlDoc(mqCreateXMLDoc(c));var b=this.getProperty("LatLng/Lat");var a=this.getProperty("LatLng/Lng");this.getMQLatLng().setLatLng(b,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 d=new MQStringCollection("Item");d.setM_Xpath("Streets");this.getStreets=function(){return d};this.setStreets=function(e){d.removeAll();d.append(e)};var c=new MQLatLngCollection();c.setM_Xpath("ShapePoints");this.getShapePoints=function(){return c};this.setShapePoints=function(e){if(e.getClassName()==="MQLatLngCollection"){c.removeAll();c.append(e)}else{alert("failure in setShapePoints");throw"failure in setShapePoints"}};var a=new MQIntCollection("Item");a.setM_Xpath("GEFIDs");this.getGEFIDs=function(){return a};this.setGEFIDs=function(e){a.removeAll();a.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 b=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints")!==null){b.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints"))}var c=this.getGEFIDs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")!==null){c.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 d=new MQManeuverCollection("Maneuver");d.setM_Xpath("Maneuvers");this.getManeuvers=function(){return d};var c=null;this.getShapePoints=function(){if(c===null){b=0;a=0;c=new MQLatLngCollection();c.setM_Xpath("ShapePoints");for(var e=0;e<this.getManeuvers().getSize();e++){c.append(this.getManeuvers().get(e).getShapePoints());b+=parseFloat(this.getManeuvers().get(e).getDistance());a+=parseInt(this.getManeuvers().get(e).getTime())}}return c};var b=null;this.getDistance=function(){if(b===null){b=0;a=0;c=new MQLatLngCollection();c.setM_Xpath("ShapePoints");for(var e=0;e<this.getManeuvers().getSize();e++){c.append(this.getManeuvers().get(e).getShapePoints());b+=parseFloat(this.getManeuvers().get(e).getDistance());a+=parseInt(this.getManeuvers().get(e).getTime())}}return b};var a=null;this.getTime=function(){if(a===null){b=0;a=0;c=new MQLatLngCollection();c.setM_Xpath("ShapePoints");for(var e=0;e<this.getManeuvers().getSize();e++){c.append(this.getManeuvers().get(e).getShapePoints());b+=parseFloat(this.getManeuvers().get(e).getDistance());a+=parseInt(this.getManeuvers().get(e).getTime())}}return a}}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("Name",a)};MQGeocodeOptions.prototype.getCoverageName=function(){return this.getProperty("Name")};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 c=new MQStringCollection();c.setM_Xpath("AvoidAttributeList");this.getAvoidAttrList=function(){return c};this.setAvoidAttrList=function(h){c.removeAll();c.append(h)};var e=new MQIntCollection();e.setM_Xpath("AvoidGefIdList");this.getAvoidGefIdList=function(){return e};this.setAvoidGefIdList=function(h){e.removeAll();e.append(h)};var g=new MQIntCollection();g.setM_Xpath("AvoidAbsoluteGefIdList");this.getAvoidAbsGefIdList=function(){return g};this.setAvoidAbsGefIdList=function(h){g.removeAll();g.append(h)};var f=new MQAutoRouteCovSwitch("CovSwitcher");this.getAutoRouteCovSwitch=function(){return f};this.setAutoRouteCovSwitch=function(h){f=h};var d=new MQRouteType(0);this.getRouteType=function(){return d};this.setRouteType=function(h){d=h};var b=new MQNarrativeType(0);this.getNarrativeType=function(){return b};this.setNarrativeType=function(h){b=h};var a=new MQDistanceUnits(0);this.getDistanceUnits=function(){return a};this.setDistanceUnits=function(h){a=h}}MQRouteOptions.prototype.getClassName=function(){return"MQRouteOptions"};MQRouteOptions.prototype.getObjectVersion=function(){return 3};MQRouteOptions.prototype.loadXml=function(e){this.setM_XmlDoc(mqCreateXMLDoc(e));var a=this.getAvoidAttrList();a.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAttributeList")));var d=this.getAvoidGefIdList();d.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidGefIdList")));var c=this.getAvoidAbsGefIdList();c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAbsoluteGefIdList")));var b=this.getAutoRouteCovSwitch();b.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 a=new MQLocationCollection();a.setM_Xpath("Locations");this.getLocations=function(){return a};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 c=new MQStringCollection("Item");c.setM_Xpath("ResultMessages");this.getResultMessages=function(){return c};var g=null;this.getShapePoints=function(){if(g===null){f=0;e=0;g=new MQLatLngCollection();g.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++){g.append(h.getManeuvers().get(j).getShapePoints());f+=parseFloat(h.getManeuvers().get(j).getDistance());e+=parseInt(h.getManeuvers().get(j).getTime())}}}return g};var f=-1;this.getDistance=function(){if(f===-1){f=0;e=0;g=new MQLatLngCollection();g.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++){g.append(h.getManeuvers().get(j).getShapePoints());f+=parseFloat(h.getManeuvers().get(j).getDistance());e+=parseInt(h.getManeuvers().get(j).getTime())}}}return f};var e=-1;this.getTime=function(){if(e===-1){f=0;e=0;g=new MQLatLngCollection();g.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++){g.append(h.getManeuvers().get(j).getShapePoints());f+=parseFloat(h.getManeuvers().get(j).getDistance());e+=parseInt(h.getManeuvers().get(j).getTime())}}}return e}}MQRouteResults.prototype.getClassName=function(){return"MQRouteResults"};MQRouteResults.prototype.getObjectVersion=function(){return 1};MQRouteResults.prototype.loadXml=function(d){this.setM_XmlDoc(mqCreateXMLDoc(d));var c=this.getLocations();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")!==null){c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")))}var b=this.getTrekRoutes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")!==null){b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")))}var a=this.getResultMessages();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){a.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 a=null;this.setDistance=function(f){if(f){if(f.getClassName()==="MQIntCollection"){if(a!==null){a.removeAll();a.append(f)}else{a=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(h,g){if(d===-1){d=this.getProperty("LocationCount")}var f=((h*d)+g);return(a.get(f)/1000).toFixed(6)};var e=null;this.setTime=function(f){if(f){if(f.getClassName()==="MQIntCollection"){if(e!==null){e.removeAll();e.append(f)}else{e=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(h,g){if(d===-1){d=this.getProperty("LocationCount")}var f=((h*d)+g);return e.get(f)};var b=new MQRouteMatrixResultsCode(MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return b};this.setResultCode=function(f){if(f){if(f.getClassName()==="MQRouteMatrixResultsCode"){b=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 c=null;this.setResultMessages=function(f){if(f){if(f.getClassName()==="MQStringCollection"){if(c!==null){c.removeAll();c.append(f)}else{c=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 c}}MQRouteMatrixResults.prototype.getClassName=function(){return"MQRouteMatrixResults"};MQRouteMatrixResults.prototype.getObjectVersion=function(){return 0};MQRouteMatrixResults.prototype.loadXml=function(c){this.setM_XmlDoc(mqCreateXMLDoc(c));var b=new MQIntCollection();b.setM_Xpath("DistanceMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")!==null){b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")))}this.setDistance(b);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 a=new MQStringCollection();a.setM_Xpath("ResultMessages");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){a.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")))}this.setResultMessages(a);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 b=true;var d=true;var e=0;var a=-1;var c=new MQStringCollection();c.setM_Xpath("Fields");var f=new MQStrColCollection("Record");f.setM_Xpath("Records");f.setValidClassName("MQStringCollection");this.moveFirst=function(){if(f.getSize()!==0){b=false;d=false;a=0}else{alert(MQERROR.RECORDSET_MOVEFIRST_1);throw MQERROR.RECORDSET_MOVEFIRST_1}};this.moveLast=function(){if(f.getSize()!==0){b=false;d=false;a=f.getSize()-1}else{alert(MQERROR.RECORDSET_MOVELAST_1);throw MQERROR.RECORDSET_MOVELAST_1}};this.moveNext=function(){var g=f.getSize();if(g!==0){if(a<g-1){a++;d=false;b=false}else{if(a===g-1){a++;d=false;b=true}else{if(b){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 d};this.isEOF=function(){return b};this.getFieldNames=function(){return c};this.getField=function(h){if(!(0<=a&&a<e)){alert(MQERROR.RECORDSET_GETFIELD_1);throw MQERROR.RECORDSET_GETFIELD_1}var j=-1;for(var g=0;g<c.getSize();g++){if(c.get(g)===h){j=g;break}}if(j===-1){alert(MQERROR.RECORDSET_GETFIELD_2);throw MQERROR.RECORDSET_GETFIELD_2}return f.get(a).get(j)};this.loadXml=function(n){var m=mqCreateXMLDoc(n);this.setM_XmlDoc(m);c.loadXml(mqXmlToStr(mqGetNode(m,"/"+this.getM_Xpath()+"/Fields")));if(m!==null){var g=m.documentElement;var h=g.childNodes;var l=h.length;l=(l<32678)?l:32678;var k=0;var i=null;f.removeAll();for(var j=k;j<l;j++){if(h[j].nodeName==="Record"){i=new MQStringCollection();i.setM_Xpath("Record");i.loadXml(mqXmlToStr(h[j]));f.add(i)}}}e=this.getProperty("RecordCount");if(e>0){a=0;d=false;b=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(a){if(a){try{if(a.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(b){}}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(b,a){if(a){this.setProperty("Height",parseFloat(b)/parseFloat(a))}else{this.setProperty("Height",parseFloat(b)/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(c){this.setM_XmlDoc(mqCreateXMLDoc(c));var b=this.getProperty("Center/Lat");var a=this.getProperty("Center/Lng");this.getCenter().setLatLng(b,a)};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(c){this.setM_XmlDoc(mqCreateXMLDoc(c));var b=this.getProperty("CenterLatLng/Lat");var a=this.getProperty("CenterLatLng/Lng");this.getCenter().setLatLng(b,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(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("Radius",a)};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(b){MQObject.call(this);this.setM_Xpath("RectSearchCriteria");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECTSEARCHCRITERIA()));var a=new MQLatLng("UpperLeftLatLng");this.getUpperLeft=function(){return a};this.setUpperLeft=function(d){a.setLatLng(d.getLatitude(),d.getLongitude())};var c=new MQLatLng("LowerRightLatLng");this.getLowerRight=function(){return c};this.setLowerRight=function(d){c.setLatLng(d.getLatitude(),d.getLongitude())};if(b){a.setLatLng(b.getUpperLeft().getLat(),b.getUpperLeft().getLng());c.setLatLng(b.getLowerRight().getLat(),b.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(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("CorridorWidth",b)};MQCorridorSearchCriteria.prototype.getCorridorWidth=function(a){if(a){mqIsClass("MQDistanceUnits",a,false)}else{a=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}var b=this.getProperty("CorridorWidth");if(a.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){b=b*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}return b};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(a){if(a){mqIsClass("MQDistanceUnits",a,false)}else{a=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}var b=this.getProperty("CorridorBufferWidth");if(a.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){b=b*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}return b};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 c=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return c};this.setColor=function(e){if(e){if(e.getClassName()==="MQColorStyle"){c=e}}};var d=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return d};this.setStyle=function(e){if(e){if(e.getClassName()==="MQPenStyle"){d=e}}};var a=new MQPointCollection();a.setM_Xpath("Points");this.getPoints=function(){return a};var b=new MQLatLngCollection();b.setM_Xpath("LatLngs");this.getLatLngs=function(){return b};this.setLatLngs=function(e){if(e){if(e.getClassName()==="MQLatLngCollection"){b.removeAll();b.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 d=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return d};this.setColor=function(i){if(i){if(i.getClassName()==="MQColorStyle"){d=i}}};var g=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return g};this.setStyle=function(i){if(i){if(i.getClassName()==="MQPenStyle"){g=i}}};var h=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return h};this.setFillColor=function(i){if(i){if(i.getClassName()==="MQColorStyle"){h=i}}};var a=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return a};this.setFillStyle=function(i){if(i){if(i.getClassName()==="MQFillStyle"){a=i}}};var c=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return c};this.setUpperLeftLatLng=function(i){c.setLatLng(i.getLatitude(),i.getLongitude())};var f=new MQLatLng("LowerRightLatLng");this.getLowerRightLatLng=function(){return f};this.setLowerRightLatLng=function(i){f.setLatLng(i.getLatitude(),i.getLongitude())};var b=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return b};this.setUpperLeftPoint=function(i){b.setXY(i.getX(),i.getY())};var e=new MQPoint("LowerRightPoint");this.getLowerRightPoint=function(){return e};this.setLowerRightPoint=function(i){e.setXY(i.getX(),i.getY())}}MQRectanglePrimitive.prototype.getClassName=function(){return"MQRectanglePrimitive"};MQRectanglePrimitive.prototype.getObjectVersion=function(){return 0};MQRectanglePrimitive.prototype.loadXml=function(b){this.setM_XmlDoc(mqCreateXMLDoc(b));var c=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")))}c=this.getLowerRightLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){c.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 b=new MQPoint("CenterPoint");this.getCenterPoint=function(){return b};this.setCenterPoint=function(d){b.setXY(d.getX(),d.getY())};var a=new MQLatLng("CenterLatLng");this.getCenterLatLng=function(){return a};this.setCenterLatLng=function(d){a.setLatLng(d.getLatitude(),d.getLongitude())};var c=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return c};this.setSymbolType=function(d){if(d){if(d.getClassName()==="MQSymbolType"){c=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 d=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return d};this.setUpperLeftPoint=function(h){d.setXY(h.getX(),h.getY())};var c=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return c};this.setUpperLeftLatLng=function(h){c.setLatLng(h.getLatitude(),h.getLongitude())};var f=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return f};this.setColor=function(h){if(h){if(h.getClassName()==="MQColorStyle"){f=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 a=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_WHITE);this.getBkgdColor=function(){return a};this.setBkgdColor=function(h){if(h){if(h.getClassName()==="MQColorStyle"){a=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 e=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getOutlineColor=function(){return e};this.setOutlineColor=function(h){if(h){if(h.getClassName()==="MQColorStyle"){e=h}}}}MQTextPrimitive.prototype.getClassName=function(){return"MQTextPrimitive"};MQTextPrimitive.prototype.getObjectVersion=function(){return 0};MQTextPrimitive.prototype.loadXml=function(b){this.setM_XmlDoc(mqCreateXMLDoc(b));var c=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")))}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")))}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 b=c.getClassName()}catch(a){alert("Invalid type for this function!");throw"Invalid type for this function!"}if(b===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 c=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontColor=function(){return c};this.setFontColor=function(g){if(g){if(g.getClassName()==="MQColorStyle"){c=g}}};var b=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontOutlineColor=function(){return b};this.setFontOutlineColor=function(g){if(g){if(g.getClassName()==="MQColorStyle"){b=g}}};var f=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxBkgdColor=function(){return f};this.setFontBoxBkgdColor=function(g){if(g){if(g.getClassName()==="MQColorStyle"){f=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 d=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_INVALID);this.getFontStyle=function(){return d};this.setFontStyle=function(g){if(g){if(g.getClassName()==="MQFontStyle"){d=g}}};var e=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return e};this.setSymbolType=function(g){if(g){if(g.getClassName()==="MQSymbolType"){e=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(b){this.setM_XmlDoc(mqCreateXMLDoc(b));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")))}};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(b){this.setM_XmlDoc(mqCreateXMLDoc(b));var a=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){a.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(b){this.setM_XmlDoc(mqCreateXMLDoc(b));var a=this.getPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")!==null){a.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(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")))}};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(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")))}};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 a=new MQPoint("UpperLeftPoint");var b=new MQPoint("LowerRightPoint");this.getRect=function(c,d){c.loadXml(a.copy().saveXml());d.loadXml(b.copy().saveXml())};this.setRect=function(c,d){if(mqIsClass(a.getClassName(),c,false)&&mqIsClass(b.getClassName(),d,false)){a=c.internalCopy(a);b=d.internalCopy(b)}}}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 c=new MQPoint("UpperLeftPoint"),a=new MQPoint("LowerRightPoint");this.getRect(c,a);var b=mqCreateXMLDoc(c.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftPoint"));b=mqCreateXMLDoc(a.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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 a=new MQLatLng("UpperLeftLatLng");var b=new MQLatLng("LowerRightLatLng");this.getRect=function(c,d){c.loadXml(a.copy().saveXml());d.loadXml(b.copy().saveXml())};this.setRect=function(c,d){if(mqIsClass(a.getClassName(),c,false)&&mqIsClass(b.getClassName(),d,false)){a=c.internalCopy(a);b=d.internalCopy(b)}}}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 c=new MQLatLng("UpperLeftLatLng"),a=new MQLatLng("LowerRightLatLng");this.getRect(c,a);var b=mqCreateXMLDoc(c.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftLatLng"));b=mqCreateXMLDoc(a.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc())};function MQType(){}MQType.prototype.equals=function(c){if(c){try{var b=c.getClassName()}catch(a){alert("Invalid type for this function!");throw"Invalid type for this function!"}if(b===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 f=-16777216;var e=parseInt(parseInt(this.intValue()/65536)%256);var d=parseInt(parseInt(parseInt(this.intValue()/256)%256)*256);var g=parseInt(parseInt(this.intValue()%256)*65536);return f+e+d+g};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};MQObjectCollection.prototype=new MQObject();MQObjectCollection.prototype.constructor=MQObjectCollection;function MQObjectCollection(a){MQObject.call(this);var e=new Array();this.getM_Items=function(){return e};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&&e.length===a){return}e.push(f);return e.length}return};this.getSize=function(){return e.length};this.get=function(f){return e[f]};this.remove=function(f){return e.splice(f,1)};this.removeAll=function(){e=null;e=new Array()};this.contains=function(h){var f=this.getSize();for(var g=0;g<f;g++){if(e[g]===h){return true}}return false};this.append=function(f){if(this.getClassName()===f.getClassName()){e=e.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(g,h){var f=get(g);e[g]=h;return f};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 d="Item";this.getM_itemXpath=function(){return d};this.setM_itemXpath=function(f){d=f};this.getById=function(g){try{for(var f=0;f<this.getSize();f++){if(e[f].getId()==g){return e[f]}}}catch(h){}return null};this.removeItem=function(g){for(var f=0;f<e.length;f++){if(e[f]==g){this.remove(f);f=e.length}}}}MQObjectCollection.prototype.getClassName=function(){return"MQObjectCollection"};MQObjectCollection.prototype.getObjectVersion=function(){return 0};MQObjectCollection.prototype.getAt=function(a){return this.get(a)};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(h){this.removeAll();var f=mqCreateXMLDoc(h);this.setM_XmlDoc(f);if(f!==null){var a=f.documentElement;var b=a.childNodes;var e=b.length;e=(e<32678)?e:32678;var d=0;var g=null;for(var c=d;c<e;c++){if(b[c].nodeName==="Address"){g=new MQAddress();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="GeoAddress"){g=new MQGeoAddress();g.loadXml(mqXmlToStr(b[c]))}}this.add(g)}}};MQLocationCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};MQLocationCollection.prototype.isValidObject=function(a){if(a){if(a.getClassName()==="MQGeoAddress"||a.getClassName()==="MQAddress"){return true}}return false};MQLatLngCollection.prototype=new MQObjectCollection(32678);MQLatLngCollection.prototype.constructor=MQLatLngCollection;function MQLatLngCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQLatLng");this.setM_Xpath("LatLngCollection");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLATLNGCOLLECTION()))}MQLatLngCollection.prototype.getClassName=function(){return"MQLatLngCollection"};MQLatLngCollection.prototype.getObjectVersion=function(){return 1};MQLatLngCollection.prototype.loadXml=function(j){this.removeAll();var k=mqCreateXMLDoc(j);this.setM_XmlDoc(k);if(k!==null){var h=k.documentElement;var a=h.childNodes;var c=a.length;c=(c<32678)?c:32678;var d=0;var i=0;var f=0;var g=0;var b=null;if(this.getValidClassName()==="MQLatLng"){for(var e=0;e<c;e++){if(e===0){if(a[e].firstChild!==null){d=a[e].firstChild.nodeValue/1000000}e++;if(a[e].firstChild!==null){i=a[e].firstChild.nodeValue/1000000}b=new MQLatLng(d,i)}else{if(a[e].firstChild!==null){f=d+(a[e].firstChild.nodeValue/1000000)}else{f=d}e++;if(a[e].firstChild!==null){g=i+(a[e].firstChild.nodeValue/1000000)}else{g=i}b=new MQLatLng(f.toFixed(6),g.toFixed(6))}this.add(b)}}}};MQLatLngCollection.prototype.loadXmlFromNode=function(j){this.removeAll();var k=mqCreateXMLDocImportNode(j);this.setM_XmlDoc(k);if(k!==null){var h=k.documentElement;var a=h.childNodes;var c=a.length;c=(c<32678)?c:32678;var d=0;var i=0;var f=0;var g=0;var b=null;if(this.getValidClassName()==="MQLatLng"){for(var e=0;e<c;e++){if(e===0){if(a[e].firstChild!==null){d=a[e].firstChild.nodeValue/1000000}e++;if(a[e].firstChild!==null){i=a[e].firstChild.nodeValue/1000000}b=new MQLatLng(d,i)}else{if(a[e].firstChild!==null){f=d+(a[e].firstChild.nodeValue/1000000)}else{f=d}e++;if(a[e].firstChild!==null){g=i+(a[e].firstChild.nodeValue/1000000)}else{g=i}b=new MQLatLng(f.toFixed(6),g.toFixed(6))}this.add(b)}}}};MQLatLngCollection.prototype.saveXml=function(){var g="<"+this.getM_Xpath()+' Version="'+this.getObjectVersion()+'" Count="'+this.getSize()+'">';var a=0;var e=0;var f=0;var b=0;var d=this.getSize();for(var c=0;c<d;c++){if(c===0){a=1000000*this.get(c).getLatitude();e=1000000*this.get(c).getLongitude();g+=" <Lat>"+a+"</Lat><Lng>"+e+"</Lng>"}else{f=(1000000*this.get(c).getLatitude())-a;b=(1000000*this.get(c).getLongitude())-e;g+=" <Lat>"+f+"</Lat><Lng>"+b+"</Lng>"}}g=g+"</"+this.getM_Xpath()+">";return g};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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var b=g.documentElement;var c=b.childNodes;var f=c.length;f=(f<32678)?f:32678;var e=0;var a=null;if(this.getValidClassName()==="MQSign"){for(var d=e;d<f;d++){a=new MQSign();a.setM_Xpath(this.getM_itemXpath());a.loadXml(mqXmlToStr(c[d]));this.add(a)}}}};MQSignCollection.prototype.loadXmlFromNode=function(f){var h=mqCreateXMLDocImportNode(f);this.setM_XmlDoc(h);if(h!==null){var b=h.documentElement;var c=b.childNodes;var g=c.length;g=(g<32678)?g:32678;var e=0;var a=null;if(this.getValidClassName()==="MQSign"){for(var d=e;d<g;d++){a=new MQSign();a.setM_Xpath(this.getM_itemXpath());a.loadXmlFromNode(c[d]);this.add(a)}}}};MQSignCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var a=g.documentElement;var b=a.childNodes;var f=b.length;f=(f<32678)?f:32678;var d=0;var e=null;if(this.getValidClassName()==="MQPoint"){for(var c=d;c<f;c++){e=new MQPoint(this.getM_itemXpath());e.loadXml(mqXmlToStr(b[c]));this.add(e)}}}};MQPointCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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 c=b.childNodes;var f=c.length;f=(f<32678)?f:32678;var e=0;var a=null;if(this.getValidClassName()==="MQDBLayerQuery"){for(var d=e;d<f;d++){a=new MQDBLayerQuery();a.setM_Xpath(this.getM_itemXpath());a.loadXml(mqXmlToStr(c[d]));this.add(a)}}}};MQDBLayerQueryCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var a=g.documentElement;var b=a.childNodes;var f=b.length;f=(f<32678)?f:32678;var d=0;var e=null;if(this.getValidClassName()==="MQManeuver"){for(var c=d;c<f;c++){e=new MQManeuver();e.setM_Xpath(this.getM_itemXpath());e.loadXml(mqXmlToStr(b[c]));this.add(e)}}}};MQManeuverCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var a=g.documentElement;var b=a.childNodes;var f=b.length;f=(f<32678)?f:32678;var e=0;var c=null;if(this.getValidClassName()==="MQTrekRoute"){for(var d=e;d<f;d++){c=new MQTrekRoute();c.setM_Xpath(this.getM_itemXpath());c.loadXml(mqXmlToStr(b[d]));this.add(c)}}}};MQTrekRouteCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";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(h){this.removeAll();var f=mqCreateXMLDoc(h);this.setM_XmlDoc(f);if(f!==null){var a=f.documentElement;var b=a.childNodes;var e=b.length;e=(e<32678)?e:32678;var d=0;var g=null;for(var c=d;c<e;c++){if(b[c].firstChild!==null){g=parseInt(b[c].firstChild.nodeValue)}else{g=0}this.add(g)}}};MQIntCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+"<"+this.getM_itemXpath()+">"+this.get(a)+"</"+this.getM_itemXpath()+">"}c=c+"</"+this.getM_Xpath()+">";return c};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 i=mqCreateXMLDoc(h);this.setM_XmlDoc(i);if(i!==null){var f=i.documentElement;var a=f.childNodes;var b=a.length;b=(b<32678)?b:32678;var c=0;var e=null;var g="";for(var d=c;d<b;d++){g=a[d].nodeName;if(g==="LineFeature"){e=new MQLineFeature();e.loadXml(mqXmlToStr(a[d]))}else{if(g==="PointFeature"){e=new MQPointFeature();e.loadXmlFromNode(a[d])}else{if(g==="PolygonFeature"){e=new MQPolygonFeature();e.loadXml(mqXmlToStr(a[d]))}}}this.add(e)}}};MQFeatureCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Version="'+this.getObjectVersion()+'" Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var a=g.documentElement;var b=a.childNodes;var f=b.length;f=(f<32678)?f:32678;var e=0;var c=null;for(var d=e;d<f;d++){if(b[d].nodeName==="FeatureSpecifier"){c=new MQFeatureSpecifier();c.loadXml(mqXmlToStr(b[d]))}this.add(c)}}};MQFeatureSpecifierCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var b=g.documentElement;var c=b.childNodes;var f=c.length;f=(f<32678)?f:32678;var e=0;var a=null;for(var d=e;d<f;d++){if(c[d].nodeName==="GeocodeOptions"){a=new MQGeocodeOptions();a.loadXml(mqXmlToStr(c[d]))}this.add(a)}}};MQGeocodeOptionsCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var a=g.documentElement;var b=a.childNodes;var f=b.length;f=(f<32678)?f:32678;var e=0;var d=null;for(var c=e;c<f;c++){if(b[c].nodeName==="DTStyle"){d=new MQDTStyle();d.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="DTStyleEx"){d=new MQDTStyleEx();d.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="DTFeatureStyleEx"){d=new MQDTFeatureStyleEx();d.loadXml(mqXmlToStr(b[c]))}}}if(d!==null){this.add(d)}d=null}}};MQCoverageStyle.prototype.saveXml=function(){var c='<CoverageStyle Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"<Name>"+this.getProperty("Name");+"</Name>";c=c+"</CoverageStyle>";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.getFEATURECOLLECTION()));this.setM_Xpath("FeatureCollection")}MQPrimitiveCollection.prototype.getClassName=function(){return"MQPrimitiveCollection"};MQPrimitiveCollection.prototype.getObjectVersion=function(){return 0};MQPrimitiveCollection.prototype.loadXml=function(h){this.removeAll();var g=mqCreateXMLDoc(h);this.setM_XmlDoc(g);if(g!==null){var b=g.documentElement;var c=b.childNodes;var f=c.length;f=(f<32678)?f:32678;var e=0;var a=null;for(var d=e;d<f;d++){if(c[d].nodeName==="EllipsePrimitive"){a=new MQEllipsePrimitive();a.loadXml(mqXmlToStr(c[d]))}else{if(c[d].nodeName==="LinePrimitive"){a=new MQLinePrimitive();a.loadXml(mqXmlToStr(c[d]))}else{if(c[d].nodeName==="PolygonPrimitive"){a=new MQPolygonPrimitive();a.loadXml(mqXmlToStr(c[d]))}else{if(c[d].nodeName==="RectanglePrimitive"){a=new MQRectanglePrimitive();a.loadXml(mqXmlToStr(c[d]))}else{if(c[d].nodeName==="TextPrimitive"){a=new MQTextPrimitive();a.loadXml(mqXmlToStr(c[d]))}else{if(c[d].nodeName==="SymbolPrimitive"){a=new MQSymbolPrimitive();a.loadXml(mqXmlToStr(c[d]))}}}}}}this.add(a)}}};MQPrimitiveCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(h){this.removeAll();var f=mqCreateXMLDoc(h);this.setM_XmlDoc(f);if(f!==null){var a=f.documentElement;var b=a.childNodes;var e=b.length;e=(e<32678)?e:32678;var d=0;var g=null;for(var c=d;c<e;c++){if(b[c].firstChild!==null){g=b[c].firstChild.nodeValue}else{g=""}this.add(g)}}};MQStringCollection.prototype.loadXmlFromNode=function(a){this.setM_XmlDoc(mqCreateXMLDocImportNode(a))};MQStringCollection.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+"<"+this.getM_itemXpath()+">"+this.get(a)+"</"+this.getM_itemXpath()+">"}c=c+"</"+this.getM_Xpath()+">";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="";var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c;return c};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(b){MQObject.call(this);if(this.getClassName()==="MQAutoRouteCovSwitch"){if(b){this.setM_Xpath(b);this.setM_XmlDoc(mqCreateXMLDoc("<"+b+'><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/></'+b+">"))}else{this.setM_Xpath("AutoRouteCovSwitch");this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOROUTECOVSWITCH()))}}var a=new MQIntCollection();a.setM_Xpath("DataVendorCodes");this.getDataVendorCodes=function(){return a}}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(h){var f=mqCreateXMLDoc(h);this.setM_XmlDoc(f);if(f!==null){var a=f.documentElement;var b=a.childNodes;var e=b.length;e=(e<32678)?e:32678;var d=0;var g=null;for(var c=d;c<e;c++){g=null;if(b[c].nodeName==="MapState"){g=new MQMapState();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="CoverageStyle"){g=new MQCoverageStyle();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="AutoMapCovSwitch"){g=new MQAutoMapCovSwitch();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="DBLayerQueryCollection"){g=new MQDBLayerQueryCollection();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="FeatureCollection"){g=new MQFeatureCollection();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="PrimitiveCollection"){g=new MQPrimitiveCollection();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="Center"){g=new MQCenter();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="CenterLL"){g=new MQCenterLL();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="ZoomIn"){g=new MQZoomIn();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="ZoomOut"){g=new MQZoomOut();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="ZoomTo"){g=new MQZoomTo();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="ZoomToRect"){g=new MQZoomToRect();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="ZoomToRectLL"){g=new MQZoomToRectLL();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="Pan"){g=new MQPan();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="BestFit"){g=new MQBestFit();g.loadXml(mqXmlToStr(b[c]))}else{if(b[c].nodeName==="BestFitLL"){g=new MQBestFitLL();g.loadXml(mqXmlToStr(b[c]))}}}}}}}}}}}}}}}}if(g!==null){this.add(g)}}}};MQSession.prototype.saveXml=function(){var c="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var b=this.getSize();for(var a=0;a<b;a++){c=c+this.get(a).saveXml()}c=c+"</"+this.getM_Xpath()+">";return c};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(e,c){var b=this.getSize();var d=e.getClassName();var a=0;if(this.isValidObject(e)){if(this.isMapCommandObject(e)){for(a=0;a<b;a++){if(isMapCommandObject(get(a))){break}}}else{for(a=0;a<b;a++){if(get(a).getClassId()==d){break}}}}else{alert("Invalid object for this collection.");throw ("Invalid object for this collection.")}if(a<b){c=this.set(a,e)}else{m_collection.add(e)}return a};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(b,c){var d=b;var a=c;this.saveXml=function(){return"<"+d+">"+a+"</"+d+">"}};