<!-- Begin
/*----------------------------------------------------------------------------------------
|
|        Countdown Functions Script by Josh Miller
|
-------------------------------------------------------------------------------------------*/ 

function countdown(){
	msg=""
	today=new Date("December 25, 2006");
	today=new Date()
	today.getYear
	y=today.getYear();
	if (navigator.appName == "Netscape"){	//adjust for Netscape's weird handling of dates...
		y=(1900+y)
	}
	xmas="December 25, "+y
	christmas=new Date(xmas)
//	document.write(christmas)
	count=today-christmas
	count=Math.floor(count/3600/1000/24)
	if (count<0){
		count=Math.abs(count);
		if (count<7){
			msg="<br>Have you been good this year?"
		}
		else if ((count<30) && (count>7)){
			msg="<br>Have you finished your shopping yet?"
		}
		if(count==1)
			count=count+" day until Christmas"+msg
		else{
			count=count+" days until Christmas"+msg
		}
	}
	else if (count==0){
		count="<span style='font-size: 12pt; font-style: italic;'>MERRY CHRISTMAS!</span></i>";
	}
	else {
		xmas="December 25, "+(y+1)
		christmas=new Date(xmas)
		count=today-christmas
		count=Math.floor(count/3600/1000/24)
		count=Math.abs(count)+" days until next Christmas<br>Don't miss After-Christmas Specials!";
	}
	document.write(count)
}

