function $( id )
{
	return document.getElementById( id ) ;
}

function getOffsetPosition( elt, attr )
{	
	var i = 0;
	var obj = document.getElementById( elt );
	var s = 'obj.offset' + attr ;
	while (obj && obj.tagName != 'BODY')
	{
		i += eval(s);
		obj = obj.offsetParent;
	}
	return i;
}

function menuCalque( item, cible )
{
	this.div = $( item ) ;
	this.div.onmouseover = function()
	{			
		erase() ;
		this.cible = $( cible ) ;
		this.cible.style.display = 'block' ;
		this.cible.style.left = eval ( getOffsetPosition( item, 'Left') - 10 ) + 'px' ;
		this.cible.style.top = eval ( getOffsetPosition( item, 'Top') + 41 ) + 'px' ;
	}
}

function erase()
{
	var calques = document.getElementsByTagName( 'div' ) ;
	for ( var i = 0; i< calques.length; i++ )
	{
		if ( calques[i].className == "calque" ) calques[i].style.display = 'none' ;
	}
}

document.onclick = function()
{ 
	erase() ;
}

function favoris() { 
      if ( navigator.appName != 'Microsoft Internet Explorer' ){ 
          window.sidebar.addPanel("FOOT4CASH","http://www.foot4cash.com/",""); 
      } 
      else { 
          window.external.AddFavorite("http://www.foot4cash.com/","FOOT4CASH"); 
      } 
}