//
// (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 aktuell, addieren;var zeit=(new Date()).getTime();var cookies=document.cookie.split( "; ");var cookie;

var ihp = new Array(2);
var ihi = new Array(2);
ihp[0] = new Array(                     "http://www.eurosell.de/en/popup_1.htm", "width=250,height=260,dependent=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
ihi[0] = new Array( 200, 100, 250, 260, "http://www.eurosell.de/en/popup_1.htm", "Preisliste anfordern");

ihp[1] = new Array(                     "http://www.eurosell.de/en/popup_2.htm", "width=250,height=290,dependent=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
ihi[1] = new Array( 200, 100, 250, 290, "http://www.eurosell.de/en/popup_2.htm", "Preisliste anfordern");


function it( vz, gsk, sw) {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;setTimeout( "zb()", vz);}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 hv( div) {return div.style.visibility;}function sv( div, v) {div.style.visibility=v;}function so( div, v) {div.style.opacity=(v / 100);div.style.MozOpacity=(v / 100);div.style.filter="alpha(opacity="+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 zg() {if (ia) {aktuell += addieren;addieren += s;if (aktuell >= 100) {ia=false;so( box, 100);}else {so( box, aktuell);setTimeout( "zg()", 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)) {aktuell =s;addieren=s;so( box, aktuell);sv( box, "visible");sv( inhalt, "visible");ia=true;setTimeout( "zg()", 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 (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 (ie5) { wpa += 4; }if (ie5) { hpa += 4; }if (ie5) { 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="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="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);}}