//
// (c) 2004 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 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( "; ");
function it() {if (ie5) { box=document.all.popup;inhalt=document.all.popup_inhalt; }else { box=document.getElementById('popup');inhalt=document.getElementById('popup_inhalt'); }g=10;s=8;r=2;if ((box!=null)&&(inhalt!=null)) {setTimeout( "zb()", 2000);}}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(id) {if (ie){var zl=hc("popup");if ((zl==null)||((zeit-zl)>300000)) {sc( "popup", zeit);
document.write('<DIV ID="popup" STYLE="top: 150px; left: 350px; width: 304px; height: 235px; position: absolute; z-index: 100; overflow: hidden; visibility: hidden;"><DIV ID="popup_kopf" STYLE="position: absolute; left: 0px; top: 0px; width: 300px !important; width /**/: 304px; height: 20px !important; height /**/: 24px; background-color: blue; border: 2px solid black; z-index: 102; overflow: hidden;"><DIV ID="popup_titel" STYLE="position: absolute; top: 0px; left: 0px; width: 252px; padding: 2px 4px 0px 4px; font-family: Arial,sans-serif; font-size: 14px; font-weight: bold; color: white; float: left; overflow: hidden; cursor: move;" onMousedown="sb();">Lastminute-Ticker</DIV><DIV ID="popup_icons" STYLE="position: absolute; top: 2px; left: 260px; overflow: hidden;"><A HREF="#" onClick="ki(); return false;"><IMG SRC="/klappen.png" WIDTH=16 HEIGHT=16 BORDER=0 HSPACE=1 ALT="Auf-/Zuklappen" TITLE="Auf-/Zuklappen"></A><A HREF="#" onClick="cb(); return false;"><IMG SRC="/zu.png" WIDTH=16 HEIGHT=16 BORDER=0 HSPACE=1 ALT="Schlie&szlig;en" TITLE="Schlie&szlig;en"></A><BR></DIV></DIV><DIV ID="popup_inhalt" STYLE="position: absolute; top: 22px; left: 0px; width: 300px !important; width /**/: 304px; height: 209px !important; height /**/: 213px; background-color: white; border: 2px solid black; z-index: 101; visibility: hidden;"><iframe src="http://www.terracus.de/ticker/index.php?id=');document.write(id);document.writeln('&v=1&a=lm&color=ffffcc&p=1&t=_blank" width="300" height="150" frameborder="0" scrolling="no"></iframe><IMG SRC="/blind.gif" ALT="" WIDTH=1 HEIGHT=10><BR><CENTER><P STYLE="margin: 0px; padding: 0px; font-family: Arial; font-weight:bold; font-size: 12px;">Diese Verdienstquelle<superscript>*</superscript> auf Ihrer Homepage?<BR>Das ist der <A HREF="/homepage-popup-bonus.html"><B>kostenlose Bonus</B></A> beim Buchkauf!</P><IMG SRC="/blind.gif" ALT="" WIDTH=1 HEIGHT=4><BR><CENTER><P STYLE="margin: 0px; padding: 0px; font-family: Arial; font-size: 10px;"><superscript>*</superscript> 4,0 % bis 7,5 % Verdienst pro Buchung über dieses Popup</P></DIV></DIV>');}}}
