//$(document).ready(function(){
//  // Reset Font Size
//  var originalFontSize = $('html').css('font-size');
//    $(".resetFont").click(function(){
//    $('html').css('font-size', originalFontSize);
//  });
//  // Increase Font Size
//  $(".increaseFont").click(function(){
//    var currentFontSize = $('html').css('font-size');
//    var currentFontSizeNum = parseFloat(currentFontSize, 10);
//    var newFontSize = currentFontSizeNum*1.2;
//    $('html').css('font-size', newFontSize);
//    return false;
//  });
//  // Decrease Font Size
//  $(".decreaseFont").click(function(){
//    var currentFontSize = $('html').css('font-size');
//    var currentFontSizeNum = parseFloat(currentFontSize, 10);
//    var newFontSize = currentFontSizeNum*0.8;
//    $('html').css('font-size', newFontSize);
//    return false;
//  });
//});


$(document).ready(function()
{ 
   
   var timer;
    var timer2;
    $("#menu > li").mouseover(function()
    {
        var current = $(this).attr('class');
        $("#menu li:not(." + current + ") ul").slideUp(200);
        $("ul", this).slideDown(500);

        clearTimeout(timer);

    }).mouseout(function()
    {
        timer = setTimeout(hideSubnav, 600);
    });

    function hideSubnav()
    {
        $("#menu ul").slideUp(200);
    }
});


