﻿swfobject.registerObject("flash-banner", "9.0.0");
swfobject.registerObject("pedometer", "9.0.0");

$(document).ready(function() {
    var url = window.location.href;

    if (url.indexOf("the-event.aspx") != -1) {
        $("#the-event").addClass("the-event-active");
    }

    if (url.indexOf("overview.aspx") != -1) {
        $("#overview").addClass("overview-active");
    }

    if (url.indexOf("get-involved.aspx") != -1) {
        $("#get-involved").addClass("get-involved-active");
    }

    if (url.indexOf("apply.aspx") != -1) {
        $("#apply").addClass("apply-active");
    }

    if (url.indexOf("register.aspx") != -1) {
        $("#register").addClass("register-active");
    }
    $('ul.gallery_list').jcarousel({
        scroll: 2
    });

    // Tacking the link where the anchor tag has the track-link css class 
    $('a.track-link').bind('click', function () {
        pageTracker._trackPageview('Link: ' + $(this).attr('href'))
    });
    
});


