//if prmSideMenu is true then there is a side menu
function init_page(prmSideMenu)
{
    $("a.selected").parent().css({ BackgroundColor: '#32AA9E' });
    $("a.selected").parent().css({ Color: '#FFFFFF' });
    if ($("td.TopNav").length > 0) {
        lastLink = $("td.TopNav:last").html();
        $("td.TopNav:last").html("&nbsp;");
    }

    //action on the side menu
    if (prmSideMenu) {
        $("a.subselected").css({ color: '#FFFFFF' });
    }

    if (!window.ActiveXObject)//in firefox add scroll to the right (even if there is no need)
    {
        $("body").css("overflow-y", "scroll");
        $("#mainmenu").css('padding-top', '5px'); //Top Menu;
    }
    //        else //Internet explorer
    //        {
    //            $("a.selected").parent().css({ padding: '1px' }); //Main Menu links
    //        }

}

function ChangeImg()
{
    document.getElementById("MoreImage").style.display = "none";
    document.getElementById("MoreImagePress").style.display = "block";
    var t;
    var slideShowSpeed = 500;
    t = setTimeout('ChangeImgBack()', slideShowSpeed);
}

function ChangeImgBack()
{
    document.getElementById("MoreImage").style.display = "block";
    document.getElementById("MoreImagePress").style.display = "none";
}
