los = 0;
speed = 0;
function rollen() {
schluss = document.getElementById("audioliste").scrollHeight - 100;
if (los > schluss )  {los = schluss ;}
if (los < 1)  {los = 1;}
los = los + speed;
document.getElementById("audioliste").scrollTop = los;
zack = window.setTimeout("rollen()",10);
}


function anhalten() {
  window.clearTimeout(zack);
 }
 
    function wm(wi)
    {
    y = (document.all) ? window.event.y : wi.pageY;
    a_wert =  y;
    a_wert =  a_wert - 277;
    speed = (a_wert / 80);
    }
    
function slidesicht()
{
document.getElementById("slideshow").style.visibility = "visible";
}
function slideweg()
{
document.getElementById("slideshow").style.visibility = "hidden";
}
function fotos(zustand)
{
document.getElementById("fotos").style.visibility = zustand;
}

wegmach = "";
nochma = "";
function zliste()
{
frames["player"].document.getElementById("zwei").style.visibility = "hidden";	
document.getElementById("audiolisteaussen").style.visibility = "visible";	
document.getElementById("audiolisteaussen").style.opacity = 0.8;
document.getElementById("audiolisteaussen").style.MozOpacity = 0.8;
document.getElementById("audiolisteaussen").style.filter = "alpha(opacity=80)";
if (wegmach) {window.clearTimeout(wegmachen);}
if (nochma) {window.clearTimeout(nochmal);};
}
  function wliste() {
  wegmach = true;
  frames["player"].document.getElementById("zwei").style.visibility = "visible";	  
  wegmachen = window.setTimeout("wliste1()",500)
  }  
  alp = 80;
  function wliste1(){
  nochma = true;
  alp = alp - 5;
  alpk = alp / 100;
  document.getElementById("audiolisteaussen").style.opacity = alpk;
  document.getElementById("audiolisteaussen").style.MozOpacity = alpk;
  document.getElementById("audiolisteaussen").style.filter = "alpha(opacity="+alp+")";
  if (alp > 0) {nochmal = window.setTimeout("wliste1()",25)} else {window.setTimeout("wliste2()",0); alp = 80;}
  }
  function wliste2() {
  document.getElementById("audiolisteaussen").style.opacity = 0.8;
  document.getElementById("audiolisteaussen").style.MozOpacity = 0.8;
  document.getElementById("audiolisteaussen").style.filter = "alpha(opacity=80)";  	
  document.getElementById("audiolisteaussen").style.visibility = "hidden";
  }   


function hoehe() {
hoch = 910;
hochcont = document.getElementById("content").offsetHeight + 288;
if (hoch < hochcont) {hoch = hochcont;}
hochmenue = document.getElementById("menueu").offsetHeight + 288;
if (hoch < hochmenue) {hoch = hochmenue;}
hochslidetext = document.getElementById("slideshowtext").offsetHeight + 325;
if (hoch < hochslidetext) {hoch = hochslidetext;}
document.getElementById("tabhoehe").style.height = hoch+ 'px';
document.getElementById("fuss").style.visibility = "visible";	
}
/*
function hoehe_m() {
m_hoehe = document.getElementById("menueu").offsetHeight;	
document.getElementById("menueutrans").style.height = m_hoehe + 40+ 'px';
}
m_hoch_start = 20;
halt = 0;
function hoehe_m_roll() {
document.getElementById("menueu").style.display = "block";			
m_hoch = document.getElementById("menueu").offsetHeight;
halt = m_hoch + 40; 
m_hoch_start = m_hoch_start + 10;
document.getElementById("menueutrans").style.height = m_hoch_start+ 'px';	
if (m_hoch_start < halt) {window.setTimeout("hoehe_m_roll()",25)} else {document.getElementById("menueutrans").style.height = halt; window.setTimeout("mach_sicht()",1)}
}
*/
alp = 0;
function mach_sicht() {
  alp = alp + 2;
  alpk = alp / 100;
  document.getElementById("menueu").style.opacity = alpk;
  document.getElementById("menueu").style.MozOpacity = alpk;
  document.getElementById("menueu").style.filter = "alpha(opacity="+alp+")";
  if (alp <= 85) {window.setTimeout("mach_sicht()",00)}	
}


