// ************** begin admin area pop-up calendar config ************** var oldLink = null; function setActiveStyleSheet(link, title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } if (oldLink) oldLink.style.fontWeight = 'normal'; oldLink = link; link.style.fontWeight = 'bold'; return false; } function selected(cal, date) { cal.sel.value = date; } function closeHandler(cal) { cal.hide(); _dynarch_popupCalendar = null; } function showCalendar(id, format, showsTime, showsOtherMonths) { var el = document.getElementById(id); if (_dynarch_popupCalendar != null) { _dynarch_popupCalendar.hide(); } else { var cal = new Calendar(1, null, selected, closeHandler); if (typeof showsTime == "string") { cal.showsTime = true; cal.time24 = (showsTime == "24"); } if (showsOtherMonths) { cal.showsOtherMonths = true; } _dynarch_popupCalendar = cal; cal.setRange(1900, 2070); cal.create(); } _dynarch_popupCalendar.setDateFormat(format); _dynarch_popupCalendar.parseDate(el.value); _dynarch_popupCalendar.sel = el; _dynarch_popupCalendar.showAtElement(el.nextSibling, "Br"); return false; } // ************** end calendar ************** function toggleDiv(divId){ $(divId).slideToggle(250); } function pop(page,width,height){ var int_windowLeft = (screen.width - width) / 2; var int_windowTop = (screen.height - height) / 2; var win = window.open(page,'','toolbar=0,leftmargin=0,topmargin=0,directories=0,scrollbars=1,resize=0,width='+width+',height='+height+',top='+int_windowTop+',left='+int_windowLeft); } function toggleShow(divId){ var el = document.getElementById(divId); el.style.display = (el.style.display != 'none' ? 'none' : 'block' ); } loadTopMenu = function() { if (document.all&&document.getElementById){ menunavParent = document.getElementById("nav"); for (x=0; x < menunavParent.childNodes.length; x++){ menunode = menunavParent.childNodes[x]; if (menunode.nodeName=="LI"){ menunode.onmouseover=function() { this.className+=" over"; } menunode.onmouseout=function(){ this.className=this.className.replace(" over", ""); } } } } }