window.onload = function(){listener();};
	
function listener()
{
	if(document.getElementById('ban-link')){document.getElementById('ban-link').onmouseover =  function(){montre();};}
	if(document.getElementById('column')){document.getElementById('column').onmouseover =  function(){montre();};}  
 	if(document.getElementById('icone-ami')){document.getElementById('icone-ami').onclick = function(){lanceami();return false;};}
 	
 
 	
 	 if(document.getElementById('search-field'))
	 	 document.getElementById('search-field').onfocus =  function(){val_champs_rech('');};
 
}


function popbox(link, width, height) {
	var win = window.open(link.href, 'popup', 'resizable=no, location=no, width='+width+', height='+height+', status=no, scrollbars=yes, menubar=no');	
	return false;
}

function carto(link) {
	
	return popbox (link, 870, 570);
}



function val_champs_rech(newvalue)
{
	document.getElementById('search-field').value = newvalue;
}



function montre(id){
	id2 = 's'+id;
	id3 = 'a'+id;	
	var d3 = document.getElementById(id3);
	var d = document.getElementById(id2);
	for (var i = 1; i<=5; i++)
	{
		if (document.getElementById('smenu'+i))
		{
			document.getElementById('smenu'+i).style.display='none';
			document.getElementById('amenu'+i).style.backgroundPosition='top';
			document.getElementById('amenu'+i).style.color='#b5004e';
		}
	}
	if (d)
	{
		d.style.display='block';
		d3.style.backgroundPosition='bottom';
		d3.style.color='#fff';
	}
}