function hideBanner()
{
	document.getElementById('banner').style.display='none';
	clearTimeout(timerBanner);
}
function startTimer()
{
    tempo = 30;
    //timerBanner = setTimeout("hideBanner()",tempo*1000);
    timerBanner = setTimeout("fadeOutElement('banner',0.5,function(){hideBanner()})",tempo*1000);
}
function showBanner()
{
    setTimeout("fadeInElement('banner',1,function(){startTimer()});",1000);
}

// secondo banner

function hideBanner2()
{
	document.getElementById('banner2').style.display='none';
	clearTimeout(timerBanner);
}
function startTimer()
{
    tempo = 40;
    //timerBanner = setTimeout("hideBanner()",tempo*1000);
    timerBanner = setTimeout("fadeOutElement('banner2',0.5,function(){hideBanner2()})",tempo*1000);
}
function showBanner2()
{
    setTimeout("fadeInElement('banner2',1,function(){startTimer2()});",1000);
}