// IE7 fixed by [big_fury]SiZiOUS (13/05/09)
iBoxName="infoBox";				//ID des div-Tags für die InfoBox
xOffset = 20;					// décalage par rapport au point d'apparition sur X
yOffset = 20;					// ... sur Y

//***********************************************************************************************
//DIE FOLGENDEN ZEILEN NICHT EDITIEREN! DO NOT EDIT THE FOLLOWING LINES!
//iBox.js Version 1.01 (15.02.2001)
//(C)opyright 2000-2001 by manage.it GmbH & Co. KG
//  Schertlinstr. 25
//  86159 Augsburg
//  http://www.manage.de  
//Die nachfolgenden Zeilen unterliegen dem Copyright der manage.it GmbH & Co. KG.
//Die Verwendung des Programm-Codes oder einzelner Programmteile, darf nur unter Beachtung der Lizenzbedingungen
//für das Produkt "WebBuilder-Package" der manage.it GmbH & Co. KG erfolgen!
//Die Entfernung des Copyright-Vermerks ist nicht gestattet.
//***********************************************************************************************

iBoxIsVisible = 0;
iBoxT = ""; 

NS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0; 
NS6 = (NS4 && document.getElementById) ? 1 : 0; 
if (NS6) NS4 = 0; 
IE = (document.all) ? 1 : 0; /* il s'agit de IE génériquement */
IE4 = (document.all) ? 1 : 0;
IE5 = (IE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0; 
IE6 = (navigator.appVersion.indexOf("MSIE 6.") >= 0) ? 1 : 0;IE7 = (navigator.appVersion.indexOf("MSIE 7.") >= 0) ? 1 : 0;IE8 = (navigator.appVersion.indexOf("MSIE 8.") >= 0) ? 1 : 0;
Opera = (navigator.appName.toLowerCase() == 'opera');
if (Opera) { IE4 = 0; IE5 = 0; }
// written to the header
document.write('<div id="' + iBoxName + '" style="position: absolute; visibility: hidden; z-index: 100; left: 52px; top: 93px;"></div>');

/* Première fonction à appeller */
function iBoxInit() { 
	iBoxSetBrowserVars(); 
	setTimeout("iBoxInitMouseHandler()", 100); 
} 

function iBoxSetBrowserVars() { 
	if (NS4) { 
		v=".top='";
		h=".left='";
		v2="px';";
		h2="px';";
		dS="document.";
		sD=""; 
		vis="show";
		hid="hide"; 
	} else if (NS6) { 
		v=".top='";
		h=".left='";
		v2="px';";
		h2="px';";
		dS="document.getElementById('";
		sD="').style"; 
		vis="visible";
		hid="hidden"; 
	} else {
		h=".pixelLeft=";
		v=".pixelTop=";
		v2=";";
		h2=";";
		dS="";
		sD=".style"; 
		vis="visible";
		hid="hidden"; 
	} 
} 

function iBoxMoveTo(obj, x, y) {
	//window.status = "(" + x + ";" + y + ")";
	eval(dS+obj+sD+h+x+h2); 
	eval(dS+obj+sD+v+y+v2); 
} 

function iBoxInitMouseHandler() { 
	document.onmousemove = iBoxMouseMove; 
	if (NS4) document.captureEvents(Event.MOUSEMOVE); 
} 

function iBoxMouseMove(e) { 

	if (iBoxIsVisible) {	
		if (NS4 || NS6 || Opera) {
			x = e.pageX; 
			y = e.pageY;
		}
		
		if (IE4) {
			x = event.x; 
			y = event.y;
		}
		
		if (IE5) {
			x = event.x + document.body.scrollLeft; 
			y = event.y + document.body.scrollTop;
		} 
				// fix IE7 by SiZ!
		if (IE6 || IE7 || IE8) {
			x = event.clientX; 
			y = event.clientY;
			x += document.documentElement.scrollLeft;
		    y += document.documentElement.scrollTop;
		}		
		iBoxMoveTo(iBoxName, x + xOffset, y + yOffset); 
		eval(dS+iBoxName+sD+".visibility='"+vis+"'"); 
	}
} 

function iBoxUpdate() { 
	html = 
		"<div class='iboxdiv'>" +
		"<table class='iboxtable' width='auto' border='0' cellspacing='0'>" +
		"<tr><th class='iboxtitle'>" + iBoxT.title + "</th></tr>" +
		"<tr><td class='iboxcontent'>" + iBoxT.content + "</td></tr>" +
		"</table></div>";
	
	iBoxWriteHtml(html); 
} 

function iBoxWriteHtml(html) { 
	if (NS6) { 
		var doc = eval(dS+iBoxName+"')"); 
		doc.innerHTML = html; 
	} else if (NS4) { 
		var doc = eval("document." + iBoxName + ".document"); 
		doc.write(html); 
		doc.close(); 
	} else if (IE) { 
		document.all[iBoxName].innerHTML = html; 
	} 
} 

/* Objet iBox */
function iBox(title, content) {
	this.title = title; 
	this.content = content; 
	this.hide = hide; 
	this.show = show;
}

/* Méthode hide */
function hide() { 
	if (iBoxIsVisible) { 
		eval(dS+iBoxName+sD+".visibility='"+hid+"'"); 
		iBoxIsVisible=0; 
	} 
} 

/* Méthode show */
function show() { 
	if (!iBoxIsVisible) {
		iBoxT=this; 
		iBoxUpdate(); 
		iBoxIsVisible=1;
	} 
} 

