<!--
// Standard Statuszeilen Text
defaultStatus="webdesign by zuckerstueck.ch";
absoluteHomebase="http://www.sportmental.ch"


function wechsleLayer(nameLayer){
	if (ie){
	 aLs = document.all[aktlayer].style
	 nLs = document.all[nameLayer].style}
	if (ns){
	 aLs = document.layers[aktlayer]
	 nLs = document.layers[nameLayer]}
	if (ns6){
	 aLs = document.getElementById(aktlayer).style
	 nLs = document.getElementById(nameLayer).style}

	if (aktlayer != nameLayer){
		aLs.visibility = "hidden"; 
		nLs.visibility = "visible";
		aktlayer = nameLayer;}}
		
// Wechsel der Bilder für Menüpunkte
function bildwechsel(id, state)		{
var pic = picpath+id+".gif"
var picmo = picpath+id+"_mo.gif"

	if (ie){
		var mimg_id = document.images["m_"+id]
		var inhalt = parent.frames("text").document.location
//		var limg_id = document.images.menulogo
//		var limg_st = document.all.menulog.style
		var akt = document.all.aktu.value}
	if (ns){
		var mimg_id = document["m_"+id]}
//		var limg_id = document.menulog.document.menulogo
//		var limg_st = document.menulog
//		var akt = document.form1.aktu.value
	if (ns6){
		var mimg_id = document.getElementById("m_"+id)
//		var limg_id = document.getElementById("menulogo")
//		var limg_st = document.getElementById("menulog").style
		var akt = document.getElementById("aktu").value}	
	if (state == "over"){
		mimg_id.src = picmo;}
//		limg_id.src = logo;
//		limg_st.visibility = "visible";}
	else if (state == "out"){
//		limg_st.visibility = "hidden";
		if (id == akt)
			mimg_id.src = picmo
		else
			mimg_id.src = pic;}
}
function menuball(pixlinks){
	if (ie) {
		parent.frames('topmenu').document.all('ball').style.left = pixlinks;
		parent.frames('topmenu').document.all('ball').style.visibility = 'visible';}
	if (ns){
		parent.frames['topmenu'].document.layers.titel.document.open();
		parent.frames['topmenu'].document.layers.titel.document.write('<span>' + text + '</span>');
		parent.frames['topmenu'].document.layers.titel.document.close();}
	if (ns6){ parent.frames['topmenu'].document.getElementById("ball").style.left = pixlinks;
		parent.frames['topmenu'].document.getElementById("ball").style.visibility = 'visible';}

}
function navi(param1){
if (ie){
	parent.frames("leftnav").document.all.aktu.value = param1
	parent.frames("leftnav").document.images("m_"+param1).src = "../img/"+param1+"_mo.gif"}
if (ns){
	parent.frames["leftnav"].document.form1.aktu.value = param1
	parent.frames["leftnav"].document.menu.document["m_"+param1].src = "../img/"+param1+"_mo.gif"}
if (ns6){
	parent.frames["leftnav"].document.getElementById("aktu").value = param1
	parent.frames["leftnav"].document.getElementById("m_"+param1).src = "../img/"+param1+"_mo.gif"}
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function stat(posoben,fhohe){
	document.oben.top = posoben+25;
	document.bg.top = posoben;
	document.right2.top = posoben+51;
	document.right3.top = posoben+(fhohe-38);
	setTimeout('stat(window.pageYOffset,window.innerHeight)',2)
}
function stat6(posoben,fhohe){
	document.getElementById("oben").style.top = posoben+30;
	document.getElementById("bg").style.top = posoben;
	document.getElementById("right2").style.top = posoben+50
	document.getElementById("right3").style.top = posoben+(fhohe-48);
	setTimeout('stat6(window.pageYOffset,window.innerHeight)',2)
}
function fix(){
	if (ns){
		posoben = window.pageYOffset;
		fhohe = window.innerHeight;
		document.right2.document.write("<img src='../images/rechts2.gif' width='63' height='"+(fhohe-88)+"'>");
		document.right2.document.close();
		stat(posoben,fhohe);}
	if (ns6){
		posoben = window.pageYOffset;
		fhohe = window.innerHeight;
		document.getElementById('right2').innerHTML = "<img src='../images/rechts2.gif' width='63' height='"+(fhohe-88)+"'></img>";
		stat6(posoben,fhohe);}
	if (ie){
		posoben = document.body.scrollTop;
		fhohe = document.body.clientHeight;
		oben.style.top = posoben+30;
		bg.style.top = posoben;
		right2.style.top = posoben+50;
		right3.style.top = posoben+(fhohe-48);
		document.images.pfeilr2.width = 63;
		document.images.pfeilr2.height = fhohe-95;}
}

// Funktion für PopUp-Fenster
function fenster(url,titel,br,ho) {
	adminwin = window.open(url,titel,"scrollbars,width="+br+", height="+ho);
	adminwin.focus()
	adminwin.moveTo(300,100)
}
function fenster2(url,titel,le,to) {
	adminwin = window.open(url,titel,"scrollbars,width=750,height=500");
	adminwin.focus()
	adminwin.moveTo(le,to)
}
// Define the location of count.asp
// Using a path, you may use this code in any subfolder
var file='/statcountex/count.asp';
var d=new Date(); 
var s=d.getSeconds(); 
var m=d.getMinutes();
var x=s*m;
if (navigator.appName=='Netscape'){b='NS';} 
if (navigator.appName=='Microsoft Internet Explorer'){b='MSIE';} 
if (navigator.appVersion.indexOf('MSIE 3')>0) {b='MSIE';}
u='' + escape(document.URL); w=screen.width; h=screen.height; 
v=navigator.appName; 
fs = window.screen.fontSmoothingEnabled;
if (v != 'Netscape') {c=screen.colorDepth;}
else {c=screen.pixelDepth;}
j=navigator.javaEnabled();

function replaceChars(entry,cold,cnew) {
out = cold; // replace this
add = cnew; // with this
temp = "" + entry; // temporary holder

while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add + 
temp.substring((pos + out.length), temp.length));
}
return temp;
}

function replall(entry){
zwi = replaceChars(entry,'$','%24')
zwi = replaceChars(zwi,'&','%26')
zwi = replaceChars(zwi,'+','%2B')
zwi = replaceChars(zwi,',','%2C')
zwi = replaceChars(zwi,'/','%2F')
zwi = replaceChars(zwi,':','%3A')
zwi = replaceChars(zwi,';','%3B')
zwi = replaceChars(zwi,'=','%3D')
zwi = replaceChars(zwi,'?','%3F')
zwi = replaceChars(zwi,'@','%40')
zwi = replaceChars(zwi,' ','%20')
return zwi
}

function mailenc(){
ML="h:m./son=rt\"al e>i<p@cf";
MI="B<>09?F8;2<A=:61A7F6D5C69:2?7:<=3E0;@?2<A=B4<@";
OT="";
for(j=0;j<MI.length;j++){
OT+=ML.charAt(MI.charCodeAt(j)-48);
}document.write(OT);
}
//-->