var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); }; } } function setShellBG() { var shellEl = ""; if ( document.getElementById("shell") != null ) { shellEl = document.getElementById("shell"); shellEl.style.background = '#000'; } } // addLoadEvent(setShellBG); /* begin common cookie functions. see http://techweb/javascript_commons/docs/cookies.html for documentation. */ /* Set cookie value */ function setCookie(name, value, escapeValue, expires, path, domain, secure) { var cookieToken = name + '=' + ((escapeValue) ? escape(value) : value) + ((expires) ? '; expires=' + expires.toGMTString() : '') + ((path) ? '; path=' + path : '') + ((domain) ? '; domain=' + domain : '') + ((secure) ? '; secure' : ''); document.cookie = cookieToken; } /* Get cookie value */ function getCookie(name) { var allCookies = document.cookie; var cookieName = name + "="; var start = allCookies.indexOf("; " + cookieName); if (start == -1) { start = allCookies.indexOf(cookieName); if (start != 0) return null; } else start += 2; var end = document.cookie.indexOf(";", start); if (end == -1) end = allCookies.length; return unescape(allCookies.substring(start + cookieName.length, end)); } /* Delete a cookie */ function deleteCookie(name, path, domain) { var value = getCookie(name); if (value != null) document.cookie = name + '=' + ((path) ? '; path=' + path : '') + ((domain) ? '; domain=' + domain : '') + '; expires=Thu, 01-Jan-70 00:00:01 GMT'; return value; } /* Test for cookie support */ function verifyCookieSafe() { setCookie('pingCookies', 'hello'); if (getCookie('pingCookies')) return true; else return false; } /* end common cookie functions. */ // ---------------------------------------------- // StyleSwitcher functions written by Paul Sowden // http://www.idontsmoke.co.uk/ss/ // - - - - - - - - - - - - - - - - - - - - - - - // For the details, visit ALA: // http://www.alistapart.com/stories/alternate/ // // nifty StyleSwitcher scripts modified by Aaron Jones 10/10/2002 // ---------------------------------------------- function setActiveStyleSheet(title, reset) { 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 (reset == 1) { setCookie("wstyle", title, 365); } } function setStyle() { var style = readCookie("wstyle"); if (style != null) { setActiveStyleSheet(style, 0); } } /* cache css bg images for IE6 */ if ( document.all ) { try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {} } /* Parses URL Pathname Author: Jamie L. Marin, Senior Web Developer Date: June !5, 2005 */ /* Sets varibles for URI pathname and pathname length */ var browserURI = location.pathname; var uriLength = browserURI.length; /* Creates Array */ var directories = new Array( ); /* Find out indexes of first, next, and last slashes */ var startSlash = browserURI.indexOf('/'); var nextSlash = browserURI.indexOf('/', startSlash + 1); var lastSlash = browserURI.lastIndexOf('/'); var slashCount = 0; /* test for one deep section */ if (startSlash == lastSlash) { directories[slashCount] = location.pathname.slice(startSlash + 1); } /* Loop to define sections from 1 to N */ while (startSlash != lastSlash || nextSlash != -1) { directories[slashCount] = location.pathname.substring(startSlash + 1,nextSlash); if (lastSlash + 1 != uriLength) directories[slashCount +1] = browserURI.slice(nextSlash + 1); startSlash = nextSlash; nextSlash = browserURI.indexOf('/', startSlash + 1); slashCount++; } var paths = new Array( ); function parsePath(path) { var pathLength = path.length; var sSlash = path.indexOf('/'); var nSlash = path.indexOf('/', sSlash + 1); var lSlash = path.lastIndexOf('/'); var sCount = 0; if (sSlash == lSlash) { paths[sCount] = path.slice(sSlash + 1); } /* Loop to define sections from 1 to N */ while (sSlash != lSlash || nSlash != -1) { paths[sCount] = path.substring(sSlash + 1,nSlash); if (lSlash + 1 != pathLength) paths[sCount +1] = path.slice(nSlash + 1); sSlash = nSlash; nSlash = path.indexOf('/', sSlash + 1); sCount++; } } /* Set User Friendly Variables */ var firstDir = directories[0]; var lastDir = directories[directories.length-1]; /* set Omni-friendly path */ var omniHierarchy = ""; for (var i=0; i= 1 && directories[0] != "") setProp6 = directories[0]; if (directories.length >= 2) setProp7 = setProp6 + '/' + directories[1]; if (directories.length >= 3) setProp8 = setProp7 + '/' + directories[2]; if (directories.length >= 4) setProp9 = setProp8 + '/' + directories[3]; function setProps() { setProp6 = ""; setProp7 = ""; setProp8 = ""; setProp9 = ""; if (paths.length >= 1 && paths[0] != "") setProp6 = paths[0]; if (paths.length >= 2) setProp7 = setProp6 + '/' + paths[1]; if (paths.length >= 3) setProp8 = setProp7 + '/' + paths[2]; if (paths.length >= 4) setProp9 = setProp8 + '/' + paths[3]; } function trackData(evnt) { s.linkTrackVars="events"; s.linkTrackEvents=evnt; s.events=evnt; s.tl(this,'o','AjaxCall'); } /*UTILITY FUNCTIONS*/ var cnp = window.cnp || {}; cnp.util = {}; cnp.util.getElements = function(classname, tagname, root){ var all, elements, element; if(!root){ root = document; } else if(typeof root == "string"){ root = document.getElementById(root); } if(!tagname){ tagname = "*"; } all = root.getElementsByTagName(tagname); if(!classname){ return all; } elements = []; for(var i = 0; i < all.length; i++){ element = all[i]; if(cnp.util.isMember(element,classname)){ elements.push(element) } } return elements; }; cnp.util.isMember = function(element, classname){ var classes, whitespace, c; classes = element.className; if(!classes){ return false; } if(classes == classname){ return true; } whitespace = /\s+/; if (!whitespace.test(classes)){ return false; } c = classes.split(whitespace); for(var i = 0; i < c.length; i++){ if (c[i] == classname){ return true; } } return false; }; cnp.util.makeElement = function(args){ var element; var tagName = args.tagName; var attributes = args.attributes; var children = args.children; element = document.createElement(tagName); if(attributes){ for(var prop in attributes){ if(attributes.hasOwnProperty(prop)){ element[prop] = attributes[prop]; } } } if(children){ for(var i=0; i