/*function goFeatured(itemNo) {

	for (var i=0; i<fNews.length; i++) {

		if (fNews[i]>0) {

			id = 'fnews' + fNews[i];

			document.getElementById(id).style.display = 'none';

		}

	}

	document.getElementById('fnews'+itemNo).style.display = 'block';

}



function goFirstFeatured() {

	for (var i=0; i<fNews.length; i++)

		if (fNews[i]>0) {

				goFeatured(fNews[i]);

				break;

		}

	document.write('<img src="" style="width:1px; height: 1px;" />');

}
*/

//open pop up
function open_popup(obj) {
	for(var i=0; i<obj.length; i++) {
		site_url = obj[i].value;
		if(site_url)
			window.open(site_url,'new_window'+i,'status=1,toolbar=1,scrollbars=1,resizable=1,menu=yes,width=800,height=480');
	}
}
	
// confronta assicurazioni script
window.onload = function() {
	Shadowbox.init({
	// let's skip the automatic setup because we don't have any
	// properly configured link elements on the page
		skipSetup: true
	});
	
	// Overlay confronta assicurazioni
	jQuery(".calcola_prev_btn").click( function() {
		// recupero il contenuto del div
		var html_content = $("#confronta_overlay").html();
		// shadowbox init
		Shadowbox.open({
			content:    html_content,
			player:     "html",
			width:      328,
			height:     340
		});
	});
};
