/*
Original:  Mike McGrath (mike_mcgrath@lineone.net)
Web Site:  http://website.lineone.net/~mike_mcgrath/index.htm
*/

text=new Array(6)
for (i=0;i<6; i++) {
text[i]=new Array()
text[i]["fr"]=""
text[i]["nl"]=""
}

text[0]["fr"]=""
text[0]["nl"]=""
text[1]["fr"]="pdf - "
text[1]["nl"]="pdf - "
text[2]["fr"]="audio stream"
text[2]["nl"]="audio stream"
text[3]["fr"]="QuickTime - "
text[3]["nl"]="QuickTime - "
text[4]["fr"]="Formulaire contact"
text[4]["nl"]="Contactformulier"
text[5]["fr"]="Liens extérieur"
text[5]["nl"]="Liens extérieur"

var zaehler = 1; 
var hand_pos = 0;
var pop_container;
var x, y;
nc = (document.layers) ? true : false; 
ie  = (document.all) ? true : false;
ns6 = (document.styleSheets&&!document.all)?1:0;

function popup_pos(e) 
{
	if (ie) {
	x_offset = document.body.scrollLeft;
	y_offset = document.body.scrollTop;
} 
	if (nc || ns6) {
	x_offset = window.pageXOffset;
	y_offset = window.pageYOffset;
}

 if (hand_pos>0)
   {
	var x = (nc || ns6) ? e.pageX : event.x + x_offset; 
	var y = (nc || ns6) ? e.pageY : event.y + y_offset;
	switch(hand_pos) 
	{
		case 0 : kill(); break;
		case 1 : pop_container.left = x+8,  pop_container.top = y+10; break; //left hand
		case 2 : pop_container.left = x-60,  pop_container.top = y+18; break; //center
		case 3 : pop_container.left = x-135, pop_container.top = y+10; break; //right hand
		default: pop_container.left = -100,  pop_container.top = -100; break;
	}
   }
}

document.onmousemove = popup_pos;
if (nc) document.captureEvents(Event.MOUSEMOVE);

function TT(orientation,n,l,fs) 
{
if (nc) pop_container = document.tooltip;
if (ie)  pop_container = self.tooltip.style;
if (ns6) pop_container = eval(document.getElementById("tooltip").style);
popup=text[n][l]+fs
content="<TABLE WIDTH=130 BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#000000><TR><TD>"+
"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><CENTER><FONT COLOR="+
"#FFFFFF SIZE=1><B>Tool-Tip</B></FONT></CENTER></TD></TR></TABLE><TABLE WIDTH="+
"100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=#ded6bd><TR><TD><FONT COLOR=#000000 "+
"SIZE=1><CENTER>"+popup+"</CENTER></FONT></TD></TR></TABLE></TD></TR></TABLE>";

if (nc) 
{
	var inhalt = document.tooltip.document;
        inhalt.open(); 
	inhalt.write(content); 
	inhalt.close();
	pop_container.visibility = "show";
}
  else if (ie) 
{
	self.document.all("tooltip").innerHTML = content;
	pop_container.visibility = "visible";}  

		else if (ns6) {
	popup = eval(document.getElementById("tooltip"));
 popup.innerHTML = content;
 pop_container.visibility = "visible";}
		
	hand_pos = orientation;
}

function kill() 
{
	if (zaehler >= 1 ) var always=true;
	
	if (always == true) 
	{
		hand_pos = 0; 
		pop_container.visibility = (nc) ? "hide" : "hidden";pop_container.left = -100, pop_container.top = -100;window.status = " ";return true;
	} 
	else zaehler++;
}