function fInfo(a_InfoTextHTML,e)
{ 
	// Get cursor position with respect to the page.
	var x = 0; 
    var y = 0; 
    if (!e) var e = window.event;
	
    if (e.pageX || e.pageY) 
    { 
	    x = e.pageX; 
        y = e.pageY;
		
		x = e.pageX + document.documentElement.scrollLeft + document.body.scrollLeft - 222;
        y = e.pageY + document.documentElement.scrollTop + document.body.scrollTop;
 
    } 
    else if (e.clientX || e.clientY) 
    {  
	    x = e.clientX; 
        y = e.clientY;
		
        x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft - 222;
        y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
   }
   
 
	
		
  //if (browser.isIE) {

 //}
  //if (browser.isNS) {
    //x = event.clientX + window.scrollX;
    //y = event.clientY + window.scrollY;
  //}
	info.innerHTML= "<table class='info'><tr><td>" + a_InfoTextHTML + "</td></tr></table>";
	info.style.display = ""
	info.style.position="absolute"
	info.style.left= x; 
	info.style.top= y;
	info.style.zIndex="2000";	
	info.style.width="220";
	info.style.border= "1px solid #000";
}

function fHideInfo()
{
	info.style.display = "none";
}

function fInfoSpan(a_Span,a_Xdev,a_Ydev,a_Height,a_Width)
{
	var x;
	var y;
    //x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft - a_Xdev;
    //y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop - a_Ydev;
	
	x = a_Xdev;
	y = a_Ydev;

	a_Span.style.display="";
	a_Span.style.position="absolute";
	a_Span.style.left= x; 
	a_Span.style.top= y;
	a_Span.style.height= a_Height;
	a_Span.style.width= a_Width;
	/* a_Span.style.border= "1px solid #000"; */
}

function fHideInfoSpan(a_Span)
{
	a_Span.style.display = "none";
}


function fInfoButton(a_InfoTextHTML, a_Width)
{
	// Get cursor position with respect to the page.
	var x;
	var y;

    x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft + 3;
    y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
	
	info.innerHTML= "<table class='info'><tr valign=top><td><div onmouseout='fHideInfo();'>" + a_InfoTextHTML + "</div></td></tr></table>";
	info.style.display = ""
	info.style.position="absolute"
	// kan ik m van de button afhouden???
	info.style.left= x - 100; 
	info.style.top= y - 50;
	info.style.zIndex="2000";	
	info.style.width= a_Width;
	info.style.border= "1px solid #000";
}

function fInfoPopup(a_InfoTextHTML)
{
	// Get cursor position with respect to the page.
	var x;
	var y;
    	x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft + 15;
    	y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
	info.innerHTML= "<table class='info'><tr><td>" + a_InfoTextHTML + "</td></tr></table>";
	info.style.display = ""
	info.style.position="absolute"
	info.style.left= x; 
	info.style.top= y;
	info.style.zIndex="2000";	
	info.style.width="50%";
	info.style.border= "1px solid #000";
}

function fInfoPopupIframe(a_InfoTextHTML)
{
	// Get cursor position with respect to the page.
	var x;
	var y;
    	x = window.event.clientX + document.documentElement.scrollLeft + document.body.scrollLeft + 15;
    	y = window.event.clientY + document.documentElement.scrollTop + document.body.scrollTop;
	info.innerHTML= "<table class='info'><tr><td>" + a_InfoTextHTML + "</td></tr></table>";
	info.style.display = ""
	info.style.position="absolute"
	info.style.left= x; 
	info.style.top= y;
	info.style.zIndex="2000";	
	info.style.width="50%";
}

function fHideInfoPopup()
{
	info.style.display = "none";
}

