function lib_bwcheck(){ //Browsercheck (needed)
this.ver=navigator.appVersion
this.agent=navigator.userAgent
this.dom=document.getElementById?1:0
this.opera5=this.agent.indexOf("Opera 5")>-1
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ie6 || this.ie7);
/* Aenderung 10.6.09 ple fuer IE8: */
this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ie6 || this.ie8);
/* Aenderung fertig. */
this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6
this.mac=this.agent.indexOf("Mac")>-1
this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
return this
}

var bw=new lib_bwcheck()

var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame="inhalt"

oCMenu.useclick=0
oCMenu.useNS4links=1
oCMenu.NS4padding=2
oCMenu.checkselect=1

oCMenu.offlineUrl=""
oCMenu.onlineUrl="http://www.schule-herrliberg.ch/scripts/"

oCMenu.pagecheck=0
oCMenu.checkscroll=0
oCMenu.resizecheck=0
oCMenu.wait=1000

oCMenu.usebar=0
oCMenu.barcolor="000000"
oCMenu.barwidth="menu"
oCMenu.barheight="menu"
oCMenu.barx="menu"
oCMenu.bary="menu"
oCMenu.barinheritborder=0


oCMenu.rows=0
oCMenu.fromleft=37
oCMenu.fromtop=187
oCMenu.pxbetween=7
oCMenu.menuplacement="left"

//EXAMPLE SUB LEVEL[0]
oCMenu.level[0]=new Array()
oCMenu.level[0].width=170
oCMenu.level[0].height=20
oCMenu.level[0].bgcoloroff="FFFFFF"
oCMenu.level[0].bgcoloron="#FFFFFF"
oCMenu.level[0].textcolor="000000"
oCMenu.level[0].hovercolor="FF771D"
oCMenu.level[0].style="padding:2px; font-family:verdana,arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[0].border=0
oCMenu.level[0].bordercolor="FF771D"
oCMenu.level[0].offsetX=10
oCMenu.level[0].offsetY=0
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"


oCMenu.level[0].clip=0
oCMenu.level[0].clippx=0
oCMenu.level[0].cliptim=0
oCMenu.level[0].filter=0
oCMenu.level[0].align="right" 

//EXAMPLE SUB LEVEL[1] 
oCMenu.level[1]=new Array()
oCMenu.level[1].width=170
oCMenu.level[1].height=20
oCMenu.level[1].style="padding:5px; font-family:verdana,arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=3
oCMenu.level[1].offsetY=-1
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#FF771D"

//EXAMPLE SUB LEVEL[2] PROPERTIES 
oCMenu.level[2]=new Array()
oCMenu.level[2].width=120
oCMenu.level[2].height=20
oCMenu.level[2].bgcoloroff="#FFFFFF"
oCMenu.level[2].bgcoloron="#FFFFFF"
oCMenu.level[2].style="padding:5px; font-family:verdana,arial,helvetica; font-size:11px"
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=3
oCMenu.level[2].offsetY=-1
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#FF771D"
oCMenu.level[2].NS4font="arial,helvetica"
oCMenu.level[2].NS4fontSize="2"

/*Variables for each menu item: (** means that they have to be spesified!)
name: The name of the item. This must be unique for each item. Do not use spaces or strange charachters in this one! **
parent: The name of the menuitem you want this to "connect" to. This will be a submenu of the item that have the name you place in here. ** for all other then the topitems
text: The text you want in the item. ** (except if you use images) 
link: The page you want this item to link to.
target: The target window or frame you want the link to go to (Default is same window if you're not using frames, and the mainframe if you're using frames)
width: The width of the element. If not spesified it will get the default width spesified above.
height: The height of the element. If not spesified it will get the default height spesified above.
img1: The "off" image for element if you want to use images.
img2: The image that appears onmouseover if using images.
bgcoloroff: The background color for this item. If not spesified it will get the default background color spesified above.
bgcoloron: The "on" background color for this item. If not spesified it will get the default "on" background color spesified above.
textcolor: The text color for this item. If not spesified it will get the default text color spesified above.
hovercolor: The "on" text color for this item. If not spesified it will get the default "on" text color spesified above. Netscape4 ignores this
onclick: If you want something to happen when the element is clicked (different from going to a link) spesifiy it here.
onmouseover: This will happen when you mouseover the element. Could be status text, another imageswap or whatever.
onmouseout: This will happen when you mouseout the element.

Remember you can have as many levels/sublevels as you want. Just make sure you spesify the correct "parent" for each item.
To set styles for each level see above.
*/

