﻿/*****************************************************************************
Default browsercheck - Leave this one
******************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-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 || this.dom)
	return this
}
var bw=new lib_bwcheck()

var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame="frmMain"
oCMenu.useNS4links=1


oCMenu.offlineUrl="file:///C:/Dokumente und Einstellungen/om/Desktop/FCK-Running INSITE/Website FCK-Running V6/"
oCMenu.onlineUrl="http://www.insite-design.de/fck/"

oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1
oCMenu.wait=400

//Background bar properties
oCMenu.usebar=1 //If you want to use a background-bar for the top items set this on - Value: 1 || 0
oCMenu.barcolor="#CA2533" 
oCMenu.barwidth="0" 
oCMenu.barheight="menu" 
oCMenu.barx="50%"
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1

//Placement properties
oCMenu.rows=1
oCMenu.fromleft=0 
oCMenu.fromtop=0
oCMenu.pxbetween=0

oCMenu.menuplacement= 1;


//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() 
oCMenu.level[0].width=50 
oCMenu.level[0].height=30 
oCMenu.level[0].bgcoloroff="#CA2533"
oCMenu.level[0].bgcoloron="#CA2533" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].hovercolor="white" 
oCMenu.level[0].style="font-family:Verdana, Geneva, Arial, Helvetica, sans-ser; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="313131" 
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="Verdana, Geneva, Arial, Helvetica, sans-ser;"
oCMenu.level[0].NS4fontSize="3"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom"
oCMenu.level[0].img1="layout/menue_1_1.gif" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new Array() 
oCMenu.level[1].width=50
oCMenu.level[1].height=19
oCMenu.level[1].bgcoloroff="#CA2533"
oCMenu.level[1].bgcoloron="#7D2B32"
oCMenu.level[1].textcolor="white"
oCMenu.level[1].hovercolor="white"
oCMenu.level[1].style="padding:2px; font-family:Verdana, Geneva, Arial, Helvetica, sans-ser; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=-1
oCMenu.level[1].offsetY=-1
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#313131"
oCMenu.level[1].NS4font="Verdana, Geneva, Arial, Helvetica, sans-ser;"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array()
oCMenu.level[2].width=50
oCMenu.level[2].height=16
oCMenu.level[2].style="padding:2px; font-family: Verdana, Geneva, Arial, Helvetica, sans-ser; font-size:10px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=-1
oCMenu.level[2].offsetY=-1
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#313131"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].bgcoloroff="#CA2533"
oCMenu.level[2].bgcoloron="#7D2B32"
oCMenu.level[2].textcolor="white"
oCMenu.level[2].hovercolor="white"


/*Variables for each menu item: (** means that they have to be spesified!)
1name: The name of the item. This must be unique for each item. Do not use spaces or strange charachters in this one! **
2parent: 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
3text: The text you want in the item. ** (except if you use images) 
4link: The page you want this item to link to.
5target: 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)
6width: The width of the element. If not spesified it will get the default width spesified above.
7height: The height of the element. If not spesified it will get the default height spesified above.
8img1: The "off" image for element if you want to use images.
9img2: The image that appears onmouseover if using images.
10bgcoloroff: The background color for this item. If not spesified it will get the default background color spesified above.
11bgcoloron: The "on" background color for this item. If not spesified it will get the default "on" background color spesified above.
12textcolor: The text color for this item. If not spesified it will get the default text color spesified above.
13hovercolor: The "on" text color for this item. If not spesified it will get the default "on" text color spesified above. Netscape4 ignores this
14onclick: If you want something to happen when the element is clicked (different from going to a link) spesifiy it here.
15onmouseover: This will happen when you mouseover the element. Could be status text, another imageswap or whatever.
16onmouseout: 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.
*/

function xyOff(){
	var menuWidths= [100,100,100,100,100,100];
	var obj= (bw.ns4)?document.images.rtImg:(bw.ie4)?document.all.rtImg:document.getElementById('rtImg');
	if(bw.ns4){this.x= obj.x; this.y= obj.y}
	else if(bw.ns5){this.x= obj.offsetLeft; this.y= obj.offsetTop}
	else {
		this.x= obj.offsetLeft;
		this.prnt= obj;
		while((this.prnt=this.prnt.offsetParent)){
			this.x+= this.prnt.offsetLeft;
		}
		this.y= obj.offsetTop;
		this.prnt= obj;
		while((this.prnt=this.prnt.offsetParent)){
			this.y+= this.prnt.offsetTop;
		}		
	}
	var mw=0;
	for(var i=0;i<menuWidths.length;i++){
		mw+= cm_checkp(menuWidths[i],1,1,1)+oCMenu.pxbetween;
	}
	mw-=oCMenu.pxbetween;
	this.x= this.x-mw/2;
//	this.x= this.x;
}
off= new xyOff();
oCMenu.fromleft= off.x;
oCMenu.fromtop= off.y;

oCMenu.makeMenu('top0','','','news.php','','69','30','layout/menu_01.gif','layout/menu_01_ov.gif')
	oCMenu.makeMenu('sub00','top0','<b>&nbsp;Aktuelle&nbsp;Neuigkeiten</b>','news.php','',160,0)

