//from Google Maps book by Purvis et al. 2006

var PromoControl2 = function(url){
  this.url_=url;
};


PromoControl2.prototype = new GControl(true);

PromoControl2.prototype.initialize = function(map) {
	var container = document.createElement("div");
	container.innerHTML = '<img style="cursor:pointer" src="images/usfs.png" border="0" HEIGHT=35 WIDTH=35>';
	container.style.width='35px';
	container.style.height='35px';
	
	url = this.url_;
	
	GEvent.addDomListener(container, "click", function() {
           var win=window.open("http://www.fia.fs.fed.us/","FIA","width=640,height=640,left=640,top=10,rezizable=1,toolbar=1,scrollbars=1,location=1,menubar=1,status=1,directories=1");
           win.focus();  
	   //document.location=url;//replaces the map 
      
	});
	
	map.getContainer().appendChild(container);
	
	return container;
};

PromoControl2.prototype.getDefaultPosition = function() {
	return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(180,0));
};


