jQuery().ready(function(){
						
	$("#navi").pngFix();
						
						
	
	var docUrl = document.URL;
	var fileName = docUrl.match(/[\w|-]+\.php/);
	if (fileName == null) fileName = "index.php";


	$("div#navi ul li a").each(function(index) { 	
		if($(this).attr("href") == fileName){
			$(this).attr("class","activate");
			$(this).parent().parent("ul").show();
		}
	});
	
	$("div#navi ul li ul li a").each(function(index) {});


	$("#navi ul li").click( function() { 
		$(this).children("ul").slideToggle("normal");
	});
		
	/*var cellContent = null;
	var i=0;
	$('table tbody tr').each(function(index) { 
		if(cellContent != $(this).children("td:first").text())
			i++;
		if(i%2==0)
			$(this).addClass('odd');
		cellContent = $(this).children("td:first").text();
	});
	*/
	
	$("tr:odd").addClass('odd');
	
	$("table tr").mouseover( function() {
		if($(this).html().search(/<th/) == -1)
			$(this).addClass("hover");
		
	});	
	
	$("table tr").mouseout( function() { 
		$(this).removeClass("hover");
	});	
	
	/*
	$("#content").click( function() { 
		var content = $(this).html();
		alert(content);
		
		$(this).html("<form action=\"textarea.htm\"><textarea name=\"user_eingabe\" cols=\"50\" rows=\"10\">"+content+"</textarea></form>");
	});
	*/

});	
