﻿/* terminals.js */

$("document").ready(function()
{
    /*
    var type = location.hash.replace("#", "");

    if (type == "") {
        type = "pos";
    }

    $("." + type).css("display", "block");
    var link = $("a.continue");
    link.attr("href", link.attr("href") + "#" + type);

    link = $("a.back");
    link.attr("href", link.attr("href") + "#" + type);
    */
    
    $("#show-dwnld").click(function(event) {
        event.preventDefault();
        document.getElementById("manufacturer").selectedIndex = 0;
        $(this).hide();
        $("#instructions").toggle();
    });

    $("#manufacturer").change(function() {
        var val = $(this).val();

        $("#instructions ul").hide();

        if (val == "all") {
            $("#instructions ul").show();
        } else {
            $("#" + val).show();
        }
    });
});