function SBM_CountDown(){

	Deadline = "01/17/2006 12:00 AM EST"; //midnight is considered to occur the following day
	then = new Date(Deadline);
	now = new Date();
	secondsleft = (new Date(then-now)) / 1000;
	document.getElementById('SBMdays').innerHTML = calcage(secondsleft,86400,100000);
  	document.getElementById('SBMhours').innerHTML = calcage(secondsleft,3600,24);
	document.getElementById('SBMminutes').innerHTML = calcage(secondsleft,60,60);
	document.getElementById('SBMseconds').innerHTML = calcage(secondsleft,1,60);
	
	setTimeout("SBM_CountDown()",1000);

}

function calcage(secs, num1, num2) {
	s = ((Math.floor(secs/num1))%num2).toString();
	if (s.length < 2)
		s = "0" + s;
  	return s;
}

document.writeln("<div style=\"background:#333 url(http://www.stopbigmedia.com/images/countdown.gif);width:150px;height:200px;text-align:left;\">");
document.writeln("<div style=\"font-size:20px;line-height:25px;font-family:'Arial Black';color:#fff;width:48px;z-index:5;position:relative;text-align:left;\">");
document.writeln("<div id=\"SBMdays\" style=\"position:absolute;top:24px;right:0;text-align:right;\"></div>");
document.writeln("<div id=\"SBMhours\" style=\"position:absolute;top:50px;right:0;text-align:right;\"></div>");
document.writeln("<div id=\"SBMminutes\" style=\"position:absolute;top:76px;right:0;text-align:right;\"></div>");
document.writeln("<div id=\"SBMseconds\" style=\"position:absolute;top:102px;right:0;text-align:right;\"></div></div>");
document.writeln("<div style=\"z-index:10;position:relative;\" id=\"linkimage\"><a href=\"http://www.stopbigmedia.com\" title=\"Click Now to tell the FCC: Stop Big Media!\"><img src=\"http://www.freepress.net/images/essential/spacer.gif\" width=\"150\" height=\"200\" border=\"0\"></a></div></div>");
SBM_CountDown();
