

/*#####################################################################################################*/
// Javascript Starts Here

countdown = -13603610;

//Setup Mode
countdownMode = 'countup';
//hide: alert('countdownmode? '+countdownMode);


if (countdownMode=='countup')
{
	countdown = Math.abs(countdown);
}



// Converting date difference from seconds to actual time

function convert_to_time(secs)

{

	secs = parseInt(secs);	

	hh = secs / 3600;	

	hh = parseInt(hh);	

	mmt = secs - (hh * 3600);	

	mm = mmt / 60;	

	mm = parseInt(mm);	

	ss = mmt - (mm * 60);	

		

	if (hh > 23)	

	{	

	   dd = hh / 24;	

	   dd = parseInt(dd);	

	   hh = hh - (dd * 24);	

	} else { dd = 0; }	

		

	if (ss < 10) { ss = "0"+ss; }	

	if (mm < 10) { mm = "0"+mm; }	

	if (hh < 10) { hh = "0"+hh; }	

	if (dd == 0) { return (hh+":"+mm+":"+ss); }	

	else {	

		if (dd > 1) { return (dd+" : "+hh+" : "+mm+" : "+ss); }

		else { return (dd+" : "+hh+" : "+mm+" : "+ss); }

	}	

}



// Our function that will do the actual countdown

function do_cd()

{

	if (countdown < 0)	

	{ 	

		


		
		// change text

		document.getElementById('cd').innerHTML = "(countdown)";

		


	}	

	else	

	{	

		document.getElementById('cd').innerHTML = convert_to_time(countdown);

		setTimeout('do_cd()', 1000);

	}	

if (countdownmode='countup') { countdown = countdown + 1; }
else { countdown = countdown - 1; }

}



document.write("<span class='cdx'><div id='cd'></div></span>\n");



do_cd();



