function showTooltip (text)
{
	return overlib('<table border=\'0\' cellspacing=\'0\' cellpadding=\'0\' width=\'300\'>'
		+'<tr><td background=\'lib/images/tip/topleft.png\' width=\'6\' height=\'6\'></td>'
		+'<td background=\'lib/images/tip/top.png\' height=\'6\'></td>'
		+'<td background=\'lib/images/tip/topright.png\' width=\'6\' height=\'6\'></td></tr>'
		+'<tr><td background=\'lib/images/tip/left.png\' width=\'6\'></td>'
		+'<td background=\'lib/images/tip/middle.png\' class=contenu>'+text
		+'</td><td background=\'lib/images/tip/right.png\' width=\'6\'></td></tr>'
		+'<tr><td background=\'lib/images/tip/bottomleft.png\' width=\'6\' height=\'6\'></td>'
		+'<td background=\'lib/images/tip/bottom.png\' height=\'6\'></td>'
		+'<td background=\'lib/images/tip/bottomright.png\' width=\'6\' height=\'6\'></td></tr></table>',HAUTO,VAUTO,FULLHTML,BORDER,6);
}

function popup (page,width,height)
{
	width = typeof(width) != 'undefined' ? width : 950;
	height = typeof(height) != 'undefined' ? height : 600;
	window.open (page,'','width='+width+',height='+height+', status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, resizable=yes');
}

function setObjectValue (id,value) 
{
	if (document.getElementById)
	{
		document.getElementById(id).value = value;
	}
	else if (document.all) 
	{
		document.all[id].value;
	} 
	else if (document.layers) 
	{
		document.layers[id].value = value;
	}
}

function setObjectHTML (id,value) 
{
	if (document.getElementById)
	{
		document.getElementById(id).innerHTML = value;
	}
	else if (document.all) 
	{
		document.all[id].innerHTML = value;
	} 
	else if (document.layers) 
	{
		document.layers[id].innerHTML = value;
	}
}

function centerBox(id,base,width) {
	var left = (document.width-width)/2;
	if (left < 0) left = 0;
	left = base+left+'px';
	if (document.getElementById)
	{
		document.getElementById(id).style.left = left;
	}
	else if (document.all) 
	{
		document.all[id].style.left = left;
	} 
	else if (document.layers) 
	{
		document.layers[id].left = left;
	}
}

function centerPage() {
	centerBox ("banner",150,950);
	centerBox ("mainnav",150,950);
	centerBox ("subnav",0,950);
	centerBox ("content",150,950);
	centerBox ("banner",150,950);
}

