// Version 1.1
Sprache="PL"
heute=new Date()
//heute=new Date(2002,11,25) // tests
function getHeute()
{ return heute
}
//if (heute.getDate()%3==1) {Sprache="DE"}
//if (heute.getDate()%3==2) {Sprache="EN"}
if (window.location.hash=="#PL") {Sprache="PL"}
if (window.location.hash=="#DE") {Sprache="DE"}
if (window.location.hash=="#EN") {Sprache="EN"}
 
 var strLA=""+window.location.search
if (strLA.indexOf("Sprache=")>=0)
{ 
  strLA=strLA.substring(strLA.indexOf("Sprache=")+8,strLA.length);
  if (strLA.indexOf("&")>=0)
    strLA=strLA.substring(0,strLA.indexOf("&"));
//  alert("halo search:"+top.window.location.search+";jêzyk "+strLA)  
     
if (strLA=="PL") {Sprache="PL"}
if (strLA=="DE") {Sprache="DE"}
if (strLA=="EN") {Sprache="EN"}
}





function getLanguage()
{ return Sprache
}
function setLanguage(lang)
{ Sprache=lang
}

function getLiederSprache()
{ if (getLanguage()=="PL") return "Sprache=poPolsku" 
  if (getLanguage()=="DE") return "Sprache=poNiemiecku" 
  if (getLanguage()=="EN") return  "Sprache=poAngielsku"
}


function ML(p,d,e) 
{ if (getLanguage()=="PL") return p 
  if (getLanguage()=="DE") return d 
  if (getLanguage()=="EN") return e 
}
function WML(p,d,e) 
{ 
  document.writeln(ML(p,d,e))
}

function WMLU(p,d,e) 
{ //alert("c")
 if (getLanguage()=="PL") PLwrite(p);  
  if (getLanguage()=="DE") return   document.writeln(d);  
  if (getLanguage()=="EN") return   document.writeln(e);   
}

//alert("Sprache="+Sprache)
