// ***********************************************************************
// * CYCLOP France Website
// * Version #1.0.0 du 04.03.2005
// * Script d'affichage/masquage des calques 
// * Copyright CYCLOP France ©2002-2005 <contact@cyclop-france.com>
// * Script développé par Luc TALARICO <luc.talarico@cyclop-france.com>
// ***********************************************************************

<!--//

function GetXY(e, id) {
	document.getElementById(id).style.left = event.clientX + document.body.scrollLeft;
	document.getElementById(id).style.top = event.clientY + document.body.scrollTop;
};

function GetCenter(id, w, h) {
	var left  = (screen.width - w)/2;
	var top   = (screen.height- h)/2;
	document.getElementById(id).style.left = left;
	document.getElementById(id).style.top = top;
};

function Show(id) {
	document.getElementById(id).style.visibility = 'visible';
};

function ShowXY(id) {
	document.onMouseMove = GetXY(this, id);
	document.getElementById(id).style.visibility = 'visible';
};

function ShowCenter(id, w, h) {
	document.onMouseMove = GetCenter(id, w, h);
	document.getElementById(id).style.visibility = 'visible';
};

function Hide(id, target) {
	if (target) {
		parent.window.document.getElementById(id).style.visibility = 'hidden';
	} else {
		document.getElementById(id).style.visibility = 'hidden';
	};
};

