
/*								
// IE fix for dropdown menus
sfHover = function() {
   var sfEls = document.getElementById("mainlevelmainnav").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) window.attachEvent("onload", sfHover);
*/

jQuery(document).ready(function() {
	
	// Hack to get the dropdown nav to work in IE6
	// Loop through all <li> elements in the dropdown nav and attach hover events to them 
	jQuery('ul#mainlevelmainnav li, ul#browseOfferings li').each(function(i) {
		jQuery(this).hover(
			function(){
				jQuery(this).addClass('sfhover');
			},
			function(){
				jQuery(this).removeClass('sfhover');
			}
		);
	});
		
	// Fix the alignment of the last top nav dropdown
	jQuery('ul#mainlevelmainnav > li > ul:last').css({'margin-left':'-36px'});
		
	//Hide the A R T I O stuff for now
	jQuery('.contentcolumn span.article_separator').hide();
	jQuery('a[title^=Web]').hide();
	jQuery('a[title^=Web]').parent('div').hide();
	
    // Equal heights for homepage lower blocks
	jQuery("body.home .homeLowerMiddle").equalHeights();
	
    // File link stuff
	jQuery('.jce_size').prepend('[').append(']');
	
    // Membership application forms
	jQuery('#ff_form13 .bfLabelLeft .bfRequired, #ff_form14 .bfLabelLeft .bfRequired').each(function(i) {
		jQuery(this).siblings('label').append(jQuery(this));
	});
	
    // Equal heights for the JEvents legend items
	jQuery("#jevents_body div.event_legend_name").equalHeights();


	
});











