﻿$(document).ready(function() {
    // Top Menu
    //$("ul.submenu1").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.submenu1*)
    $("ul.topmenu li").mouseover(function() { //When trigger is clicked...
        //Following events are applied to the submenu1 itself (moving submenu1 up and down)
        $(this).find("ul.submenu1").slideDown('fast').show(); //Drop down the submenu1 on click
        $(this).hover(function() {
        }, function() {
            $(this).find("ul.submenu1").slideUp('slow'); //When the mouse hovers out of the submenu1, move it back up
        });
        //Following events are applied to the trigger (Hover events for the trigger)
    }).hover(function() {
        $(this).addClass("hover"); //On hover over, add class "hover"
    }, function() {	//On Hover Out
        $(this).removeClass("hover"); //On hover out, remove class "hover"
    });

});
