/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/various/tabbed_pages.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */


onload = function() {
	/* var aaa, bbb = 0;
	while (aaa = document.getElementById('hopu').getElementsByTagName ('DIV') [bbb++]) {
		if (aaa.className == 'onhopu' || aaa.className == 'offhopu') {
		aaa.onclick = function () {
			var getElshopu = document.getElementsByTagName('DIV');
				for (var zhopu=0; zhopu<getElshopu.length; zhopu++) {
				getElshopu[zhopu].className=getElshopu[zhopu].className.replace('showhopu', 'hidehopu');
				getElshopu[zhopu].className=getElshopu[zhopu].className.replace('onhopu', 'offhopu');
				}
			this.className = 'onhopu';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "showhopu";
			}
		}
	} */

	var aa, bb = 0;
	while (aa = document.getElementById('direktion').getElementsByTagName ('DIV') [bb++]) {
		if (aa.className == 'ondir' || aa.className == 'offdir') {
		aa.onclick = function () {
			var getElsdir = document.getElementsByTagName('DIV');
				for (var zdir=0; zdir<getElsdir.length; zdir++) {
				getElsdir[zdir].className=getElsdir[zdir].className.replace('showdir', 'hidedir');
				getElsdir[zdir].className=getElsdir[zdir].className.replace('ondir', 'offdir');
				}
			this.className = 'ondir';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "showdir";
			}
		}
	}
	
	var a, b = 0;
	while (a = document.getElementById('abteilung1').getElementsByTagName ('DIV') [b++]) {
		if (a.className == 'on1' || a.className == 'off1') {
		a.onclick = function () {
			var getEls1 = document.getElementsByTagName('DIV');
				for (var z1=0; z1<getEls1.length; z1++) {
				getEls1[z1].className=getEls1[z1].className.replace('show1', 'hide1');
				getEls1[z1].className=getEls1[z1].className.replace('on1', 'off1');
				}
			this.className = 'on1';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "show1";
			}
		}
	}
	var c, d = 0;
	while (c = document.getElementById('abteilung2').getElementsByTagName ('DIV') [d++]) {
		if (c.className == 'on2' || c.className == 'off2') {
		c.onclick = function () {
			var getEls2 = document.getElementsByTagName('DIV');
				for (var z2=0; z2<getEls2.length; z2++) {
				getEls2[z2].className=getEls2[z2].className.replace('show2', 'hide2');
				getEls2[z2].className=getEls2[z2].className.replace('on2', 'off2');
				}
			this.className = 'on2';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "show2";
			}
		}
	}
	var e, f = 0;
	while (e = document.getElementById('abteilung3').getElementsByTagName ('DIV') [f++]) {
		if (e.className == 'on3' || e.className == 'off3') {
		e.onclick = function () {
			var getEls3 = document.getElementsByTagName('DIV');
				for (var z3=0; z3<getEls3.length; z3++) {
				getEls3[z3].className=getEls3[z3].className.replace('show3', 'hide3');
				getEls3[z3].className=getEls3[z3].className.replace('on3', 'off3');
				}
			this.className = 'on3';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "show3";
			}
		}
	}
	var g, h = 0;
	while (g = document.getElementById('abteilung4').getElementsByTagName ('DIV') [h++]) {
		if (g.className == 'on4' || g.className == 'off4') {
		g.onclick = function () {
			var getEls4 = document.getElementsByTagName('DIV');
				for (var z4=0; z4<getEls4.length; z4++) {
				getEls4[z4].className=getEls4[z4].className.replace('show4', 'hide4');
				getEls4[z4].className=getEls4[z4].className.replace('on4', 'off4');
				}
			this.className = 'on4';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "show4";
			}
		}
	}
	var i, j = 0;
	while (i = document.getElementById('abteilung5').getElementsByTagName ('DIV') [j++]) {
		if (i.className == 'on5' || i.className == 'off5') {
		i.onclick = function () {
			var getEls5 = document.getElementsByTagName('DIV');
				for (var z5=0; z5<getEls5.length; z5++) {
				getEls5[z5].className=getEls5[z5].className.replace('show5', 'hide5');
				getEls5[z5].className=getEls5[z5].className.replace('on5', 'off5');
				}
			this.className = 'on5';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "show5";
			}
		}
	}
	var k, l = 0;
	while (k = document.getElementById('oea').getElementsByTagName ('DIV') [l++]) {
		if (k.className == 'onoea' || k.className == 'offoea') {
		k.onclick = function () {
			var getElsoea = document.getElementsByTagName('DIV');
				for (var zoea=0; zoea<getElsoea.length; zoea++) {
				getElsoea[zoea].className=getElsoea[zoea].className.replace('showoea', 'hideoea');
				getElsoea[zoea].className=getElsoea[zoea].className.replace('onoea', 'offoea');
				}
			this.className = 'onoea';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "showoea";
			}
		}
	}
	var m, n = 0;
	while (m = document.getElementById('bibliothek').getElementsByTagName ('DIV') [n++]) {
		if (m.className == 'onbib' || m.className == 'offbib') {
		m.onclick = function () {
			var getElsbib = document.getElementsByTagName('DIV');
				for (var zbib=0; zbib<getElsbib.length; zbib++) {
				getElsbib[zbib].className=getElsbib[zbib].className.replace('showbib', 'hidebib');
				getElsbib[zbib].className=getElsbib[zbib].className.replace('onbib', 'offbib');
				}
			this.className = 'onbib';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "showbib";
			}
		}
	}
	var o, p = 0;
	while (o = document.getElementById('verwaltung').getElementsByTagName ('DIV') [p++]) {
		if (o.className == 'onvw' || o.className == 'offvw') {
		o.onclick = function () {
			var getElsvw = document.getElementsByTagName('DIV');
				for (var zvw=0; zvw<getElsvw.length; zvw++) {
				getElsvw[zvw].className=getElsvw[zvw].className.replace('showvw', 'hidevw');
				getElsvw[zvw].className=getElsvw[zvw].className.replace('onvw', 'offvw');
				}
			this.className = 'onvw';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "showvw";
			}
		}
	}
	var q, r = 0;
	while (q = document.getElementById('vertretung').getElementsByTagName ('DIV') [r++]) {
		if (q.className == 'onrv' || q.className == 'offrv') {
		q.onclick = function () {
			var getElsrv = document.getElementsByTagName('DIV');
				for (var zrv=0; zrv<getElsrv.length; zrv++) {
				getElsrv[zrv].className=getElsrv[zrv].className.replace('showrv', 'hiderv');
				getElsrv[zrv].className=getElsrv[zrv].className.replace('onrv', 'offrv');
				}
			this.className = 'onrv';
			var max = this.getAttribute('title');
			document.getElementById(max).className = "showrv";
			}
		}
	}
}
