function Hover( p_obj, p_vis )
{
	ShowHide( "ss" + p_obj.id, p_vis );
}

function ShowHide( p_id, p_vis )
{
	var ssmenu = document.getElementById( p_id );
	if( ! ssmenu ) return;
	
	ssmenu.style.visibility = p_vis;
}

function Init()
{
	var LI = document.getElementById('content').getElementsByTagName('li');
	var nLI = LI.length;
	for( i = 0; i < nLI; i++ )
	{
		LI[i].onmouseover = function(){ Hover( this, "visible" ); }
		LI[i].onmouseout = function(){ Hover( this, "hidden" ); }
	}
	
	var midImgs = document.getElementsByTagName( "img" );
	for( i = 0; i < midImgs.length; i++ )
	{
		if( midImgs[ i ].src.indexOf( "mid" ) > 0 )
		{
			midImgs[ i ].style.cursor = "pointer";
			midImgs[ i ].onmouseover = function(){ ShowHide( "midHover", "visible" ); }
			midImgs[ i ].onmouseout = function(){ ShowHide( "midHover", "hidden" ); }
		}
	}
}

function GoTopic( p_topic, p_topicGroup, p_vignPg )
{
	if( p_vignPg == null ) p_vignPg = "";
	
	window.top.location = "http://www.marclimousin.com/Current/content.php?lang=Fr&topic=" + p_topic + "&topicsPg=" + p_topicGroup + "&vignPg=" + p_vignPg;
}

function ChangeOnde( p_num )
{
	var elt = document.getElementById( "midTop" );
	elt.style.backgroundImage = "url( NewImg/top" + p_num + ".jpg )";
	elt = document.getElementById( "midBottom" );
	elt.style.backgroundImage = "url( NewImg/bottom" + p_num + ".jpg )";
	
	elt = document.getElementById( "legendFl1" );
	elt.className = "";
	elt = document.getElementById( "legendFl2" );
	elt.className = "";
	elt = document.getElementById( "legendFl3" );
	elt.className = "";
	elt = document.getElementById( "legendFl" + p_num );
	elt.className = "legendFl";
}
