// Dropdown menue script taken from http://www.htmldog.com/articles/suckerfish/dropdowns/
// To modify the behaviour and look of the dropdown menues goto /styles/nav.css

<!--//--><![CDATA[//><!--

//$(document).ready(function(){
//   $("#nav > li > ul").fadeOut("fast");
//   $("#nav li").hover(
//      function(){ $(this).find("ul:first").fadeIn("fast"); }, 
//      function(){ $(this).find("ul:first").fadeOut("fast"); } 
//   );
//   if (document.all) {
//      $("#nav li").hoverClass ("sfHover");
//   }
//});
//$.fn.hoverClass = function(c) {
//   return this.each(function(){
//      $(this).hover( 
//         function() { $(this).addClass(c);  },
//         function() { $(this).removeClass(c); }
//      );
//   });
//};

sfHover = function() {
	var linksReady = '';
	var sfEls = '';

	if (!document.getElementsByTagName) return false;

	// This is the first manu, the pages.
	linksReady = document.getElementById("nav");
	if (linksReady) {	
	  sfEls = document.getElementById("nav").getElementsByTagName("li");

	   if (sfEls) {
	      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);
//--><!]]>

