jQuery.noConflict();
jQuery(function($) {
    $(".openbtn1").hide();
    $(".closebtn2").click(function() {
        $(".janota_announcements").animate({height: "hide", opacity: 'hide'}, 700,
            function() {
                $(".forums").animate({width: "100%"}, 700);
            });
        $(this).hide();
        $(".openbtn1").show();
        $.cookie("janota_announcements","collapsed", {expires: 365});
        return false;
    });
    $(".openbtn1").click(function() {
        $(".forums").animate({width: "100%"}, 100,
            function() {
                $(".janota_announcements").animate({height: "show", opacity: 1}, 700);
            });
        $(this).hide();
        $(".closebtn2").show();
        $.cookie("janota_announcements","expanded", {expires: 365});
        return false;
    });
    if($.cookie("janota_announcements") == "collapsed") {
        $(".closebtn2").hide();
        $(".openbtn1").show();
        $(".forums").css("width","100%");
        $(".janota_announcements").hide();
    };
});

jQuery.noConflict();
jQuery(function($) {
    $(".openbtn11").hide();
    $(".closebtn12").click(function() {
        $(".janota_announcements1").animate({height: "hide", opacity: 'hide'}, 700,
            function() {
                $(".forums1").animate({width: "100%"}, 700);
            });
        $(this).hide();
        $(".openbtn11").show();
        $.cookie("janota_announcements1","collapsed", {expires: 365});
        return false;
    });
    $(".openbtn11").click(function() {
        $(".forums1").animate({width: "100%"}, 100,
            function() {
                $(".janota_announcements1").animate({height: "show", opacity: 1}, 700);
            });
        $(this).hide();
        $(".closebtn12").show();
        $.cookie("janota_announcements1","expanded", {expires: 365});
        return false;
    });
    if($.cookie("janota_announcements1") == "collapsed") {
        $(".closebtn12").hide();
        $(".openbtn11").show();
        $(".forums1").css("width","100%");
        $(".janota_announcements1").hide();
    };
});

jQuery.noConflict();
jQuery(function($) {
    $(".openbtn21").hide();
    $(".closebtn22").click(function() {
        $(".janota_announcements2").animate({height: "hide", opacity: 'hide'}, 700,
            function() {
                $(".forums2").animate({width: "100%"}, 700);
            });
        $(this).hide();
        $(".openbtn21").show();
        $.cookie("janota_announcements2","collapsed", {expires: 365});
        return false;
    });
    $(".openbtn21").click(function() {
        $(".forums2").animate({width: "100%"}, 100,
            function() {
                $(".janota_announcements2").animate({height: "show", opacity: 1}, 700);
            });
        $(this).hide();
        $(".closebtn22").show();
        $.cookie("janota_announcements2","expanded", {expires: 365});
        return false;
    });
    if($.cookie("janota_announcements2") == "collapsed") {
        $(".closebtn22").hide();
        $(".openbtn21").show();
        $(".forums2").css("width","100%");
        $(".janota_announcements2").hide();
    };
});

jQuery.noConflict();
jQuery(function($) {
    $(".openbtn31").hide();
    $(".closebtn32").click(function() {
        $(".janota_announcements3").animate({height: "hide", opacity: 'hide'}, 700,
            function() {
                $(".forums3").animate({width: "100%"}, 700);
            });
        $(this).hide();
        $(".openbtn31").show();
        $.cookie("janota_announcements3","collapsed", {expires: 365});
        return false;
    });
    $(".openbtn31").click(function() {
        $(".forums3").animate({width: "100%"}, 100,
            function() {
                $(".janota_announcements3").animate({height: "show", opacity: 1}, 700);
            });
        $(this).hide();
        $(".closebtn32").show();
        $.cookie("janota_announcements3","expanded", {expires: 365});
        return false;
    });
    if($.cookie("janota_announcements3") == "collapsed") {
        $(".closebtn32").hide();
        $(".openbtn31").show();
        $(".forums3").css("width","100%");
        $(".janota_announcements3").hide();
    };
});

jQuery.noConflict();
jQuery(function($) {
    $(".openbtn41").hide();
    $(".closebtn42").click(function() {
        $(".janota_announcements4").animate({height: "hide", opacity: 'hide'}, 700,
            function() {
                $(".forums4").animate({width: "100%"}, 700);
            });
        $(this).hide();
        $(".openbtn41").show();
        $.cookie("janota_announcements4","collapsed", {expires: 365});
        return false;
    });
    $(".openbtn41").click(function() {
        $(".forums4").animate({width: "100%"}, 100,
            function() {
                $(".janota_announcements4").animate({height: "show", opacity: 1}, 700);
            });
        $(this).hide();
        $(".closebtn42").show();
        $.cookie("janota_announcements4","expanded", {expires: 365});
        return false;
    });
    if($.cookie("janota_announcements4") == "collapsed") {
        $(".closebtn42").hide();
        $(".openbtn41").show();
        $(".forums4").css("width","100%");
        $(".janota_announcements4").hide();
    };
});
