//<!--

function showBreakingNews() {
	//alert("breaking-news-it "+ document.getElementById("breaking-news-it"));
	if (document.getElementById("breaking-news-it")!=null){
//		alert("breaking-news-it "+ document.getElementById("breaking-news-it"));
//		alert("breaking-news "+ document.getElementById("breaking-news"));
//		alert("display= "+document.getElementById("breaking-news-it").style.display);
		document.getElementById("breaking-news-it").style.display = "block";
		document.getElementById("breaking-news").style.height = "101px";
		document.getElementById("breaking-news").style.lineHeight="16px";
/*		operaRescue(true);		

		if (navigator.vendor == "Apple Computer, Inc." || navigator.vendor == "KDE") {
			
			//alert('3. eliminazione del group');
			var breack_obj = document.getElementById("breaking-news-it");
			var breackHeight = document.getElementById("breaking-news-it").offsetHeight;
			var comunicati_obj = document.getElementById('comunicati');
			var iw_component = comunicati_obj.parentNode;
			breack_obj.style.zIndex = breackHeight + 'px';
			iw_component.style.marginTop = breackHeight + 'px';
			//var lanci_obj = document.getElementById('lanciHomeGroup');
			//var iw_component_l = lanci_obj.parentNode;
			//iw_component_l.style.marginTop = breackHeight + 'px';

		}

	}else{
		operaRescue(false);*/
	}
}

/*caricamento ritardato b-news*/

window.setTimeout("showBreakingNews()", 3000); 


// se non utilizzo opera visualizzo subito la breaking news altrimenti riprovo dopo un secondo
//if (!window.opera) { showBreakingNews();}
//window.setTimeout ('showBreakingNews()', 3000);
//-->
/*
function operaRescue(bn){
	if(navigator.appName == 'Opera'){	// && (http1 == 'home' || https1 == 'home')){

		var styleForComunicati = '';
		styleForComunicati += '<style>';
			styleForComunicati +='div#comunicatistampa{width:372px;height:70px;}';
			styleForComunicati +='div#comunicatistampa h2{padding-left:10px}';
			styleForComunicati +='div#comunicatistampa li{margin:0px 10px 0px 10px;}';
			styleForComunicati +='div#comunicatistampa_bg{ background-color:#FFFFFF;}';
			styleForComunicati +='div#lanciHomeGroup{width:384px;}';
			//styleForComunicati +='div#footer{margin:-1280px 0px 0px 20px;}';
			styleForComunicati +='div#frasi{width:auto;margin-top:30px;}';
		styleForComunicati += '</style>';
		document.getElementsByTagName('head')[0].innerHTML += styleForComunicati;

		var loginHeight = document.getElementById('login').offsetHeight;
		var navPosition = position(document.getElementById('nav'));
		var col_dx = document.getElementById('coldxOpera');
		col_dx.style.position = 'absolute';
		col_dx.style.left = navPosition[0] + navPosition[1] + 'px';
		col_dx.style.top =  navPosition[2] + 'px';//loginHeight + 'px';
		var bignewPosition = position(document.getElementById('bignew'));
		var bignewULPosition = position(document.getElementById('bignew').getElementsByTagName('h1')[0]);
		var breakinHeight = 0;
		if(bn){
			var breakin_obj = document.getElementById('breaking-news');
			var breakinHeight = document.getElementById('breaking-news-it').offsetHeight;
			breakin_obj.style.position = 'absolute';
			breakin_obj.style.left = bignewULPosition[0] + 'px';
			breakin_obj.style.top =  bignewPosition[2] + bignewPosition[3] + 'px';//loginHeight + 8 + 'px';
		}
		var comunicati_obj = document.getElementById('comunicatistampa');
		var comunicatiHeight = comunicati_obj.offsetHeight + 15;
		var lanci_obj = document.getElementById('lanciHomeGroup');		
		lanci_obj.style.position = 'absolute';
		lanci_obj.style.left = bignewULPosition[0] + 'px';
		lanci_obj.style.top = bignewPosition[2] + bignewPosition[3] + breakinHeight + comunicatiHeight + 'px';//loginHeight + 'px';
		comunicati_obj.style.position = 'absolute';
		comunicati_obj.style.left = bignewULPosition[0] + 'px';
		comunicati_obj.style.top =  bignewPosition[2] + bignewPosition[3] + breakinHeight + 5 + 'px';//+ loginHeight 
		var lanciHeight = 0;
		var num_div_lanci = document.getElementById('lanciHomeGroup').getElementsByTagName('div').length;
		for(i=0;i<num_div_lanci;i++){			
			//alert("numero"+i+"altezza ="+document.getElementById('lanciHomeGroup').getElementsByTagName('div')[i].offsetHeight);
			lanciHeight = lanciHeight + document.getElementById('lanciHomeGroup').getElementsByTagName('div')[i].offsetHeight;
			//alert("altezza totale ="+ lanciHeight );
			}
		lanciHeight = lanciHeight + 5;
		var footer_obj = document.getElementById('footer');		
		footer_obj.style.position = 'absolute';
		//footer_obj.style.left = bignewULPosition[0] + 'px';
		footer_obj.style.top = bignewPosition[2] + bignewPosition[3] + breakinHeight + comunicatiHeight + lanciHeight+ 'px';//loginHeight + 'px';
	}
}*/
