var agt=navigator.userAgent.toLowerCase(); 
var is_aol   = (agt.indexOf("aol") != -1); 


function over(name) {
	if ( document.images) {eval( "document."+name+".src=on_"+name+".src");}
	if (! is_aol)  { eval( "window.showMenu(window."+name+")" ); }
}

function out(name) {
	if ( document.images) {eval( "document."+name+".src=off_"+name+".src");}
	//if (! is_aol)  { eval( "window.hideMenu(window."+name+")" ); }
}

function showM(name) {
	if ( document.images) {eval("document.erz.src='img/e'+name+'.jpg'");}
}

function hideM(name) {
	if ( document.images) {document.erz.src="img/e"+name+".jpg";}
}


function init() {
// get us out of anyones frame
if (window != top) top.location.href = location.href;
agt=navigator.userAgent.toLowerCase(); 
is_aol   = (agt.indexOf("aol") != -1); 

	if (document.images) {
		preload('start');
		preload('worringen');
		preload('urkunde');
		preload('denkmal');
		preload('ddorf');
		preload('schule');
		preload('links');
	}
	if (document.layers) { loadMenus();} 
}

function preload(name) {
	eval('on_'+name+'=new Image(); on_'+name+'.src="../img/on_'+name+'.jpg"');
	eval('off_'+name+'=new Image(); off_'+name+'.src="../img/off_'+name+'.jpg"');
}
function loadMenus() {
    //Dynamic Menus
    if (is_aol)  {return;}
	
    window.start = new Menu("Startseite");
    start.addMenuItem("Startseite", "location='../main/index.html#TofP'");
    start.addMenuItem("Hinweise", "location='../main/hinweise.html#TofP'");
    start.addMenuItem("Sitemap", "location='../main/sitemap.html#TofP'");
//    start.disableDrag = true;
    start.disableHide = false;
    start.fontColor = "#000000";
    start.fontColorHilite = "yellow";
    start.menuItemBgColor = "#e3d88f";
    start.menuHiliteBgColor = "#333333";
//    start.prototypeStyles = start;

    window.worringen= new Menu("Worringen");
    worringen.addMenuItem("Es beginnt...", "location='../worringen/index.html#TofP'");
    worringen.addMenuItem("Jan van Heelu", "location='../worringen/heelu.html#TofP'");
    worringen.addMenuItem("Bilder der Schlacht", "location='../worringen/bilder.html#TofP'");
    worringen.addMenuItem("Stadtgeschichte", "location='../worringen/weidenhaupt.html#TofP'");
    worringen.addMenuItem("WWW Zusatzinfo", "location='../worringen/www.html#TofP'");
    worringen.prototypeStyles = start;

    window.urkunde= new Menu("Urkunde");
    urkunde.addMenuItem("Urkunde", "location='../urkunde/index.html#TofP'");
    urkunde.addMenuItem("Stadtrecht", "location='../urkunde/stadtrecht.html#TofP'");
    urkunde.addMenuItem("Wappen und Siegel", "location='../urkunde/wappen.html#TofP'");
    urkunde.addMenuItem("Stammtafel von Berg", "location='../urkunde/berg.html#TofP'");
urkunde.prototypeStyles = start;

    window.denkmal= new Menu("Denkmal");
    denkmal.addMenuItem("Ein Denkmal entsteht", "location='../denkmal/index.html#TofP'");
    denkmal.addMenuItem("Ein Denkmal wird besichtigt", "location='../denkmal/besich1.html#TofP'");
    denkmal.addMenuItem("Ein Denkmal erz&auml;hlt", "location='../denkmal/erz1.html#TofP'");
    denkmal.addMenuItem("Ein Denkmal im Detail", "location='../denkmal/detail01.html#TofP'");
denkmal.prototypeStyles = start;

    window.ddorf= new Menu("D&uuml;sseldorf");
    //ddorf.addMenuItem("D&uuml;sseldorf im Laufe der Jahrhunderte", "location='../ddorf/index.html#TofP'");
    ddorf.addMenuItem("Im Laufe der Jahrhunderte", "location='../ddorf/index.html#TofP'");
ddorf.prototypeStyles = start;

    window.schule= new Menu("Schule");
	if (document.all)
	    schule.addMenuItem("Gesamtschule", "location='../schule/index.html#TofP'");
	else
	    schule.addMenuItem("Heinrich-Heine-Gesamtschule", "location='../schule/index.html#TofP'");
    schule.addMenuItem("Im Unterricht", "location='../schule/u1.html#TofP'");
    //schule.addMenuItem("Die Teilnehmer der Besichtigung", "location='../schule/teiln.html#TofP'");
    schule.addMenuItem("Die Teilnehmer", "location='../schule/teiln.html#TofP'");
schule.prototypeStyles = start;

    window.links= new Menu("Links");
    links.addMenuItem("Literatur", "location='../links/index.html#TofP'");
    links.addMenuItem("Zusatzinfo", "location='../links/info.html#TofP'");
    links.addMenuItem("Credits", "location='../links/credits.html#TofP'");
    links.addMenuItem("Works", "location='../links/works.html#TofP'");
links.prototypeStyles = start;

    window.main = new Menu("Main Menu");
    main.addMenuItem("Startseite", "location='../main/index.html#TofP'");
    main.addMenuItem(worringen);
    main.addMenuItem(urkunde);
    main.addMenuItem(denkmal);
    main.addMenuItem(ddorf);
    main.addMenuItem(schule);
    main.addMenuItem(links);
    main.addMenuSeparator();
    main.addMenuItem("Hinweise", "location='../main/hinweise.html#TofP'");
    main.addMenuItem("Sitemap", "location='../main/sitemap.html#TofP'");
 main.prototypeStyles = start;


main.writeMenus();

}

