RapidMapsPreferences={mapObject:"",mapType:"\x33\x64",mapLatitude:45.47281868584038,mapLongitude:12.253832817077637,mapZoom:14,controlSize:"\x6c\x61\x72\x67\x65",controlType:true,controlScroll:true,controlPosition:"\x74\x6f\x70\x6c\x65\x66\x74",markerText:"",marketDirections:false,markerGet:"\x47\x65\x74\ \x64\x69\x72\x65\x63\x74\x69\x6f\x6e\x73",markerFrom:"\x46\x72\x6f\x6d\ \x68\x65\x72\x65",markerTo:"\x54\x6f\ \x68\x65\x72\x65"};RapidMaps={initialize:function(){if(this.checkCompatibility()){this.createMap();if(RapidMapsPreferences.controlScroll){this.enableScroll();}this.setType();this.setCenter();this.addControls();if(RapidMapsPreferences.markerText!=""){this.addMarker();}}},createMap:function(){RapidMapsPreferences.mapObject=new GMap2(document.getElementById("\x72\x6d\x4d\x61\x70"),RapidMapsPreferences.mapZoom);},checkCompatibility:function(){if(GBrowserIsCompatible()){if(document.implementation.hasFeature("\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\x6f\x72\x67\x2f\x54\x52\x2f\x53\x56\x47\x31\x31\x2f\x66\x65\x61\x74\x75\x72\x65\x23\x53\x56\x47","\x31\x2e\x31")){_mSvgEnabled=true;_mSvgForced=true;}return true;}return false;},enableScroll:function(){RapidMapsPreferences.mapObject.enableScrollWheelZoom();},setType:function(){switch(RapidMapsPreferences.mapType){case "\x33\x64":RapidMapsPreferences.mapObject.setMapType(G_SATELLITE_3D_MAP);break;case "\x73\x61\x74\x65\x6c\x6c\x69\x74\x65":RapidMapsPreferences.mapObject.setMapType(G_SATELLITE_MAP);break;case "\x70\x68\x79\x73\x69\x63\x61\x6c":RapidMapsPreferences.mapObject.setMapType(G_PHYSICAL_MAP);break;case "\x68\x79\x62\x72\x69\x64":RapidMapsPreferences.mapObject.setMapType(G_HYBRID_MAP);break;default:RapidMapsPreferences.mapObject.setMapType(G_NORMAL_MAP);}},setCenter:function(){RapidMapsPreferences.mapObject.setCenter(new GLatLng(RapidMapsPreferences.mapLatitude,RapidMapsPreferences.mapLongitude),RapidMapsPreferences.mapZoom);},addControls:function(){switch(RapidMapsPreferences.controlPosition){case "\x74\x6f\x70\x72\x69\x67\x68\x74":position=G_ANCHOR_TOP_RIGHT;break;case "\x62\x6f\x74\x74\x6f\x6d\x6c\x65\x66\x74":position=G_ANCHOR_BOTTOM_LEFT;break;case "\x62\x6f\x74\x74\x6f\x6d\x72\x69\x67\x68\x74":position=G_ANCHOR_BOTTOM_RIGHT;break;default:position=G_ANCHOR_TOP_LEFT;}switch(RapidMapsPreferences.controlSize){case "\x33\x64":RapidMapsPreferences.mapObject.addControl(new GLargeMapControl3D(),position);break;case "\x73\x6d\x61\x6c\x6c":RapidMapsPreferences.mapObject.addControl(new GSmallMapControl(),position);break;case "\x6c\x61\x72\x67\x65":RapidMapsPreferences.mapObject.addControl(new GLargeMapControl(),position);break;}if(RapidMapsPreferences.controlType){RapidMapsPreferences.mapObject.addMapType(G_PHYSICAL_MAP);RapidMapsPreferences.mapObject.addMapType(G_SATELLITE_3D_MAP);RapidMapsPreferences.mapObject.addControl(new GMapTypeControl(),position);}},addMarker:function(){if(RapidMapsPreferences.markerDirections){RapidMapsPreferences.markerText+="\x3c\x62\x72\ \x2f\x3e\x3c\x62\x72\ \x2f\x3e";RapidMapsPreferences.markerText+=RapidMapsPreferences.markerGet+"\x3a\ ";RapidMapsPreferences.markerText+="\x3c\x61\ \x68\x72\x65\x66\x3d\"\x68\x74\x74\x70\x3a\x2f\x2f\x6d\x61\x70\x73\x2e\x67\x6f\x6f\x67\x6c\x65\x2e\x63\x6f\x6d\x2f\x6d\x61\x70\x73\x3f\x73\x61\x64\x64\x72\x3d"+RapidMapsPreferences.mapLatitude+"\x2c"+RapidMapsPreferences.mapLongitude+"\"\ \x74\x61\x72\x67\x65\x74\x3d\"\x5f\x62\x6c\x61\x6e\x6b\"\x3e"+RapidMapsPreferences.markerFrom+"\x3c\x2f\x61\x3e\ \x2d\ ";RapidMapsPreferences.markerText+="\x3c\x61\ \x68\x72\x65\x66\x3d\"\x68\x74\x74\x70\x3a\x2f\x2f\x6d\x61\x70\x73\x2e\x67\x6f\x6f\x67\x6c\x65\x2e\x63\x6f\x6d\x2f\x6d\x61\x70\x73\x3f\x64\x61\x64\x64\x72\x3d"+RapidMapsPreferences.mapLatitude+"\x2c"+RapidMapsPreferences.mapLongitude+"\"\ \x74\x61\x72\x67\x65\x74\x3d\"\x5f\x62\x6c\x61\x6e\x6b\"\x3e"+RapidMapsPreferences.markerTo+"\x3c\x2f\x61\x3e";}marker=new GMarker(new GLatLng(RapidMapsPreferences.mapLatitude,RapidMapsPreferences.mapLongitude));RapidMapsPreferences.mapObject.addOverlay(marker);marker.openInfoWindowHtml(RapidMapsPreferences.markerText);},getPrefs:function(){return RapidMapsPreferences;}};window.onload=function(){RapidMaps.initialize();};