function fn_countdown()
{
	
	today = new Date();
	todayTime = today.getTime();
	
	target = new Date("November 1, 2008");
	
	targetTime = target.getTime();
	
	timeleft = (targetTime - todayTime);
	daysleft = timeleft/(60*60*24*1000);
	daysleft = Math.floor(daysleft);
	
	//time left in hours
	hoursleft = timeleft/(1000*60*60);
	//time left in hours minus days left
	hoursleft = hoursleft - (daysleft*24)
	hoursleft = Math.floor(hoursleft);
	
	//time left in minutes
	minutesleft = timeleft/(1000*60);
	//time left in minutes minus hours left
	minutesleft = minutesleft - (hoursleft*60+daysleft*24*60);
	minutesleft = Math.floor(minutesleft);
	
	
	secondsleft = timeleft/1000;
	
	secondsleft = secondsleft - (minutesleft*60+hoursleft*60*60+daysleft*24*60*60);
	secondsleft = Math.ceil(secondsleft);
	
	color_pick = (secondsleft % 3);
	
	switch(color_pick)
	{
		case 0:
			str_counter = "<font color='white'>";
			break;
		case 1:
			str_counter = "<font color='black'>";
			break;
		case 2:
			str_counter = "<font color='#006633'>";
			break;
		default:
			str_counter = "<font color='black'>";
	}
	
	//str_counter = "There are " + daysleft + " Days " + hoursleft + " Hours " + minutesleft + " Minutes " + secondsleft + " Left until V2.0"; // + " Seconds Left until V2.0"; // + target.toString();
	str_counter += daysleft + " days " + hoursleft + "h " + minutesleft + "m " + secondsleft + "s UNTIL launch of MyGhetto 2.0</font>";
	
	document.getElementById("count_down_timer").innerHTML = str_counter;
	
	setTimeout("fn_countdown()", 1000); //every second call fn_countdown()
}//fn_countdown


