function setValidators(controlName) { if(typeof(Page_Validators) != "undefined") { for(var i=0;i__pageWidth) width = __pageWidth; if(height>__pageHeight) height = __pageHeight; url = "/inigo/w3a_dyn/imageviewer.aspx?src=" + escape(url) + "&height=" + height + "&width=" + width + "&title=" + title; var imagePopup = window.open(url, "imagePopup", "height=" + height + ", width=" + width + ", resizable=yes, location=no, address=no, toolbar=no, scrollbars=1"); imagePopup.focus(); } function __popup(url, title) { var popup = window.open(url, "popup"); popup.focus(); } function checkForEnter(btnID, e){ var keyCode = 0; var btnName = btnID.split("_").join(":"); if(document.all) keyCode = e.keyCode; else keyCode = e.which; if(keyCode == 13) { e.returnValue = false; e.cancel = true; theform = document.forms[0]; try { document.forms[0].elements[btnName].click(); } catch(err) { // Disable the wrong button from firing which can occur by default // ensure current default button is enabled for(var i=0; i 2) ? argv[2] : null; var path = "/"; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function _replace(str, find, replace) { return str.split(find).join(replace); } function AdminEditorInit(ed, args) { if(typeof(ed) != "undefined") ed.get_contentArea().style.backgroundImage = "none"; } var oldMenuOnload = window.onload; var forceHovers = (document.all && document.getElementById); var selects; var tOut; var lastMenu = ""; var lastFunction = ""; if(!document.getElementById && document.all) { try { document.prototype.getElementById = document.all; } catch(e) { document.getElementById = document.all; } } __startMenus = function () { for (j = 0; j < __InigoMenus.length; j++) { // Only setup the events for menus that are not second level menus //if(__InigoMenus[j].indexOf("inigosecondlevelmenu") == -1) { try { AddEvents($get(__InigoMenus[j]).getElementsByTagName("LI"), (__InigoMenus[j].indexOf("inigosecondlevelmenu") != 0), __InigoMenus[j]); } catch (err) { } var edlink = $get("menuEdLink" + __InigoMenus[j].split("inigomenu").join("")); if (edlink != null) { var firstLI = $get(__InigoMenus[j]).getElementsByTagName("LI")[0]; firstLI.style.position = "relative"; firstLI.appendChild(edlink); edlink.style.top = "0px"; edlink.style.left = "0px"; edlink.style.padding = "0px 3px"; edlink.style.fontSize = "7pt"; edlink.style.color = "#006"; edlink.style.textDecoration = "none"; edlink.style.lineHeight = "15px"; } //} } selects = document.getElementsByTagName("select"); if (typeof (oldMenuOnload) == "function") oldMenuOnload(); } function AddEvents(lis, addDynamicEffects, menuname) { for (var i=0; i 0) ? uls[0].childNodes : new Array(); for(var i=0;i 0) { var ul = uls[0]; if(ul.style.display == "none") { ul.style.display = "block"; img.src = img.src.split("plusik").join("minus"); //ul.style.marginTop = ul.style.marginBottom = "0px"; //ul.style.backgroundImage = "url(" + siteRoot + "/images/treeicons/icons/vertical.gif)"; //ul.style.backgroundRepeat = "repeat-y"; //ul.style.backgroundPositionX = "1px"; } else { ul.style.display = "none"; img.src = img.src.split("minus").join("plusik"); } return false; } return true; } function hideFlash(el) { var params = el.getElementsByTagName("param"); for(var i=0; i