	var moused_over_AINicon	= false;
	var moused_over_AINdiv		= false;
			
	function show_AINdiv(type,iWidth, extraX, extraY)
	{
		moused_over_AINicon = true;
		
		var AINdiv;
		var AINframe;
		
		if(!document.getElementById('AINdiv'))
		{
			AINdiv = document.createElement("DIV");
					
			AINdiv.id							= 'AINdiv';
			AINdiv.style.visibility			= 'hidden';
			AINdiv.style.position				= 'absolute';
			AINdiv.style.width					= iWidth+'px' ;
			AINdiv.style.backgroundColor		= '#FAF5E4';
			AINdiv.style.border				= '1px solid #000000';
			AINdiv.style.filter				= 'progid:DXImageTransform.Microsoft.DropShadow(\'OffX=5, OffY=5, Color="gray", Positive="true"\')';
			AINdiv.style.zIndex				= 100;
			AINdiv.attachEvent('onmouseover',	mouseover_AINdiv);
			AINdiv.attachEvent('onmouseout',	mouseout_AINdiv);
			
			document.body.appendChild(AINdiv);
			
			AINframe = document.createElement("IFRAME");
			
			AINframe.id						= 'AINframe';
			AINframe.style.position			= 'absolute';
			AINframe.scrolling				= 'no';
			AINframe.frameBorder				= 'no';
			AINframe.style.top				= '0px';
			AINframe.style.left				= '0px';
			AINframe.src						= 'javascript:false';
			AINframe.style.display			= 'none';

			document.body.appendChild(AINframe);
		}
		
		// get the current mousepositions
		posx = na_mouseX(window.event) + extraX;
		posy = na_mouseY(window.event) + extraY;
		
		// get the according helptext
		var AINtag = document.getElementById(type).innerHTML;
				
		// prepare the div for showing
		AINframe	= document.getElementById('AINframe');
		AINdiv		= document.getElementById('AINdiv');
		
		//AdW - this line caused the AINdiv's to be shown incorrectly in IE7
		//AINdiv.style.height		= '10px';

		AINdiv.innerHTML = '<table><tr><td>'+AINtag+'</td></tr></table>';
		
		if(Math.abs((posy-0) + (AINdiv.clientHeight-0)) > document.body.clientHeight + document.body.scrollTop)
			posy = document.body.clientHeight - AINdiv.clientHeight + document.body.scrollTop - 10;

		AINdiv.style.left			= posx+'px';
		AINdiv.style.top			= posy+'px';

		AINframe.style.width	= AINdiv.clientWidth;
		AINframe.style.height = AINdiv.clientHeight;
		AINframe.style.top	= AINdiv.style.top;
		AINframe.style.left	= AINdiv.style.left;
		AINframe.style.zIndex	= AINdiv.style.zIndex - 1;
		
		AINdiv.style.visibility		= 'visible';
		AINframe.style.display	= 'block';
	}
			
	function hide_AINdiv()
	{
		moused_over_AINicon = false;
		setTimeout("hide_AINdiv_trigger()", 500);
	}
			
	function hide_AINdiv_trigger()
	{
		var AINdiv = document.getElementById('AINdiv');
		var AINframe = document.getElementById('AINframe');
		if((!moused_over_AINicon) && (!moused_over_AINdiv)) {
			AINframe.style.display = 'none'
			AINdiv.style.visibility = 'hidden';
			
		}
	}
	
	function na_mouseX(evt)
	{
		if (evt.pageX)
		{
			return evt.pageX;
		}
		else if (evt.clientX)
		{
			return evt.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
		}
		else
		{
			return 0;
		}
	}
	
	function na_mouseY(evt)
	{
		if (evt.pageY)
		{
			return evt.pageY;
		}
		else if (evt.clientY)
		{
			return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
		}
		else
		{
			return 0;
		}
	}
	
	function mouseover_AINdiv()
	{
		moused_over_AINdiv = true;
	}
	function mouseout_AINdiv()
	{
		moused_over_AINdiv = false;
		setTimeout("hide_AINdiv_trigger()", 500);
	}
		
