var tipWindowStatus='off';//Vis infoboks for stederfunction showInfo( annotation ){    pInfo.style.top = annotation.y - 2 + 'px';    pInfo.style.left = annotation.x + 15 + 'px';    pInfo.style.display = 'block';    pInfo.innerHTML = annotation.title;    annotation.img.src = annotation.img.src.replace( '.gif' , '2.gif' );} //Skjul infoboks for stederfunction hideInfo( annotation ){    pInfo.style.display = 'none';    pInfo.innerHTML = '';    annotation.img.src = annotation.img.src.replace( '2.gif' , '.gif' );}//Last inn kart dynamiskfunction dynLoadMap(){	var utmPos = "map.decimalDegreesToUTM( new Coordinate( " + pLon + " , " + pLat + " ));"	if ( map == null )	{		map = new AJAXMAP( 'map' , null , false )		map.init( utmPos , '4' ) ;		map.setMapStyle( 1 );		map.addAnnotation( new Annotation( utmPos , pName , pName , pIcon ));		map.resize( '400' , '400' );		map.toggleMapStyle();	}}//Vis infoboks og sentrerfunction showInfoBox( annotation ){    map.centerOnCoords( annotation.coordinate );    pInfo.style.top = annotation.y - 2 + 'px';    pInfo.style.left = annotation.x + 15 + 'px';    pInfo.style.display = 'block';    pInfo.innerHTML = annotation.description;}//Legg til javascript tipsaddTipText = function( item ){  	$( item ).observe( 'mouseover', togglePreview );  	$( item ).observe( 'mouseout', togglePreview );  }  //Funksjon for \u00E5 sl\u00E5 tips vindu av eller p\u00E5togglePreview = function( event ){  	var elementPreviewId = Event.element(event).id + '_tip';	if ( tipWindowStatus == 'off' )	{		tipWindowStatus = 'on' ;		$(elementPreviewId).show();	} else {		tipWindowStatus = 'off' ;		$(elementPreviewId).hide();	}  }  