ï»¿var ff = new function() 
{
	
	this.f = 'http://forumfajerwerki.pl/scripts/time.php';
	this.t = 0000000000;
	
	this.zegar = function() 
	{
	
		t = new Date( this.t );
		o = new Date( t.getFullYear() + 1, 0, 1 );
		this.t = this.t + 1000;
		d = Math.floor( ( o - t ) / ( 1000 * 60 * 60 * 24 ) );
		g = Math.floor( ( o - t - d * 1000 * 60 * 60 * 24 ) / ( 1000 * 60 * 60 ) );
		m = Math.floor( ( o - t - d * 1000 * 60 * 60 * 24 - g * 1000 * 60 * 60 ) / ( 1000 * 60 ) );
		s = Math.floor( ( o - t - d * 1000 * 60 * 60 * 24 - g * 1000 * 60 * 60 - m * 1000 * 60 ) / ( 1000 ) );
		if ( d <= 0 ) 
		{	
			return '<span class="countdown_row countdown_show4"><span class="countdown_section" style="height: 34px;font-size: 13px;"><b>Mamy Sylwester!</b></span><span class="countdown_section"><span class="countdown_amount" style="">' + g + '</span><br />godzin</span><span class="countdown_section"><span class="countdown_amount" style="">' + m + '</span><br />minut</span><span class="countdown_section"><span class="countdown_amount" style="">' + s + '</span><br />sekund</span></span>';
		}
		else if ( d <= 10 )
		{
			return '<span class="countdown_row countdown_show4"><span class="countdown_section"><span class="countdown_amount" style="">' + d + '</span><br />dni</span><span class="countdown_section"><span class="countdown_amount" style="">' + g + '</span><br />godzin</span><span class="countdown_section"><span class="countdown_amount" style="">' + m + '</span><br />minut</span><span class="countdown_section"><span class="countdown_amount" style="">' + s + '</span><br />sekund</span></span>';
		}
		else if ( d == 365 || d == 364 )
		{
			return '<span class="countdown_row countdown_show4"><span class="countdown_section" style="height: 34px;width: 96%;font-size: 13px;"><b>Ca³a ekipa ForumFajerwerki ¿yczy wszystkim szczê¶liwego Nowego Roku</b></span></span>';
		}
		else
		{
			return '<span class="countdown_row countdown_show4"><span class="countdown_section"><span class="countdown_amount">' + d + '</span><br />dni</span><span class="countdown_section"><span class="countdown_amount">' + g + '</span><br />godzin</span><span class="countdown_section"><span class="countdown_amount">' + m + '</span><br />minut</span><span class="countdown_section"><span class="countdown_amount">' + s + '</span><br />sekund</span></span>';
		}
	};
	this.zegar_start = function()
	{
		document.writeln('<script src="' + this.f + '" type="text/javascript" language="javascript"></script>');
		window.onload = function()
		{
			ff.t = microtime;
			i = 'ffCountdown';
			document.getElementById( i ).innerHTML = ff.zegar();
			setInterval( 'document.getElementById( i ).innerHTML = ff.zegar()', 1000 );
		};	
	};
	
};
