//
// (c) 2005 Stefan Ruettinger
// http://www.homepage-erfolg.de/
//
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 io =(agt.indexOf("opera")!=-1);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;var dx, dy;var zx, zy, zw, zh;var aX, aY;var g, s, r;var zf;var ia=false;var zeit=(new Date()).getTime();var cookies=document.cookie.split( "; ");var cookie;

var ihp = new Array(1);
var ihi = new Array(1);
ihp[0] = new Array(                     "http://www.jiggl.de/popup/erotik.html", "width=200,height=200,dependent=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no, left=180, top=10");
ihi[0] = new Array( 180, 10, 200, 200, "http://www.jiggl.de/popup/erotik.html", "Erotik Downloads");

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;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() {var p=window.open( ihp[zf][0], "popupfenster", ihp[zf][1]);try {p.focus();}catch (e) {p=null;}if ( !p||typeof(p)!='object'||p.closed ) {if ((box!=null)&&(inhalt!=null)&&(!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);zf=Math.floor( Math.random() * ihi.length);var wpa=ihi[zf][2];var wpe=wpa+4;var wpt=wpa-46;var hpa=ihi[zf][3];var hpe=hpa+4;var hpp=hpa+26;var hpt=20;var xpi=wpa-42;if (ie||io) { wpa += 4; }if (ie||io) { hpa += 4; }if (ie||io) { hpt += 4; }var w='<DIV ID="popup" STYLE="top: '+ihi[zf][1]+'px; left: '+ihi[zf][0]+'px; width: '+wpe+'px; height: '+hpp+'px; position: absolute; z-index: 100; overflow: hidden; visibility: hidden;"><DIV ID="popup_kopf" STYLE="position: absolute; left: 0px; top: 0px; width: '+wpa+'px; height: '+hpt+'px; background-color: blue; border: 2px solid black; z-index: 102; overflow: hidden;"><DIV ID="popup_titel" STYLE="position: absolute; top: 0px; left: 0px; width: '+wpt+'px; padding: 2px 4px 0px 4px; font-family: Arial,sans-serif; font-size: 10pt; font-weight: bold; color: white; float: left; overflow: hidden; cursor: move;" onMousedown="sb();">'+ihi[zf][5]+'</DIV><DIV ID="popup_icons" STYLE="position: absolute; top: 2px; left: '+xpi+'px; overflow: hidden;"><A HREF="#" onClick="ki(); return false;"><IMG SRC="http://www.gratisdinge.de/aufundzu.png" WIDTH=16 HEIGHT=16 HSPACE=2 BORDER=0 ALT="Auf-/Zuklappen" TITLE="Auf-/Zuklappen"></A><A HREF="#" onClick="cb(); return false;"><IMG SRC="http://www.gratisdinge.de/schliessen.png" WIDTH=16 HEIGHT=16 BORDER=0 HSPACE=2 ALT="Schlie&szlig;en" TITLE="Schlie&szlig;en"></A><BR></DIV></DIV><DIV ID="popup_inhalt" STYLE="position: absolute; top: 22px; left: 0px; width: '+wpa+'px; height: '+hpa+'px; background-color: white; border: 2px solid black; z-index: 101; overflow: hidden; visibility: hidden;"><IFRAME SRC="'+ihi[zf][4]+'" WIDTH="'+ihi[zf][2]+'" HEIGHT="'+ihi[zf][3]+'" FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING="no"></IFRAME></DIV></DIV>';document.writeln( w);}}