// avoid jQuery namespace issues with mootools library
jQuery.noConflict();

function init(){
   jQuery(document).ready(function(){
	 // equalize content columns
	 var hLCol = jQuery("#ColLeft").height();
	 var hRCol = jQuery("#ColRight").height();
	 if (hRCol > hLCol){ jQuery("#ColLeft").height(hRCol); } else { jQuery("#ColRight").height(hLCol); }
	 
	 if(jQuery("#ColRightInnerRight")){
		 var hLColInner = jQuery("#ColRightInnerLeft").height();
		 var hRColInner = jQuery("#ColRightInnerRight").height();
		 if (hRColInner > hLColInner){ jQuery("#ColRightInnerLeft").height(hRCol); } else { jQuery("#ColRightInnerRight").height(hLColInner); }
	 }
	 
	 // force target="_blank" equivalent
	jQuery('a[rel="external"]').click(function(){
		window.open(this.href);
		return false;
	});
	
	jQuery('#LeftNav ul.sf-menu').superfish({ 
		animation: {height:'show'},   // slide-down effect without fade-in 
		delay:     0               // 1.2 second delay on mouseout 
	}); 
	 
   });
}
init();

/* add to function to onfocus and onblur attributes of input element */
function doFieldValue(objElement) {
	if (objElement.value == objElement.defaultValue) {
		objElement.value = '';
	} else if (objElement.value == '') {
		objElement.value = objElement.defaultValue;
	}
} //doFieldValue