
/* suckerfish menu hack  */

<!--//--><![CDATA[//><!--
 
sfHover = function() {
	var sfEls = document.getElementById("nav").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);
 
//--><!]]>

/*  Raymonds amazing current page indicator code  */

$(document).ready(function(){
           f = window.location.href.split("#")[0];
           f= f.substr(f.lastIndexOf("/")+1,f.length);
           $("#nav > li > a[href='" + f + "']").parent().addClass("mainmenu-on"); // 1. add icon at top level only
           $("#nav li li a[href='" + f + "']").parent().parent().parent().addClass("mainmenu-on"); // 2. add icon at top level if submenu item matches
           $("#leftcolumn a[href='" + f + "']").parent().addClass("leftmenu-on");    // Add icon to left menu
});


/* Superfish calling parameters */

    $(document).ready(function() { 
        $('ul.sf-menu').superfish({ 
            delay:       800,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
          /*  speed:       'fast', */                         // faster animation speed 
            disableHI:     true,                          // disable hoverintent
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: true                            // disable drop shadows 
        }); 
    }); 
 
/* form validation - just name all forms commentForm  */

  $(document).ready(function(){
    $("#commentForm").validate();
  });  
