var base= "images/menu_"
var nrm = new Array();
var omo = new Array();
var stuff = new Array('home','agenda','info','vorstand','mitglieder','wyland','links','kontakt');
var loaded = (!(navigator.userAgent.indexOf('Netscape6')+1));
var ocl = new Array();
var select = -1;
var name2 = "";
var temp = 0;

if (document.images)
{
        for (i=0;i<stuff.length;i++)
        {
                nrm[i] = new Image;
                nrm[i].src = base + stuff[i] + ".gif"
                omo[i] = new Image;
                omo[i].src = base + stuff[i] + "_on.gif";
				ocl[i] = new Image;
				ocl[i].src = base + stuff[i] + "_on.gif";

        }
}

function over(no)
{
        if (document.images && select != no && loaded)
        {
                document.images[stuff[no]].src = omo[no].src
        }
}

function out(no)
{
        if (document.images && select != no && loaded)
        {
                document.images[stuff[no]].src = nrm[no].src
        }
}

function clic(no)
{
	if (document.images && loaded)
	{
		document.images[stuff[no]].src = ocl[no].src
		temp = select;
		select = no;
		if (temp != -1) {out(temp)}
	}
}

function content_layer() {

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

document_offset = 250;



if ((navigator.userAgent.indexOf("Win") != -1)){

	if (browser_type == "Netscape") {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 22px; TOP: 230px; VISIBILITY: visible; WIDTH: 695px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');

	}
	
	else {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 22px; TOP: 230px; VISIBILITY: visible; WIDTH: 695px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');

	}
}

if (navigator.userAgent.indexOf('Mac') != -1){

	if (navigator.appName.indexOf('Microsoft') != -1) {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 22px; TOP: 230px; VISIBILITY: visible; WIDTH: 695px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
	
	}
	
	else {
	
	document.write(' <div id="content" style="Z-INDEX: 1; LEFT: 22px; TOP: 230px; VISIBILITY: visible; WIDTH: 695px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
	
	}
}

}
