	
function countdown(obj){

	this.obj			= obj;
	this.Div			= "";
	this.BackColor		= "";
	this.ForeColor		= "";
	this.TargetDate		= "";
	this.DisplayFormat	= "";
	this.CountActive	= true;	
	this.DisplayStr;
	this.Calcage		= cd_Calcage;
	this.CountBack		= cd_CountBack;
	this.Setup		= cd_Setup;
}

function cd_Calcage(secs, num1, num2)
{
  s = ((Math.floor(secs/num1))%num2).toString();
  //if (s.length < 2) s = "0" + s;
  return (s);
}
function cd_CountBack(secs)
{

		if (this.Calcage(secs,31536000,100000) >=1){
  			this.DisplayStr = this.DisplayFormat.replace(/%%Y%%/g,	this.Calcage(secs,31536000,100000));
			if (this.Calcage(secs,31536000,100000) ==1){							  
				this.DisplayStr = this.DisplayStr.replace(/%%years%%/g,	"year");
			}
			else{
				this.DisplayStr = this.DisplayStr.replace(/%%years%%/g,	"years");
			}	
			

			if (this.Calcage(secs,86400,365) ==1){
				this.DisplayStr = this.DisplayStr.replace(/%%D%%/g,		this.Calcage(secs,86400,365));
				this.DisplayStr = this.DisplayStr.replace(/%%days%%/g,	"day");
			}
			else if(this.Calcage(secs,86400,365) ==0)
			{
				this.DisplayStr = this.DisplayStr.replace(/%%D%%/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%days%%/g,	"");	
				this.DisplayStr = this.DisplayStr.replace(/,/g,	"");	
			}
			else{
				this.DisplayStr = this.DisplayStr.replace(/%%D%%/g,		this.Calcage(secs,86400,365));
				this.DisplayStr = this.DisplayStr.replace(/%%days%%/g,	"days");
			}				
		}
		else{		
			
			if (this.Calcage(secs,86400,365) ==1){
				this.DisplayStr = this.DisplayFormat.replace(/%%D%%/g,		this.Calcage(secs,86400,365));
		 		this.DisplayStr = this.DisplayStr.replace(/%%Y%%/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%years%%,/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%days%%/g,	"day");
			}
			else if(this.Calcage(secs,86400,365) ==0)
			{
				this.DisplayStr = this.DisplayFormat.replace(/%%D%%/g,		this.Calcage(secs,86400,365));
		 		this.DisplayStr = this.DisplayStr.replace(/%%Y%%/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%years%%,/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%D%%/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%days%%/g,	"");
			}
			else{
				this.DisplayStr = this.DisplayFormat.replace(/%%D%%/g,		this.Calcage(secs,86400,365));
		 		this.DisplayStr = this.DisplayStr.replace(/%%Y%%/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%years%%,/g,	"");
				this.DisplayStr = this.DisplayStr.replace(/%%D%%/g,		this.Calcage(secs,86400,365));
				this.DisplayStr = this.DisplayStr.replace(/%%days%%/g,	"days");
			}						
		}
  //this.DisplayStr = this.DisplayStr.replace(/%%H%%/g,		this.Calcage(secs,3600,24));
  //this.DisplayStr = this.DisplayStr.replace(/%%M%%/g,		this.Calcage(secs,60,60));
  //this.DisplayStr = this.DisplayStr.replace(/%%S%%/g,		this.Calcage(secs,1,60));
    

  document.getElementById(this.Div).innerHTML = this.DisplayStr;
  if (this.CountActive) setTimeout(this.obj +".CountBack(" + (secs+1) + ")", 990);
}
function cd_Setup()
{
	var dthen	= new Date(this.TargetDate);
  	var dnow	= new Date();
	ddiff		= new Date(dnow-dthen);
	gsecs		= Math.floor(ddiff.valueOf()/1000);
	this.CountBack(gsecs);
}
	var cd1 = new countdown('cd1');
	cd1.Div			= "clock1";
	cd1.TargetDate		= "10/21/1996 8:00 AM";
	cd1.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	var cd2			= new countdown('cd2');
	cd2.Div			= "clock2";
	cd2.TargetDate		= "10/01/1996 5:30 AM";
	cd2.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	var cd3			= new countdown('cd3');
	cd3.Div			= "clock3";
	cd3.TargetDate		= "07/01/1997 7:30 AM";
	cd3.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	var cd4			= new countdown('cd4');
	cd4.Div			= "clock4";
	cd4.TargetDate		= "10/01/1999 8:00 AM";
	cd4.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	var cd5			= new countdown('cd5');
	cd5.Div			= "clock5";
	cd5.TargetDate		= "05/28/2002 8:00 AM";
	cd5.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";	
	
	var cd6			= new countdown('cd6');
	cd6.Div			= "clock6";
	cd6.TargetDate		= "04/11/2005 8:00 AM";
	cd6.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	var cd7			= new countdown('cd7');
	cd7.Div			= "clock7";
	cd7.TargetDate		= "11/21/2005 8:00 AM";
	cd7.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	var cd8			= new countdown('cd8');
	cd8.Div			= "clock8";
	cd8.TargetDate		= "01/22/2007 8:00 AM";
	cd8.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	// JoRey
	var cd9				= new countdown('cd9');
	cd9.Div				= "clock9";
	cd9.TargetDate		= "05/14/2007 8:00 AM";
	cd9.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	//Thomas
	var cd10			= new countdown('cd10');
	cd10.Div			= "clock10";
	cd10.TargetDate		= "07/09/2007 8:00 AM";
	cd10.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	//Tyler
	var cd11			= new countdown('cd11');
	cd11.Div			= "clock11";
	cd11.TargetDate		= "02/23/2009 8:00 AM";
	cd11.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	
	//var cd6			= new countdown('cd6');
	//cd6.Div			= "clock6";
	//cd6.TargetDate		= "04/26/2004 8:00 AM";
	//cd6.DisplayFormat	= "%%Y%% %%years%%, %%D%% %%days%%";
	/*format = "%%Y%% years, %%D%% days, %%H%% hours, %%M%% minutes, %%S%% seconds"; */
	