function changeColor(obj, color)
{
	obj.style.color = color;
}

function DisplayMenu(id, top, left)
{
	for (var i = 1; document.getElementById("sous"+i); i++)
	{
		var div = document.getElementById("sous"+i);
		if (id == "sous"+i)
		{
			div.style.top = top;
			div.style.left = left;
			div.style.display = "block";
		}
		else if (div.style.display == "block")
			div.style.display = "none";
	}
}

function UnDisplayMenu(obj)
{
	var div = document.getElementById(obj);
	div.style.display = "none";
}

function souligne(obj,color)
{
	if (obj.style.textDecoration == "underline")
		obj.style.textDecoration = "none";
	else
		obj.style.textDecoration = "underline";
}

function diplayTarif(id,w,h,x,y)
{
	var div = document.getElementById("prix");
	var div2 = document.getElementById(id);
	div.style.top = y;
	div.style.left = x;
	div.style.width = w;
	div.style.height = h;
	div.innerHTML = "<div style='background:#0269FE;height:15px;width:100%;border-bottom:solid 1px black'><div style='float:right'><a href='javascript:close(\"prix\")'><img border=0 width=15px src='../images/croix.jpg'></a></div></div>" + div2.innerHTML;
	div.style.display = "block";
}

function close(id)
{
	document.getElementById(id).style.display = "none";
}

function DisplaySSmenu(id,w,h,x,y)
{
	var div = document.getElementById(id);
	div.style.top = y;
	div.style.left = x;
	div.style.width = w;
	div.style.height = h;
	div.style.display = "block";
}

function displayPhoto(src, commentaire, bool)
{
	var div = document.getElementById('zoom');
	var texte = "";
	if (bool == true)
	{	
		div.style.width = 480;
		div.style.height = 340;
		texte += "<div style='float:left;height:100%;'><img src='"+src+"'></div>";
	}
	else
	{
		div.style.width = 320;
		div.style.height = 490;
		texte += "<div style='float:left;height:100%;'><img src='"+src+"'></div>";
	}
	div.innerHTML = "<div style='background:#0269FE;height:15px;width:100%;border-bottom:solid 1px black'><div style='float:right'><a href='javascript:close(\"zoom\")'><img border=0 width=15px src='../images/croix.jpg'></a></div></div>"+texte;
	div.style.display = "block";
}