﻿function InitInstructions ( flash )
{
    var hasFlash = false;
    if (flash === true)
    {
        hasFlash = true;
    }
    
    $("#instpop").dialog({
        autoOpen: false,
        show: "blind",
        hide: "blind",
        width: 600,
        height: 550,
        modal: true,
        position: [50,70],
        title: "Word Lab Web Instructions",
        zIndex:9999,
        closeOnEscape: true,
        buttons: { "Close": function () {
            jQuery(this).dialog("close");
            if (hasFlash)
            {
                 $("#flash").show();
            }
        }
        }
    });
    $("#inst").click(function () {
        if (hasFlash) {
            $("#flash").hide();
        }
        $("#instpop").dialog("open");
    });


}
function Get100Img() {

    var x = Math.floor(Math.random() * 21);
    return "g100-" + x + ".gif";

}

