
$(document).ready(function() {

	initADSL();
});

function initADSL(){
	$('.showform').click(function(){
						$(this).hide();
						
						
						/*var t = ($(this).attr('id')=='cov_adsl')? '#expand-coverage0tutto-compreso-rete' : '#expand-coverage0senza-pensieri';*/
						
						var t = '#expand-'+($(this).attr('id'))
						
						$(t).slideDown('slow').addClass('smallForm');
						return false;
						});	
}



/*var neosansbold = { src: '/flash/neosansbold.swf' };
sIFR.activate(neosansbold);
sIFR.replace(neosansbold, {
	wmode: 'transparent',
  selector: 'span.title',
	css: [ '.sIFR-root {color:#0084B5;}' ]
});*/
//.sIFR-root:hover, .selected .sIFR-root{color:#3A3A3A;}
/*sIFR.replace(neosansbold, {
	wmode: 'transparent',
  selector: '.hf01',
	css: [ '.sIFR-root {color:#5B5B5B;}' ]
});*/
/*sIFR.replace(neosansbold, {
	wmode: 'transparent',
  selector: '.hf02',
	css: [ '.sIFR-root {color:#ffffff;}' ]
});
var neosans = { src: '/flash/neosans.swf' };
sIFR.activate(neosans);
sIFR.replace(neosans, {
	wmode: 'transparent',
  selector: '.hf03',
  css: [
		'.sIFR-root{ color: #434343; }',
		'a { color: #0C73A7; text-decoration: underline; }',
		'a:hover { color: #0C73A7; text-decoration: none; }'			
	]
});*/


function open_popup_promo_50()
{
	$.fn.serialbox.open('?top=auto&left=auto&width=726#info-popup-offer');
}
var $_GET = (function()
{
	var pars = {};
	jQuery.each(String(location.search||location.hash).substr(1).split('&'), function(){
		var val = this.split('=');
		pars[val[0]] = val[1];
	});
	return pars;
})();

function closeIframe()
{
	$.fn.serialbox.close();
	$("#serialbox-overlay").hide();
}


function offerta_telefono() 
{
	$.fn.serialbox.open('#popup_offerta_telefono', {top: 50});
	$("#serialbox-overlay").show();
	if (window._gaq) {
	_gaq.push(['_trackEvent', "Landing Page scade 11 febbraio", "Click overlayer", "Telefono"]);
	}
}
function offerta_tuttocompreso() 
{
	$.fn.serialbox.open('#popup_offerta_tuttocompreso', {top: 50});
	$("#serialbox-overlay").show();
	if (window._gaq) 
	{
		_gaq.push(['_trackEvent', "Landing Page scade 11 febbraio", "Click overlayer", "Tutto compreso"]);
	}
}

function close_happy_hour() 
{
	document.getElementById('happy_hour_overlayer').style.display = "none";
	document.getElementById('happy_hour_overlayer_pig').style.display = "none";
}

function open_webleads() 
{
	$.fn.serialbox.open('#webleads-popup');
}

function open_overlayer()
{
	$.serialpopup('/sitofono/teletu/helpbox-square/index.php?w=468&h=289');
}

