var a;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(b,c,d){if(c!==null){try{c.getClassName()}catch(e){throw"InvalidClassException";}if(c.getClassName()===b)return true;else throw"InvalidClassException";}else if(d)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=1.0E-6;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.MQTEXTALIGNMENT_CENTER=this.MQSYMBOLTYPE_VECTOR=1;this.MQTEXTALIGNMENT_LEFT=2;this.MQTEXTALIGNMENT_RIGHT=4;this.MQTEXTALIGNMENT_BASELINE=8;this.MQTEXTALIGNMENT_BOTTOM=16;this.MQTEXTALIGNMENT_TOP=32;this.MQFONTSTYLE_INVALID=-1;this.MQFONTSTYLE_NORMAL=0;this.MQFONTSTYLE_BOLD=1;this.MQFONTSTYLE_BOXED=2;this.MQFONTSTYLE_OUTLINED=4;this.MQFONTSTYLE_ITALICS=8;this.MQFONTSTYLE_UNDERLINE=16;this.MQFONTSTYLE_STRIKEOUT=32;this.MQFONTSTYLE_THIN=64;this.MQFONTSTYLE_SEMIBOLD=128;this.MQFONTSTYLE_MAX_VALUE=
256;this.MQBASEDTSTYLE_DT_NULL=65532;this.MQBASEDTSTYLE_CT_ROAD=0;this.MQBASEDTSTYLE_CT_LINE=1;this.MQBASEDTSTYLE_CT_POLYGON=2;this.MQBASEDTSTYLE_CT_POINT=3;this.MQBASEDTSTYLE_CT_POI=4;this.MQBASEDTSTYLE_CT_SEED=5;this.MQBASEDTSTYLE_CT_DISPLAYLIST=6;this.MQBASEDTSTYLE_CT_APP=7;this.MQBASEDTSTYLE_CT_XA=8;this.MQBASEDTSTYLE_BT_LINE=0;this.MQBASEDTSTYLE_BT_POLYGON=1;this.MQBASEDTSTYLE_BT_POINT=2;this.MQBASEDTSTYLE_BT_OTHER=3;this.MQBASEDTSTYLE_BT_XA=4;this.MQFEATURESPECIFERATTRIBUTETYPE_GEFID=0;this.MQFEATURESPECIFERATTRIBUTETYPE_NAME=
1;this.MQMATCHTYPE_LOC=0;this.MQMATCHTYPE_INTR=1;this.MQMATCHTYPE_NEARBLK=2;this.MQMATCHTYPE_REPBLK=3;this.MQMATCHTYPE_BLOCK=4;this.MQMATCHTYPE_AA1=5;this.MQMATCHTYPE_AA2=6;this.MQMATCHTYPE_AA3=7;this.MQMATCHTYPE_AA4=8;this.MQMATCHTYPE_AA5=9;this.MQMATCHTYPE_AA6=10;this.MQMATCHTYPE_AA7=11;this.MQMATCHTYPE_PC1=12;this.MQMATCHTYPE_PC2=13;this.MQMATCHTYPE_PC3=14;this.MQMATCHTYPE_PC4=15;this.MQMATCHTYPE_POI=16;this.MQQUALITYTYPE_EXACT=0;this.MQQUALITYTYPE_GOOD=1;this.MQQUALITYTYPE_APPROX=2}
var MQCONSTANT=new MQConstants;
function MQErrors(){this.RECORDSET_GETFIELD_1="failure in getField -- m_curRec is not Pointing to an existing Record";this.RECORDSET_GETFIELD_2="failure in getField -- could not find strFieldName";this.RECORDSET_MOVEFIRST_1="failure in moveFirst -- Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVELAST_1="Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVENEXT_1="Error Moving Cursor, EOF was true.";this.RECORDSET_MOVENEXT_2="Error Moving Cursor, Unknown Error.";this.RECORDSET_MOVENEXT_3=
"Error Moving Cursor, RecordSet is Empty."}var MQERROR=new MQErrors;MQSign.prototype=new MQObject;MQSign.prototype.constructor=MQSign;function MQSign(){MQObject.call(this);this.setM_Xpath("Sign");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSIGN()))}a=MQSign.prototype;a.getClassName=function(){return"MQSign"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};a.loadXmlFromNode=function(b){this.setM_XmlDoc(mqCreateXMLDocImportNode(b))};
a.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};a.clear=function(){this.setType(0);this.setText("");this.setExtraText("");this.setDirection(MQCONSTANT.MQMANEUVER_HEADING_NULL)};a.setType=function(b){this.setProperty("Type",b)};a.getType=function(){return this.getProperty("Type")};a.setText=function(b){this.setProperty("Text",b)};a.getText=function(){return this.getProperty("Text")};a.setExtraText=function(b){this.setProperty("ExtraText",b)};a.getExtraText=function(){return this.getProperty("ExtraText")};
a.setDirection=function(b){this.setProperty("Direction",b)};a.getDirection=function(){return this.getProperty("Direction")};MQFeature.prototype=new MQObject;MQFeature.prototype.constructor=MQFeature;function MQFeature(){MQObject.call(this)}a=MQFeature.prototype;a.getClassName=function(){return"MQFeature"};a.getObjectVersion=function(){return 0};a.getDistance=function(){return this.getProperty("Distance")};a.setDistance=function(b){this.setProperty("Distance",b)};a.getName=function(){return this.getProperty("Name")};
a.setName=function(b){this.setProperty("Name",b)};a.getSourceLayerName=function(){return this.getProperty("SourceLayerName")};a.setSourceLayerName=function(b){this.setProperty("SourceLayerName",b)};a.getKey=function(){return this.getProperty("Key")};a.setKey=function(b){this.setProperty("Key",b)};a.setGEFID=function(b){this.setProperty("GEFID",b)};a.getGEFID=function(){return this.getProperty("GEFID")};a.setDT=function(b){this.setProperty("DT",b)};a.getDT=function(){return this.getProperty("DT")};
MQPointFeature.prototype=new MQFeature;MQPointFeature.prototype.constructor=MQPointFeature;function MQPointFeature(){MQObject.call(this);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOINTFEATURE()));this.setM_Xpath("PointFeature");this.m_CenterLatLng=new MQLatLng("CenterLatLng");this.m_CenterPoint=new MQPoint("CenterPoint")}a=MQPointFeature.prototype;a.getClassName=function(){return"MQPointFeature"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenterLatLng();var c=this.getCenterPoint(),d=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng"),e=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint");d!==null&&b.loadXmlFromNode(d);e!==null&&c.loadXmlFromNode(e)};
a.loadXmlFromNode=function(b){this.setM_XmlDoc(mqCreateXMLDocImportNode(b));this.getCenterLatLng().setLatLng(this.getProperty("CenterLatLng/Lat"),this.getProperty("CenterLatLng/Lng"));b=this.getProperty("CenterPoint/X");b!==""&&this.getCenterPoint().setXY(b,this.getProperty("CenterPoint/Y"))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterLatLng"));b=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};a.getCenterLatLng=function(){return this.m_CenterLatLng};a.setCenterLatLng=function(b){this.m_CenterLatLng.setLatLng(b.getLatitude(),b.getLongitude())};a.getCenterPoint=function(){return this.m_CenterPoint};
a.setCenterPoint=function(b){this.m_CenterPoint.setXY(b.getX(),b.getY())};MQPolygonFeature.prototype=new MQPointFeature;MQPolygonFeature.prototype.constructor=MQPolygonFeature;
function MQPolygonFeature(){MQPointFeature.call(this);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOLYGONFEATURE()));this.setM_Xpath("PolygonFeature");var b=new MQLatLngCollection;b.setM_Xpath("LatLngs");this.getLatLngs=function(){return b};this.setLatLngs=function(d){if(d.getClassName()==="MQLatLngCollection"){b.removeAll();b.append(d)}else{alert("failure in setLatLngs");throw"failure in setLatLngs";}};var c=new MQPointCollection;c.setM_Xpath("Points");this.getPoints=function(){return c};
this.setPoints=function(d){c.removeAll();c.append(d)}}MQPolygonFeature.prototype.getClassName=function(){return"MQPolygonFeature"};MQPolygonFeature.prototype.getObjectVersion=function(){return 0};
MQPolygonFeature.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenterLatLng();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));b=this.getCenterPoint();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));b=this.getLatLngs();mqGetNode(this.getM_XmlDoc(),
"/"+this.getM_Xpath()+"/LatLngs")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));b=this.getPoints();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")))};
MQPolygonFeature.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterLatLng"));b=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterPoint"));b=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LatLngs"));b=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),
b,"Points"));return mqXmlToStr(this.getM_XmlDoc())};MQLineFeature.prototype=new MQPolygonFeature;MQLineFeature.prototype.constructor=MQLineFeature;function MQLineFeature(){MQPolygonFeature.call(this);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLINEFEATURE()));this.setM_Xpath("LineFeature")}a=MQLineFeature.prototype;a.getClassName=function(){return"MQLineFeature"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenterLatLng();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));b=this.getCenterPoint();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));b=this.getLatLngs();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+
"/LatLngs")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));b=this.getPoints();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterLatLng"));b=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterPoint"));b=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LatLngs"));b=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),
b,"Points"));return mqXmlToStr(this.getM_XmlDoc())};a.getLeftPostalCode=function(){return this.getProperty("LeftPostalCode")};a.setLeftPostalCode=function(b){this.setProperty("LeftPostalCode",b)};a.getRightPostalCode=function(){return this.getProperty("RightPostalCode")};a.setRightPostalCode=function(b){this.setProperty("RightPostalCode",b)};a.getLeftAddressHi=function(){return this.getProperty("LeftAddressHi")};a.setLeftAddressHi=function(b){this.setProperty("LeftAddressHi",b)};
a.getRightAddressHi=function(){return this.getProperty("RightAddressHi")};a.setRightAddressHi=function(b){this.setProperty("RightAddressHi",b)};a.getLeftAddressLo=function(){return this.getProperty("LeftAddressLo")};a.setLeftAddressLo=function(b){this.setProperty("LeftAddressLo",b)};a.getRightAddressLo=function(){return this.getProperty("RightAddressLo")};a.setRightAddressLo=function(b){this.setProperty("RightAddressLo",b)};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(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};MQLocation.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQAddress.prototype=new MQLocation;MQAddress.prototype.constructor=MQAddress;
function MQAddress(){MQLocation.call(this);this.setM_Xpath("Address");this.getClassName()==="MQAddress"&&this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getADDRESS()))}a=MQAddress.prototype;a.getClassName=function(){return"MQAddress"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};a.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};a.getAdminArea=function(b){return this.getProperty("AdminArea"+b)};
a.setAdminArea=function(b,c){this.setProperty("AdminArea"+b,c)};a.getCountry=function(){return this.getProperty("AdminArea1")};a.setCountry=function(b){this.setProperty("AdminArea1",b)};a.getCounty=function(){return this.getProperty("AdminArea4")};a.setCounty=function(b){this.setProperty("AdminArea4",b)};a.getCity=function(){return this.getProperty("AdminArea5")};a.setCity=function(b){this.setProperty("AdminArea5",b)};a.getPostalCode=function(){return this.getProperty("PostalCode")};
a.setPostalCode=function(b){this.setProperty("PostalCode",b)};a.getState=function(){return this.getProperty("AdminArea3")};a.setState=function(b){this.setProperty("AdminArea3",b)};a.setStreet=function(b){this.setProperty("Street",b)};a.getStreet=function(){return this.getProperty("Street")};MQSingleLineAddress.prototype=new MQLocation;MQSingleLineAddress.prototype.constructor=MQSingleLineAddress;
function MQSingleLineAddress(){MQLocation.call(this);this.setM_Xpath("SingleLineAddress");this.getClassName()==="MQSingleLineAddress"&&this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSINGLELINEADDRESS()))}a=MQSingleLineAddress.prototype;a.getClassName=function(){return"MQSingleLineAddress"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};a.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};
a.setAddress=function(b){this.setProperty("Address",b)};a.getAddress=function(){return this.getProperty("Address")};a.setCountry=function(b){this.setProperty("Country",b)};a.getCountry=function(){return this.getProperty("Country")};MQGeoAddress.prototype=new MQAddress;MQGeoAddress.prototype.constructor=MQGeoAddress;
function MQGeoAddress(){MQAddress.call(this);this.setM_Xpath("GeoAddress");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getGEOADDRESS()));var b=new MQLatLng;this.getMQLatLng=function(){return b};this.setMQLatLng=function(c){b=c}}a=MQGeoAddress.prototype;a.getClassName=function(){return"MQGeoAddress"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getProperty("LatLng/Lat");var c=this.getProperty("LatLng/Lng");this.getMQLatLng().setLatLng(b,c)};a.saveXml=function(){var b=MQA.createXMLDoc(this.getMQLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LatLng"));return mqXmlToStr(this.getM_XmlDoc())};a.setDistAlong=function(b){this.setProperty("DistAlong",b)};a.getDistAlong=function(){return this.getProperty("DistAlong")};
a.setGEFID=function(b){this.setProperty("GEFID",b)};a.getGEFID=function(){return this.getProperty("GEFID")};a.setResultCode=function(b){this.setProperty("ResultCode",b)};a.getResultCode=function(){return this.getProperty("ResultCode")};a.setSourceId=function(b){this.setProperty("SourceId",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getMANEUVER()));var b=new MQStringCollection("Item");b.setM_Xpath("Streets");this.getStreets=function(){return b};this.setStreets=function(f){b.removeAll();b.append(f)};var c=new MQLatLngCollection;c.setM_Xpath("ShapePoints");this.getShapePoints=function(){return c};this.setShapePoints=function(f){if(f.getClassName()==="MQLatLngCollection"){c.removeAll();c.append(f)}else{alert("failure in setShapePoints");
throw"failure in setShapePoints";}};var d=new MQIntCollection("Item");d.setM_Xpath("GEFIDs");this.getGEFIDs=function(){return d};this.setGEFIDs=function(f){d.removeAll();d.append(f)};var e=new MQSignCollection("Sign");e.setM_Xpath("Signs");this.getSigns=function(){return e};this.setSigns=function(f){e.removeAll();e.append(f)}}a=MQManeuver.prototype;a.getClassName=function(){return"MQManeuver"};a.getObjectVersion=function(){return 1};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getStreets();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets")!==null&&b.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets"));b=this.getShapePoints();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints")!==null&&b.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints"));b=this.getGEFIDs();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")!==
null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")));b=this.getSigns();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs")!==null&&b.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs"))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getStreets().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"Streets"));b=MQA.createXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"ShapePoints"));b=MQA.createXMLDoc(this.getGEFIDs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"GEFIDs"));b=MQA.createXMLDoc(this.getSigns().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"Signs"));
return mqXmlToStr(this.getM_XmlDoc())};a.setTurnType=function(b){this.setProperty("TurnType",b)};a.getTurnType=function(){return this.getProperty("TurnType")};a.setDistance=function(b){this.setProperty("Distance",b)};a.getDistance=function(){return this.getProperty("Distance")};a.setTime=function(b){this.setProperty("Time",b)};a.getTime=function(){return this.getProperty("Time")};a.setDirection=function(b){this.setProperty("Direction",b)};a.getDirection=function(){return this.getProperty("Direction")};
a.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""}};a.setAttributes=function(b){this.setProperty("Attributes",b)};a.getAttributes=function(){return this.getProperty("Attributes")};a.setNarrative=function(b){this.setProperty("Narrative",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getTREKROUTE()));var b=new MQManeuverCollection("Maneuver");b.setM_Xpath("Maneuvers");this.getManeuvers=function(){return b};var c=null;this.getShapePoints=function(){if(c===null){e=d=0;c=new MQLatLngCollection;c.setM_Xpath("ShapePoints");for(var f=0;f<this.getManeuvers().getSize();f++){c.append(this.getManeuvers().get(f).getShapePoints());d+=parseFloat(this.getManeuvers().get(f).getDistance());
e+=parseInt(this.getManeuvers().get(f).getTime())}}return c};var d=null;this.getDistance=function(){if(d===null){e=d=0;c=new MQLatLngCollection;c.setM_Xpath("ShapePoints");for(var f=0;f<this.getManeuvers().getSize();f++){c.append(this.getManeuvers().get(f).getShapePoints());d+=parseFloat(this.getManeuvers().get(f).getDistance());e+=parseInt(this.getManeuvers().get(f).getTime())}}return d};var e=null;this.getTime=function(){if(e===null){e=d=0;c=new MQLatLngCollection;c.setM_Xpath("ShapePoints");for(var f=
0;f<this.getManeuvers().getSize();f++){c.append(this.getManeuvers().get(f).getShapePoints());d+=parseFloat(this.getManeuvers().get(f).getDistance());e+=parseInt(this.getManeuvers().get(f).getTime())}}return e}}MQTrekRoute.prototype.getClassName=function(){return"MQTrekRoute"};MQTrekRoute.prototype.getObjectVersion=function(){return 0};
MQTrekRoute.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getManeuvers();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")))};MQTrekRoute.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getManeuvers().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getGEOCODEOPTIONS()));var b=new MQMatchType(0);this.getMatchType=function(){return b};this.setMatchType=function(d){b=d};var c=new MQQualityType(0);this.getQualityType=function(){return c};this.setQualityType=function(d){c=d}}a=MQGeocodeOptions.prototype;a.getClassName=function(){return"MQGeocodeOptions"};
a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));this.setMatchType(new MQMatchType(Math.floor(this.getProperty("MatchType"))));this.getQualityType(new MQQualityType(Math.floor(this.getProperty("QualityType"))))};a.saveXml=function(){this.setProperty("MatchType",this.getMatchType().intValue());this.setProperty("QualityType",this.getQualityType().intValue());return mqXmlToStr(this.getM_XmlDoc())};
a.setCoverageName=function(b){this.setProperty("CoverageName",b)};a.getCoverageName=function(){return this.getProperty("CoverageName")};a.setMaxMatches=function(b){this.setProperty("MaxMatches",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getROUTEOPTIONS()));var b=new MQStringCollection;b.setM_Xpath("AvoidAttributeList");this.getAvoidAttrList=function(){return b};this.setAvoidAttrList=function(g){b.removeAll();b.append(g)};var c=new MQIntCollection;c.setM_Xpath("AvoidGefIdList");this.getAvoidGefIdList=function(){return c};this.setAvoidGefIdList=function(g){c.removeAll();c.append(g)};var d=new MQIntCollection;
d.setM_Xpath("AvoidAbsoluteGefIdList");this.getAvoidAbsGefIdList=function(){return d};this.setAvoidAbsGefIdList=function(g){d.removeAll();d.append(g)};var e=new MQAutoRouteCovSwitch("CovSwitcher");this.getAutoRouteCovSwitch=function(){return e};this.setAutoRouteCovSwitch=function(g){e=g};var f=new MQRouteType(0);this.getRouteType=function(){return f};this.setRouteType=function(g){f=g};var i=new MQNarrativeType(0);this.getNarrativeType=function(){return i};this.setNarrativeType=function(g){i=g};var h=
new MQDistanceUnits(0);this.getDistanceUnits=function(){return h};this.setDistanceUnits=function(g){h=g}}a=MQRouteOptions.prototype;a.getClassName=function(){return"MQRouteOptions"};a.getObjectVersion=function(){return 3};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getAvoidAttrList();b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAttributeList")));b=this.getAvoidGefIdList();b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidGefIdList")));b=this.getAvoidAbsGefIdList();b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAbsoluteGefIdList")));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"))))};
a.saveXml=function(){var b=null;this.setProperty("RouteType",this.getRouteType().intValue());this.setProperty("NarrativeType",this.getNarrativeType().intValue());this.setProperty("NarrativeDistanceUnitType",this.getDistanceUnits().getValue());b=MQA.createXMLDoc(this.getAutoRouteCovSwitch().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CovSwitcher"));b=MQA.createXMLDoc(this.getAvoidAttrList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"AvoidAttributeList"));
b=MQA.createXMLDoc(this.getAvoidGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"AvoidGefIdList"));b=MQA.createXMLDoc(this.getAvoidAbsGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"AvoidAbsoluteGefIdList"));return mqXmlToStr(this.getM_XmlDoc())};a.setMaxShapePointsPerManeuver=function(b){this.setProperty("MaxShape",b)};a.getMaxShapePointsPerManeuver=function(){return this.getProperty("MaxShape")};
a.setMaxGEFIDsPerManeuver=function(b){this.setProperty("MaxGEFID",b)};a.getMaxGEFIDsPerManeuver=function(){return this.getProperty("MaxGEFID")};a.setLanguage=function(b){this.setProperty("Language",b)};a.getLanguage=function(){return this.getProperty("Language")};a.setCoverageName=function(b){this.setProperty("CoverageName",b)};a.getCoverageName=function(){return this.getProperty("CoverageName")};a.setStateBoundaryDisplay=function(b){this.setProperty("StateBoundaryDisplay",b===true?1:0)};
a.getStateBoundaryDisplay=function(){return this.getProperty("StateBoundaryDisplay")==1?true:false};a.setCountryBoundaryDisplay=function(b){this.setProperty("CountryBoundaryDisplay",b===true?1:0)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getROUTERESULTS()));var b=new MQLocationCollection;b.setM_Xpath("Locations");this.getLocations=function(){return b};var c=new MQTrekRouteCollection("TrekRoute");c.setM_Xpath("TrekRoutes");this.getTrekRoutes=function(){return c};var d=new MQRouteResultsCode(MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return d};this.setResultCode=function(g){d=
g};var e=new MQStringCollection("Item");e.setM_Xpath("ResultMessages");this.getResultMessages=function(){return e};var f=null;this.getShapePoints=function(){if(f===null){h=i=0;f=new MQLatLngCollection;f.setM_Xpath("ShapePoints");for(var g=0;g<this.getTrekRoutes().getSize();g++)for(var j=this.getTrekRoutes().get(g),k=0;k<j.getManeuvers().getSize();k++){f.append(j.getManeuvers().get(k).getShapePoints());i+=parseFloat(j.getManeuvers().get(k).getDistance());h+=parseInt(j.getManeuvers().get(k).getTime())}}return f};
var i=-1;this.getDistance=function(){if(i===-1){h=i=0;f=new MQLatLngCollection;f.setM_Xpath("ShapePoints");for(var g=0;g<this.getTrekRoutes().getSize();g++)for(var j=this.getTrekRoutes().get(g),k=0;k<j.getManeuvers().getSize();k++){f.append(j.getManeuvers().get(k).getShapePoints());i+=parseFloat(j.getManeuvers().get(k).getDistance());h+=parseInt(j.getManeuvers().get(k).getTime())}}return i};var h=-1;this.getTime=function(){if(h===-1){h=i=0;f=new MQLatLngCollection;f.setM_Xpath("ShapePoints");for(var g=
0;g<this.getTrekRoutes().getSize();g++)for(var j=this.getTrekRoutes().get(g),k=0;k<j.getManeuvers().getSize();k++){f.append(j.getManeuvers().get(k).getShapePoints());i+=parseFloat(j.getManeuvers().get(k).getDistance());h+=parseInt(j.getManeuvers().get(k).getTime())}}return h}}a=MQRouteResults.prototype;a.getClassName=function(){return"MQRouteResults"};a.getObjectVersion=function(){return 1};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getLocations();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")));b=this.getTrekRoutes();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")));b=this.getResultMessages();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+
"/ResultMessages")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));this.setResultCode(new MQRouteResultsCode(Math.floor(this.getProperty("ResultCode"))))};a.saveXml=function(){this.setProperty("ResultCode",this.getResultCode().intValue());return mqXmlToStr(this.getM_XmlDoc())};a.setCoverageName=function(b){this.setProperty("CoverageName",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getROUTEMATRIXRESULTS()));var b=-1,c=null;this.setDistance=function(i){if(i)if(i.getClassName()==="MQIntCollection")if(c!==null){c.removeAll();c.append(i)}else c=i;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(i,h){if(b===-1)b=this.getProperty("LocationCount");i=i*b+h;return(c.get(i)/1000).toFixed(6)};var d=null;this.setTime=function(i){if(i)if(i.getClassName()==="MQIntCollection")if(d!==null){d.removeAll();d.append(i)}else d=i;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(i,h){if(b===
-1)b=this.getProperty("LocationCount");i=i*b+h;return d.get(i)};var e=new MQRouteMatrixResultsCode(MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return e};this.setResultCode=function(i){if(i)if(i.getClassName()==="MQRouteMatrixResultsCode")e=i;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 f=null;this.setResultMessages=function(i){if(i)if(i.getClassName()==="MQStringCollection")if(f!==null){f.removeAll();f.append(i)}else f=i;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 f}}a=MQRouteMatrixResults.prototype;
a.getClassName=function(){return"MQRouteMatrixResults"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=new MQIntCollection;b.setM_Xpath("DistanceMatrix");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")));this.setDistance(b);b=new MQIntCollection;b.setM_Xpath("TimeMatrix");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")));
this.setTime(b);b=new MQStringCollection;b.setM_Xpath("ResultMessages");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));this.setResultMessages(b);this.setResultCode(new MQRouteMatrixResultsCode(Math.floor(this.getProperty("ResultCode"))))};a.saveXml=function(){this.setProperty("ResultCode",this.getResultCode().intValue());return mqXmlToStr(this.getM_XmlDoc())};
a.setCoverageName=function(b){this.setProperty("CoverageName",b)};a.getCoverageName=function(){return this.getProperty("CoverageName")};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getRECORDSET()));var b=true,c=true,d=0,e=-1,f=new MQStringCollection;f.setM_Xpath("Fields");var i=new MQStrColCollection("Record");i.setM_Xpath("Records");i.setValidClassName("MQStringCollection");this.moveFirst=function(){if(i.getSize()!==0){c=b=false;e=0}else{alert(MQERROR.RECORDSET_MOVEFIRST_1);throw MQERROR.RECORDSET_MOVEFIRST_1;}};this.moveLast=function(){if(i.getSize()!==
0){c=b=false;e=i.getSize()-1}else{alert(MQERROR.RECORDSET_MOVELAST_1);throw MQERROR.RECORDSET_MOVELAST_1;}};this.moveNext=function(){var h=i.getSize();if(h!==0)if(e<h-1){e++;b=c=false}else if(e===h-1){e++;c=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 c};this.isEOF=
function(){return b};this.getFieldNames=function(){return f};this.getField=function(h){if(!(0<=e&&e<d)){alert(MQERROR.RECORDSET_GETFIELD_1);throw MQERROR.RECORDSET_GETFIELD_1;}for(var g=-1,j=0;j<f.getSize();j++)if(f.get(j)===h){g=j;break}if(g===-1){alert(MQERROR.RECORDSET_GETFIELD_2);throw MQERROR.RECORDSET_GETFIELD_2;}return i.get(e).get(g)};this.loadXml=function(h){h=MQA.createXMLDoc(h);this.setM_XmlDoc(h);f.loadXml(mqXmlToStr(mqGetNode(h,"/"+this.getM_Xpath()+"/Fields")));if(h!==null){h=h.documentElement;
h=h.childNodes;var g=h.length;g=g<32678?g:32678;var j=0,k=null;i.removeAll();for(j=j;j<g;j++)if(h[j].nodeName==="Record"){k=new MQStringCollection;k.setM_Xpath("Record");k.loadXml(mqXmlToStr(h[j]));i.add(k)}}d=this.getProperty("RecordCount");if(d>0){e=0;b=c=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(MQA.createXMLDocFromNode(MQA.MQXML.getMAPSTATE()));var b=new MQLatLng("Center");this.getCenter=function(){return b};this.setCenter=function(c){b.setLatLng(c.getLatitude(),c.getLongitude())}}a=MQMapState.prototype;a.getClassName=function(){return"MQMapState"};a.getObjectVersion=function(){return 0};
a.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","")};a.equals=function(b){if(b)try{if(b.getClassName()==="MQMapState")return m_nScale==other.m_nScale&&m_strMapName===other.m_strMapName&&m_strCoverageName===other.m_strCoverageName&&m_llCenter.equals(other.m_llCenter)&&m_dMapWidth===other.m_dMapWidth&&m_dMapHeight===other.m_dMapHeight}catch(c){}return false};
a.setMapName=function(b){this.setProperty("MapName",b)};a.getMapName=function(){this.getProperty("MapName")};a.setCoverageName=function(b){this.setProperty("CoverageName",b)};a.getCoverageName=function(){this.getProperty("CoverageName")};a.setWidthInches=function(b){this.setProperty("Width",b)};a.getWidthInches=function(){return this.getProperty("Width")};a.setHeightInches=function(b){this.setProperty("Height",b)};a.getHeightInches=function(){return this.getProperty("Height")};
a.setWidthPixels=function(b,c){c?this.setProperty("Width",parseFloat(b)/parseFloat(c)):this.setProperty("Width",parseFloat(b)/parseFloat(72))};a.getWidthPixels=function(b){return b?Math.ceil(this.getProperty("Width")*b):Math.ceil(this.getProperty("Width")*72)};a.setHeightPixels=function(b,c){c?this.setProperty("Height",parseFloat(b)/parseFloat(c)):this.setProperty("Height",parseFloat(b)/parseFloat(72))};
a.getHeightPixels=function(b){return b?Math.ceil(this.getProperty("Height")*b):Math.ceil(this.getProperty("Height")*72)};a.setMapScale=function(b){this.setProperty("Scale",b)};a.getMapScale=function(){return this.getProperty("Scale")};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getProperty("Center/Lat");var c=this.getProperty("Center/Lng");this.getCenter().setLatLng(b,c)};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(b){this.setProperty("MaxMatches",b)};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(MQA.createXMLDocFromNode(MQA.MQXML.getRADIUSSEARCHCRITERIA()));var b=new MQLatLng("CenterLatLng");this.getCenter=function(){return b};this.setCenter=function(c){b.setLatLng(c.getLatitude(),c.getLongitude())}}a=MQRadiusSearchCriteria.prototype;a.getClassName=function(){return"MQRadiusSearchCriteria"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getProperty("CenterLatLng/Lat");var c=this.getProperty("CenterLatLng/Lng");this.getCenter().setLatLng(b,c)};a.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterLatLng"));return mqXmlToStr(this.getM_XmlDoc())};
a.setRadius=function(b,c){if(c)mqIsClass("MQDistanceUnits",c,false);else c=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);if(c.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)b/=MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;this.setProperty("Radius",b)};
a.getRadius=function(b){if(b)mqIsClass("MQDistanceUnits",b,false);else b=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);var c=this.getProperty("Radius");if(b.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)c*=MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;return c};MQRectSearchCriteria.prototype=new MQSearchCriteria;MQRectSearchCriteria.prototype.constructor=MQRectSearchCriteria;
function MQRectSearchCriteria(b){MQObject.call(this);this.setM_Xpath("RectSearchCriteria");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getRECTSEARCHCRITERIA()));var c=new MQLatLng("UpperLeftLatLng");this.getUpperLeft=function(){return c};this.setUpperLeft=function(e){c.setLatLng(e.getLatitude(),e.getLongitude())};var d=new MQLatLng("LowerRightLatLng");this.getLowerRight=function(){return d};this.setLowerRight=function(e){d.setLatLng(e.getLatitude(),e.getLongitude())};if(b){c.setLatLng(b.getUpperLeft().getLat(),
b.getUpperLeft().getLng());d.setLatLng(b.getLowerRight().getLat(),b.getLowerRight().getLng())}}MQRectSearchCriteria.prototype.getClassName=function(){return"MQRectSearchCriteria"};MQRectSearchCriteria.prototype.getObjectVersion=function(){return 0};
MQRectSearchCriteria.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getProperty("UpperLeftLatLng/Lat");var c=this.getProperty("UpperLeftLatLng/Lng");this.getUpperLeft().setLatLng(b,c);b=this.getProperty("LowerRightLatLng/Lat");c=this.getProperty("LowerRightLatLng/Lng");this.getLowerRight().setLatLng(b,c)};
MQRectSearchCriteria.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getUpperLeft().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftLatLng"));b=MQA.createXMLDoc(this.getLowerRight().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getPOLYSEARCHCRITERIA()));var b=new MQLatLngCollection;b.setM_Xpath("LatLngs");this.getShapePoints=function(){return b};this.setShapePoints=function(c){if(c.getClassName()==="MQLatLngCollection"){b.removeAll();b.append(c)}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(MQA.createXMLDoc(b));b=this.getShapePoints();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))};
MQPolySearchCriteria.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getCORRIDORSEARCHCRITERIA()))}a=MQCorridorSearchCriteria.prototype;a.getClassName=function(){return"MQCorridorSearchCriteria"};a.getObjectVersion=function(){return 0};a.setCorrExactLinks=function(b){this.setProperty("ExactLinks",b===true?1:0)};a.getCorrExactLinks=function(){return this.getProperty("ExactLinks")==1?true:false};
a.setCorridorWidth=function(b,c){if(c)mqIsClass("MQDistanceUnits",c,false);else c=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);if(c.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)b/=MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;this.setProperty("CorridorWidth",b)};
a.getCorridorWidth=function(b){if(b)mqIsClass("MQDistanceUnits",b,false);else b=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);var c=this.getProperty("CorridorWidth");if(b.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)c*=MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;return c};
a.setCorridorBufferWidth=function(b,c){if(c)mqIsClass("MQDistanceUnits",c,false);else c=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);if(c.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)b/=MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;this.setProperty("CorridorBufferWidth",b)};
a.getCorridorBufferWidth=function(b){if(b)mqIsClass("MQDistanceUnits",b,false);else b=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);var c=this.getProperty("CorridorBufferWidth");if(b.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)c*=MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;return c};MQDBLayerQuery.prototype=new MQObject;MQDBLayerQuery.prototype.constructor=MQDBLayerQuery;
function MQDBLayerQuery(){MQObject.call(this);this.setM_Xpath("DBLayerQuery");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDBLAYERQUERY()))}a=MQDBLayerQuery.prototype;a.getClassName=function(){return"MQDBLayerQuery"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};a.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};a.setDBLayerName=function(b){this.setProperty("LayerName",b)};a.getDBLayerName=function(){return this.getProperty("LayerName")};
a.setExtraCriteria=function(b){this.setProperty("ExtraCriteria",b)};a.getExtraCriteria=function(){return this.getProperty("ExtraCriteria")};MQPrimitive.prototype=new MQObject;MQPrimitive.prototype.constructor=MQPrimitive;
function MQPrimitive(){MQObject.call(this);var b=new MQDrawTrigger(MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT);this.getDrawTrigger=function(){return b};this.setDrawTrigger=function(d){if(d)if(d.getClassName()==="MQDrawTrigger")b=d};var c=new MQCoordinateType(MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC);this.getCoordinateType=function(){return c};this.setCoordinateType=function(d){if(d)if(d.getClassName()==="MQCoordinateType")c=d}}a=MQPrimitive.prototype;a.getClassName=function(){return"MQPrimitive"};
a.getObjectVersion=function(){return 2};a.setKey=function(b){this.setProperty("Key",b)};a.getKey=function(){return this.getProperty("Key")};a.setOpacity=function(b){this.setProperty("Opacity",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getLINEPRIMITIVE()));var b=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return b};this.setColor=function(f){if(f)if(f.getClassName()==="MQColorStyle")b=f};var c=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return c};this.setStyle=function(f){if(f)if(f.getClassName()==="MQPenStyle")c=f};var d=new MQPointCollection;
d.setM_Xpath("Points");this.getPoints=function(){return d};var e=new MQLatLngCollection;e.setM_Xpath("LatLngs");this.getLatLngs=function(){return e};this.setLatLngs=function(f){if(f)if(f.getClassName()==="MQLatLngCollection"){e.removeAll();e.append(f)}}}a=MQLinePrimitive.prototype;a.getClassName=function(){return"MQLinePrimitive"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=new MQLatLngCollection;b.setM_Xpath("LatLngs");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));this.setLatLngs(b);var c=new MQPointCollection;c.setM_Xpath("Points");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null&&c.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"))))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LatLngs"));b=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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())};a.setWidth=function(b){this.setProperty("Width",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getPOLYGONPRIMITIVE()));var b=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return b};this.setFillColor=function(d){if(d)if(d.getClassName()==="MQColorStyle")b=d};var c=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return c};this.setFillStyle=function(d){if(d)if(d.getClassName()==="MQFillStyle")c=d}}
MQPolygonPrimitive.prototype.getClassName=function(){return"MQPolygonPrimitive"};MQPolygonPrimitive.prototype.getObjectVersion=function(){return 0};
MQPolygonPrimitive.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=new MQLatLngCollection;b.setM_Xpath("LatLngs");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));this.setLatLngs(b);var c=new MQPointCollection;c.setM_Xpath("Points");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null&&c.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 b=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LatLngs"));b=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getRECTANGLEPRIMITIVE()));var b=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return b};this.setColor=function(j){if(j)if(j.getClassName()==="MQColorStyle")b=j};var c=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return c};this.setStyle=function(j){if(j)if(j.getClassName()==="MQPenStyle")c=j};var d=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);
this.getFillColor=function(){return d};this.setFillColor=function(j){if(j)if(j.getClassName()==="MQColorStyle")d=j};var e=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return e};this.setFillStyle=function(j){if(j)if(j.getClassName()==="MQFillStyle")e=j};var f=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return f};this.setUpperLeftLatLng=function(j){f.setLatLng(j.getLatitude(),j.getLongitude())};var i=new MQLatLng("LowerRightLatLng");this.getLowerRightLatLng=
function(){return i};this.setLowerRightLatLng=function(j){i.setLatLng(j.getLatitude(),j.getLongitude())};var h=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return h};this.setUpperLeftPoint=function(j){h.setXY(j.getX(),j.getY())};var g=new MQPoint("LowerRightPoint");this.getLowerRightPoint=function(){return g};this.setLowerRightPoint=function(j){g.setXY(j.getX(),j.getY())}}a=MQRectanglePrimitive.prototype;a.getClassName=function(){return"MQRectanglePrimitive"};
a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getUpperLeftLatLng();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));b=this.getLowerRightLatLng();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));b=this.getUpperLeftPoint();mqGetNode(this.getM_XmlDoc(),
"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));b=this.getLowerRightPoint();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null&&b.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"))))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftLatLng"));b=MQA.createXMLDoc(this.getLowerRightLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LowerRightLatLng"));b=MQA.createXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftPoint"));b=MQA.createXMLDoc(this.getLowerRightPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),
b,"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())};a.setWidth=function(b){this.setProperty("Width",b)};a.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(MQA.createXMLDocFromNode(MQA.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(MQA.createXMLDocFromNode(MQA.MQXML.getSYMBOLPRIMITIVE()));var b=new MQPoint("CenterPoint");this.getCenterPoint=function(){return b};this.setCenterPoint=function(e){b.setXY(e.getX(),e.getY())};var c=new MQLatLng("CenterLatLng");this.getCenterLatLng=function(){return c};this.setCenterLatLng=function(e){c.setLatLng(e.getLatitude(),e.getLongitude())};var d=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);
this.getSymbolType=function(){return d};this.setSymbolType=function(e){if(e)if(e.getClassName()==="MQSymbolType")d=e}}a=MQSymbolPrimitive.prototype;a.getClassName=function(){return"MQSymbolPrimitive"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenterLatLng();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));b=this.getCenterPoint();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.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"))))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterLatLng"));b=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("SymbolType",this.getSymbolType().intValue());return mqXmlToStr(this.getM_XmlDoc())};
a.setSymbolName=function(b){this.setProperty("SymbolName",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getTEXTPRIMITIVE()));var b=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return b};this.setUpperLeftPoint=function(g){b.setXY(g.getX(),g.getY())};var c=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return c};this.setUpperLeftLatLng=function(g){c.setLatLng(g.getLatitude(),g.getLongitude())};var d=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);
this.getColor=function(){return d};this.setColor=function(g){if(g)if(g.getClassName()==="MQColorStyle")d=g};var e=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_BOXED);this.getStyle=function(){return e};this.setStyle=function(g){if(g)if(g.getClassName()==="MQFontStyle")e=g};var f=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_WHITE);this.getBkgdColor=function(){return f};this.setBkgdColor=function(g){if(g)if(g.getClassName()==="MQColorStyle")f=g};var i=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getBoxOutlineColor=
function(){return i};this.setBoxOutlineColor=function(g){if(g)if(g.getClassName()==="MQColorStyle")i=g};var h=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getOutlineColor=function(){return h};this.setOutlineColor=function(g){if(g)if(g.getClassName()==="MQColorStyle")h=g}}a=MQTextPrimitive.prototype;a.getClassName=function(){return"MQTextPrimitive"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getUpperLeftLatLng();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));b=this.getUpperLeftPoint();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null&&b.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"))))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftLatLng"));b=MQA.createXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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())};a.setText=function(b){this.setProperty("Text",b)};a.getText=function(){return this.getProperty("Text")};a.setFontName=function(b){this.setProperty("FontName",b)};a.getFontName=function(){return this.getProperty("FontName")};
a.setWidth=function(b){this.setProperty("Width",b)};a.getWidth=function(){return this.getProperty("Width")};a.setFontSize=function(b){this.setProperty("FontSize",b)};a.getFontSize=function(){return this.getProperty("FontSize")};a.setMargin=function(b){this.setProperty("Margin",b)};a.getMargin=function(){return this.getProperty("Margin")};a.setTextAlignment=function(b){this.setProperty("TextAlignment",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getFEATURESPECIFIER()));var b=new MQFeatureSpeciferAttributeType(MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID);this.getAttributeType=function(){return b};this.setAttributeType=function(c){if(c)if(c.getClassName()==="MQFeatureSpeciferAttributeType")b=c}}
MQFeatureSpecifier.prototype.getClassName=function(){return"MQFeatureSpecifier"};MQFeatureSpecifier.prototype.getObjectVersion=function(){return 0};MQFeatureSpecifier.prototype.setAttributeValue=function(b){this.setProperty("AttributeValue",b)};MQFeatureSpecifier.prototype.getAttributeValue=function(){return this.getProperty("AttributeValue")};MQBaseDTStyle.prototype=new MQObject;MQBaseDTStyle.prototype.constructor=MQBaseDTStyle;function MQBaseDTStyle(){MQObject.call(this)}a=MQBaseDTStyle.prototype;
a.getClassName=function(){return"MQBaseDTStyle"};a.getObjectVersion=function(){return 0};a.setDT=function(b){this.setProperty("DT",b)};a.getDT=function(){return this.getProperty("DT")};a.setHighScale=function(b){this.setProperty("HighScale",b)};a.getHighScale=function(){return this.getProperty("HighScale")};a.setLowScale=function(b){this.setProperty("LowScale",b)};a.getLowScale=function(){return this.getProperty("LowScale")};
a.equals=function(b){if(b){try{var c=b.getClassName()}catch(d){alert("Invalid type for this function!");throw"Invalid type for this function!";}if(c===this.getClassName())return this.getDT()===b.getDT()&&this.getHighScale()===b.getHighScale()&&this.getLowScale()===b.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(MQA.createXMLDocFromNode(MQA.MQXML.getDTSTYLE()));var b=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontColor=function(){return b};this.setFontColor=function(h){if(h)if(h.getClassName()==="MQColorStyle")b=h};var c=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontOutlineColor=function(){return c};this.setFontOutlineColor=function(h){if(h)if(h.getClassName()==="MQColorStyle")c=h};var d=
new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxBkgdColor=function(){return d};this.setFontBoxBkgdColor=function(h){if(h)if(h.getClassName()==="MQColorStyle")d=h};var e=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxOutlineColor=function(){return e};this.setFontBoxOutlineColor=function(h){if(h)if(h.getClassName()==="MQColorStyle")e=h};var f=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_INVALID);this.getFontStyle=function(){return f};this.setFontStyle=function(h){if(h)if(h.getClassName()===
"MQFontStyle")f=h};var i=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return i};this.setSymbolType=function(h){if(h)if(h.getClassName()==="MQSymbolType")i=h}}a=MQDTStyle.prototype;a.getClassName=function(){return"MQDTStyle"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));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"))))};
a.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())};
a.setSymbolName=function(b){this.setProperty("SymbolName",b)};a.getSymbolName=function(){return this.getProperty("SymbolName")};a.setFontName=function(b){this.setProperty("FontName",b)};a.getFontName=function(){return this.getProperty("FontName")};a.setVisible=function(b){this.setProperty("Visible",b===true?1:0)};a.getVisible=function(){return this.getProperty("Visible")==1?true:false};a.setLabelVisible=function(b){this.setProperty("LabelVisible",b===true?1:0)};
a.getLabelVisible=function(){return this.getProperty("LabelVisible")==1?true:false};a.setFontSize=function(b){this.setProperty("FontSize",b)};a.getFontSize=function(){return this.getProperty("FontSize")};a.setFontBoxMargin=function(b){this.setProperty("FontBoxMargin",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getDTSTYLEEX()))}a=MQDTStyleEx.prototype;a.getClassName=function(){return"MQDTStyleEx"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};a.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};a.setStyleString=function(b){this.setProperty("StyleString",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getDTFEATURESTYLEEX()));var b=new MQFeatureSpecifierCollection("FeatureSpecifier");b.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return b};this.setFeatureSpecifiers=function(c){if(mqIsClass(b.getClassName(),c,false)){b.removeAll();b.append(c)}}}MQDTFeatureStyleEx.prototype.getClassName=function(){return"MQDTFeatureStyleEx"};
MQDTFeatureStyleEx.prototype.getObjectVersion=function(){return 0};MQDTFeatureStyleEx.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};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(MQA.createXMLDocFromNode(MQA.MQXML.getDTFEATURESTYLEEX()));var b=new MQFeatureSpecifierCollection("FeatureSpecifier");b.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return b};this.setFeatureSpecifiers=function(c){if(c.getClassName()==="MQFeatureSpecifierCollection")b=c;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(MQA.createXMLDocFromNode(MQA.MQXML.getBESTFIT()));var b=new MQDTCollection;b.setM_Xpath("DisplayTypes");this.getDisplayTypes=function(){return b};this.setDisplayTypes=function(c){b.removeAll();b.append(c)}}a=MQBestFit.prototype;a.getClassName=function(){return"MQBestFit"};a.getObjectVersion=function(){return 2};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getDisplayTypes();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")))};a.saveXml=function(){var b=MQA.createXMLDoc(this.getDisplayTypes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"DisplayTypes"));return mqXmlToStr(this.getM_XmlDoc())};
a.setIncludePrimitives=function(b){this.setProperty("IncludePrimitives",b===true?1:0)};a.getIncludePrimitives=function(){return this.getProperty("IncludePrimitives")==1?true:false};a.setKeepCenter=function(b){this.setProperty("KeepCenter",b===true?1:0)};a.getKeepCenter=function(){return this.getProperty("KeepCenter")==1?true:false};a.setSnapToZoomLevel=function(b){this.setProperty("SnapToZoomLevel",b===true?1:0)};a.getSnapToZoomLevel=function(){return this.getProperty("SnapToZoomLevel")==1?true:false};
a.setScaleAdjustmentFactor=function(b){this.setProperty("ScaleAdjFactor",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getBESTFITLL()));var b=new MQLatLngCollection;b.setM_Xpath("LatLngs");this.getLatLngs=function(){return b};this.setLatLngs=function(c){b.removeAll();b.append(c)}}a=MQBestFitLL.prototype;a.getClassName=function(){return"MQBestFitLL"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getLatLngs();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))};a.saveXml=function(){var b=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LatLngs"));return mqXmlToStr(this.getM_XmlDoc())};a.setKeepCenter=function(b){this.setProperty("KeepCenter",b===true?1:0)};
a.getKeepCenter=function(){return this.getProperty("KeepCenter")==1?true:false};a.setSnapToZoomLevel=function(b){this.setProperty("SnapToZoomLevel",b===true?1:0)};a.getSnapToZoomLevel=function(){return this.getProperty("SnapToZoomLevel")==1?true:false};a.setScaleAdjustmentFactor=function(b){this.setProperty("ScaleAdjFactor",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getCENTER()));var b=new MQPoint("CenterPoint");this.getCenter=function(){return b};this.setCenter=function(c){if(mqIsClass(b.getClassName(),c,false))b=c.internalCopy(b)}}MQCenter.prototype.getClassName=function(){return"MQCenter"};MQCenter.prototype.getObjectVersion=function(){return 0};
MQCenter.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenter();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))};MQCenter.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getCENTERLATLNG()));var b=new MQLatLng("CenterLatLng");this.getCenter=function(){return b};this.setCenter=function(c){if(mqIsClass(b.getClassName(),c,false))b=c.internalCopy(b)}}MQCenterLatLng.prototype.getClassName=function(){return"MQCenterLatLng"};MQCenterLatLng.prototype.getObjectVersion=function(){return 0};
MQCenterLatLng.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenter();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))};MQCenterLatLng.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getPAN()));var b=new MQPoint("DeltaPoint");this.getPoint=function(){return b};this.setDeltaXY=function(c,d){b.setXY(c,d)};this.setDeltaY=function(c){b.setY(c)};this.setDeltaX=function(c){b.setX(c)}}MQPan.prototype.getClassName=function(){return"MQPan"};MQPan.prototype.getObjectVersion=function(){return 0};
MQPan.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getPoint();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")))};MQPan.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMIN()));var b=new MQPoint("CenterPoint");this.getCenter=function(){return b};this.setCenter=function(c){b=c}}MQZoomIn.prototype.getClassName=function(){return"MQZoomIn"};MQZoomIn.prototype.getObjectVersion=function(){return 0};
MQZoomIn.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenter();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))};MQZoomIn.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMOUT()));var b=new MQPoint("CenterPoint");this.getCenter=function(){return b};this.setCenter=function(c){b=c}}MQZoomOut.prototype.getClassName=function(){return"MQZoomOut"};MQZoomOut.prototype.getObjectVersion=function(){return 0};
MQZoomOut.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenter();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))};MQZoomOut.prototype.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"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(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMTO()));var b=new MQPoint("CenterPoint");this.getCenter=function(){return b};this.setCenter=function(c){b=c}}a=MQZoomTo.prototype;a.getClassName=function(){return"MQZoomTo"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getCenter();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))};a.saveXml=function(){var b=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};a.getZoomLevel=function(){return this.getProperty("ZoomLevel")};
a.setZoomLevel=function(b){this.setProperty("ZoomLevel",b)};MQZoomToRect.prototype=new MQMapCommand;MQZoomToRect.prototype.constructor=MQZoomToRect;
function MQZoomToRect(){MQMapCommand.call(this);this.setM_Xpath("ZoomToRect");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMTORECT()));var b=new MQPoint("UpperLeftPoint"),c=new MQPoint("LowerRightPoint");this.getRect=function(d,e){d.loadXml(b.copy().saveXml());e.loadXml(c.copy().saveXml())};this.setRect=function(d,e){if(mqIsClass(b.getClassName(),d,false)&&mqIsClass(c.getClassName(),e,false)){b=d.internalCopy(b);c=e.internalCopy(c)}}}MQZoomToRect.prototype.getClassName=function(){return"MQZoomToRect"};
MQZoomToRect.prototype.getObjectVersion=function(){return 0};
MQZoomToRect.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=new MQPoint("UpperLeftPoint");var c=new MQPoint("LowerRightPoint");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null&&c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")));this.setRect(b,
c)};MQZoomToRect.prototype.saveXml=function(){var b=new MQPoint("UpperLeftPoint"),c=new MQPoint("LowerRightPoint");this.getRect(b,c);b=MQA.createXMLDoc(b.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftPoint"));b=MQA.createXMLDoc(c.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(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMTORECTLATLNG()));var b=new MQLatLng("UpperLeftLatLng"),c=new MQLatLng("LowerRightLatLng");this.getRect=function(d,e){d.loadXml(b.copy().saveXml());e.loadXml(c.copy().saveXml())};this.setRect=function(d,e){if(mqIsClass(b.getClassName(),d,false)&&mqIsClass(c.getClassName(),e,false)){b=d.internalCopy(b);c=e.internalCopy(c)}}}
MQZoomToRectLatLng.prototype.getClassName=function(){return"MQZoomToRectLatLng"};MQZoomToRectLatLng.prototype.getObjectVersion=function(){return 0};
MQZoomToRectLatLng.prototype.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=new MQLatLng("UpperLeftLatLng");var c=new MQLatLng("LowerRightLatLng");mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null&&c.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));
this.setRect(b,c)};MQZoomToRectLatLng.prototype.saveXml=function(){var b=new MQLatLng("UpperLeftLatLng"),c=new MQLatLng("LowerRightLatLng");this.getRect(b,c);b=MQA.createXMLDoc(b.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"UpperLeftLatLng"));b=MQA.createXMLDoc(c.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc())};function MQType(){}
MQType.prototype.equals=function(b){if(b){try{var c=b.getClassName()}catch(d){alert("Invalid type for this function!");throw"Invalid type for this function!";}if(c===this.getClassName())return this.intValue()===b.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 c=-1;switch(b){case MQCONSTANT.MQROUTETYPE_FASTEST:c=b;break;case MQCONSTANT.MQROUTETYPE_SHORTEST:c=b;break;case MQCONSTANT.MQROUTETYPE_PEDESTRIAN:c=b;break;case MQCONSTANT.MQROUTETYPE_OPTIMIZED:c=b;break;case MQCONSTANT.MQROUTETYPE_SELECT_DATASET_ONLY:c=b;break;default:alert(b+" is an invalid value for MQRouteType!");throw b+" invalid value for MQRouteType!";}this.intValue=function(){return c}}
MQRouteType.prototype.getClassName=function(){return"MQRouteType"};MQRouteType.prototype.getObjectVersion=function(){return 0};MQNarrativeType.prototype=new MQType;MQNarrativeType.prototype.constructor=MQNarrativeType;
function MQNarrativeType(b){var c=-2;switch(b){case MQCONSTANT.MQNARRATIVETYPE_DEFAULT:c=b;break;case MQCONSTANT.MQNARRATIVETYPE_HTML:c=b;break;case MQCONSTANT.MQNARRATIVETYPE_NONE:c=b;break;default:alert(b+" is an invalid value for MQNarrativeType!");throw b+" invalid value for MQNarrativeType!";}this.intValue=function(){return c}}MQNarrativeType.prototype.getClassName=function(){return"MQNarrativeType"};MQNarrativeType.prototype.getObjectVersion=function(){return 0};MQCoordinateType.prototype=new MQType;
MQCoordinateType.prototype.constructor=MQCoordinateType;function MQCoordinateType(b){var c=-2;switch(b){case MQCONSTANT.MQCOORDINATETYPE_DISPLAY:c=b;break;case MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC:c=b;break;default:alert(b+" is an invalid value for MQCoordinateType!");throw b+" invalid value for MQCoordinateType!";}this.intValue=function(){return c}}MQCoordinateType.prototype.getClassName=function(){return"MQCoordinateType"};MQCoordinateType.prototype.getObjectVersion=function(){return 0};
MQFeatureSpeciferAttributeType.prototype=new MQType;MQFeatureSpeciferAttributeType.prototype.constructor=MQFeatureSpeciferAttributeType;function MQFeatureSpeciferAttributeType(b){var c=-1;switch(b){case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID:c=b;break;case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_NAME:c=b;break;default:alert(b+" is an invalid value for MQFeatureSpeciferAttributeType!");throw b+" invalid value for MQFeatureSpeciferAttributeType!";}this.intValue=function(){return c}}
MQFeatureSpeciferAttributeType.prototype.getClassName=function(){return"MQFeatureSpeciferAttributeType"};MQFeatureSpeciferAttributeType.prototype.getObjectVersion=function(){return 0};MQSymbolType.prototype=new MQType;MQSymbolType.prototype.constructor=MQSymbolType;
function MQSymbolType(b){var c=-1;switch(b){case MQCONSTANT.MQSYMBOLTYPE_RASTER:c=b;break;case MQCONSTANT.MQSYMBOLTYPE_VECTOR:c=b;break;default:alert(b+" is an invalid value for MQSymbolType!");throw b+" invalid value for MQSymbolType!";}this.intValue=function(){return c}}MQSymbolType.prototype.getClassName=function(){return"MQSymbolType"};MQSymbolType.prototype.getObjectVersion=function(){return 0};MQMatchType.prototype=new MQType;MQMatchType.prototype.constructor=MQMatchType;
function MQMatchType(b){var c=-1;switch(b){case MQCONSTANT.MQMATCHTYPE_LOC:c=b;break;case MQCONSTANT.MQMATCHTYPE_INTR:c=b;break;case MQCONSTANT.MQMATCHTYPE_NEARBLK:c=b;break;case MQCONSTANT.MQMATCHTYPE_REPBLK:c=b;break;case MQCONSTANT.MQMATCHTYPE_BLOCK:c=b;break;case MQCONSTANT.MQMATCHTYPE_AA1:c=b;break;case MQCONSTANT.MQMATCHTYPE_AA2:c=b;break;case MQCONSTANT.MQMATCHTYPE_AA3:c=b;break;case MQCONSTANT.MQMATCHTYPE_AA4:c=b;break;case MQCONSTANT.MQMATCHTYPE_AA5:c=b;break;case MQCONSTANT.MQMATCHTYPE_AA6:c=
b;break;case MQCONSTANT.MQMATCHTYPE_AA7:c=b;break;case MQCONSTANT.MQMATCHTYPE_PC1:c=b;break;case MQCONSTANT.MQMATCHTYPE_PC2:c=b;break;case MQCONSTANT.MQMATCHTYPE_PC3:c=b;break;case MQCONSTANT.MQMATCHTYPE_PC4:c=b;break;case MQCONSTANT.MQMATCHTYPE_POI:c=b;break;default:alert(b+" is an invalid value for MQMatchType!");throw b+" invalid value for MQMatchType!";}this.intValue=function(){return c}}MQMatchType.prototype.getClassName=function(){return"MQMatchType"};
MQMatchType.prototype.getObjectVersion=function(){return 0};MQQualityType.prototype=new MQType;MQQualityType.prototype.constructor=MQQualityType;function MQQualityType(b){var c=-1;switch(b){case MQCONSTANT.MQQUALITYTYPE_EXACT:c=b;break;case MQCONSTANT.MQQUALITYTYPE_GOOD:c=b;break;case MQCONSTANT.MQQUALITYTYPE_APPROX:c=b;break;default:alert(b+" is an invalid value for MQQualityType!");throw b+" invalid value for MQQualityType!";}this.intValue=function(){return c}}
MQQualityType.prototype.getClassName=function(){return"MQQualityType"};MQQualityType.prototype.getObjectVersion=function(){return 0};MQDrawTrigger.prototype=new MQType;MQDrawTrigger.prototype.constructor=MQDrawTrigger;
function MQDrawTrigger(b){var c=-1;switch(b){case MQCONSTANT.MQDRAWTRIGGER_AFTER_POLYGONS:c=b;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT:c=b;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT:c=b;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_POLYGONS:c=b;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT:c=b;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_TEXT:c=b;break;default:alert(b+" is an invalid value for MQDrawTrigger!");throw b+" invalid value for MQDrawTrigger!";}this.intValue=
function(){return c}}MQDrawTrigger.prototype.getClassName=function(){return"MQDrawTrigger"};MQDrawTrigger.prototype.getObjectVersion=function(){return 0};MQPenStyle.prototype=new MQType;MQPenStyle.prototype.constructor=MQPenStyle;
function MQPenStyle(b){var c=-1;switch(b){case MQCONSTANT.MQPENSTYLE_DASH:c=b;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT:c=b;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT_DOT:c=b;break;case MQCONSTANT.MQPENSTYLE_SOLID:c=b;break;case MQCONSTANT.MQPENSTYLE_DOT:c=b;break;case MQCONSTANT.MQPENSTYLE_NONE:c=b;break;default:alert(b+" is an invalid value for MQPenStyle!");throw b+" invalid value for MQPenStyle!";}this.intValue=function(){return c}}MQPenStyle.prototype.getClassName=function(){return"MQPenStyle"};
MQPenStyle.prototype.getObjectVersion=function(){return 0};MQFontStyle.prototype=new MQType;MQFontStyle.prototype.constructor=MQFontStyle;
function MQFontStyle(b){var c=-2;switch(b){case MQCONSTANT.MQFONTSTYLE_BOLD:c=b;break;case MQCONSTANT.MQFONTSTYLE_BOXED:c=b;break;case MQCONSTANT.MQFONTSTYLE_DOT:c=b;break;case MQCONSTANT.MQFONTSTYLE_ITALICS:c=b;break;case MQCONSTANT.MQFONTSTYLE_MAX_VALUE:c=b;break;case MQCONSTANT.MQFONTSTYLE_NORMAL:c=b;break;case MQCONSTANT.MQFONTSTYLE_OUTLINED:c=b;break;case MQCONSTANT.MQFONTSTYLE_SEMIBOLD:c=b;break;case MQCONSTANT.MQFONTSTYLE_STRIKEOUT:c=b;break;case MQCONSTANT.MQFONTSTYLE_THIN:c=b;break;case MQCONSTANT.MQFONTSTYLE_UNDERLINE:c=
b;break;case MQCONSTANT.MQFONTSTYLE_INVALID:c=b;break;default:alert(b+" is an invalid value for MQFontStyle!");throw b+" invalid value for MQFontStyle!";}this.intValue=function(){return c}}MQFontStyle.prototype.getClassName=function(){return"MQFontStyle"};MQFontStyle.prototype.getObjectVersion=function(){return 0};MQColorStyle.prototype=new MQType;MQColorStyle.prototype.constructor=MQColorStyle;
function MQColorStyle(b){var c=MQCONSTANT.MQCOLORSTYLE_INVALID;if(b!==null)c=b;this.intValue=function(){return c}}MQColorStyle.prototype.getClassName=function(){return"MQColorStyle"};MQColorStyle.prototype.getObjectVersion=function(){return 0};MQColorStyle.prototype.getRGB=function(){var b=-16777216,c=parseInt(parseInt(this.intValue()/65536)%256),d=parseInt(parseInt(parseInt(this.intValue()/256)%256)*256),e=parseInt(parseInt(this.intValue()%256)*65536);return b+c+d+e};MQFillStyle.prototype=new MQType;
MQFillStyle.prototype.constructor=MQFillStyle;
function MQFillStyle(b){var c=-1;switch(b){case MQCONSTANT.MQFILLSTYLE_SOLID:c=b;break;case MQCONSTANT.MQFILLSTYLE_BDIAGONAL:c=b;break;case MQCONSTANT.MQFILLSTYLE_CROSS:c=b;break;case MQCONSTANT.MQFILLSTYLE_DIAG_CROSS:c=b;break;case MQCONSTANT.MQFILLSTYLE_FDIAGONAL:c=b;break;case MQCONSTANT.MQFILLSTYLE_HORIZONTAL:c=b;break;case MQCONSTANT.MQFILLSTYLE_VERTICAL:c=b;break;case MQCONSTANT.MQFILLSTYLE_NONE:c=b;break;default:alert(b+" is an invalid value for MQFillStyle!");throw b+" invalid value for MQFillStyle!";
}this.intValue=function(){return c}}MQFillStyle.prototype.getClassName=function(){return"MQFillStyle"};MQFillStyle.prototype.getObjectVersion=function(){return 0};MQDistanceUnits.prototype=new MQType;MQDistanceUnits.prototype.constructor=MQDistanceUnits;
function MQDistanceUnits(b){var c=0;b=b||0;switch(b){case MQCONSTANT.MQDISTANCEUNITS_MILES:c=b;break;case MQCONSTANT.MQDISTANCEUNITS_KILOMETERS:c=b;break;default:alert(b+" is an invalid value for MQDistanceUnits!");throw b+" invalid value for MQDistanceUnist!";}this.getValue=function(){return c}}MQDistanceUnits.prototype.getClassName=function(){return"MQDistanceUnits"};MQDistanceUnits.prototype.getObjectVersion=function(){return 0};MQRouteResultsCode.prototype=new MQType;
MQRouteResultsCode.prototype.constructor=MQRouteResultsCode;
function MQRouteResultsCode(b){var c=-2;switch(b){case MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED:c=b;break;case MQCONSTANT.MQROUTERESULTSCODE_SUCCESS:c=b;break;case MQCONSTANT.MQROUTERESULTSCODE_INVALID_LOCATION:c=b;break;case MQCONSTANT.MQROUTERESULTSCODE_ROUTE_FAILURE:c=b;break;case MQCONSTANT.MQROUTERESULTSCODE_NO_DATASET_FOUND:c=b;break;default:alert(b+" is an invalid value for MQRouteResultsCode!");throw b+" invalid value for MQRouteResultsCode!";}this.intValue=function(){return c}}
MQRouteResultsCode.prototype.getClassName=function(){return"MQRouteResultsCode"};MQRouteResultsCode.prototype.getObjectVersion=function(){return 0};MQRouteMatrixResultsCode.prototype=new MQType;MQRouteMatrixResultsCode.prototype.constructor=MQRouteMatrixResultsCode;
function MQRouteMatrixResultsCode(b){var c=-2;switch(b){case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED:c=b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_SUCCESS:c=b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION:c=b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE:c=b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND:c=b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION:c=b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS:c=
b;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS:c=b;break;default:alert(b+" is an invalid value for MQRouteMatrixResultsCode!");throw b+" invalid value for MQRouteMatrixResultsCode!";}this.intValue=function(){return c}}MQRouteMatrixResultsCode.prototype.getClassName=function(){return"MQRouteMatrixResultsCode"};MQRouteMatrixResultsCode.prototype.getObjectVersion=function(){return 0};MQLocationCollection.prototype=new MQObjectCollection(32678);
MQLocationCollection.prototype.constructor=MQLocationCollection;function MQLocationCollection(){MQObjectCollection.call(this,32678);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLOCATIONCOLLECTION()));this.setM_Xpath("LocationCollection")}a=MQLocationCollection.prototype;a.getClassName=function(){return"MQLocationCollection"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){if(b[d].nodeName==="Address"){e=new MQAddress;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="GeoAddress"){e=new MQGeoAddress;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="SingleLineAddress"){e=new MQSingleLineAddress;e.loadXml(mqXmlToStr(b[d]))}this.add(e)}}};
a.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};a.isValidObject=function(b){if(b)if(b.getClassName()==="MQGeoAddress"||b.getClassName()==="MQAddress"||b.getClassName()==="MQSingleLineAddress")return true;return false};MQLocationCollectionCollection.prototype=new MQObjectCollection(32678);
MQLocationCollectionCollection.prototype.constructor=MQLocationCollectionCollection;function MQLocationCollectionCollection(){MQObjectCollection.call(this,32678);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLOCATIONCOLLECTIONCOLLECTION()));this.setM_Xpath("LocationCollectionCollection")}a=MQLocationCollectionCollection.prototype;a.getClassName=function(){return"MQLocationCollectionCollection"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){e=new MQLocationCollection;e.loadXml(mqXmlToStr(b[d]));this.add(e)}}};a.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};
a.isValidObject=function(b){if(b)if(b.getClassName()==="MQLocationCollection")return true;return false};MQSignCollection.prototype=new MQObjectCollection(32678);MQSignCollection.prototype.constructor=MQSignCollection;function MQSignCollection(b){MQObjectCollection.call(this,32678);b&&this.setM_itemXpath(b);this.setValidClassName("MQSign");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSIGNCOLLECTION()));this.setM_Xpath("SignCollection")}a=MQSignCollection.prototype;a.getClassName=function(){return"MQSignCollection"};
a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;if(this.getValidClassName()==="MQSign")for(d=d;d<c;d++){e=new MQSign;e.setM_Xpath(this.getM_itemXpath());e.loadXml(mqXmlToStr(b[d]));this.add(e)}}};
a.loadXmlFromNode=function(b){b=mqCreateXMLDocImportNode(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;if(this.getValidClassName()==="MQSign")for(d=d;d<c;d++){e=new MQSign;e.setM_Xpath(this.getM_itemXpath());e.loadXmlFromNode(b[d]);this.add(e)}}};
a.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQPointCollection.prototype=new MQObjectCollection(32678);MQPointCollection.prototype.constructor=MQPointCollection;
function MQPointCollection(b){MQObjectCollection.call(this,32678);b&&this.setM_itemXpath(b);this.setValidClassName("MQPoint");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOINTCOLLECTION()));this.setM_Xpath("PointCollection")}MQPointCollection.prototype.getClassName=function(){return"MQPointCollection"};MQPointCollection.prototype.getObjectVersion=function(){return 0};
MQPointCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;if(this.getValidClassName()==="MQPoint")for(d=d;d<c;d++){var f,i;if(b[d].firstChild!==null)f=b[d].firstChild.nodeValue;d++;if(b[d].firstChild!==null)i=b[d].firstChild.nodeValue;e=new MQPoint(f,i);this.add(e)}}};
MQPointCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQDBLayerQueryCollection.prototype=new MQObjectCollection(32678);MQDBLayerQueryCollection.prototype.constructor=MQDBLayerQueryCollection;
function MQDBLayerQueryCollection(b){MQObjectCollection.call(this,32678);b&&this.setM_itemXpath(b);this.setValidClassName("MQDBLayerQuery");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSIGNCOLLECTION()));this.setM_Xpath("DBLayerQueryCollection")}MQDBLayerQueryCollection.prototype.getClassName=function(){return"MQDBLayerQueryCollection"};MQDBLayerQueryCollection.prototype.getObjectVersion=function(){return 0};
MQDBLayerQueryCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;if(this.getValidClassName()==="MQDBLayerQuery")for(d=d;d<c;d++){e=new MQDBLayerQuery;e.setM_Xpath(this.getM_itemXpath());e.loadXml(mqXmlToStr(b[d]));this.add(e)}}};
MQDBLayerQueryCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQManeuverCollection.prototype=new MQObjectCollection(32678);MQManeuverCollection.prototype.constructor=MQManeuverCollection;
function MQManeuverCollection(b){MQObjectCollection.call(this,32678);b&&this.setM_itemXpath(b);this.setValidClassName("MQManeuver");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getMANEUVERCOLLECTION()));this.setM_Xpath("ManeuverCollection")}MQManeuverCollection.prototype.getClassName=function(){return"MQManeuverCollection"};MQManeuverCollection.prototype.getObjectVersion=function(){return 0};
MQManeuverCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;if(this.getValidClassName()==="MQManeuver")for(d=d;d<c;d++){e=new MQManeuver;e.setM_Xpath(this.getM_itemXpath());e.loadXml(mqXmlToStr(b[d]));this.add(e)}}};
MQManeuverCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQTrekRouteCollection.prototype=new MQObjectCollection(32678);MQTrekRouteCollection.prototype.constructor=MQTrekRouteCollection;
function MQTrekRouteCollection(b){MQObjectCollection.call(this,32678);b&&this.setM_itemXpath(b);this.setValidClassName("MQTrekRoute");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getTREKROUTECOLLECTION()));this.setM_Xpath("TrekRouteCollection")}MQTrekRouteCollection.prototype.getClassName=function(){return"MQTrekRouteCollection"};MQTrekRouteCollection.prototype.getObjectVersion=function(){return 0};
MQTrekRouteCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;if(this.getValidClassName()==="MQTrekRoute")for(d=d;d<c;d++){e=new MQTrekRoute;e.setM_Xpath(this.getM_itemXpath());e.loadXml(mqXmlToStr(b[d]));this.add(e)}}};
MQTrekRouteCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQIntCollection.prototype=new MQObjectCollection(32678);MQIntCollection.prototype.constructor=MQIntCollection;
function MQIntCollection(b){MQObjectCollection.call(this,32678);this.setValidClassName("int");b&&this.setM_itemXpath(b);if(this.getClassName()==="MQIntCollection"){this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getINTCOLLECTION()));this.setM_Xpath("IntCollection")}}MQIntCollection.prototype.getClassName=function(){return"MQIntCollection"};MQIntCollection.prototype.getObjectVersion=function(){return 0};
MQIntCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){e=b[d].firstChild!==null?parseInt(b[d].firstChild.nodeValue):0;this.add(e)}}};
MQIntCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]="<"+this.getM_itemXpath()+">"+this.get(d)+"</"+this.getM_itemXpath()+">";b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQDTCollection.prototype=new MQIntCollection("Item");MQDTCollection.prototype.constructor=MQDTCollection;
function MQDTCollection(b){MQIntCollection.call(this,b);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.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(MQA.createXMLDocFromNode(MQA.MQXML.getFEATURECOLLECTION()));this.setM_Xpath("FeatureCollection")}MQFeatureCollection.prototype.getClassName=function(){return"MQFeatureCollection"};MQFeatureCollection.prototype.getObjectVersion=function(){return 0};
MQFeatureCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null,f="";for(d=d;d<c;d++){f=b[d].nodeName;if(f==="LineFeature"){e=new MQLineFeature;e.loadXml(mqXmlToStr(b[d]))}else if(f==="PointFeature"){e=new MQPointFeature;e.loadXmlFromNode(b[d])}else if(f==="PolygonFeature"){e=new MQPolygonFeature;e.loadXml(mqXmlToStr(b[d]))}this.add(e)}}};
MQFeatureCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Version="'+this.getObjectVersion()+'" Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQFeatureSpecifierCollection.prototype=new MQObjectCollection(32678);MQFeatureSpecifierCollection.prototype.constructor=MQFeatureSpecifierCollection;
function MQFeatureSpecifierCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQFeatureSpecifier");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getFEATURESPECIFIERCOLLECTION()));this.setM_Xpath("FeatureCollection")}MQFeatureSpecifierCollection.prototype.getClassName=function(){return"MQFeatureSpecifierCollection"};MQFeatureSpecifierCollection.prototype.getObjectVersion=function(){return 0};
MQFeatureSpecifierCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){if(b[d].nodeName==="FeatureSpecifier"){e=new MQFeatureSpecifier;e.loadXml(mqXmlToStr(b[d]))}this.add(e)}}};
MQFeatureSpecifierCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQGeocodeOptionsCollection.prototype=new MQObjectCollection(32678);MQGeocodeOptionsCollection.prototype.constructor=MQGeocodeOptionsCollection;
function MQGeocodeOptionsCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQGeocodeOptions");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getGEOCODEOPTIONSCOLLECTION()));this.setM_Xpath("GeocodeOptionsCollection")}MQGeocodeOptionsCollection.prototype.getClassName=function(){return"MQGeocodeOptionsCollection"};MQGeocodeOptionsCollection.prototype.getObjectVersion=function(){return 0};
MQGeocodeOptionsCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){if(b[d].nodeName==="GeocodeOptions"){e=new MQGeocodeOptions;e.loadXml(mqXmlToStr(b[d]))}this.add(e)}}};
MQGeocodeOptionsCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQCoverageStyle.prototype=new MQObjectCollection(32678);MQCoverageStyle.prototype.constructor=MQCoverageStyle;
function MQCoverageStyle(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getCOVERAGESTYLE()));this.setM_Xpath("CoverageStyle")}a=MQCoverageStyle.prototype;a.getClassName=function(){return"MQCoverageStyle"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){if(b[d].nodeName==="DTStyle"){e=new MQDTStyle;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="DTStyleEx"){e=new MQDTStyleEx;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="DTFeatureStyleEx"){e=new MQDTFeatureStyleEx;e.loadXml(mqXmlToStr(b[d]))}e!==null&&this.add(e);e=null}}};
a.saveXml=function(){var b=[];b[b.length]='<CoverageStyle Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="<Name>"+this.getProperty("Name")+"</Name>";b[b.length]="</CoverageStyle>";return b=b.join("")};a.setName=function(b){this.setProperty("Name",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getPRIMITIVECOLLECTION()));this.setM_Xpath("PrimitiveCollection")}MQPrimitiveCollection.prototype.getClassName=function(){return"MQPrimitiveCollection"};MQPrimitiveCollection.prototype.getObjectVersion=function(){return 0};
MQPrimitiveCollection.prototype.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){if(b[d].nodeName==="EllipsePrimitive"){e=new MQEllipsePrimitive;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="LinePrimitive"){e=new MQLinePrimitive;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="PolygonPrimitive"){e=new MQPolygonPrimitive;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName===
"RectanglePrimitive"){e=new MQRectanglePrimitive;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="TextPrimitive"){e=new MQTextPrimitive;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="SymbolPrimitive"){e=new MQSymbolPrimitive;e.loadXml(mqXmlToStr(b[d]))}this.add(e)}}};
MQPrimitiveCollection.prototype.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQStringCollection.prototype=new MQObjectCollection(32678);MQStringCollection.prototype.constructor=MQStringCollection;
function MQStringCollection(b){MQObjectCollection.call(this,32678);this.setValidClassName("String");b&&this.setM_itemXpath(b);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSTRINGCOLLECTION()));this.setM_Xpath("StringCollection")}a=MQStringCollection.prototype;a.getClassName=function(){return"MQStringCollection"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){this.removeAll();b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){e=b[d].firstChild!==null?b[d].firstChild.nodeValue:"";this.add(e)}}};
a.loadXmlFromNode=function(b){this.setM_XmlDoc(mqCreateXMLDocImportNode(b));b=this.getM_XmlDoc();if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){e=b[d].firstChild!==null?b[d].firstChild.nodeValue:"";this.add(e)}}};
a.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]="<"+this.getM_itemXpath()+">"+this.get(d)+"</"+this.getM_itemXpath()+">";b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};MQStrColCollection.prototype=new MQObjectCollection(32678);MQStrColCollection.prototype.constructor=MQStrColCollection;
function MQStrColCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQStringCollection");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSTRCOLCOLLECTION()))}MQStrColCollection.prototype.getClassName=function(){return"MQStrColCollection"};MQStrColCollection.prototype.getObjectVersion=function(){return 0};MQStrColCollection.prototype.saveXml=function(){for(var b=[],c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();return strRet=b.join("")};
MQAutoGeocodeCovSwitch.prototype=new MQObject;MQAutoGeocodeCovSwitch.prototype.constructor=MQAutoGeocodeCovSwitch;function MQAutoGeocodeCovSwitch(){MQObject.call(this);this.setM_Xpath("AutoGeocodeCovSwitch");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getAUTOGEOCODECOVSWITCH()))}a=MQAutoGeocodeCovSwitch.prototype;a.getClassName=function(){return"MQAutoGeocodeCovSwitch"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b))};a.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};
a.setName=function(b){this.setProperty("Name",b)};a.getName=function(){return this.getProperty("Name")};a.setMaxMatches=function(b){this.setProperty("MaxMatches",b)};a.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(MQA.createXMLDoc("<"+b+'><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/></'+b+">"))}else{this.setM_Xpath("AutoRouteCovSwitch");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getAUTOROUTECOVSWITCH()))}var c=new MQIntCollection;c.setM_Xpath("DataVendorCodes");this.getDataVendorCodes=function(){return c}}a=MQAutoRouteCovSwitch.prototype;
a.getClassName=function(){return"MQAutoRouteCovSwitch"};a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getDataVendorCodes();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")))};
a.saveXml=function(){var b=MQA.createXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc())};a.setName=function(b){this.setProperty("Name",b)};a.getName=function(){return this.getProperty("Name")};a.setDataVendorCodeUsage=function(b){this.setProperty("DataVendorCodeUsage",b)};a.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(MQA.createXMLDoc("<"+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(MQA.createXMLDocFromNode(MQA.MQXML.getAUTOMAPCOVSWITCH()))}var c=new MQIntCollection;c.setM_Xpath("ZoomLevels");c.add(6000);c.add(12000);c.add(24000);c.add(48000);c.add(96000);c.add(192000);c.add(400000);c.add(800000);c.add(1600000);c.add(3000000);c.add(6000000);c.add(12000000);c.add(24000000);c.add(48000000);this.getZoomLevels=function(){return c}}a=MQAutoMapCovSwitch.prototype;a.getClassName=function(){return"MQAutoMapCovSwitch"};
a.getObjectVersion=function(){return 0};a.loadXml=function(b){this.setM_XmlDoc(MQA.createXMLDoc(b));b=this.getDataVendorCodes();mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null&&b.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")))};a.saveXml=function(){var b=MQA.createXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),b,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc())};
a.setStyle=function(b){this.setProperty("Style",b)};a.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(MQA.createXMLDocFromNode(MQA.MQXML.getSESSION()))}a=MQSession.prototype;a.getClassName=function(){return"MQSession"};a.getObjectVersion=function(){return 0};
a.loadXml=function(b){b=MQA.createXMLDoc(b);this.setM_XmlDoc(b);if(b!==null){b=b.documentElement;b=b.childNodes;var c=b.length;c=c<32678?c:32678;var d=0,e=null;for(d=d;d<c;d++){e=null;if(b[d].nodeName==="MapState"){e=new MQMapState;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="CoverageStyle"){e=new MQCoverageStyle;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="AutoMapCovSwitch"){e=new MQAutoMapCovSwitch;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="DBLayerQueryCollection"){e=new MQDBLayerQueryCollection;
e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="FeatureCollection"){e=new MQFeatureCollection;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="PrimitiveCollection"){e=new MQPrimitiveCollection;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="Center"){e=new MQCenter;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="CenterLL"){e=new MQCenterLL;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="ZoomIn"){e=new MQZoomIn;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="ZoomOut"){e=
new MQZoomOut;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="ZoomTo"){e=new MQZoomTo;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="ZoomToRect"){e=new MQZoomToRect;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="ZoomToRectLL"){e=new MQZoomToRectLL;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="Pan"){e=new MQPan;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="BestFit"){e=new MQBestFit;e.loadXml(mqXmlToStr(b[d]))}else if(b[d].nodeName==="BestFitLL"){e=new MQBestFitLL;e.loadXml(mqXmlToStr(b[d]))}e!==
null&&this.add(e)}}};a.saveXml=function(){var b=[];b[b.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';for(var c=this.getSize(),d=0;d<c;d++)b[b.length]=this.get(d).saveXml();b[b.length]="</"+this.getM_Xpath()+">";return b=b.join("")};a.add=function(b){return this.addOne(b,null)};
a.isMapCommandObject=function(b){if(b){b=b.getClassName();return b==="MQCenter"||b==="MQCenterLatLng"||b==="MQZoomIn"||b==="MQZoomOut"||b==="MQZoomTo"||b==="MQZoomToRect"||b==="MQZoomToRectLatLng"||b==="MQPan"||b==="MQBestFit"||b==="MQBestFitLL"?true:false}};
a.addOne=function(b,c){c=this.getSize();var d=b.getClassName(),e=0;if(this.isValidObject(b))if(this.isMapCommandObject(b))for(e=0;e<c;e++){if(isMapCommandObject(get(e)))break}else for(e=0;e<c;e++){if(get(e).getClassId()==d)break}else{alert("Invalid object for this collection.");throw"Invalid object for this collection.";}if(e<c)c=this.set(e,b);else m_collection.add(b);return e};
a.isValidObject=function(b){if(b){b=b.getClassName();return b==="MQCenter"||b==="MQCenterLatLng"||b==="MQZoomIn"||b==="MQZoomOut"||b==="MQZoomTo"||b==="MQZoomToRect"||b==="MQZoomToRectLatLng"||b==="MQPan"||b==="MQBestFit"||b==="MQBestFitLL"||b==="MQDBLayerQueryCollection"||b==="MQCoverageStyle"||b==="MQFeatureCollection"||b==="MQAutoMapCovSwitch"||b==="MQPrimitiveCollection"||b==="MQMapState"?true:false}};function MQAuthentication(b){var c=b!=null?b:"";this.getInfo=function(){return c}}
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,e=c;this.saveXml=function(){return"<"+d+">"+e+"</"+d+">"}};