  function http() {
    var http;
    if (window.XMLHttpRequest) {
        http = new XMLHttpRequest ();
    } else if (window.ActiveXObject) {
        http = new ActiveXObject("Microsoft.XMLHTTP");
    }
    return http;
  }
  
  function getData(url) {
    xhr = http();
    xhr.open("GET", url , true);
    xhr.onreadystatechange = datenAusgeben;
    xhr.send(null);
  }
  
 
  function pruefeFormular(f) {
      if (f.elements["s"].value == "") {
        return false;
              } else {
        return true;
      }
    }

   function fensterOeffnen (Adresse,h,w) {
   x="height="+h+",width="+w;
   open(Adresse, "neuesFenster","height="+h+",width="+w+",toolbar=0,scrollbars=1,resizable=1");
   }
   
   
  //Browser-Weiche//

    
    
    function checkBrowser() {
        var ident = navigator.userAgent;
        var rightcon = document.getElementById("rightcontent");
        var navitop = document.getElementById("navitop");
        var leftcon = document.getElementById("leftcontent");
        var laststripe = document.getElementById("laststripe");
       
        
        if (ident.indexOf("MSIE 5.5") > -1)  {
         rightcon.id = "rightcontent55";
         navitop.id = "navitop55";
         leftcon.id = "leftcontent55";
         laststripe.id = "laststripe55";
         
        }else if (ident.indexOf("MSIE 5.0") > -1)  {
         navitop.id ="navitop50";
         
        }else if (ident.indexOf("MSIE 7") > -1)  {
         rightcon.id = "rightcontent7"; 
            
        }
            
            
    }
    
        
   
   
// Quickplayer //

function openPlayer(site, name, stream, description, md5) {
  var pw=window.open('',"Player","height=650,width=600,toolbar=0,scrollbars=1");
  
  pw.document.write('<html><head><title>Quickview - Player</title>');
  pw.document.write('<style type="text/css">body {font-family:Verdana, Geneva, Arial, sans-serif; background-color:#000;color:#fff;padding-left:50px;}');
  pw.document.write('#close{ width:500px; text-align:center; padding-top:50px;}');
  pw.document.write('#player{width:550px;} p {width:500px;}</style>');
     if (md5 == '/media/') {
     pw.document.write('<body><h1>',name,'</h1>');
     } else {
     pw.document.write('<body><h1><img src="',md5,'">',name,'</h1>');
     }
  pw.document.write('<div id="player"><embed width="500" height="400" showcontrols="1" showstatusbar="0" autostart="True" name="MediaPlayer" src="',stream,'"', 'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" type="application/x-mplayer2"/></embed></div>');
  pw.document.write('<p>',description,'</p>');
  pw.document.write('<a target="_blank" href="',site,'">',name,'</a></body>');
  pw.document.write('<div id="close"><a href="" onClick="JavaScript:self.close()">close</a></div></html>');
  
   alert (md5) 
    
 }


  
  //diese Funktion überprüft, ob ein Cookie vorhanden ist, falls nicht,
  //so wird der Blurb geladen.
  
  //function checkCookie(language) {
  //  var cookies = "";
  //  var country = language
  //  if (document.cookie.indexOf("Helpmenue") > -1) {
  //    cookies = document.cookie;
  //  }else  {
  //      ladeBlurb(country);
  //  }
//}
  

  //function ladeBlurb(country)  {
  //  cookieinfo = country
  //  var body = document.getElementById("placeholder");
  //  var diver = document.createElement("div");
  //  var blurb = document.createElement ("img");
  //  var second = document.createElement ("div");
  //  var gonow = document.createElement ("a");
  //  var gobutton = document.createElement ("img");
  //    if (country == "de") { 
  //       blurb.setAttribute("src", "/media/images/herzlich.gif");
  //       second.setAttribute("id", "blurb2");
  //       gobutton.setAttribute("src", "/media/images/gobutton.gif");
  //    }else {
  //       blurb.setAttribute("src", "/media/images/herzlich_en.gif");
  //       second.setAttribute("id", "blurb2_en");
  //       gobutton.setAttribute("src", "/media/images/gobutton_en.gif");
  //    }
  //  diver.setAttribute("id", "blurb");
  //  gonow.setAttribute("href", "javascript:testIt();");
  //  gonow.setAttribute("onclick", "testIt(cookieinfo);return false;");
  //  body.appendChild(diver);
  //  diver.appendChild(blurb);
  //  diver.appendChild(second);
  //  second.appendChild(gonow);
  //
   
  // gonow.appendChild(gobutton);
    
  //}
  
  //Diese Funktion wird beim Drücken des "Go-Buttons" ausgeführt.
  //Sie lässt den Blurb verschwinden und setzt einen Cookie.
  
  //function testIt(cookieinfo){
  //  var mainbody = document.getElementById("placeholder");
  //  var spantag = document.getElementById("blurb");
  //  mainbody.removeChild(spantag);
  //  if (navigator.cookieEnabled == true) {
  //  document.cookie = "Helpmenue=welcome; expires=Mon, 24-Dec-2010 12:00:00 GMT; path=/;"
  //  }else {
  //      if (cookieinfo =="de") {
  //          alert ("Es konnte kein Cookie gesetzt werden. Somit wird diese info weiterhin zu sehen sein. Keine Sorge, Cookies sind unbedenklich.")
  //      } else{
  //          alert ("It could not set a cookie. So you see this info as long as you disable cookies. Don't be afraid, cookies aren't bad.")
  //    }
  //  }
  //}





