﻿$(document).ready(function() {

    // this section handles the rollover effects for the main menu
    $("img.rollover").hover(
     function() { this.src = this.src.replace("_Off", "_On"); },
     function() { this.src = this.src.replace("_On", "_Off"); }
    );

});

// This function helps out with setting the button that should be 'clicked' when enter is hit
function clickButtonFirstL(e, buttonid) {
    var evt = e ? e : window.event;
    var bt = document.getElementById(buttonid);
    if (bt) {
        if (evt.keyCode == 13) {
            bt.click();
            return false;
        }
    }
}
