			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;
			}
			// CSSetStyleVis and CSGetStyleVis are updated for mozilla
			function CSSetStyleVis(s,v) { 
				if (isDomIE) CSIEStyl(s).visibility = (v == 0) ? "hidden" : "visible";
				if (isDomNN) CSNSStyl(s).visibility = (v == 0) ? 'hide' : 'show';
				if (isDom) document.getElementById(s).style.visibility = (v == 0) ? "hidden" : "visible";}
			
			function CSGetStyleVis(s) {
				if (isDomIE) return (CSIEStyl(s).visibility == "hidden") ? 0 : 1;
				if (isDomNN) return (CSNSStyl(s).visibility == 'hide') ? 0 : 1;
				if (isDom) return (document.getElementById(s).style.visibility == "hidden") ? 0 : 1;}
			
			
			function showhide(target,haction) {
				action=new Array(3);
				action[1]=target;
				action[2]=haction;
				//alert(action[1]+" // "+action[2]);
				if (action[1] == '') return;
				var type=action[2];
				if(type==0) CSSetStyleVis(action[1],0);
				else if(type==1) CSSetStyleVis(action[1],1);
				else if(type==2) { 
					if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
					else CSSetStyleVis(action[1],0);
				}
			}

			function GetStyleVisX(s) {
				if (isDomIE) return CSIEStyl(s).top;
				if (isDomNN) return CSNSStyl(s).top;
				if (isDom) return document.getElementById(s).style.top;
			}
		
			// 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;

// Page Variables
fullmenuvis=0;
aktiv=0;

function showfullmenu(){
	showhide('menusmall',0);showhide('menufull',1);	
	fullmenuvis=1;
}

function hidefullmenu(){
	//window.clearInterval(aktiv); 
	if(fullmenuvis==1){;
		fullmenuvis=0;
		showhide('menufull',0);showhide('menusmall',1);	
	}
}
function getfullmenuvis(){
	return fullmenuvis;
}
function checkfullmenu(){
	window.setTimeout("hidefullmenu()",1000);
	
}

function getXPos(){
	var w=978;
	var h=582;
	if(isDomNN){
		var viswidth=window.innerWidth;
		if(viswidth==undefined)	var viswidth=document.body.offsetWidth;
		var finalpos=(viswidth-w)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}
	if(isDomIE){
		var viswidth=document.body.offsetWidth-20;
		var finalpos=(viswidth-w)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}
	if(isDom){
		var viswidth=window.innerWidth;
		if(viswidth==undefined) var viswidth=document.body.offsetWidth;
		var finalpos=(viswidth-w)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}	
}


function getYPos(){
	var w=978;
	var h=582;
	if(isDomNN){
		var visheight=window.innerHeight;
		if(visheight==undefined) var visheight=document.body.offsetHeight;
		var finalpos=(visheight-h)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}
	if(isDomIE){
		var visheight=document.body.offsetHeight-15; 
		var finalpos=(visheight-h)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}
	if(isDom){
		var visheight=window.innerHeight;
		if(visheight==undefined) var visheight=document.body.offsetHeight;
		var finalpos=(visheight-h)/2;
		if(finalpos<=0) finalpos=0;
		return(finalpos);
	}	
}

function centerall(dname){
	var w=978;
	var h=582;
	if(isDomNN){
		var viswidth=window.innerWidth;
		var visheight=window.innerHeight;
		if(viswidth==undefined || visheight==undefined){
			var viswidth=document.body.offsetWidth;
			var visheight=document.body.offsetHeight;
		}
		CSNSStyl(dname).top=(visheight-h)/2;
		CSNSStyl(dname).left=(viswidth-w)/2;
		return;
	}
	if(isDomIE){
		var viswidth=document.body.offsetWidth-20;
		var visheight=document.body.offsetHeight-15; 
		CSIEStyl(dname).top=(visheight-h)/2;
		CSIEStyl(dname).left=(viswidth-w)/2;
		return;
	}
	if(isDom){
		var viswidth=window.innerWidth;
		var visheight=window.innerHeight;
		if(viswidth==undefined || visheight==undefined){
			var viswidth=document.body.offsetWidth;
			var visheight=document.body.offsetHeight;
		}
		document.getElementById(dname).style.top=(visheight-h)/2;		
		document.getElementById(dname).style.left=(viswidth-w)/2;		
		return;
	}	
}



// General Site functions
function ersetzen(adresse){
        top.window.location.href = adresse;
//        parent.content.window.location.replace(adresse);
}

function nach_top(adresse){
	top.window.location.href = adresse;
//	top.window.location.replace(adresse);
}



function chkframes(){
	if(self==top){
		filename=location.href;
		filename=filename.substr(filename.lastIndexOf("/")+1,filename.length-filename.lastIndexOf("/"));
		if (parent.in_frame + "" != "yes") {ersetzen("index.html?"+filename);}
	}else{
		if(parent.filename!=""){
			this.location.href=parent.filename;
			parent.filename="";
		}
	}
}

// Personal Online Training
function pot(){
	neuesFenster=open("http://www.personal-trainer-network.de/pot/index.html","POT","width=555,height=405,screenX=0,screenY=0,status=no,resizable=no,menubar=no,locationbar=no");
}