/**
 * @author Christoph
 */
$(document).ready(function(){
    
    fillHeadlines();
    fillHelpLink();
    //alert (urldecode(overviewData.overviewTableBody));
    jQuery('#overviewtablebody').html(urldecode(overviewData.overviewTableBody));
    
    // make tables sortable
    jQuery("#overview").tablesorter(
		 {sortList: [[0,1]]} //erstmal nur ein HotFix bis wir eine schoene Loesung haben...
	);    
    
    
    // make table rows clickable
    jQuery("tr[link]").css("cursor", "pointer").hover(function(){
        $(this).addClass("trHover");
    }, function(){
        $(this).removeClass("trHover");
    });
    
    jQuery("tr[link]").bind("click", function(){
        var link = $(this).attr("link");
        window.location.href = link;
    });
    
    startTimer();
    
});
