function updateCountDownClock()
{
	var x = new Date(2010,0,1,0,0,0);
	var y = new Date();
	var z = new Date(x-y);
	z.setHours(z.getHours()+y.getTimezoneOffset()/60);
	var text;
	if ( z < 0 ) {
		text = "Time's up!";
	}
	else {
		<!--text = z.getMonth() + " months, " + (z.getDate()-1) + " days, " + z.getHours() + " hours, " + z.getMinutes() + " minutes, " + z.getSeconds() + " seconds.";-->
		<!--text = + ((z.getUTCMonth()*31) + z.getUTCDate()-1) + " days, " + z.getUTCHours() + " hours, " + z.getUTCMinutes() + " minutes, " + z.getUTCSeconds() + " seconds.";-->
		text = ((z.getMonth()*31) + z.getDate()-1) + " days, " + z.getHours() + " hours, " + z.getMinutes() + " minutes, " + z.getSeconds() + " seconds.";
	}
	$("#countdownclock div").html( text );
}

$(document).ready(
	function(event)
	{
		$("div#countdownclock").css( 
			{ 
				"background-color":"black",
				"background-image":"url(images/countdownclock2.png)",
				"width":"200px",
				"height":"86px",
				"cursor":"pointer",
				//"padding-top":"100px",
				"font-family":"Verdana,Arial,Sans-serif",
				"font-size":"10px",
				"color":"white"
			});
		$("#countdownclock div").css(
			{
				"padding-top":"43px",
				"padding-left":"5px",
				"padding-right":"5px"
			}
		);
		$("#countdownclock").click( function(event)
		{
			location.href = "http://www.epa.gov/ozone/title6/phaseout/classtwo.html";
		});
		updateCountDownClock();
		setInterval( function() { updateCountDownClock(); }, 1000 );
	}
);
