var Query=Class.create();Query.prototype={au:null,hs:0,gR:0,initialize:function(queryHash){this.au=queryHash;},getStyle:function(){if(this.au.style){return{defined:true,style:Number(this.au.style),orientation:$ifDefined(this.au.orientation,"n")};}else{return{defined:false};}},getCenter:function(){if(this.au.lat&&this.au.lon){return{defined:true,lat:parseFloat(this.au.lat),lon:parseFloat(this.au.lon),level:(this.au.level)?Number(this.au.level):this.au.level,entrylat:$defined(this.au.entrylat)?parseFloat(this.au.entrylat):null,entrylon:$defined(this.au.entrylon)?parseFloat(this.au.entrylon):null};}else if(this.au.gabix){var rg=this.au.gabix.split("_");var latlon=Utilities.Trans.UTMToLatLon(rg[1],rg[2]);lat=latlon.lat;lon=latlon.lon;return{defined:true,lat:lat,lon:lon,level:$defined(this.au.level)?Number(this.au.level):4};}else{return{defined:false};}},getRSS:function(){if(this.au.skey&&this.au.rssid){return{defined:true,url:"/Map/Page/RSS/ResultFeeder.aspx?skey="+this.au.skey,id:this.au.rssid};}else{return{defined:false};}},getCaption:function(){if(this.au.caption){return{defined:true,caption:this.au.caption};}else{return{defined:false};}},getType:function(){if(this.au.type){return{defined:true,type:this.au.type};}else{return{defined:false};}},getStartDetails:function(){if(this.au.description1){return{defined:true,description:this.au.description1,phonenumber:this.au.phonenumber1,mobile:this.au.mobile1,streetname:this.au.streetname1,housenumber:this.au.housenumber1,entrance:this.au.entrance1,postcode:this.au.postcode1,postarea:this.au.postarea1,firstname:this.au.firstname1,lastname:this.au.lastname1,lat:this.au.lat1,lon:this.au.lon1,countrycode:this.au.countrycode1};}else{return{defined:false};}},getDestinationDetails:function(){var cW=$defined(this.au.description5)?5:$defined(this.au.description4)?4:$defined(this.au.description3)?3:$defined(this.au.description2)?2: -1;if(cW!= -1){return{defined:true,description:this.au["description"+cW],phonenumber:this.au["phonenumber"+cW],mobile:this.au["mobile"+cW],streetname:this.au["street"+cW],housenumber:this.au["housenumber"+cW],entrance:this.au["entrance"+cW],postcode:this.au["postcode"+cW],postarea:this.au["postarea"+cW],firstname:this.au["firstname"+cW],lastname:this.au["lastname"+cW],lat:this.au["lat"+cW],lon:this.au["lon"+cW],countrycode:this.au["countrycode"+cW]};}else{return{defined:false};}},getPointDetails:function(){if(this.au.description){return{defined:true,description:this.au.description,phonenumber:this.au.phonenumber,mobile:this.au.mobile,streetname:this.au.streetname,housenumber:this.au.housenumber,entrance:this.au.entrance,postcode:this.au.postcode,postarea:this.au.postarea,firstname:this.au.firstname,lastname:this.au.lastname,county:this.au.county,countrycode:this.au.countrycode};}else if($defined(this.au.gabix)){var oT="";var gabix=this.au.gabix.split("_");if(gabix.length>0){oT=gabix[0];}return{defined:true,description:$ifDefined(this.au.Name,this.au.name),phonenumber:$ifDefined(this.au.Phone,this.au.phone),mobile:$ifDefined(this.au.Mobile,this.au.mobile),streetname:this.au.street,housenumber:oT,entrance:"",postcode:$ifDefined(this.au.PostalCode,this.au.postalcode),postarea:this.au.area,firstname:"",lastname:$ifDefined(this.au.Name,this.au.name),name:this.au.name,county:"",countrycode:this.au.countrycode};}else{return{defined:false};}},getScene:function(){if(this.au.sceneid){return{defined:true,sceneid:this.au.sceneid};}else{return{defined:false};}},getSearchDetails:function(){if(this.au.Query){return{defined:true,searchFor:this.au.Query};}else{return{defined:false};}}}