﻿function pageLoad(sender, args) {
    Image1 = new Image(16, 16)
    Image1.src = "../images/loading.gif"

    $(".hoveraction").hover(function () { $(this).stop().animate({ opacity: .6 }, 500); }, function () { $(this).stop().animate({ opacity: 1 }, 500); })

    $(".hidebody, #pagenum a").click(function () {
        $("body").animate({ opacity: 0 }, 400);
        $("#waitDiv").animate({ opacity: 1 }, 1000);
    });

    var inpt = "input[type='text'],input[type='password'],select,textarea";
    $(inpt).css("opacity", .6);
    $(inpt).hover(function () { $(this).stop().animate({ "opacity": 1 }); }, function () { $(this).stop().animate({ "opacity": 0.8 }); })

    $(".mainmenu").hover(function () {
        $(this).stop().animate({ "width": 180 });
    }, function () {
        $(this).stop().animate({ "width": 150 }, 1000);
    });

    $("#rating input").click(function () {
        $("#rating").animate({ opacity: 0 });
    });

    var openPanel = "panel1";   //this first open 
    $('#' + openPanel).slideDown(1000);
    $("#panelbuttons .button").click(function () {
        npanel = $(this).attr("pn");
        if (npanel != openPanel) {
            $("#" + openPanel).hide(1000);
            $('#' + npanel).show(1000, function () {
                if (jQuery.browser.msie) {
                    $(this).get(0).style.removeAttribute('filter');
                }
            });

            //$("#" + openPanel).slideUp(1000).delay(1000);
            //$('#' + npanel).slideDown(1000);
            openPanel = npanel;
        }
    });

}
