

//--- usage notes: http://www.hashemian.com/tools/javascript-countdown.htm
var TargetDate = "12/25/2009 12:00 AM UTC-0500";
var BackColor = "#ffffff";
var ForeColor = "#cc0000;";
var CountActive = true;
var CountStepper = -1;
var LeadingZero = false;
var DisplayFormat = "%%D%% Days<br />%%H%% Hours<br />%%M%% Minutes<br />%%S%% Seconds";
var FinishMessage = "Give Joy";


function LoadCountdownToJoy() {

	//--- check for a relatively standards capable browser before doing anything
	if (document.getElementById || document.createElement || document.setAttribute) {

		var arrContentElements, masthead, objPanel;
	
		//--- get the masthead container
		arrContentElements = getElementsByStyleClass('navheaderbg');
		masthead = arrContentElements[0].getElementsByTagName("div")[0];
		
		//--- apply positioning attribute to masthead to create reference point for panel position
		masthead.style.cssText = 'position:relative;';
	
		//--- create the countdown container
		objPanel = document.createElement('div');
		objPanel.setAttribute('id', 'countdowntojoy');
		objPanel.style.cssText = 'display:"";';

		//--- add the countdown container to the masthead
		masthead.insertBefore(objPanel, masthead.firstChild);	
	
		//--- populate the countdown container with the counter
		objPanel.innerHTML = document.getElementById('countdowntojoy_contents').innerHTML; 
	
		//--- reveal the countdown container and its counter
//		Effect.toggle(objPanel,'appear',{duration:.5});
		//Effect.BlindDown(objPanel,{duration:1});
	
	}
}