
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++dropdown-menu.js - */
// http://www.humanities.org/portal_javascripts/++resource++dropdown-menu.js?original=1
function sfHover(){var gnav=document.getElementById("portal-globalnav");if(gnav==null){return}
var sfEls=gnav.getElementsByTagName("LI");for(var i=0;i<sfEls.length;i++){sfEls[i].onmouseover=function(){this.className+=" sfhover"}
sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}}
if(window.attachEvent){registerPloneFunction(sfHover)}

/* - ++resource++collective.salesforce.contentsync.js - */
// http://www.humanities.org/portal_javascripts/++resource++collective.salesforce.contentsync.js?original=1
var common_content_filter='#content>*:not(div.configlet),dl.portalMessage.error,dl.portalMessage.info';var common_jqt_config={fixed:false,speed:'fast',mask:{color:'#fff',opacity:0.4,loadSpeed:0,closeSpeed:0}};jQuery.extend(jQuery.tools.overlay.conf,common_jqt_config);jQuery(function($){if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<7){return}
function noformerrorshow(el,noform){var o=$(el),emsg=o.find('dl.portalMessage.error');if(emsg.length){o.children().replaceWith(emsg);return false} else{return noform}}
$('#setSFId').prepOverlay({subtype:'ajax',filter:common_content_filter,formselector:'form',noform: function(el){return noformerrorshow(el,'redirect')},redirect: function(){return location.href},closeselector:'[name=form.button.cancel]',width:'40%'})});

