// (c) 2007 KystAtlas AS (Hans Martin Mohn)

gtToolImageMap.prototype=new gtTool();gtToolImageMap.prototype.constructor=gtTool;gtToolImageMap.superclass=gtTool.prototype;function gtToolImageMap()
{this.m_map=null;this.m_event_handler=new gtEventHandler();}
gtToolImageMap.prototype.select=function(map)
{this.m_map=map;this.m_map.setCursor("");}
gtToolImageMap.prototype.buttonDown=function(evt)
{if(evt.gtElement.tagName!="AREA")
return;this.m_button_down=true;gtCancelBubble(evt);return gtPreventDefault(evt);}
gtToolImageMap.prototype.buttonUp=function(evt)
{if(evt.gtElement.tagName!="AREA")
return;if(this.m_button_down)
{this.m_button_down=false;try
{var s=decodeURI(evt.gtElement.href).split(/[:|]/g);}
catch(e)
{var h=evt.gtElement.href;h=h.replace(/\%E6/g,"æ");h=h.replace(/\%F8/g,"ø");h=h.replace(/\%E5/g,"å");h=h.replace(/\%E4/g,"ä");h=h.replace(/\%F6/g,"ö");h=h.replace(/\%C6/g,"Æ");h=h.replace(/\%D8/g,"Ø");h=h.replace(/\%C5/g,"Å");h=h.replace(/\%C4/g,"Ä");h=h.replace(/\%D6/g,"Ö");var s=decodeURI(h).split(/[:,]/g);}
var javascript=s.shift();this.m_event_handler.raise(s);}
gtCancelBubble(evt);return gtPreventDefault(evt);};gtToolImageMap.prototype.click=function(evt)
{gtCancelBubble(evt);return gtPreventDefault(evt);};this.canHandleSelection=function(selection){return true;}