function itemMouseOver(id){
	//document.getElementById(id).style.background ='url(img_menu/menu/btnMenuOver.jpg)';
	//document.getElementById(id).style.background='#2e2e2e';
	document.getElementById(id).className='itemOver';
	//document.info.indirizzo.className
	}
function itemMouseOut(id){
	//document.getElementById(id).style.background='url(img_menu/menu/btnMenu.jpg)';
	//document.getElementById(id).style.background='#fff';
	document.getElementById(id).className='itemOut';
	//document.info.indirizzo.className
	}
var mainWidth=640;

function fadeOutMain(actualWidth){
	
	if( actualWidth <= mainWidth )	
	{
		actualWidth = ( actualWidth + 30 - ( actualWidth * 0,08 ) );
		if( actualWidth > 640 )
			{
			actualWidth=640;
			}
		document.getElementById('main').style.width=actualWidth ;
	
		setTimeout("fadeOutMain("+ actualWidth +");", 25);
	}
}

var headerWidth=640;

function fadeOutHeader(actualWidth){
	
	if( actualWidth <= headerWidth )	
	{
		actualWidth = ( actualWidth + 30 - ( actualWidth * 0,08 ) );
		if( actualWidth > 640 )
			{
			actualWidth=640;
			}
		document.getElementById('header').style.width=actualWidth ;
	
		setTimeout("fadeOutHeader("+ actualWidth +");", 25);
	}
}

var footerWidth=640;

function fadeOutFooter(actualWidth){
	
	if( actualWidth <= footerWidth )	
	{
		actualWidth = ( actualWidth + 30 - ( actualWidth * 0,08 ) );
		if( actualWidth > 640 )
			{
			actualWidth=640;
			}
		document.getElementById('footer').style.width=actualWidth ;
	
		setTimeout("fadeOutFooter("+ actualWidth +");", 25);
	}
}

/*
	Preload Immagini
*/

var imagenames=new Array( 'images/paper_1.png');

function loadimages(){
	for(n=0; n < imagenames.length; ++n){
	images[n]=new Image();
	images[n].src=imagenames[n];
	
	}
}
	

