//if (document.images) {
//    homebuttonup       = new Image();
//    homebuttonup.src   = "homebutton.gif" ;
//    homebuttondown     = new Image() ;
//    homebuttondown.src = "homebuttondown.gif" ;
//}
function buttondown( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = "/images/common/" + buttonname + "Dark.gif";
    }
}
function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = "/images/common/" + buttonname + ".gif";
    }
}

function OpenFlash(type, file, height, width)
{
    var win;
    switch(type)
    {
        case "FLASH":
            win = window.open("/flash.html?f=" + file + "&h=" + height + "&w=" + width, "flash_video", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,left=150,top=150,alwaysRaised=1,height=" + Math.floor(height * 1.1) + ",width=" + Math.floor(width * 1.1));
            break;
    }
    win.focus();
}

function GetQs()
{
    var objURL = new Object();

    // Use the String::replace method to iterate over each
    // name-value pair in the query string. Location.search
    // gives us the query string (if it exists).
    window.location.search.replace(
        new RegExp( "([^?=&]+)(=([^&]*))?", "g" ),

        // For each matched query string pair, add that
        // pair to the URL struct using the pre-equals
        // value as the key.
        function( $0, $1, $2, $3 )
        {
            objURL[ $1 ] = $3;
        }
    );
    return objURL;
}
