			function CSClickReturn () {
				var bAgent = window.navigator.userAgent; 
				var bAppName = window.navigator.appName;
				if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
					return true; // dont follow link
				else return false; // dont follow link
			}
			CSStopExecution = false;
			function CSAction(array) { 
				return CSAction2(CSAct, array);
			}
			function CSAction2(fct, array) { 
				var result;
				for (var i=0;i<array.length;i++) {
					if(CSStopExecution) return false; 
					var actArray = fct[array[i]];
					if(actArray == null) return false; 
					var tempArray = new Array;
					for(var j=1;j<actArray.length;j++) {
						if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
							if(actArray[j][0] == "VAR") {
								tempArray[j] = CSStateArray[actArray[j][1]];
							}
							else {
								if(actArray[j][0] == "ACT") {
									tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
								}
							else
								tempArray[j] = actArray[j];
							}
						}
						else
							tempArray[j] = actArray[j];
					}			
					result = actArray[0](tempArray);
				}
				return result;
			}
			CSAct = new Object;
			CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
			function IsIE() { return CSAg.indexOf("MSIE") > 0;}
			function CSIEStyl(s) { return document.all.tags("div")[s].style; }
			function CSNSStyl(s) { return CSFindElement(s,0); }
			function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
				var curDoc = ly ? ly.document : document; var elem = curDoc[n];
				if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
					elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
				return elem;
			}
		
			// This part is for mozilla
			// ----------------------------------------------------------------------
			        var isDom = document.getElementById;
			        var isDomIE = document.all;
			        var isDomNN = document.layers;
			// ----------------------------------------------------------------------
			var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
			                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
			var isMinIE4 = (document.all) ? 1 : 0;
			var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0;


// Build page
function buildbg(){
	document.open();
	document.write("<style type=\"text/css\"><!--body { background-image: url(media/verlauf.jpg); background-repeat:x-repeat; }");
	document.write("--></style>");
}
// Menufunctions
var maxmenus=10;
var activemenu=0;

function over(imgnr){
	clearall();
	var img = null;
	if (document.images) {
		if (!IsIE()) img = CSFindElement("m"+imgnr,0);
		else img = document.images["m"+imgnr];
		if (img) img.src = 'media/men-'+imgnr+'-on.gif';
	}
}

function off(imgnr){
	var img = null;
	if (document.images) {
		if (!IsIE()) img = CSFindElement("m"+imgnr,0);
		else img = document.images["m"+imgnr];
		if (img) img.src = 'media/men-'+imgnr+'-off.gif';
	}
}

function clearall(){
	for(q=1;q<=maxmenus;q++) off(q);
}

function on(imgnr){
	clearall();
	activemenu=imgnr;
	over(activemenu);
}

function setactive(){
	clearall();
	over(activemenu);
}
