function rweAccordion(id) {
	$("#" + id + " div.toogle").slideToggle("fast");
}
function timer(z){
	var sec = z/1000;
	sec <= 9 ? sec = '0'+sec : sec = sec;
	$('li#timer').html('Aktualisierung in '+sec+' Sekunden')
	if(z == 0){
		refresh();
	}else{
		t = setTimeout('timer('+(z-1000)+')', 1000);
	}
}
function highlight(layer){
	$(layer).each(function(index) {
		//alert(index + ': ' + $(this).text());
		if((index % 2) == '1') $(this).css('background-color', '#fff');
		//$(this).html(index % 2);
	});
}
function showLayer(id, liste, layer){
	setLiActiv(id, liste);
	$("#wrap-container div.container").css("display","none");
	$("#"+layer).css("display","block");
}
function setShow(id, liste){
	systemWorking = 'ticker-liste';
	setLiActiv(id, liste);
	show = id;
	refresh();
}
function setLiActiv(id, liste) {
	unsetLiActiv(liste);
	$('#' + id ).addClass('active');
}
function unsetLiActiv(liste) {
	$('#' + liste + ' li').removeClass('active');
}