var mapPos;
OpenLayers.Control.WmsFeatureInfo=OpenLayers.Class(OpenLayers.Control,{popup:null,handlerOptions:{single:true,"double":false,pixelTolerance:0,stopSingle:true,stopDouble:false},initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,arguments);
this.popup=a;
this.handler=new OpenLayers.Handler.Click(this,{click:this.trigger},this.handlerOptions)
},trigger:function(a){var c=this.popup;
var b=this.map.getLonLatFromPixel(a.xy);
jQuery.get("/public/map/features.htm?bounds="+this.map.getExtent().toBBOX()+"&srs="+this.map.getProjection()+"&clientX="+a.xy.x+"&clientY="+a.xy.y+"&clientWidth="+this.map.size.w+"&clientHeight="+this.map.size.h,function(d){if(d){c.show(b,d)
}})
}});
