﻿$(document).ready(function () {

    $(".header-button").mousedown(function () {
        $(this).addClass('selected');
    });

    $(".header-button").bind('mouseout click', function () {
        $(this).removeClass('selected');

    });

    $(".validrefs").click(function () {
        var vrpath = _root + "Content/Data/valid-reference-formats.html";
        vbox = new Boxy("<iframe src ='" + vrpath + "' width='445' height='300' frameborder='0'></iframe>", { title: "Valid Reference Formats for JustCite", classname: "valid-refs" });
        return false;
    });

    $('#master-help').click(function () {
        var helpURL = _root + "Help/" + _helpLink;
        window.open(helpURL);
    });

});

