function isi_open() {
  $("#isi_comment").show(800);
}
function isi_close() {
  $("#isi_comment").hide(800);
}
function bc_open(n) {
        $("#bc"+n).show(800);
}
function bc_close(n) {
        $("#bc"+n).hide(800);
}
function map_close() {
  $("#map").hide(800);
}
function map_open() {
    if ($("#map").is(':hidden')) {
        $("#map").show(800);
    } else {
        $("#map").hide(800);
    }
}
$("#tel").show(800);
function tel() {
    if ($("#tel").is(':hidden')) {
        $("#tel").animate({width: "show"}, 200);

    } else {
        $("#tel").animate({width: "hide"}, 200);
    }
}
function tel_inner() {
    if ($("#tel_inner_full").is(':hidden')) {
        document.getElementById('tel_in').style.left = "0px";
        document.getElementById('tel_in').style.background = "none";
        $("#tel_inner_full").show(800);
    } else {
        document.getElementById('tel_in').style.right = "0px";   
        $("#tel_inner_full").hide(800);
    }
}

function open_wind(){
    var h;
    h = document.getElementById('wrap').offsetHeight;
    document.getElementById('alles').style.height = h+ 'px';
    $("#popup").show(800);
    $("#alles").show(800);
  }
function open_result(){
    var h;
    h = document.getElementById('wrap').offsetHeight;
    document.getElementById('result').style.height = h+ 'px';
    $("#results").show(800);
    $("#result").show(800);
  }
function close_wind(){
    $("#popup").hide(800);
    $("#alles").hide(800);

  }
function close_result(){
    $("#results").hide(800);
    $("#result").hide(800);

  }
function max_list_open(n) {
        $("#max_list"+n).animate({height: "show"}, 800);
        $("#max_list_a"+n).animate({height: "hide"}, 800);
}
function max_list_close(n) {
        $("#max_list"+n).animate({height: "hide"}, 800);
        $("#max_list_a"+n).animate({height: "show"}, 800);
}
function tel_leftb() {
   $(".tel").animate({"left": "-=200px"}, "slow");
}
function tel_left() {

   if ($("#prim").is(':hidden')) {
        $(".tel").animate({"right": "0px"}, "slow");
        $("#prim").show();

    } else {
        $(".tel").animate({"right": "-=200px"}, "slow");
        $("#prim").hide();
    }
}

function inner_tel_show() {
    if ($(".inner_phone").is(':hidden')) {
        $(".inner_phone").animate({height: "show"}, 800);
    } else {
        $(".inner_phone").animate({height: "hide"}, 800);
    }
}

