/* FINDPOS */
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}
function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}
/*****************
* ROLLOVER by MZU
******************/
function rollover(source,newtext) {
		floatingDiv = document.getElementById("bubble");
		if(source=="base"){
			// masque le div
			floatingDiv.style.visibility="hidden";
		}else{
			// affiche le div
			floatingDiv.style.visibility="visible";
			if(newtext==""){
				yPos = findPosY(source)-20;
				xPos = findPosX(source)+40;
				floatingDiv.innerHTML = "<img src='"+source.src+"' width='70' height='70'>";
			}else{
				yPos = findPosY(source)+20;
				xPos = findPosX(source)+50;
				floatingDiv.style.backgroundColor="#FFFFFF";
				floatingDiv.style.padding="5px";
				floatingDiv.innerHTML = newtext;
			}
			floatingDiv.style.top = yPos+"px";
			floatingDiv.style.left =xPos+"px";
		}
}

function rolloverX(source,newtext,xOffset) {
		floatingDiv = document.getElementById("bubble");
		var xPos=0;
		if(source=="base"){
			// masque le div
			floatingDiv.style.visibility="hidden";
		}else{
			// affiche le div
			floatingDiv.style.visibility="visible";
			if(newtext==""){
				yPos = findPosY(source)-20;
				xPos = findPosX(source)+40;
				floatingDiv.innerHTML = "<img src='"+source.src+"' width='70' height='70'>";
			}else{
				yPos = findPosY(source)+20;
				xPos = findPosX(source)+xOffset;
				floatingDiv.style.backgroundColor="#FFFFFF";
				floatingDiv.style.padding="5px";
				floatingDiv.innerHTML = newtext;
			}
			floatingDiv.style.top = yPos+"px";
			floatingDiv.style.left =xPos+"px";
		}
}