/* (c) Hagen Richter 2003 - 2006 */


if(top!=self)
    {
    top.location=self.location;
    }
function showan (nr) {
  if (document.getElementById)
  {
   document.getElementById(nr).style.visibility = "visible";
  }
}
function showaus (nr) {
  if (document.getElementById)
    {
      document.getElementById(nr).style.visibility = "hidden";
      }

}
function TestForm ()
   {
   document.write('<input type="hidden" name="javac" value="ja">');
   }
function pic(nr,txt)
     {
     document.images[nr].src = "http://www.richter-design.com/gfx/staryellow.gif";
     window.status = nr;
     }
function off(nr)
     {
     document.images[nr].src = "http://www.richter-design.com/gfx/pixel.gif";
     window.status = "richter-design.com";
     }
function Popup(Name)
     {
     window.open(Name,'NeuFenster');
     }
function setsmile(Zeichen)
     {
     document.rdg.eintrag.value =
     document.rdg.eintrag.value + Zeichen;
     }
function doChallengeResponse()
     {
     str = document.loginout.username.value+"*"+document.loginout.password.value;
     document.loginout.response.value = MD5(str);
     document.loginout.password.value = "";
     document.forms[1].submit();
     return true;
     }
function enableDropdownMenuForIE()
{
    if (document.all)
        {
        uls = document.getElementsByTagName('UL');

        for(i = 0; i < uls.length; i++)
        {
            if (uls[i].className == 'dropdown')
            {
                var lis = uls[i].getElementsByTagName('li');

                for (j = 0; j < lis.length; j++)
                {
                    if(lis[j].lastChild.tagName == 'UL')
                    {
                        lis[j].onmouseover = function() { this.lastChild.style.display = 'block'; this.lastChild.style.backgroundColor = '#FFFFFF';}
                        lis[j].onmouseout = function() { this.lastChild.style.display = 'none'; }
                    }
                }
            }
        }
    }
}

// 1k DHTML API
d=document;
l=(d.layers)?1:0;
op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1;

function gE(e,f)
  {
  if(l)
   {
   f=(f)?f:self;
   var V=f.document.layers;
   if(V[e])
    return V[e];
   for(var W=0;W<V.length;)
    t=gE(e,V[W++]);
    return t;
   }
   if(d.all)
    return d.all[e];
   return d.getElementById(e);
  }
function sE(e){if(l)e.visibility='show';else e.style.visibility='visible';}
function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';}
function sZ(e,z){if(l)e.zIndex=z;else e.style.zIndex=z;}
function sX(e,x){if(l)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x;}
function sY(e,y){if(l)e.top=y;else if(op)e.style.pixelTop=y;else e.style.top=y;}
function sW(e,w){if(l)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;}
function sH(e,h){if(l)e.clip.height=h;else if(op)e.style.pixelHeight=h;else e.style.height=h;}
function sC(e,t,r,b,x){if(l){X=e.clip;X.top=t;X.right=r;X.bottom=b;X.left=x;}else e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';}
function wH(e,h){if(l){Y=e.document;Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=h;}


// 1k TOOLTIP EXT
d.write('<style type=\"text/css\">.tltp{ position:absolute; z-index:5; visibility:hidden; border:1px solid #D70324; padding:6px; background-color:#FFDF00; font:12px Verdana,Arial,sans-serif }</style>');
d.write('<div id=\"TOOLTIP_1K\" class=\"tltp\">&nbsp;</div>');
if(l)d.captureEvents(Event.MOUSEMOVE);
d.onmousemove=function(e){e=e||event;mX=((d.all||op)?e.clientX+d.body.scrollLeft+d.documentElement.scrollLeft:e.pageX)+15+(!l&&!op?'px':0);mY=((d.all||op)?e.clientY+d.body.scrollTop+d.documentElement.scrollTop:e.pageY)+15+(!l&&!op?'px':0);if(tltp&&tltp.v){sX(tltp,mX);sY(tltp,mY)}};
function T (text)
           {
            if(op||!tltp)
             return;
            if(text)
             {
             wH(tltp,text);
             tltp.v=true;
             sX(tltp,mX);
             sY(tltp,mY);
             setTimeout("if(tltp.v)sE(tltp);if(!T.follows)tltp.v=false",T.delay*1000);
             }
            else
             {
             tltp.v=false;hE(tltp);
             }
            };
T.init=function()
 {
 tltp=gE("TOOLTIP_1K")
 };
tltp=null;
T.follows=false; T.delay=.7;



function datum()
     {
     zeit=new Date();
     mtag=zeit.getDate();
     mona=zeit.getMonth();
     jahr=zeit.getYear();
     ttag = zeit.getDay();
     if (jahr<2000){jahr+= 1900;}
     if (mtag<10){mtag='0'+mtag;}
     tagg = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
     monat = new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
     document.write("<span class=usero>"+tagg[ttag]+", "+mtag+". "+monat[mona]+" "+jahr+"</span>");
     }
 //