// JavaScript Document
//<![CDATA[
$(document).ready(function () {
	//Append a div with hover class to all the LI
	$('#navMenu li').append('<div class="hover"><\/div>');
	$('#navMenu li').hover(
		//Mouseover, fadeIn the hidden hover class	
		function() {
			$(this).children('div').fadeIn('1000');	
	}, 
	//Mouseout, fadeOut the hover class
		function() {
			$(this).children('div').fadeOut('1000');	
	}).click (function () {
	//Add selected class if user clicked on it
		$(this).addClass('selected');
	});
});
//]]>

// Javascript originally by Patrick Griffiths and Dan Webb.
// http://htmldog.com/articles/suckerfish/dropdowns/
/*
sfHover = function() {
   var sfEls = document.getElementById("navMenu").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/
