$(document).ready(function () {

    $(".enter_a").click(function () {
        $(".enter_hendler_info").css({ "display": "block" });
    });

    $(".enter_hendler_info").hover(function () { }, function () {
        $(".enter_hendler_info").css({ "display": "none" });
    });



    if ($(".help-tips-off").length > 0) {
        $(".help-tips-off").css("left", $(".help-tips").position().left + $(".help-tips").width() + 40);
        $("#tips-on").css("left", $(".groups-descr").width() + $(".groups-descr").position().left + 40);
   
    //$(".help-tips").position().left=$(".help-tips").position().left-30;


    $(window).resize(function () {
        $(".help-tips-off").css("left", $(".help-tips").position().left + $(".help-tips").width() + 40);
        $("#tips-on").css("left", $(".groups-descr").width() + $(".groups-descr").position().left + 40);
    });



    if ($.cookie("cabinet-tips") == "yeah!!!" || !$.cookie("cabinet-tips")) {

        $("#tips-on").hide();


    } else {

        $(".help-tips").hide();
        $(".help-tips-off").hide();
        $("#tips-on").show();

    }




    $("#tips-off").click(function () {
        $(".help-tips").hide();

        $(".help-tips-off").hide();
        $("#tips-on").show();
        $.cookie("cabinet-tips", "nope", { expires: 365, path: "/", domain: "localhost" });
    });

    $("#tips-on").click(function () {

        $(".help-tips").show();
        $(".help-tips-off").show();
        $("#tips-on").hide();
        $.cookie("cabinet-tips", "yeah!!!", { expires: 365, path: "/", domain: "localhost" });



    });
}
    //alert();


});
