﻿
$(document).ready(function(){  
$(".menu > li").click(function(e){  
         switch(e.target.id){  
             case "tabTicker":  
                 //change status & style menu  
                 $("#tabTicker").addClass("active");  
                 $("#tabNews").removeClass("active");  
                 $("#tabWechsel").removeClass("active");  
                 //display selected division, hide others  
                 $("div.tabTicker").fadeIn();  
                 $("div.tabNews").css("display", "none");  
                 $("div.tabWechsel").css("display", "none");  
             break;  
             case "tabNews":  
                 //change status & style menu  
                 $("#tabTicker").removeClass("active");  
                 $("#tabNews").addClass("active");  
                 $("#tabWechsel").removeClass("active");  
                 //display selected division, hide others  
                 $("div.tabNews").fadeIn();  
                 $("div.tabTicker").css("display", "none");  
                 $("div.tabWechsel").css("display", "none");  
             break;  
             case "tabWechsel":  
                 //change status & style menu  
                 $("#tabTicker").removeClass("active");  
                 $("#tabNews").removeClass("active");  
                 $("#tabWechsel").addClass("active");  
                 //display selected division, hide others  
                 $("div.tabWechsel").fadeIn();  
                 $("div.tabTicker").css("display", "none");  
                 $("div.tabNews").css("display", "none");  
             break;  
         }  
         //alert(e.target.id);  
         return false;  
     });  
 });  