var posX=10,posY=10;
var intervalID;
var htmlBodyBefore,htmlBodyAfter;
var htmlBefore,htmlAfter;
var PopupWindow

//For IE use a IFRAME to put the help-layer over select-boxes etc, so specify the style here
htmlBodyBefore="<html><head><title>Help</title><style> td { font-family : Geneva, sans-serif; font-size : 12px; color : #000000; } </style></head><body topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\"><table cellspacing=0 cellpadding=1 border=0 width=300><tr><td bgcolor=#000000 valign=top><table cellspacing=0 cellpadding=3 border=0 width=298><tr><td bgcolor=#FFFFCC valign=top>"
htmlBodyAfter="</td></tr></table></td><td width=1 valign=bottom><img src=/images/x_black.gif width=1 height=1 id=positioner></td></tr></table></body></html>"
//For all other browsers use a normal HTML layer
htmlBefore="<p>"
htmlAfter="</p>"

/*if(is_nav4) {
	//anchor-tag doesn't support the onmousemove-event in NS so use the document.onmousemove
	//NOTE: This wil allways move the help even if it is hidden
	document.captureEvents(Event.MOUSEMOVE)
	document.onmousemove=movehelp;
}*/

//popup the help-item
function popuphelp(tel,text,evt) {
	if(is_ie4up) {
		help.style.visibility='hidden';
		help.innerHTML=htmlBefore + text + htmlAfter;
		//"<iframe frameborder=0 width=300 height=300 scrolling=No marginheight=0 marginwidth=0 name=\"helpframe\"></iframe>";
		//window.frames.helpframe.document.write(htmlBodyBefore + text + htmlBodyAfter);
		help.style.left=((tel-1)%3)*75+75;
		help.style.top=Math.floor((tel-1)/3)*75-150;
		//window.frames.helpframe.resizeTo(300,window.frames.helpframe.positioner.offsetTop+2);
		help.style.visibility='visible';
	}
	if(is_nav4) {
		document.layers['help'].document.clear();
		document.layers['help'].document.write(htmlBefore + text + htmlAfter);
		document.layers['help'].document.close();
		document.layers['help'].left = evt.pageX + posX;
		document.layers['help'].top  = evt.pageY + posY;
		document.layers['help'].visibility='show';
	}
	if(is_nav6up || is_opera5up) {
		document.getElementById('help').innerHTML=htmlBefore + text + htmlAfter;
		document.getElementById('help').style.left=evt.pageX + posX;
		document.getElementById('help').style.top=evt.pageY + posY;
		document.getElementById('help').style.visibility='visible';
	}
}

//popdown the help-item
function popdownhelp() {
	if(is_ie4up) {
		help.style.visibility='hidden';
	}
/*	if(is_nav4) {
		clearInterval(intervalID);
		document.layers['help'].visibility='hide';
	}*/
	if(is_nav6up || is_opera5up) {
		document.getElementById('help').style.visibility='hidden';
	}
}

//move the help-item
function movehelp(evt) {
	if(is_ie4up) {
		if(help.style.visibility=='visible') {
			help.style.left=Body.scrollLeft+window.event.clientX+posX;
			help.style.top=Body.scrollTop+window.event.clientY+posY;
		}
	}
	if(is_nav4) {
		if(document.layers['help'].visibility=='show' || document.layers['help'].visibility=='visible') {
			document.layers['help'].left = evt.pageX + posX;
			document.layers['help'].top  = evt.pageY + posY;
		}
	}
	if(is_nav6up || is_opera5up) {
		if(document.getElementById('help').style.visibility=='visible') {
			document.getElementById('help').style.left=evt.pageX+posX;
			document.getElementById('help').style.top=evt.pageY+posY;
		}
	}
}
