var MENU_ITEMS_XP = [
	[wrap_root('Home'), 'home.html', {'sw' : 55}
	],
	[wrap_root('Allgemein'), 'hintergrund/allgemein.html', {'sw' : 85}, 
		[wrap_child('rechtliche Grundlagen'), 'hintergrund/rechtliche_grundlagen.html', {'tt' : 'Definition Berichtsheft & rechtliche Grundlagen zur Berichtsheftführung', 'sb' : 'Design demo'}],
		[wrap_child('Zweck Berichtsheft'), 'hintergrund/zweck.html', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
		[wrap_child('in der Praxis'), 'hintergrund/praxis.html', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
		[wrap_child('bisherige Berichtshefte'), 'hintergrund/bisher.html']
	],
	[wrap_root('auf einen Blick'), 'kurz/kurz.html', {'sw' : 90}
	],
	[wrap_root('Programmbeschreibung'), 'funktionsweise/programm.html', {'sw' : 150}, 
		[wrap_parent('Anfangsbildschirme'), 'funktionsweise/anfangsb.html#Programmstart', {'sw' : 100},
			[wrap_child('Programmstart'), 'funktionsweise/anfangsb.html#Programmstart', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
			[wrap_child('Oberfläche'), 'funktionsweise/anfangsb.html#ober', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
			[wrap_child('Vorwort'), 'funktionsweise/anfangsb.html#vorwort', {'tt' : 'alternative design (horizontal menu bar, styles, relative positioning, smart relocation, graphic rollovers, inner html, transitions)', 'sb' : ' demo'}],
			[wrap_child('Hilfe-Datei'), 'funktionsweise/anfangsb.html#hilfe', {'tt' : 'yet another design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Hi there! demo'}],
			[wrap_child('Kontakt'), 'funktionsweise/anfangsb.html#kontakt', {'tt' : 'underground design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Matrix demo'}],
     	],
		[wrap_parent('Stammdaten'), 'funktionsweise/stammdaten.html', {'sw' : 100},
			[wrap_child('Firmen-Verwaltung', '../icons/firma.jpg'), 'funktionsweise/stammdaten.html#Firmen', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
			[wrap_child('Abteilungs-Verwaltung', '../icons/abteilung.jpg'), 'funktionsweise/stammdaten.html#Abteilung', {'tt' : 'alternative design (horizontal menu bar, styles, relative positioning, smart relocation, graphic rollovers, inner html, transitions)', 'sb' : ' demo'}],
			[wrap_child('Berufe & Lehrpläne', '../icons/berufe.jpg'), 'funktionsweise/stammdaten.html#Berufe', {'tt' : 'yet another design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Hi there! demo'}],
			[wrap_child('User-Verwaltung' , '../icons/user.jpg'), 'funktionsweise/stammdaten.html#User', {'tt' : 'underground design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Matrix demo'}],
			[wrap_child('Ausbilder-Verwaltung', '../icons/ausbilder.jpg'), 'funktionsweise/stammdaten.html#Ausbilder', {'tt' : 'Microsoft<sup>&reg;</sup> site style menu (horizontal menu bar, styles, relative positioning, rollovers)', 'sb' : 'MS Style demo'}],
			[wrap_child('Stunden-Verwaltung', '../icons/stunden.jpg'), 'funktionsweise/stammdaten.html#Stunden', {'tt' : 'XP style menu (horizontal menu bar, styles, relative positioning, rollovers, transitions)', 'sb' : 'XP demo'}],
			[wrap_child('Feiertags-Verwaltung', '../icons/feiertag.jpg'), 'funktionsweise/stammdaten.html#Feiertag', {'tt' : 'Simple graphical menu (horizontal menu bar, graphical items, relative positioning, rollovers)', 'sb' : 'Dots demo'}]
		],
		[wrap_parent('Ausbildungsnachweis'), 'funktionsweise/nachweis.html', {'sw' : 100},
			[wrap_child('Kopf-Daten'), 'funktionsweise/nachweis.html#kopf', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
			[wrap_child('Hauptteil'), 'funktionsweise/nachweis.html#hauptteil', {'tt' : 'alternative design (horizontal menu bar, styles, relative positioning, smart relocation, graphic rollovers, inner html, transitions)', 'sb' : ' demo'}],
			[wrap_child('Bemerkungen'), 'funktionsweise/nachweis.html#bemerkung', {'tt' : 'yet another design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Hi there! demo'}],
			[wrap_child('Speichern in DB & als pdf'), 'funktionsweise/nachweis.html#speichern', {'tt' : 'underground design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Matrix demo'}],
			[wrap_child('Drucken'), 'funktionsweise/nachweis.html#drucken', {'tt' : 'underground design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Matrix demo'}],
		],
		[wrap_parent('Auswertungen'), 'funktionsweise/auswertungen.html#eintrag', {'sw' : 130},
			[wrap_child('letzter Eintrag'), 'funktionsweise/auswertungen.html#eintrag', {'tt' : 'strict blue design with icons and arrows (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, inner html, tooltips, status bar messages)', 'sb' : 'Design demo'}],
			[wrap_child('Ausbilder-Zugriff'), 'funktionsweise/auswertungen.html#zugriff', {'tt' : 'alternative design (horizontal menu bar, styles, relative positioning, smart relocation, graphic rollovers, inner html, transitions)', 'sb' : ' demo'}],
			[wrap_child('Stunden-Auswertung'), 'funktionsweise/auswertungen.html#stunden', {'tt' : 'yet another design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Hi there! demo'}],
			[wrap_child('Produktivität'), 'funktionsweise/auswertungen.html#prod', {'tt' : 'yet another design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Hi there! demo'}],
			[wrap_child('Ausbildungsrahmenplan'), 'funktionsweise/auswertungen.html#arp', {'tt' : 'underground design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Matrix demo'}],
			[wrap_child('Stoffverteilungsplan'), 'funktionsweise/auswertungen.html#svp', {'tt' : 'underground design (horizontal menu bar, styles, relative positioning, smart relocation, rollovers, animation, inner html, transitions)', 'sb' : 'Matrix demo'}],
		],
		[wrap_child('Erweiterungen'), 'funktionsweise/erweiterungen.html', {'sw' : 100}
		],
		[wrap_child('Datenbank'), 'funktionsweise/datenbank.html', {'sw' : 100}
		],
		[wrap_child('Systemvoraussetzungen'), 'order/system.html', {'sw' : 100}
		]
    ],
	[wrap_root('Vorteile'), 'vorteile/vorteile.html', {'sw' : 85}, 
		[wrap_child('für den Auszubildenden', '../icons/user.jpg'), 'vorteile/vorteile.html#azubi', {'sw' : 100}
		],
		[wrap_child('für den Betrieb/Ausbilder', '../icons/firma.jpg'),  'vorteile/vorteile.html#ausbilder', {'sw' : 100} 
		],
	],
	[wrap_root('Download'), 'download/download.html', {'sw' : 85}
	],
	[wrap_root('Order'), 'order.html', {'sw' : 55}
	],
	[wrap_root('Referenzen'), 'referenzen/referenzen.html', {'sw' : 80}
	]
]; 
var ii0 = new Image(); ii0.src = 'icons/menu_praxis.bmp';
var ii1 = new Image(); ii1.src = 'icons/i.gif';
var ii2 = new Image(); ii2.src = 'icons/n7.gif';
var ii3 = new Image(); ii3.src = 'icons/m12.gif';
var ii4 = new Image(); ii4.src = 'icons/o.gif';
var ii5 = new Image(); ii5.src = 'icons/email.gif';
var ii6 = new Image(); ii6.src = 'icons/icq.gif';
var ii7 = new Image(); ii7.src = 'icons/yahoo.gif';
var ii8 = new Image(); ii8.src = 'icons/aol.gif';
var ii9 = new Image(); ii9.src = 'menu_files/pixel.gif';

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a0>&nbsp; ', text, '</td></tr></table></td><td><img src=icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=100% class=a0>&nbsp; ', text, '</td><td><img src=icons/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_child (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td bgcolor=#EFEDDE><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=15', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 bgcolor=#CED1C3><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: 'menu_files/pixel.gif width=16', ' hspace=3></td><td width=99% class=a0>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a0 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% bgcolor=#93A070><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}