if (screen.width<=800)
{
  document.write('<style type="text/css">\n');

  document.write(
  'body { font-family: Arial, Geneva, Sans-Serif; }\n',
  '#subnavi { width: 140px; }\n',
  '#content { margin-left: 140px; margin-right: 139px; }\n',
  '#crossnavi { width: 160px; }\n',
  '#searchengine .suchfeld { width: 100px; }\n');

  document.write('<\/style>');
}

var suchhinweis='Schnellsuche';

function initSuchfeld()
{
  var form=document.forms['suchfeld'];
  if (form) var suchwort=form.elements['suchwort'];
  if (suchwort)
  {
    if (suchwort.value=='') suchwort.value=suchhinweis;
    suchwort.onclick=function() {  if (this.value==suchhinweis) this.value=''; }
  }
}

addOnloadFunc(initSuchfeld);


function addOnloadFunc (newOnloadFunc)
{
  var oldOnloadFunc = window.onload;
  
  if (typeof oldOnloadFunc!='function') 
  {
    window.onload = function()
    { 
      newOnloadFunc(); 
    }
  } 
  else 
  {
    window.onload = function() 
    {
      if (oldOnloadFunc) 
      oldOnloadFunc();
      newOnloadFunc();
    }
  }
}


function toggleInfo(infolink, infodata)
{
  if (!document.getElementById) return;

  if (infodata)
  {
    var infolink=document.getElementById(infolink);
    infolink.infodata=document.getElementById(infodata);
    infolink.onclick=function() { toggleInfo(this) };
    infolink.className='togglelink';
  }

  if (infolink.infodata.className=='hiddendata')
  {
    infolink.infodata.className='visibledata';
    infolink.title='Inhalt ausblenden';
  }
  else
  {
    infolink.infodata.className='hiddendata';
    infolink.title='Inhalt anzeigen';
  }
}



