

var zr_act_page = 1;
function chgHpNewsItem()
{
    var pages = $('div#hp_news').children(".item").length;

    if(pages < 2)
    {
        return;
    }

    var rz_prev_page = zr_act_page;
    var rz_next_page = parseInt(zr_act_page) + 1;
    if(rz_next_page > pages)
    {
            rz_next_page = 1;
    }
    zr_act_page = rz_next_page;
    $("#item_"+rz_next_page).css("display", "none");
    $("#item_"+rz_next_page).css("position", "absolute");
    $("#item_"+rz_next_page).css("top", "58px");
    $("#item_"+rz_prev_page).css("position", "absolute");
    $("#item_"+rz_prev_page).animate({top:"-58px"}, 500);
    $("#item_"+rz_next_page).css("position", "absolute");
    $("#item_"+rz_next_page).css("display", "block");
    $("#item_"+rz_next_page).animate({top:"0px"}, 500);
}

function chgMenuHover(nr)
{
    if(nr==1)
    {
        $("#menu-top_cont").css("background-position", "10px 0px");
    }

    if(nr==2)
    {
        $("#menu-top_cont").css("background-position", "86px 0px");
    }

    if(nr==3)
    {
        $("#menu-top_cont").css("background-position", "150px 0px");
    }

    if(nr==4)
    {
        $("#menu-top_cont").css("background-position", "210px 0px");
    }
}
