function ProgressbarMapControl(map,width){this.map_=map;this.width_=width}ProgressbarMapControl.prototype=new GControl(true,false);ProgressbarMapControl.prototype.initialize=function(){var container_=document.createElement('div');container_.innerHTML='<div style="position:absolute;width:100%;border:5px;'+'text-align:center;vertical-align:bottom;" id="geo_progress_text"></div>'+'<div style="background-color:green;height:100%;" id="geo_progress"></div>';container_.id="geo_progress_container";container_.style.display="none";container_.style.width=this.width_+"px";container_.style.fontSize="1em";container_.style.border="1px solid #555";container_.style.backgroundColor="white";container_.style.textAlign="center";container_.style.margin=0;this.map_.getContainer().appendChild(container_);return container_};ProgressbarMapControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(30,56))};function ProgressbarControl(map,opt_opts){this.options_=opt_opts||{};this.width_=this.options_.width||176;this.loadstring_=this.options_.loadstring||'Loading...';this.control_=new ProgressbarMapControl(map,this.width_);this.map_=map;this.map_.addControl(this.control_);this.div_=document.getElementById('geo_progress');this.text_=document.getElementById('geo_progress_text');this.container_=document.getElementById('geo_progress_container');this.operations_=0;this.current_=0}ProgressbarControl.prototype.start=function(operations){$('div#mapContainer').block({message:'<div><br/><h2><img src="/images/gmap_busy.gif"/>&nbsp;Loading, Please wait...</h2></div>',css:{border:'3px solid'}})};ProgressbarControl.prototype.remove=function(){$('div#mapContainer').unblock({fadeOut:150})};