$(document).ready(function() {
	if (self != top) top.location.href=self.location.href;
	if(is_ie) {
		var menu = document.getElementById('oben').getElementsByTagName('ul');
		var i = menu.length;
		do {
			menu[i].setAttribute("id","menu"+i);
			if (menu[i].parentNode.nodeName == "LI") {
				menu[i].parentNode.onmouseover = function () {this.lastChild.style.display = "block";}
				menu[i].parentNode.onmouseout = function ()  {this.lastChild.style.display = "none";}
			}
		} while (--i);
	}
	if ($('.lb').length>0) {$('.lb').lightBox();}
	if ($('#slideshow').length>0) {
	   $('#slideshow').cycle({fx:'scrollHorz',delay:-2000,timeout:5000,pager:'#nav',});
	   $('#pauseButton').click(function()     {$('#slideshow').cycle('pause');});
	   $('#resumeButton').click(function() {$('#slideshow').cycle('resume', true);});
	}
	if (document.getElementById('toc')) {
		$.toc('#inhalt h2, #inhalt h3, #inhalt h4').prependTo('#toc');
	}
});
