
function col(c,colori) 
{
	c.style.backgroundColor = colori;
}


function ajust()
{
	window.moveTo( 0  ,0 );
	if (document.getElementById || document.all) 
	{
		window.resizeTo( screen.availWidth , screen.availHeight );
	}
	else if ( document.layers ) 
	{
		if ( window.outerHeight<screen.availHeight || window.outerWidth<screen.availWidth )
		{
			window.outerHeight = screen.availHeight;
			window.outerWidth = screen.availWidth;
		}
	}
	//setContent();
	return false;		
}

function popupWindow(url,w,h) 
{
	leftPosition = 0;
	topPosition = 0;
	
	var topPosition = (screen.height - h)/2;
	var leftPosition = (screen.width-w)/2;
	var windowprops = 'width='+w+',height='+h+',top='+topPosition+',left='+leftPosition+',toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,menubar=0';
	var popup = window.open(url,'winName',windowprops);

	if (popup.opener == null)
	{		
		popup.opener = self;
	}
	
	popup.focus();
}




function toogle()
{
	
	refcontentnews = document.getElementById( 'news' );

	if( refcontentnews != null )
	{	
		document.getElementById( 'btnews' ).href = '#'
		refcontentdroit = document.getElementById( 'contentdroit' );
		refcontentgauche = document.getElementById( 'contentgauche' );
		if( refcontentdroit.style.display == 'none' )	
		{ 
			refcontentdroit.style.display = 'block';
			refcontentgauche.style.width = '70%';
		}
		else
		{
			refcontentdroit.style.display = 'none';	
			refcontentgauche.style.width = '100%';
		}
		return false;
	}
}


function init()
{
	// addEvent( document.getElementById( 'btnews' ) , 'click', toogle );	
}




// addEvent( window , 'load', init );


