function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

function lists(){
	if($ES('ul', content)) {
	if($$('.sitemaplevel1') == false && $$('.gbook') == false && $$('.article-list') == false) {
       
    Nifty("div#content ul","big");
$ES('ul', content).each(function(ul){
    $ES('li', ul).each(function(row,i){
        if ( i % 2 == 1 )
            row.addClass( "odd" );
			 });
		});
	   };
    };

}

function tables() {
	if($ES('table', content)) { 
	$ES('table', content).each(function(table){
	$ES('tr', table).each(function(zeile,i){
        if ( i % 2 == 1 )
		zeile.addClass( "tr-odd" );
			 });
		});
	   };
}

function Nifties() { 
	Nifty('span.wichtig','big');
	Nifty('ul.downloads-rightarea','big transparent bl');
	Nifty('ul.links-rightarea','big transparent bl');
	Nifty('div#rightarea h4','small top');
	Nifty('div#content dl','big');
	Nifty('h3.klasse span','small top');
	Nifty('h3.kurs span','small top');
}

addLoadEvent(lists);
addLoadEvent(tables);
addLoadEvent(Nifties);
