

// Slider function for the sidebar.

function doMenu(id_name,status)
{
var id_name = id_name;
var id_status_string = id_name+"_status";
var head=id_name+"_head";
//alert(head);
var id_status = $.cookie(id_status_string);

if(status == "auf" && id_status == null){
			$("h4#"+head).removeClass('zu');
            $("h4#"+head).addClass('auf');
            $.cookie(id_status_string, "auf", { path: '/', expires: 100 });
            $("h4#"+head).next('ul').slideDown(5000);
}

else if (id_status == null){
 	$("h4#"+head).addClass('zu');
 	$("h4#"+head).next('ul').css("display","none");
  }

else if (id_status == "zu"){
 	$("h4#"+head).removeClass('auf');
	$("h4#"+head).addClass('zu');
	$("h4#"+head).next('ul').css("display","none");
  }

else if (id_status == "auf"){
	$("h4#"+head).addClass('auf');
  };

$("h4#"+head).click(function() {
        if ($("h4#"+head).attr("class")=='auf'){
            $(this).removeClass('auf');
            $(this).addClass('zu');
            $.cookie(id_status_string, "zu", { path: '/', expires: 100 });
           // $("h4#"+head).next('ul').css("display","none");
            $("h4#"+head).next('ul').slideUp(200);
            $("h4#"+head).next('ul').fadeOut("slow"); 
        } else{
         $("h4#"+head).next('ul').fadeIn("slow"); 
            $(this).removeClass('zu');
            $(this).addClass('auf');
            $.cookie(id_status_string, "auf", { path: '/', expires: 100 });
            $("h4#"+head).next('ul').slideDown(400);
           
        }
});
}



// delete cookie
$("a#delCookie").click(function() {
$.cookie("hot_status", null, { path: '/' });
$.cookie("h1_status", null, { path: '/' });
$.cookie("h4_status", null, { path: '/' });

alert("Die Cookies für die Klappmenues wurden gelöscht! Dies ist eine Debug-Funktion für mich. Aber schön, dass Du dir die Seite so genau anguckst =)");
return false;
});
$(document).ready(function(){

$('a.jt:eq(0)').cluetip({
local: true, 
hideLocal: false,
  dropShadow: false,
  tracking:false,
  cursor: 'pointer',
  activation: 'click',
  topOffset: -10,
    leftOffset: -30,
  arrows: true
});

$('a.load-local').cluetip({
local: true, 
activation: 'click',
  dropShadow: false,
  tracking:false,
cursor: 'pointer'});

 $("#tourx").hide();
$("#tour").click(function() {
//return false;
// $("#srchx").hide();
 $('#tourx').toggle(200);
});

 //$("#srchx").hide();
//$("#btnSrch").click(function() {
// $("#tourx").hide();
 //$('#srchx').toggle(200);
//});


});