function init() {
	// quit if this function has already been called
	if (arguments.callee.done) return;

	// flag this function so we don't do the same thing twice
	arguments.callee.done = true;

	if (typeof window.dalNifty == 'function') {
		dalNifty();
	} else {
		Nifty("div#topMenu a","big transparent top");
	}	
	
	if (typeof window.tooltip == 'function') {
		$('#calendar a').tooltip({ 
			track: true, 
			delay: 0, 
			showURL: false, 
			showBody: " - ", 
			opacity: 0.85 
		});
	}
	if (typeof window.focusOnFirstInput == 'function') {
		focusOnFirstInput();
	}

	if (typeof window.initialize == 'function') {
		initialize();
	}


};

/* for Mozilla */
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", init, false);
}


/* for other browsers */
window.onload = init;