Xoffset=-60;    // modify these values to ...
Yoffset= 20;    // change the popup position.

var nav,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape"){(document.layers)?nav=true:old=true;}

if(!old){
var skn=(nav)?document.dek:dek.style;
if(nav)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mouse;
}



function Comment01(msg,bak,Breedte)
{
var content="<TABLE bgcolor='#FFF9BB' background='images/bl013.gif' WIDTH=" + Breedte + " BORDER=02 BORDERCOLOR='" + bak + "' CELLPADDING=2 CELLSPACING=0 " +
"><TD ALIGN=left valign=middle><FONT face='ms serif' color='#000000' size=2><p align='left'>"+msg+"</p></FONT></TD></TABLE>";
if(old){alert(msg);return;} 
else{yyy=Yoffset;
 if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
 }
}

function get_mouse(e){
var x=(nav)?e.pageX:event.x+document.body.scrollLeft;skn.left=x+Xoffset;
var y=(nav)?e.pageY:event.y+document.body.scrollTop;skn.top=y+yyy;
}

function kill02(){
if(!old){yyy=-1000;skn.visibility="hidden";}
}

// ----- 07.07.2007 - AA, IVM NED + ENG COMMENTAAR -----
function CommentInt02(msgNED,msgENG,bak,Breedte)
{
var PrefixNED="<img src=images/info-ned.gif align=right>"
var Seperator="<br><hr width=75%>"
var PrefixENG="<img src=images/info-english.gif align=right>"
var Content="<TABLE bgcolor='#FFF9BB' background='images/bl103.gif' WIDTH=" + Breedte + " BORDER=02 BORDERCOLOR='" + bak + "' CELLPADDING=2 CELLSPACING=0 >" 
          + "<TD ALIGN=left><FONT face='ms serif' color='#000000' size=2>"  
          + PrefixNED + msgNED + Seperator + PrefixENG + msgENG 
          + "</FONT></TD></TABLE>";
if(old){alert(msg);return;} 
else{yyy=Yoffset;
 if(nav){skn.document.write(Content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=Content;skn.visibility="visible"}
 }
}


// ----- 25.08.2007 - DISPLAY COMMENT RELEASE 03 -----

// ----- WE USE InternetExplorer -----
var MyFil=0;
if (!document.layers&&!document.all&&!document.getElementById) 
  event="Old";
function CommentInt(msgNED,msgENG,BorderColor,BoxWidth)
{
var PrefixNED="<img src=images/info-ned.gif align=right>"
var Seperator="<br><hr width=75%>"
var PrefixENG="<img src=images/info-english.gif align=right>"
var Xpos=0
  document.all.HLie.style.width= BoxWidth; // set to selected BoxWidth
  document.all.HLie.innerHTML= PrefixNED + msgNED; // + PrefixENG + msgENG;
	if (msgENG.length>2)
	{
	  document.all.HLie.innerHTML= PrefixNED + msgNED + Seperator + PrefixENG + msgENG;
	}
	
  // ----- NOTE: WE DON'T WANT THE COMMENT-BOX TO EXCEED THE RIGHT SIDE OF THE SCREEN. -----
	// ----- THEREFORE, CHECK WHERE WE MOUSE-CLICKED AND - IF NEEDED - CALCULATE THE     -----
	// ----- POSITION FOR THE COMMENT-BOX.					 		 	 					 	 					 				 -----
	if ((window.event.clientX+BoxWidth) > (document.body.offsetWidth))
	{
	  // ----- THE RIGHT SIDE OF THE BOX WILL BE AT THE MOUSE-CLICK-POSITION -----
	  document.all.HLie.style.left= (window.event.clientX-BoxWidth);
	}
	else // if we don't exceed the right side
	{
	  document.all.HLie.style.left= window.event.clientX; // pos where we mouse-clicked
	}	
	document.all.HLie.style.top= document.body.scrollTop + window.event.clientY + 10;
//	if((document.body.clientHeight-window.event.clientY)<document.all.HLie.offsetHeight)
//	{
//	  if(((document.body.clientWidth-window.event.clientX)<(document.all.BoxWidth + 33)) && ((document.body.clientHeight-window.event.clientY)<document.all.HLie.offsetHeight))
//		{
//		  document.all.HLie.style.left= (document.body.clientWidth-(document.all.BoxWidth + 2));
//			document.all.HLie.style.top= document.body.scrollTop + (window.event.clientY-(document.all.HLie.offsetHeight + 5));
//		}
//		else
//		{
//		  document.all.HLie.style.top= document.body.scrollTop + (document.body.clientHeight-(document.all.HLie.offsetHeight + 5));
//		}
//	}
	document.all.HLie.filters.revealTrans.Transition= MyFil;
	document.all.HLie.filters.revealTrans.Apply();
	document.all.HLie.style.visibility="visible";
	document.all.HLie.filters.revealTrans.Play();
	MyFil++;
	window.setTimeout("window.status = ' ' ",0);
} // function hlIE(MyDis,MyStat)

function kill()
{
  if(document.all)
	{
	  document.all.HLie.filters.revealTrans.Transition= MyFil;
		document.all.HLie.filters.revealTrans.Apply();
		document.all.HLie.style.visibility= "hidden";
		document.all.HLie.filters.revealTrans.Play();
		MyFil++;
		if(MyFil==24)MyFil=0;
	} // if(document.all)
	else if(document.getElementById)
	{
	  MyEle=document.getElementById("HLnn");
		MyEle.style.visibility="hidden";
	} // else if(document.getElementById)
	else if(document.layers)
	{
	  document.HLnn.visibility= "hide";
	} // else if(document.layers)
	window.status='';
} // of function kill()

// ----- END OF 25.08.2007 - DISPLAY COMMENT RELEASE 03 -----