oCMenu.makeMenu('top0','','','','','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_schule.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_schule2.gif')

	oCMenu.makeMenu('sub00','top0','Schulorganisation')
		oCMenu.makeMenu('sub000','sub00','Leitbild','http://www.schule-herrliberg.ch/html/01_schule/1_1_1_leitbild.html','_top')
		oCMenu.makeMenu('sub001','sub00','Organigramm','http://www.schule-herrliberg.ch/html/01_schule/1_1_2_organigramm.html','_top')
		oCMenu.makeMenu('sub002','sub00','Schulpflege','http://www.schule-herrliberg.ch/html/01_schule/1_1_3_schulpflege.html','_top')
		oCMenu.makeMenu('sub003','sub00','Gesch&auml;ftsleitung','http://www.schule-herrliberg.ch/html/01_schule/1_1_4_geschaeftsleitung.html','_top')
		oCMenu.makeMenu('sub004','sub00','Schulverwaltung','http://www.schule-herrliberg.ch/html/01_schule/1_1_5_schulverwaltung.html','_top')

	oCMenu.makeMenu('sub01','top0','Kindergarten')
		oCMenu.makeMenu('sub010','sub01','Schulleitung','http://www.schule-herrliberg.ch/html/01_schule/1_2_1_kind_schulleitung.html','_top')
		oCMenu.makeMenu('sub011','sub01','Orientierung','http://www.schule-herrliberg.ch/html/01_schule/1_2_2_kind_orientierung.html','_top')
		oCMenu.makeMenu('sub012','sub01','Aktuelles','http://www.schule-herrliberg.ch/html/01_schule/1_2_3_kind_aktuelles.html','_top')
		oCMenu.makeMenu('sub013','sub01','Kinderg&auml;rten','http://www.schule-herrliberg.ch/html/01_schule/1_2_4_kind_kinder.html','_top')

	oCMenu.makeMenu('sub02','top0','Primarschule')
		oCMenu.makeMenu('sub020','sub02','Schulleitung','http://www.schule-herrliberg.ch/html/01_schule/1_3_1_primar_schulleitung.html','_top')
		oCMenu.makeMenu('sub021','sub02','Orientierung','http://www.schule-herrliberg.ch/html/01_schule/1_3_2_primar_orientierung.html','_top')
		oCMenu.makeMenu('sub022','sub02','Aktuelles','http://www.schule-herrliberg.ch/html/01_schule/1_3_3_primar_aktuelles.html','_top')
		oCMenu.makeMenu('sub023','sub02','Klassen','http://www.schule-herrliberg.ch/html/01_schule/1_3_4_01_primar_klassen_1a.html','_top')

	oCMenu.makeMenu('sub03','top0','KITA X')
		oCMenu.makeMenu('sub030','sub03','Schulleitung','http://www.schule-herrliberg.ch/html/01_schule/1_7_1_kita_schulleitung.html','_top')
		oCMenu.makeMenu('sub031','sub03','Aktuelles','http://www.schule-herrliberg.ch/html/01_schule/1_7_2_kita_aktuelles.html','_top')
		oCMenu.makeMenu('sub032','sub03','Angebot','http://www.schule-herrliberg.ch/html/01_schule/1_7_3_kita_angebot.html','_top')

	oCMenu.makeMenu('sub04','top0','Tagesschule Wetzwil')
		oCMenu.makeMenu('sub040','sub04','Schulleitung','http://www.schule-herrliberg.ch/html/01_schule/1_4_1_tag_schulleitung.html','_top')
		oCMenu.makeMenu('sub041','sub04','Orientierung','http://www.schule-herrliberg.ch/html/01_schule/1_4_2_tag_orientierung.html','_top')
		oCMenu.makeMenu('sub042','sub04','Aktuelles','http://www.schule-herrliberg.ch/html/01_schule/1_4_3_tag_aktuelles.html','_top')
		oCMenu.makeMenu('sub043','sub04','Klassen','http://www.schule-herrliberg.ch/html/01_schule/1_4_4_1_tag_klassen_1-2.html','_top')

	oCMenu.makeMenu('sub05','top0','Sekundarschule','http://www.gseh.ch','_blank')

	oCMenu.makeMenu('sub06','top0','Sonderp&auml;d. Fachbereich')
		oCMenu.makeMenu('sub060','sub06','Orientierung','http://www.schule-herrliberg.ch/html/01_schule/1_6_2_fach_orientierung.html','_top')
		oCMenu.makeMenu('sub061','sub06','Aktuelles','http://www.schule-herrliberg.ch/html/01_schule/1_6_3_fach_aktuelles.html','_top')	
		oCMenu.makeMenu('sub062','sub06','Angebot','http://www.schule-herrliberg.ch/html/01_schule/1_6_4_1_fach_deutsch.html','_top')	


