
var agt =navigator.userAgent.toLowerCase();
var ia=parseInt(navigator.appVersion);
var ii=parseFloat(navigator.appVersion);

var iv =((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)&&(agt.indexOf('compatible')==-1)&&(agt.indexOf('opera')==-1)&&(agt.indexOf('webtv')==-1)&&(agt.indexOf('hotjava')==-1));
var iv4=(iv&&(ia <= 4));
var ie =((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
var ie3 =(ie&&(ia<4));
var ie4 =(ie&&(ia==4)&&(agt.indexOf("msie 4")!=-1));
var ie5 =(ie&&(ia==4)&&(agt.indexOf("msie 5")!=-1));

var box, inhalt, dx, dy, zx, zy, zw, zh, aX, aY, g, s, r, cookie;
var ia=false;
var zeit=(new Date()).getTime();
var cookies=document.cookie.split( "; ");

var w=new Array(1);
w[0]='<DIV ID="popup" STYLE="top: 16px; left: 690px; width: 226px; height: 36px;"><DIV ID="popup_kopf"><DIV ID="popup_titel"><table border="0" cellpadding="0" cellspacings="0" width="100%" height="28"><tr><td valign="middle" align="center" nowrap><a href="/sys/mlap-info.php" class="b_rot">Themenrelevante Links</a></td></tr></table></DIV><DIV ID="popup_inhalt"></DIV></DIV></DIV>';


function it( vz, gsk, sw, ri) {if (ie5) { box =document.all.popup;inhalt=document.all.popup_inhalt; }else { box =document.getElementById('popup');inhalt=document.getElementById('popup_inhalt'); }g=gsk;s=sw;r=ri;if ((box!=null)&&(inhalt!=null)) {setTimeout( "zb()", vz);}}function hw( div) {var w;if (ie5) { w=div.style.pixelWidth; }else { w=parseInt( div.style.width); }return w;}function sw( div, w) {if (ie5) { div.style.pixelWidth=w; }else { div.style.width=w+"px"; }}function hh( div) {var h;if (ie5) { h=div.style.pixelHeight; }else { h=parseInt( div.style.height); }return h;}function sh( div, h) {if (ie5) { div.style.pixelHeight=h; }else { div.style.height=h+"px"; }}function hl( div) {var x;if (ie5) { x=div.style.pixelLeft; }else { x=parseInt( div.style.left); }return x;}function ht( div) {var y;if (ie5) { y=div.style.pixelTop; }else { y=parseInt( div.style.top); }return y;}function hcw() {var w=0;if (typeof( window.innerWidth)=='number') {w=window.innerWidth;} else if (document.documentElement&&document.documentElement.clientWidth) {w=document.documentElement.clientWidth;} else if (document.body&&document.body.clientWidth) {w=document.body.clientWidth;}return w;}function hch() {var h=0;if (typeof( window.innerHeight)=='number') {h=window.innerHeight;} else if (document.documentElement&&document.documentElement.clientHeight) {h=document.documentElement.clientHeight;} else if (document.body&&document.body.clientHeight) {h=document.body.clientHeight;}return h;}function hv( div) {return div.style.visibility;}function sv( div, v) {div.style.visibility=v;}function hc( name) {if (cookies!=null) {for (var i=0; i<cookies.length; i++) {cookie=cookies[i].split( "=");if (cookie[0]==name) {return unescape( cookie[1]);}}}return null;}function sc( name, wert) {var al =new Date( zeit+(14 * 24 * 60 * 60 * 1000));document.cookie=name+"="+escape( wert)+"; expires="+al.toGMTString();}function bw() {var stop=0;if (ia) {if (r==1) { aX += s; aY += s; }if (r==2) { aY += s; }if (r==3) { aX -= s; aY += s; }if (r==4) { aX += s; }if (r==5) { }if (r==6) { aX -= s; }if (r==7) { aX += s; aY -= s; }if (r==8) { aY -= s; }if (r==9) { aX -= s; aY -= s; }if ((r==1)&&(aX >= zx)&&(aY >= zy)) { stop=1; }if ((r==2)&& (aY >= zy)) { stop=1; }if ((r==3)&&(aX <= zx)&&(aY >= zy)) { stop=1; }if ((r==4)&&(aX >= zx)) { stop=1; }if ((r==5)) { stop=1; }if ((r==6)&&(aX <= zx)) { stop=1; }if ((r==7)&&(aX >= zx)&&(aY <= zy)) { stop=1; }if ((r==8)&& (aY <= zy)) { stop=1; }if ((r==9)&&(aX <= zx)&&(aY <= zy)) { stop=1; }if (stop==1) {ia=false;sp( box, zx, zy);}else {sp( box, aX, aY);setTimeout( "bw()", g);}}}function zb() {if ((!iv4)&&(!ie3)&&(!ie4)) {zx=hl( box);zy=ht( box);zw=hw( box);zh=hh( box);var dw=0;var dh=0;if (r==1) {dw=zx+zw;dh=zy+zh;}if (r==3) {dw=hcw()-zx;dh=zy+hh( box);}if (r==7) {dw=zx+hw( box);dh=hch()-zy;}if (r==9) {dw=hcw() -zx;dh=hch()-zy;}if (dw>dh) { dw=dw-dh; dh=0; }else { dh=dh-dw; dw=0; }if ((r==1)||(r==4)||(r==7)) {aX=-zw+dw;}if ((r==2)||(r==5)||(r==8)) {aX=zx;}if ((r==3)||(r==6)||(r==9)) {aX=hcw()-dw;}if ((r==1)||(r==2)||(r==3)) {aY= -zh+dh;}if ((r==4)||(r==5)||(r==6)) {aY=zy;}if ((r==7)||(r==8)||(r==9)) {aY=hch()-dh;}sp( box, aX, aY);sv( box, "visible");sv( inhalt, "visible");ia=true;setTimeout( "bw()", g);}}function cb() {sv( box, "hidden");sv( inhalt, "hidden");}function ki() {if (hv( inhalt)=="visible") {sv( inhalt, "hidden");}else {sv( inhalt, "visible");}}function sp( div, x, y) {if ((aX+zw)>hcw()) {sw( div, hcw()-aX);}else {sw( div, zw);}if ((aY+zh)>hch()) {sh( div, hch()-aY);}else {sh( div, zh);}if (ie5) { div.style.pixelLeft=x;div.style.pixelTop =y; }else { div.style.left=x+"px";div.style.top =y+"px"; }}function position( e) {if (ie) { dx=event.clientX-hl( box);dy=event.clientY-ht( box); }else { document.captureEvents( Event.MOUSEMOVE | Event.MOUSEUP);dx=e.clientX-hl( box);dy=e.clientY-ht( box); }document.onmousemove=drag;document.onmouseup =drop;return false;}function drag( e) {if (ie) {sp( box, event.clientX-dx, event.clientY-dy);}else {sp( box, e.clientX-dx, e.clientY-dy);}return false;}function drop() {if (!ie) {document.releaseEvents( Event.MOUSEMOVE | Event.MOUSEUP);}document.onmousemove=null;document.onmouseup =null;box.onmousedown=null;}function sb() {box.onmousedown=position;}function ww( sz) {var zl=hc( "popup");if ((zl==null)||((zeit-zl)>sz)) {sc( "popup", zeit);var zufall =Math.floor( Math.random() * w.length);document.writeln( w[zufall]);}}
