﻿// Set the default font for Cufon to be Gotham
Cufon.set('fontFamily', 'Gotham');

// Then change the <h1>, <h2> and <h3> tags to use it
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('h4');
Cufon.replace('.event h5');

// Contact Us button in header
Cufon.replace('a.headerContactButton', {
    separate: "none"
});

// Navigation
Cufon.replace('ul.topnav li a.toplevel');

// Top-level navigation
$(document).ready(function () {
    $("ul.subnav").parent().prepend("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)

    $("ul.topnav li").hover(function () { //When trigger is clicked...

        //Following events are applied to the subnav itself (moving subnav up and down)
        $(this).find("ul.subnav").show(); //Drop down the subnav on click

        //Following events are applied to the trigger (Hover events for the trigger)
    }, function () {
        $(this).find("ul.subnav").hide();
    });

});
