
function DSSmallMapIcon(point,iconSrc,zIndex){this.init(point,iconSrc,zIndex);}
DSSmallMapIcon.prototype=new DSIcon();DSSmallMapIcon.superclass=DSIcon.prototype;DSSmallMapIcon.prototype.init=function(point,iconSrc,zIndex){this._setSize(iconSrc);DSSmallMapIcon.superclass.init.call(this,point,iconSrc,this.width,this.height,zIndex);this.addEventListener('mouseover',DSSmallMapIcon.showAddress);this.addEventListener('mouseout',DSSmallMapIcon.hideAddress);this.addEventListener('click',function(){dsform.go(urls.viewMap,0)});};DSSmallMapIcon.hideAddress=function(e,poi){var d=document.getElementById('smallMapAddr');DOMNode.truncate(d);d.appendChild(document.createTextNode(lcl.getString('js.smallmapinstr')));}
DSSmallMapIcon.showAddress=function(e,poi){var d=document.getElementById('smallMapAddr');DOMNode.truncate(d);var c=DOMNode.create(d,'','dl','class','addrBlock');DOMNode.create(c,poi.getProperty('name'),'dt');var addr;if((addr=poi.getProperty('address'))){DOMNode.create(c,addr,'dd');}}
function DSSmallMapIcon_SetSize(iconSrc){var offset;if(iconSrc.match(/map_icon_(\d+)/)){offset=RegExp.$1;}
if(offset&&offset>=100){this.width='34';this.height='29';}else{this.width='24';this.height='27';}}
DSSmallMapIcon.prototype._setSize=DSSmallMapIcon_SetSize;