google.load("maps","2");function _cZC(){}
function _apzc(ww){_cZC.prototype=new GControl();_cZC.prototype.initialize=function(ww){var _ccg=document.createElement("div");var _czzi=document.createElement("div");_czzi.setAttribute("class","mapStyle");_czzi.innerHTML="<img title=\"aumenta lo zoom&nbsp;\" width=73 heigth=21 src=\"../templates/img/btzoominmap.gif\" />";_ccg.appendChild(_czzi);GEvent.addDomListener(_czzi,"click",function(){ww.zoomIn();});var _czzo=document.createElement("div");_czzo.setAttribute("class","mapStyle");_czzo.innerHTML="<img title=\"diminuisci lo zoom&nbsp;\" width=73 heigth=21 src=\"../templates/img/btzoomoutmap.gif\" />";_ccg.appendChild(_czzo);GEvent.addDomListener(_czzo,"click",function(){ww.zoomOut();});ww.getContainer().appendChild(_ccg);return _ccg;}
_cZC.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(7,7));}
ww.addControl(new _cZC());}
function _iiGM(a){GMap2.prototype.defaultLat='41.895465';GMap2.prototype.defaultLng='12.482324';GMap2.prototype.defaultZoom=11;GMap2.prototype.getMarkerIcon=function(_ct,_pt,_nfp){var gicon=new GIcon();var _fdd;if(_ct==0){_fdd="red";if(_nfp>300&&_nfp<=600)
_fdd+="+";else if(_nfp>600&&_nfp<=900)
_fdd+="++";else if(_nfp>900 || _nfp == 0)
_fdd+="+++";gicon.image="../templates/img/markers/"+_fdd+"/rent_"+_pt+".png";}else{_fdd="green";if(_nfp>200000&&_nfp<=400000)
_fdd+="+";else if(_nfp>400000&&_nfp<=700000)
_fdd+="++";else if(_nfp>700000 || _nfp == 0)
_fdd+="+++";gicon.image="../templates/img/markers/"+_fdd+"/sell_"+_pt+".png";}
gicon.shadow="../templates/img/icons/ombra.png";gicon.iconSize=new GSize(32,36);gicon.shadowSize=new GSize(57,35);gicon.iconAnchor=new GPoint(16,16);gicon.infoWindowAnchor=new GPoint(16,16);return gicon;}
GMap2.prototype.getDefaultMarkerIcon=function(){var gicon=new GIcon();gicon.image="../templates/img/icons/houseblu.png";gicon.shadow="../templates/img/icons/ombra.png";gicon.iconSize=new GSize(32,36);gicon.shadowSize=new GSize(57,35);gicon.iconAnchor=new GPoint(16,16);gicon.infoWindowAnchor=new GPoint(16,16);return gicon;}
GMap2.prototype.geocoder=new GClientGeocoder();GMap2.prototype._gTT=function(_xMm,ii){var _imtb=new Ext.Toolbar({height:32,cls:'maptoolbar',items:[{allowDepress:false,enableToggle:true,pressed:true,xtype:'tbbutton',handler:function(){_xMm.zoomIn();},text:'zoom +',iconCls:Ext.isIE6?'icon-zoom_in-gif':'icon-zoom_in'},{xtype:'tbspacer'},{xtype:'tbspacer'},{allowDepress:false,enableToggle:true,pressed:true,handler:function(){_xMm.zoomOut();},xtype:'tbbutton',text:'zoom -',iconCls:Ext.isIE6?'icon-zoom_out-gif':'icon-zoom_out'},{xtype:'tbspacer'},{xtype:'tbspacer'},{xtype:'tbfill'},{xtype:'tbspacer'},{xtype:'tbspacer'},{allowDepress:false,enableToggle:true,pressed:true,handler:function(){_xMm.setMapType(G_NORMAL_MAP);},xtype:'tbbutton',toggleGroup:'mapgroup',text:'mappa'},{xtype:'tbspacer'},{allowDepress:false,enableToggle:true,handler:function(){_xMm.setMapType(G_SATELLITE_MAP);},xtype:'tbbutton',toggleGroup:'mapgroup',text:'satellite'},{xtype:'tbspacer'},{allowDepress:false,enableToggle:true,handler:function(){_xMm.setMapType(G_HYBRID_MAP);},xtype:'tbbutton',toggleGroup:'mapgroup',text:'ibrida'},{xtype:'tbspacer'}]});var q=new Ext.Window({x:243,y:67,height:32,width:document.body.offsetWidth-251,closable:false,resizable:false,frame:false,cls:'maptoolbar',id:ii,tbar:_imtb});Ext.WindowMgr.sendToBack(q);return q;}
GMap2.prototype._apzc=function(){_apzc(this);};return new GMap2(document.getElementById(a));}

