    $(document).ready(function() {
      
      function addMega1(){
        $(this).addClass("hovering");
		document.getElementById('menu1').style.backgroundImage="url(/images/top-bg-1.gif)";
        }
      function addMega2(){
        $(this).addClass("hovering");
		document.getElementById('menu2').style.backgroundImage="url(/images/top-bg-2.gif)";
        }
      function addMega3(){
        $(this).addClass("hovering");
		document.getElementById('menu3').style.backgroundImage="url(/images/top-bg-3.gif)";
        }
      function addMega4(){
        $(this).addClass("hovering");
		document.getElementById('menu4').style.backgroundImage="url(/images/top-bg-4.gif)";
        }
      function addMega5(){
        $(this).addClass("hovering");
		document.getElementById('menu5').style.backgroundImage="url(/images/top-bg-5.gif)";
        }
      function addMega6(){
        $(this).addClass("hovering");
		document.getElementById('menu6').style.backgroundImage="url(/images/top-bg-6.gif)";
        }

      function removeMega1(){
        $(this).removeClass("hovering");
		document.getElementById('menu1').style.backgroundImage="url(/images/plus.gif)";
        }
      function removeMega2(){
        $(this).removeClass("hovering");
		document.getElementById('menu2').style.backgroundImage="url(/images/plus.gif)";
        }
      function removeMega3(){
        $(this).removeClass("hovering");
		document.getElementById('menu3').style.backgroundImage="url(/images/plus.gif)";
        }
      function removeMega4(){
        $(this).removeClass("hovering");
		document.getElementById('menu4').style.backgroundImage="url(/images/plus.gif)";
        }
      function removeMega5(){
        $(this).removeClass("hovering");
		document.getElementById('menu5').style.backgroundImage="url(/images/plus.gif)";
        }
      function removeMega6(){
        $(this).removeClass("hovering");
		document.getElementById('menu6').style.backgroundImage="url(/images/plus.gif)";
        }

    var megaConfig1 = {
         interval: 100,
         sensitivity: 2,
         over: addMega1,
         timeout: 100,
         out: removeMega1
    };
    var megaConfig2 = {
         interval: 100,
         sensitivity: 2,
         over: addMega2,
         timeout: 100,
         out: removeMega2
    };
    var megaConfig3 = {
         interval: 100,
         sensitivity: 2,
         over: addMega3,
         timeout: 100,
         out: removeMega3
    };
    var megaConfig4 = {
         interval: 100,
         sensitivity: 2,
         over: addMega4,
         timeout: 100,
         out: removeMega4
    };
    var megaConfig5 = {
         interval: 100,
         sensitivity: 2,
         over: addMega5,
         timeout: 100,
         out: removeMega5
    };
    var megaConfig6 = {
         interval: 100,
         sensitivity: 2,
         over: addMega6,
         timeout: 100,
         out: removeMega6
    };

    $("#mega1").hoverIntent(megaConfig1);
	$("#mega2").hoverIntent(megaConfig2);
    $("#mega3").hoverIntent(megaConfig3);
	$("#mega4").hoverIntent(megaConfig4);
    $("#mega5").hoverIntent(megaConfig5);
	$("#mega6").hoverIntent(megaConfig6);

      
    });

	function megaM(intSet,intNum,intMax){
		//Reset them all...
		for(i=1;i<=intMax;i++){
			document.getElementById('menuS'+intSet+'N'+i).style.display="none";
			document.getElementById('hdrS'+intSet+'N'+i).style.backgroundImage="none";
			document.getElementById('hdrS'+intSet+'N'+i).style.borderBottomStyle="dotted";
			document.getElementById('hdrS'+intSet+'N'+i).style.borderBottomColor="#e3dcc8";
		}
		//Set the one we want...
		document.getElementById('menuS'+intSet+'N'+intNum).style.display="block";
		document.getElementById('hdrS'+intSet+'N'+intNum).style.backgroundImage="url(/images/menuBG.gif)";
		document.getElementById('hdrS'+intSet+'N'+intNum).style.borderBottomStyle="solid";
		document.getElementById('hdrS'+intSet+'N'+intNum).style.borderBottomColor="#63a48e";
	}