oCMenu.makeMenu('top1','','','reports.php','','93','30','layout/menu_02.gif','layout/menu_02_ov.gif')
	oCMenu.makeMenu('sub10','top1','<b>&nbsp;Aktuelle&nbsp;Berichte</b>','reports.php','',175,0)

oCMenu.makeMenu('top2','','','','','155','30','layout/menu_03.gif','layout/menu_03_ov.gif')
	oCMenu.makeMenu('sub21','top2','<b>&nbsp;Hornbach&nbsp;City-Lauf</b>','#','',250,0)
		oCMenu.makeMenu('sub213','sub21','<b>&nbsp;Zeitplan</b>','city-lauf_zeitplan.html','',160,0)
		oCMenu.makeMenu('sub212','sub21','<b>&nbsp;Ausschreibung</b>','city-lauf_ausschreibung.html','',160,0)
		oCMenu.makeMenu('sub211','sub21','<b>&nbsp;Online-Anmeldung</b>','city-lauf_anmeldung.html','',160,0)
		oCMenu.makeMenu('sub214','sub21','<b>&nbsp;Streckenplan</b>','city-lauf_streckenplan.html','',160,0)
		oCMenu.makeMenu('sub215','sub21','<b>&nbsp;Ergebnisse 2010</b>','http://www.fck-running.de/city-lauf_ergebnisse_2010.php?lauf=1','',160,0)
		oCMenu.makeMenu('sub216','sub21','<b>&nbsp;Ergebnisse 2009</b>','http://www.fck-running.de/city-lauf_ergebnisse_2009.php?lauf=1','',160,0)
		oCMenu.makeMenu('sub217','sub21','<b>&nbsp;Ergebnisse 2008</b>','http://www.fck-running.de/city-lauf_ergebnisse_2008.php?lauf=1','',160,0)
		oCMenu.makeMenu('sub218','sub21','<b>&nbsp;Ergebnisse 2007</b>','http://www.fck-running.de/city-lauf_ergebnisse_2007.php?lauf=1','',160,0)
		oCMenu.makeMenu('sub219','sub21','<b>&nbsp;Ergebnisse 2006</b>','http://www.fck-running.de/city-lauf_ergebnisse_2006.php?lauf=1','',160,0)

	oCMenu.makeMenu('sub22','top2','<b>&nbsp;Coca-Cola&nbsp;10Km&nbsp;Straßenlauf</b>','#','',250,0)
		oCMenu.makeMenu('sub220','sub22','<b>&nbsp;Ausschreibung</b>','einsiedlerhof_ausschreibung.html','',230,0)
		oCMenu.makeMenu('sub221','sub22','<b>&nbsp;Anreise</b>','einsiedlerhof_anreise.html','',230,0)
		oCMenu.makeMenu('sub222','sub22','<b>&nbsp;Anmeldung</b>','einsiedlerhof_anmeldung.html','',230,0)
		oCMenu.makeMenu('sub223','sub22','<b>&nbsp;Bestzeiten</b>','einsiedlerhof_bestzeiten.html','',230,0)
		oCMenu.makeMenu('sub224','sub22','<b>&nbsp;Ergebnisse&nbsp;2011&nbsp;10km</b>','einsiedlerhof_ergebnisse_10km_2011.php','',230,0)
		oCMenu.makeMenu('sub225','sub22','<b>&nbsp;Ergebnisse&nbsp;2011&nbsp;5km</b>','einsiedlerhof_ergebnisse_5km_2011.php','',230,0)
		oCMenu.makeMenu('sub226','sub22','<b>&nbsp;&nbsp;Ergebnisse&nbsp;Mannschaften&nbsp;2011</b>','einsiedlerhof_ergebnisse_mann_m_2011.php','',230,0)

oCMenu.makeMenu('top3','','','','','100','30','layout/menu_04.gif','layout/menu_04_ov.gif')
	oCMenu.makeMenu('sub30','top3','<b>&nbsp;FCK-Laufseminar</b>','seminare.php','',170,0)
	oCMenu.makeMenu('sub31','top3','<b>&nbsp;Waldlaufparcours KL</b>','waldlaufparcours.html','',170,0)
	
oCMenu.makeMenu('top4','','','wir_ueber_uns.html','','155','30','layout/menu_05.gif','layout/menu_05_ov.gif')
	oCMenu.makeMenu('sub40','top4','<b>&nbsp;Unsere&nbsp;Sommer-Trainingszeiten</b>','trainingszeiten_sommer.html','',230,0)
	oCMenu.makeMenu('sub41','top4','<b>&nbsp;Unsere&nbsp;Winter-Trainingszeiten</b>','trainingszeiten_winter.html','',230,0)
	oCMenu.makeMenu('sub42','top4','<b>&nbsp;FCK-Running&nbsp;Fotogalerie</b>','fotogalerie.php','',230,0)
	oCMenu.makeMenu('sub43','top4','<b>&nbsp;Wer lief wo</b>','werliefwo.php','',230,0)

oCMenu.makeMenu('top5','','','kontakt.html','','110','30','layout/menu_06.gif','layout/menu_06_ov.gif')

		
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()					

