var NB = NB || {};
NB.HRS = NB.HRS || {};

YUI().use('*', function(Y) {
	NB.HRS.HoverMap = function(mapId,detailId) {
		Y.on("load",function(){
			this.mapId = mapId;
			this.detailId = detailId;
			this.mapNode = Y.get("#" + mapId);
			this.detailNode = Y.get("#" + this.detailId);
			this.hoverLinks = Y.all(".detail-link");
			this.hoverLinks.on("mouseover", function(e){
				this.detailNode.set("innerHTML", e.target.one(".detail-content").get("innerHTML"));
			}, this);
			this.hoverLinks.on("click", function(e){
				window.open(e.target.get("title"));
			});
		})
	}
	
	NB.HRS.HoverMap.prototype = {
		
	};
})