oCMenu.makeMenu('top1','','','http://www.schule-herrliberg.ch/html/02_a-z/2_a-z.html','_top','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_a-z.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_a-z2.gif')


oCMenu.makeMenu('top2','','','','','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_freizeit.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_freizeit2.gif')
	oCMenu.makeMenu('sub20','top2','Sch&uuml;lerInnen')
			oCMenu.makeMenu('sub200','sub20','Werken mit Holz','http://www.schule-herrliberg.ch/html/03_freizeit/3_1_2_werken.html','_top')
			oCMenu.makeMenu('sub201','sub20','Sport','http://www.schule-herrliberg.ch/html/03_freizeit/3_1_3_sport.html','_top')
			oCMenu.makeMenu('sub202','sub20','Jugendmusikschulen','http://www.schule-herrliberg.ch/html/03_freizeit/3_1_4_jugendmusik.html','_top')
			oCMenu.makeMenu('sub203','sub20','Skilager','http://www.schule-herrliberg.ch/html/03_freizeit/3_1_5_skilager.html','_top')
			oCMenu.makeMenu('sub204','sub20','Freizeitlager','http://www.muucamp.ch','_blank')
			oCMenu.makeMenu('sub205','sub20','Jugendarbeit','http://www.jugi-herrliberg.ch','_blank')

	oCMenu.makeMenu('sub21','top2','Erwachsene')
			oCMenu.makeMenu('sub210','sub21','Hauswirtschaft','http://www.schule-herrliberg.ch/html/03_freizeit/3_2_1_hauswirtschaft.html','_top')
			oCMenu.makeMenu('sub211','sub21','Weitere Angebote','http://www.schule-herrliberg.ch/html/03_freizeit/3_2_2_weitere-angebote.html','_top')
	
oCMenu.makeMenu('top3','','','','','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_eltern.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_eltern2.gif')
	oCMenu.makeMenu('sub30','top3','Konzept','http://www.schule-herrliberg.ch/html/04_eltern/4_1_konzept.html','_top')
	oCMenu.makeMenu('sub31','top3','Organigramm','http://www.schule-herrliberg.ch/html/04_eltern/4_2_organigramm.html','_top')
	oCMenu.makeMenu('sub32','top3','Reglement','http://www.schule-herrliberg.ch/html/04_eltern/4_3_reglement.html','_top')
	oCMenu.makeMenu('sub33','top3','Ansprechperson','http://www.schule-herrliberg.ch/html/04_eltern/4_4_ansprechpersonen.html','_top')
	oCMenu.makeMenu('sub34','top3','W&uuml;nsche, Anregungen','http://www.schule-herrliberg.ch/html/04_eltern/4_5_wuensche.html','_top')
	oCMenu.makeMenu('sub35','top3','Aktuelles','http://www.schule-herrliberg.ch/html/04_eltern/4_6_veranstaltungen.html','_top')
	oCMenu.makeMenu('sub36','top3','Weiterbildung','http:/www.schule-herrliberg.ch/html/04_eltern/4_7_weiterbildung.html','_top')
	oCMenu.makeMenu('sub37','top3','Links','http://www.schule-herrliberg.ch/html/04_eltern/4_8_links.html','_top')


oCMenu.makeMenu('top4','','','http://www.schule-herrliberg.ch/html/05_bibliothek/5_1_orientierung.html','_top','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_bibliothek.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_bibliothek2.gif')

	
oCMenu.makeMenu('top5','','','','','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_kontakt.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_kontakt2.gif')
	oCMenu.makeMenu('sub50','top5','Alphabetisch','http://www.schule-herrliberg.ch/html/06_kontakt/6_1_alphabetisch.html','_top')
	oCMenu.makeMenu('sub51','top5','Nach Funktion','http://www.schule-herrliberg.ch/html/06_kontakt/6_2_nach-funktion.html','_top')
	
	
oCMenu.makeMenu('top6','','','http://www.schule-herrliberg.ch/html/07_agenda/7_agenda.html','_top','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_agenda.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_agenda2.gif')


oCMenu.makeMenu('top7','','','http://www.schule-herrliberg.ch/html/08_onlineschalter/','_top','163','24','http://www.schule-herrliberg.ch/pictures/nav/nav_online.gif','http://www.schule-herrliberg.ch/pictures/nav/nav_online2.gif')
		
		
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()

