var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function Countdown() { 
yr="2010";m="8";d="25";
theyear=yr;themonth=m;theday=d
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[m-1]+" "+d+", "+yr
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
dmsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
dmsec=Math.floor(1000 - today.getMilliseconds());
if(dsec == 0 || dsec == 1 || dsec == 2 || dsec == 3 || dsec == 4 || dsec == 5 || dsec == 6 || dsec == 7 || dsec == 8 || dsec == 9 ){ dsec = "0"+dsec;}
if(dhour == 0 || dhour == 1 || dhour == 2 || dhour == 3 || dhour == 4 || dhour == 5 || dhour == 6 || dhour == 7 || dhour == 8 || dhour == 9 ){ dhour = "0"+dhour;}
if(dday == 0 || dday == 1 || dday == 2 || dday == 3 || dday == 4 || dday == 5 || dday == 6 || dday == 7 || dday == 8 || dday == 9 ){ dday = "0"+dday;}
if(dmin == 0 || dmin == 1 || dmin == 2 || dmin == 3 || dmin == 4 || dmin == 5 || dmin == 6 || dmin == 7 || dmin == 8 || dmin == 9 ){ dmin = "0"+dmin;}

if(dday==0&&dhour==0&&dmin==0&&dsec==1){
window.location.reload();
}
else
document.getElementById("countdown").innerHTML=""+dday+ " ."+dhour+" ."+dmin+" .<font style=\"color: #40687d;\">"+dsec+"</font><div style=\"float: right;width: 100px; margin-left: -20px; color: #40687d;\"> ."+dmsec+"</div>";
setTimeout("Countdown()",100);
setTimeout("Cufon.replace('h1')",100);
}
