﻿
$(document).ready(function() {

//    $("#logo").hover(
//    function() {
//        $(this).addClass('hover');
//    }, function() {
//        $(this).removeClass('hover');
//    });

    $("#selectEvent").dialog({ autoOpen: false, bgiframe: true, draggable: false, height: 350, resizable: false, modal: true, title: 'Select Rally', width: 430 });

    $(".changeEvent").click(function() {
        $("#selectEvent").dialog("open");
    }).hover(
    function() {
        $(this).addClass('hover');
    }, function() {
        $(this).removeClass('hover');
    }).mousedown(function() {
        $(this).addClass("click");
    }).mouseup(function() {
        $(this).removeClass("click");
    });

    $("#entryList").tablesorter({
        sortList: [[0, 0]]
    });

    $("#stageTimes").tablesorter({
        sortList: [[5, 0]]
    });

    $("#retirees").tablesorter({});

    $("table").bind("sortEnd", function() {
        $("tbody tr:nth-child(odd)").removeClass("Row").addClass("AltRow");
        $("tbody tr:nth-child(even)").removeClass("AltRow").addClass("Row");
    });
    
});