$(document).ready(function () {
    var value = readCookie('BerryBanner')
    if (value != null) {
        if (value != 0)
            $("#expand").show();
       
    }
    $("#btn-expand").click(function () {


        $("#expand").hide();
        $("#retract").show();
        $("div#panel-slide").slideContainer({ value: 0 });
    });
    $("#btn-retract").click(function () {

        $("#expand").show();
        $("#retract").hide();
        $("div#panel-slide").slideContainer({ value: -220 });
    });




});

function clickButton(e, buttonid) {

    var key;

    if (window.event)
        key = window.event.keyCode;      //IE
    else
        key = e.which;      //firefox

   
    if (key == 13) {
        //Get the button the user wants to have clicked
        var btn = document.getElementById(buttonid);

        if (btn != null) { //If we find the button click it
          
            btn.click();

            e.cancelBubble = true;
            if (e.stopPropagation)
                e.stopPropagation();
            return false;

        }
    }



    }