function menue(welcher,was) {					
	document.getElementById(welcher).src = "/WCN_neu/page/hint/but_"+welcher+"_"+was+".gif";
}

function Test(){
 if (document.anfrage.name.value == ""){
  document.anfrage.name.style.backgroundColor="#FF9999";
  document.anfrage.name.focus()
  alert("Bitte geben Sie Ihren Namen an!");
  return false;
 }
 if (document.anfrage.email.value == ""){
  document.anfrage.email.style.backgroundColor="#FF9999";
  document.anfrage.email.focus()
  alert("Bitte geben Sie Ihre E-mailadresse an!");
  return false;
 } 
 if (document.anfrage.text.value == ""){
  document.anfrage.text.style.backgroundColor="#FF9999";
  document.anfrage.text.focus()
  alert("Bitte geben Sie einen Text ein!");
  return false;
 }  
}

  altm = "";	
  function audio_z(punkt,merken) {
  	  if (altm) {document.getElementById(altm).style.display  = "none";}  	
      document.getElementById(punkt).style.display = "block";
      altm = merken;
      //hoehe_m();
	  }	
  
  function audio_w(punkt) {
      if (punkt != mark)
      {	  	
      document.getElementById(punkt).style.display  = "none";
      hoehe_m();
	  }
      }	  

function fenster (url,breite,hoehe)
{
fenst =  window.open(url,"popup","width="+breite+",height="+hoehe+",left=50,top=50");
}

function video (pfad)
{
videofenst =  window.open("zeigvideo.php?pfad="+pfad+"","popup","width=400px,height=320px,left=50px,top=50px");
}

karte = "";
    function bild(welche,meno)
    {
	   if (meno != "nein")
	   {	 
       document.getElementById("bildi").innerHTML = '<img src="/WCN_neu/page/hint/'+welche+'">';
   	   }
	   if (karte == "ok")
	   {	   	   
       document.getElementById("land").innerHTML = '<img src="/WCN_neu/page/hint/land_'+welche+'">'; 
	       if (meno == "nein")
	       {       
           document.getElementById("fahne").innerHTML = '<img src="/WCN_neu/page/hint/fahne_'+welche+'">';        
	       }
	   }  
    }
    function bildweg()
    { 
    document.getElementById("bildi").innerHTML = "";
	   if (karte == "ok")
	   {    
       document.getElementById("land").innerHTML = "";
       document.getElementById("fahne").innerHTML = "";       
	   }
    } 
    function womaus(woist)
    {
        if(navigator.appName!="Microsoft Internet Explorer")
        {
            if(document.body.clientWidth > 980)
			{	
            lay_weg = (document.body.clientWidth - 980) / 2;
			}
			else {lay_weg = "";}	
		}	
		else {lay_weg = "";}    	
    x = (document.all) ? window.event.x : woist.pageX;
    y = (document.all) ? window.event.y : woist.pageY;
    document.getElementById("bildi").style.left = x - lay_weg - 30+ 'px';
    document.getElementById("bildi").style.top = (y-50)+ 'px';
    }

function flash_gehezu(frame){	
	if(window.radi) window.document["radi"].GotoFrame(frame);
	if(document.radi) document.radi.GotoFrame(frame);
}
/*
function flash_vari(vari,wert){	
	if(window.radi) window.document["radi"].SetVariable(vari,wert);
	if(document.radi) document.radi.SetVariable(vari,wert);
}
function flash_mc_stop(mc){	
	if(window.radi) window.document["radi"].TStopPlay(mc);
	if(document.radi) document.radi.TStopPlay(mc);
}
function flash_mc_play(mc){	
	if(window.radi) window.document["radi"].TPlay(mc);
	if(document.radi) document.radi.TPlay(mc);
}
function flash_menueweg(){	
document.getElementById("menueo").style.visibility = "hidden";
}*/