var wx=80;
var wy=100;
var wspeed=10;
var step=1;
var direction=5;
sx=1;
sy=1;
ex=1;
ey=100;

var content=
'<a href="http://www.unicams.com/erotiknischen/" + target="_blank"><img border="0" src="http://www.unicams.com/erotiknischen/portal_de_18.jpg"></a>';

document.write(
"<table width='"+wx+"' height='"+wy+"' border='0' style='display:none; position:absolute; top:10px; left:10px; empty-cells:hide; height:"+wy+"px; width:"+wx+"px;"+
"       background-color:black;' id='win_table'>"+
"<tr><td width='80%' height='16'><div style='cursor:move;'><font color='white' face='Arial,verdana' style='font-size:13px'>"+
"      <b>Geiles Angebot</b></div></td>"+
"      <td align='center'>"+
"      </td><td align='center'>"+
"      <table width='20' cellspacing='0' cellpadding='0' align='center' bgcolor='black' bordercolor='black' "+
"            style='border-collapse:collapse; border-style:outset; border-width:1; border-color:black'>"+
"      <tr><td><a onClick='win_close(); return false' "+
"            onmouseover='this.style.cursor=\"default\"; this.style.background=\"#000000\" ' "+
"            onmouseout='this.style.cursor=\"default\"; this.style.background=\"#000000\" ' "+
"            style='background:\"#000000\"; border:0; color:black; font-family:arial,system,verdana; margin-left:0px; padding-left:3px; padding-right:4px; padding-top:3px; "+
"            padding-bottom:1px; text-decoration:none; font-size:16px; left-indent:0px;'><b><font color='red'>X</font></b></a></td></tr></table>"+
"      </td></tr>"+
"      <tr><td width='100%' bgcolor='black' style='padding:0px' colspan='3' width='163' height='162' valign='top'>"+
"            <table id='win_content' width='100%' height='"+wy+"' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td align='center' valign='top'>"+content+
"</td></tr></table></td></tr></table>");

if (document.getElementById) win_style=document.getElementById("win_table"); else win_style=document.all["win_table"];
var win_tx=win_ty=tox=toy=10;

function win_min() {
  if (document.getElementById) content=document.getElementById("win_content"); else content=document.all["win_content"];
  if (content.style.display=="none") {content.style.display=""; win_style.style.height=(wy-40)+"px";} else {content.style.display="none"; win_style.style.height="20px";}
}
function win_close() { win_style.style.display="none";}
function win_x() { return ((window.pageXOffset) ? window.pageXOffset : document.body.scrollLeft)+win_tx;}
function win_y() { return ((window.pageYOffset) ? window.pageYOffset : document.body.scrollTop)+win_ty;}
function win_xy() { win_style.style.top=win_y();   win_style.style.left=win_x(); setTimeout("win_xy();",100); }
function win_move() {
  if (win_tx!=tox||win_ty!=toy) {
    if (win_tx>(tox-step)&&win_tx<(tox+step)) win_tx=tox; else if (win_tx<=tox) win_tx+=step;     else if (win_tx>=(tox+step)) win_tx-=step;
    if (win_ty>(toy-step)&&win_ty<(toy+step)) win_ty=toy; else if (win_ty<=toy) win_ty+=step;     else if (win_ty>=(toy+step)) win_ty-=step;
    win_style.style.top=win_y();
    win_style.style.left=win_x();
    setTimeout("win_move();",wspeed);
  } else win_xy();
}
function win_start() {
  xxx=((window.innerWidth) ? window.innerWidth : document.body.clientWidth)-wx;
  yyy=((window.innerHeight) ? window.innerHeight : document.body.clientHeight)-wy;
  win_tx=sx; win_ty=sy; tox=ex; toy=ey;
  if (sx==666) win_tx=xxx/2;
  if (sy==666) win_ty=yyy/2;
  if (ex==666) tox=xxx/2;
  if (ey==666) toy=yyy/2;
  if (sx==999) win_tx=xxx;
  if (sy==999) win_ty=yyy-45;
  if (ex==999) tox=xxx;
  if (ey==999) toy=yyy-45;
  switch(direction) {
    case 1:win_ty=-(wy+step); break;
    case 2:win_tx=xxx; break;
    case 3:win_ty=yyy; break;
    case 4:win_tx=-(wx+step); break;
    case 5:break;
  }
  win_style.style.top=win_y();
  win_style.style.left=win_x();
  win_style.style.display="";
  if (direction!=0) win_move(); else win_xy();
}
var win_ox,win_oy;
function win_drag_move(e) {
  newx=(document.all) ? event.clientX : e.clientX;
  newy=(document.all) ? event.clientY : e.clientY;
  win_tx+=newx-win_ox;
  win_ty+=newy-win_oy;
  win_ox=newx;
  win_oy=newy;
  win_style.style.top=win_y();
  win_style.style.left=win_x();
}
function win_do_nothing() {}
function win_end_drag() {document.onmousemove=win_do_nothing; document.onmouseup=win_do_nothing;}
function win_start_drag(e) {
  win_ox=(document.all) ? event.clientX : e.clientX;
  win_oy=(document.all) ? event.clientY : e.clientY;
  document.onmousemove=win_drag_move;
  document.onmouseup=win_end_drag;
}
win_style.onmousedown=win_start_drag;
function kegnuclickIE() { if (document.all) {return false;}}
function kegnuclickNS(e) {
  if (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {return false;}
  }
}
if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
  document.onmousedown=kegnuclickNS;
} else {
  document.onmouseup=kegnuclickNS;
  document.oncontextmenu=kegnuclickIE;
}
document.oncontextmenu=new Function("return false")
function go() { setTimeout("win_start();",1000);}
go();