// jquery fuer das Menue

$(document).ready(function(){
	if($("#nav_mio")) {
		//$("#nav_mo dd").hide();
		$(".menu_left_mo_mo").show();
		$(".menu_left_mo_st").hide();
		$(".menu_left_mo_me").hide();
		$("#nav_mio dt span").click(function() {
			if(this.className.indexOf("clicked") != -1) {
				$(this).parent().next().slideUp("slow");
				$(this).removeClass("clicked");
			}
			else {
				//$("#nav_mio dt span").removeClass();
				$(this).addClass("clicked");
				$("#nav_mio dd:visible").slideUp("slow");
				$(this).parent().next().slideDown("slow");
			}
			return false;
		});
	}
	
	if($("#nav_bst")) {
		//$("#nav_st dd").hide();
		$(".menu_left_st_mo").hide();
		$(".menu_left_st_st").show();
		$(".menu_left_st_me").hide();
		$("#nav_bst dt span").click(function() {
			if(this.className.indexOf("clicked") != -1) {
				$(this).parent().next().slideUp("slow");
				$(this).removeClass("clicked");
			}
			else {
				//$("#nav_bst dt span").removeClass();
				$(this).addClass("clicked");
				$("#nav_bst dd:visible").slideUp("slow");
				$(this).parent().next().slideDown("slow");
			}
			return false;
		});
	}
	
	if($("#nav_bme")) {
		//$("#nav_me dd").hide();
		$(".menu_left_me_mo").hide();
		$(".menu_left_me_st").hide();
		$(".menu_left_me_me").show();
		$("#nav_bme dt span").click(function() {
			if(this.className.indexOf("clicked") != -1) {
				$(this).parent().next().slideUp("slow");
				$(this).removeClass("clicked");
			}
			else {
				//$("#nav_bme dt span").removeClass();
				$(this).addClass("clicked");
				$("#nav_bme dd:visible").slideUp("slow");
				$(this).parent().next().slideDown("slow");
			}
			return false;
		});
	}
});

	
//$(document).ready(function()
//{
//	function setHeight(which) {
//	    var div = $(which);
//	    div.css({height: div.height()});
//	}
//	
//  //bewegte staedte link
//  $("a#st_link").click(function ()
//  {
//      if ($(".mo_st").is(":hidden"))
//      {
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte_akt.gif');
//        setHeight('.mo_st');
//        $(".mo_st").slideDown("slow");
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        setHeight('.mo_mo');
//        $(".mo_mo").slideUp("slow");
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        setHeight('.mo_me');
//        $(".mo_me").slideUp("slow");
//      }
//      else
//      {
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        setHeight('.mo_st');
//        $(".mo_st").slideUp("slow");
//      }
//      
//      if ($(".st_st").is(":hidden"))
//      {
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte_akt.gif');
//        $(".st_st").slideDown("slow");
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".st_mo").slideUp("slow");
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".st_me").slideUp("slow");
//      }
//      else
//      {
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".st_st").slideUp("slow");
//      }
//      
//      if ($(".me_st").is(":hidden"))
//      {
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte_akt.gif');
//        $(".me_st").slideDown("slow");
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".me_mo").slideUp("slow");
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".me_me").slideUp("slow");
//      }
//      else
//      {
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".me_st").slideUp("slow");
//      }
//  });
//  
//  
//  //bewegte menschen link
//  $("a#me_link").click(function ()
//  {
//      if ($(".mo_me").is(":hidden"))
//      {
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen_akt.gif');
//        $(".mo_me").slideDown("slow");
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".mo_mo").slideUp("slow");
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".mo_st").slideUp("slow");
//      }
//      else
//      {
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".mo_me").slideUp("slow");
//      }
//      
//      if ($(".st_me").is(":hidden"))
//      {
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen_akt.gif');
//        $(".st_me").slideDown("slow");
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".st_mo").slideUp("slow");
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".st_st").slideUp("slow");
//      }
//      else
//      {
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".st_me").slideUp("slow");
//      }
//      
//      if ($(".me_me").is(":hidden"))
//      {
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen_akt.gif');
//        $(".me_me").slideDown("slow");
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".me_mo").slideUp("slow");
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".me_st").slideUp("slow");
//      }
//      else
//      {
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".me_me").slideUp("slow");
//      }
//  });
//  
//  //mission olympic link
//  $("a#mo_link").click(function ()
//  {
//      if ($(".mo_mo").is(":hidden"))
//      {
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic_akt.gif');
//        $(".mo_mo").slideDown("slow");
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".mo_st").slideUp("slow");
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".mo_me").slideUp("slow");
//      }
//      else
//      {
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".mo_mo").slideUp("slow");
//      }
//      
//      if ($(".st_mo").is(":hidden"))
//      {
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic_akt.gif');
//        $(".st_mo").slideDown("slow");
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".st_st").slideUp("slow");
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".st_me").slideUp("slow");
//      }
//      else
//      {
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".st_mo").slideUp("slow");
//      }
//      
//      if ($(".me_mo").is(":hidden"))
//      {
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic_akt.gif');
//        $(".me_mo").slideDown("slow");
//        $('.img_st').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_staedte.gif');
//        $(".me_st").slideUp("slow");
//        $('.img_me').attr('src', 'fileadmin/templates/img/menu/menu_bewegte_menschen.gif');
//        $(".me_me").slideUp("slow");
//      }
//      else
//      {
//        $('.img_mo').attr('src', 'fileadmin/templates/img/menu/menu_mission_olympic.gif');
//        $(".me_mo").slideUp("slow");
//      }
//  });
//});

