var mod_Calendar_calctrl;      

function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
		elm.addEventListener(evType, fn, useCapture);
		return true;
	}
	else if (elm.attachEvent) {
		var r = elm.attachEvent("on" + evType, fn);
		return r;
	}
	else {
		elm["on" + evType] = fn;
	}
}

dspModCalendarControl = function () {
	try{
	mod_Calendar_calctrl = new WCal("epoch_basic","flat",document.getElementById("modCal_calendar_container"), cp_publishdate, false, cp_redirect_url);
	} catch(e){ }
};

addEvent(window,"load",dspModCalendarControl, false);

