function onLivehelpStatus(id)
{
  var doc = navigator.appName.indexOf('Microsoft') !=-1 ? document.frames[id].document : document.getElementById(id).contentDocument;
  var status = doc.getElementById('status').innerHTML;
  var statusDisplay = document.getElementById('livehelp_status_display');

  var stat = [];
  stat[0] = '<span style="color:red">OFFLINE</span>';
  stat[1] = '<span style="color:red">OFFLINE</span>';
  stat[2] = '<span style="color:#00bb11">ONLINE</span>';
  stat[3] = '<span style="color:orange">BESETZT</span>';
    
  if(statusDisplay)
  {
    statusDisplay.innerHTML = stat[status]; 
  }

}

function launch_livehelp_window() 
{

 var embedder = document.getElementById('livehelpLauncherEmbed');
 if(embedder)
 {
   var link = embedder.getElementsByTagName('a')[0];
   if(link)
   {
    link.onclick();
   }
 }
}

