﻿
function start() {
    $(".modSelect").hide();
    $("#table1").show();
    $("#chair1").show();
    $("#desk1").show();
    $("#instruction1").show();
    setupClickHandlers();
}
        function setupClickHandlers() {
            $("#chair1").click(function() {
             $(".modSelect").hide();
            $("#chair1-tube").show();
            $("#chair1-swivel").show();
            $("#chair1-sled").show();
            $("#chair1-wood").show();
            $("#instruction2").show();                
        });

            $("#desk1").click(function() {           
            $(".modSelect").hide();
                $("#desk1-tube").show();
                $("#desk1-swivel").show();
                $("#desk1-sled").show();
                $("#deskSwivelTypes").show();                
            });

            $("#table1").click(function() {           
            $(".modSelect").hide();
                $("#table1-tube").show();
                $("#table1-swivel").show();
            });

            $("#chair1-tube").click(function() {               
            $(".modSelect").hide();
            window.location = "c-8-tubing.aspx"                
            });

            $("#chair1-swivel").click(function() {
            $(".modSelect").hide();

            $("#chair-swivel-select").show();         
            });

            $("#chair1-sled").click(function() {

            $(".modSelect").hide();
            window.location = "c-6-sled-base.aspx"      
            });

            $("#chair1-wood").click(function() {
                $(".modSelect").hide();
                window.location = "c-9-wood-furniture.aspx";
                //$("#chairResultWood").show();           
            });


            $("#chair1-swivel-sharpAngleYes").click(function() {
            $(".modSelect").hide();
                $("#chair1-swivel-taperedYes").show();
                $("#chair1-swivel-taperedNo").show();
            });

            $("#chair1-swivel-sharpAngleNo").click(function() {
            $(".modSelect").hide();
                $("#chairResult6331").show();
            });

            $("#chair1-swivel-taperedYes").click(function() {
            $(".modSelect").hide();
                $("#chair1-swivel-elevation1").show();
                $("#chair1-swivel-elevation2").show();
            });

            $("#chair1-swivel-taperedNo").click(function() {
            $(".modSelect").hide();
                $("#chairResult6328").show();
            });

            $("#chair1-swivel-elevation1").click(function() {
            $(".modSelect").hide();
                $("#chairResult6325").show();
            });

            $("#chair1-swivel-elevation2").click(function() {
            $(".modSelect").hide();
                $("#chairResult6331").show();
            });


            $("#desk1-tube").click(function() {
                window.location = "c-10-round-tubing.aspx";
            });

            $("#desk1-swivel").click(function() {
                window.location = "c-12-swivels.aspx";
            });

            $("#desk1-sled").click(function() {
            window.location = "c-11-sled-base.aspx";
            $(".modSelect").hide();
                $("#deskResultSled").show();
            });


            $("#table1-tube").click(function() {
            window.location = "c-13-tubing.aspx";
            });

            $("#table1-swivel").click(function() {
                window.location = "c-14-swivels.aspx";
            });


        }

        function reload() {
            var sURL = unescape(window.location.pathname);
            window.location.replace(sURL);
        }


