// JavaScript Document
Cufon.set('fontFamily', 'sfont');

Cufon.replace('li, .anchor, #ticket, #countdown,', {
			  hover: true
			  });


// JavaScript Document
function countdown() {
	var iniData = new Date("June 12, 2011 00:00:00 GMT+0100");
	var oggi= new Date();
	oggi = oggi.toUTCString();
	oggi = new Date(oggi);
	var milDif=(iniData-oggi);
	var giorni=parseInt(milDif/86400000);
	milDif = milDif-(giorni*86400000);
	var ore=parseInt(milDif/3600000);
	milDif = milDif-(ore*3600000);
	var minuti=parseInt(milDif/60000);
	milDif = milDif-(minuti*60000);
	var secondi=parseInt(milDif/1000);
	milDif = milDif-(secondi*1000);
	if (giorni > "0" || ore > "0" || minuti > "0" || secondi > "0"){
		$('#count .days span').text(giorni);
		$('#count .hours span').text(ore);
		$('#count .minutes span').text(minuti);
		$('#count .seconds span').text(secondi);
	}else{
		$('#count .days span').text('00');
		$('#count .hours span').text('00');
		$('#count .minutes span').text('00');
		$('#count .seconds span').text('00');
	}
	Cufon.replace('#count span', {
		  hover: true
		  });
	Cufon.now();
}

setInterval("countdown()",1000);



var scrollInt;
	var scrTime, scrSt, scrDist, scrDur, scrInt;
	
	
	
	
$(document).ready(function(){
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body').animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});
});
