jQuery.noConflict();

//jQuery(document).ready(function() {
function pageLoad() {
    // Expand Panel
    jQuery("#open").click(function() {
        jQuery("div#panel").slideDown("slow");
        document.getElementById("hidePanelShow").value = "true";
//        // Sets a timeout before textbox is made default, once slide is complete.
//        // Object name is hard corded to match the ASP.NET dynamically generated object name. Must change with renaming of object.
//        setTimeout("document.fmrMaster['ucLoginBadge1$txtUserName'].focus();", 500);
    });

    jQuery("#open1").click(function() {
        jQuery("div#panel").slideDown("slow");
        document.getElementById("hidePanelShow").value = "true";
//        // Sets a timeout before textbox is made default, once slide is complete.
//        // Object name is hard corded to match the ASP.NET dynamically generated object name. Must change with renaming of object.
//        setTimeout("document.fmrMaster['ucLoginBadge1$txtUserName'].focus();", 500);
    });

    // Collapse Panel
    jQuery("#close").click(function() {
        jQuery("div#panel").slideUp("slow");
        document.getElementById("hidePanelShow").value = "false";
    });

    // Switch buttons from "Log In | Register" to "Close Panel" on click
    jQuery("#toggle a").click(function() {
        jQuery("#toggle a").toggle();
    });

    //});
    //alert(document.getElementById("hidePanelShow").value);
    if (document.getElementById("hidePanelShow") != undefined) //Checks to see if element exists before looking for value to avoid client side errors.
    {
        if (document.getElementById("hidePanelShow").value == 'true') {
            jQuery("div#panel").slideDown("slow");
            jQuery("#toggle a").toggle();
            //document.getElementById("hidePanelShow").style.display = "block";
            //alert(document.getElementById("hidePanelShow").style.bottom);
        }
    }
}



