var Doc=document,LW=0,posa=0,LINKB=0,INH=0;
var n4=Doc.layers,i4=Doc.all,n6=Doc.getElementById&&!Doc.all;
var nav=navigator.userAgent;nav=nav.toLowerCase();
var msie=(nav.indexOf("opera")>0)?0:1;

var H="hidden",V="visible",P="tree/",G=".gif";

function MP(i,id) {
   var s=i.src;
   if (i4&&msie) if (s.search(/.png/)!=-1) i.outerHTML='<span '+(id?'id="'+id+'" ':'')+'style="font-size:1pt;'+'width:'+i.width+'px;height:'+i.height+'px;display:inline-block;'+i.style.cssText+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"', sizingMethod='scale');"+'"></span>'; 
   };
function MU(i) {MP(i);uhrda();};
function MPclg(i,s) {MP(i,"",1);};

function BACKGROUNDIMAGE(n) {return "background-image:url("+n+")";};
function DW() {for (var i=0;i<DW.arguments.length;i++) Doc.write(DW.arguments[i]);};
function ELE(n) {return Doc.getElementById(n);}
function SHOW() {for (var i=0;i<SHOW.arguments.length;i++) {n=SHOW.arguments[i];if (n) n.style.visibility=V;};}
function HIDE() {for (var i=0;i<HIDE.arguments.length;i++) {n=HIDE.arguments[i];if (n) n.style.visibility=H;};}
function VISI(n,ok) {if (n) {if (ok) SHOW(n); else HIDE(n);};}
function SBC(n,c) {
if (i4) n.style.backgroundColor=c; else n.style.backgroundColor=c;};
function img(n) {return Doc.images[n];}
function HE() {for (var i=0;i<HE.arguments.length;i++) HIDE(ELE(HE.arguments[i]));}
function SE() {for (var i=0;i<SE.arguments.length;i++) SHOW(ELE(SE.arguments[i]));}
function VE(n,o) {VISI(ELE(n),o);}
function IM(n,s,w,h,p) {return '<img '+(n?'name="'+n+'" ':'')+'src="'+(s?s:"clg.gif")+'"'+(w||h?' style="'+(h?'height:'+h+';':'')+(w?'width:'+w:'')+'"':'')+(p?' onload="M'+((p==2)?'U':'P')+'(this)"':'')+'>';}
function CLG(l,t,w,h) {return '<img src="clg.gif" style="'+(w?'width:'+w+';':'')+(h?'height:'+h+';':'')+(l?'left:'+l+';':'')+(t?'top:'+t:'')+'">';}
function PNG(n,w,h) {
if (n.search(/.gif/)==-1&&n.search(/.jpg/)==-1&&n.search(/.png/)==-1) n+=".png";
return IM(0,n,w,h,1);
}
function GIF(n,w,h) {
if (n.search(/.gif/)==-1&&n.search(/.jpg/)==-1&&n.search(/.png/)==-1) n+=".gif";
return IM(0,n,w,h,1);
}
function APP(d,s) {d.appendChild(s);};
function TN(n) {return Doc.createTextNode(n);};
function CE(n) {return Doc.createElement(n);};
Z="";
function SN(n) {

var sp=CE("span");
//var tn=TN(n);
sp.innerHTML=n;
return sp;
};


function STYLE(n) {return ELE(n).style;};

function DIV(n,c,l,t,w,h,z,s,e,mo,ou,oc) {
var x='<div '+(n?'id="'+n+'" ':'')+(c?'class="'+c+'" ':'');
if (l||t||w||h||z||s||e) {
   x+='style="'+(e?e+';':'')+(l?'left:'+l+';':'')+(t?'top:'+t+';':'')+(w?'width:'+w+';':'')+(h?'height:'+h+';':'')+(z?'z-index:'+z+';':'');
   if (s) {
   	  if (s.search(/h/)!=-1) x+='visibility:hidden;';
   	  if (s.search(/o/)!=-1) x+='overflow:hidden;';
   	  if (s.search(/p/)!=-1) x+='cursor:pointer;';
   	  if (s.search(/d/)!=-1) x+='cursor:default;';
   	  if (s.search(/w/)!=-1) x+='background-color:#ffffff;';
	  if (s.search(/c/)!=-1) x+='text-align:center;';
   	  };
   x+='"';
   };
if (mo) x+=' onmouseover="'+mo+'"';
if (ou) x+=' onmouseout="'+ou+'"';
if (oc) x+=' onclick="'+oc+'"';
return x+'>';
}

function getbw() {return gbwx(0,0,0)+gbwx(1,1,1)+gbwx(2,1,0)+gbwx(3,0,1);}
function gbwx(i,l,t) { return DIV("bw"+i,"bk")+DIV(0,"bk1",l,t,0,0,0,0,BACKGROUNDIMAGE("border0/g-weiss.gif"))+D+D;}
function TOP(n,t) {ELE(n).style.top=t;}
var D="</div>",
	V100="100%",
	CG=BACKGROUNDIMAGE("clg.gif"),
	TB="<table cellspacing=0>",
	TE="</table>",
	N="&nbsp;";
	
function doresize() {

if (!LH) LH=ELE("lheight");
if (!LINKS) LINKS=ELE("leftx");
if (!LINKB) LINKB=ELE("leftb");
var x=LH.height-16;
if (x<610) x=610;
LINKS.style.height=x;
LINKB.style.height=x-180;
};

var LIY=0,NIY=0;

function movelinks() {

if (n6) NIY=window.pageYOffset; else NIY=Doc.body.scrollTop;
var c=LIY-NIY;
if (c<0) c=-c;
var x=1+Math.floor(c/20);

if (c) {
	setTimeout("movelinks()",10);
	if (LIY<NIY) {
	   if ((LIY+LH.height)<NIY) LIY=NIY-LH.height; else LIY+=x;
	   } else {
	   if (LIY>(NIY+LH.height)) LIY=NIY+LH.height; else LIY-=x;
	   };
	var zz=LH.height;
	if (zz<610) zz=610;
	if (LIY>(1487-zz)) LIY=1487-zz;
	LINKS.style.top=LIY;
	};
};

function SCROLL() {

var ok=NIY!=LIY;
if (n6) NIY=window.pageYOffset; else NIY=Doc.body.scrollTop;
if (NIY!=LIY&&!ok) movelinks();
};

var SO=0,MSX=0,MSY=0;
function showover() {

if (!P0&&!PWA) {
SO++;
if (SO>5&&MXY) {
   if (MSX!=MX||MSY!=MY) cic.location.replace("showxy.php?x="+MX+"&y="+MY+"&q="+document.goog.elements['q'].value);
   SO=0;
   MSX=MX;
   MSY=MY;
   };
if (MXY) setTimeout("showover()",100);
};
};

function navout() {if (posa) posa.innerHTML="";MXY=0;MX=-1;MY=-1;};

function navover() {
if (!IFRD) {
   var X0=MX,Y0=MY;
   MXY=1;navmove();SO=0;
   if (!P0&&(X0!=MX||Y0!=MY)) showover();
   };
};

var MX=0,MY=0,MXY=0,PC0=0,X0=0,Y0=0,Z0=0,P0=0;

function navmove(e) {

if (!LW) {LH=ELE("lheight");LW=ELE("lwidth");};

if (MXY&&!P0&&LW) {
SO=0;
if (n6) var ni=window.pageYOffset; else var ni=Doc.body.scrollTop;
if (n6) var nx=window.pageXOffset; else var nx=Doc.body.scrollLeft;
var w=Math.ceil((LW.width-1000)/2);
if (w<0) w=0;
if (i4) {
   if (window.event) {MX=window.event.x;MY=window.event.y;};
   } else {
   if (e) {MX=e.pageX-197-w;MY=e.pageY-118;} else {MX=0;MY=0;};
   };
if (MX!=X0||MY!=Y0) {
   if (posa) posa.innerHTML="<nobr><b>Pixel: "+MX+" / "+MY+"</b>";
   if (PC0&&!Z0) offxy();
   Y0=MY;X0=MX;
   };
};
};

function offxy() {
if (!P0) {
   Z0++;
   if (Z0>20) {
   	  PC0=0;Z0=0;
   	  PC.style.visibility="hidden";
   	  };
   };
if (Z0&&!P0) setTimeout("offxy()",100);
};

function Pxout() {P0=0;Z0=0;
/*
if (i4&&msie) ELE("xxw").style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/gold.png', sizingMethod='scale')";
   else ELE("xxw").style.backgroundImage="url(img/gold.png)";
*/
ELE("xxw").style.backgroundColor="";
};
function Pxover() {P0=1;
/*
if (i4&&msie) ELE("xxw").style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/weiss.png', sizingMethod='scale')";
   else ELE("xxw").style.backgroundImage="url(img/weiss.png)";
*/   
ELE("xxw").style.backgroundColor="#D7B433";
};

function Pclick() {
Doc.web.elements['wx'].value=SXY[2];
Doc.web.elements['wy'].value=SXY[3];
Doc.web.submit();
};

function checkscr() {
setTimeout("checkscr()",200);
if (n6) var n=window.pageYOffset; else var n=Doc.body.scrollTop;
if (n!=NIY) SCROLL();
};

if (!i4) Doc.onmousemove=navmove; 
if (!i4) setTimeout("checkscr()",200);

function navclick() {
if (!P0) {
Doc.web.elements['wx'].value=MX;
Doc.web.elements['wy'].value=MY;
Doc.web.elements['pw'].value=PWA;
Doc.web.elements['eid'].value=eID;
Doc.web.target=PWA?"cic":"_blank";
Doc.web.submit();
};
};

function lclick(x,y) {
Doc.web.elements['wx'].value=x;
Doc.web.elements['wy'].value=y;
Doc.web.submit();
};

var SXY=new Array(0,0,0,0,0,0);
var SUT="";

var WI=new Array();
var WU=new Array();
var XC=new Array();

function showxy(t,n) {
SXY[0]=t[0];
SXY[1]=t[1];
SXY[2]=t[2];
SXY[3]=t[3];
SXY[4]=t[4];
SXY[5]=t[5];
PI.style.left=t[2]-2;
PI.style.top=t[3]-2;
PI.style.width=i4?5:1;
PI.style.height=i4?5:1;
if (!INH) INH=ELE("inh");
var s=(t[7]>0)?'<img class="tn" src="mem/p'+t[7]+'.jpg">':'';
INH.innerHTML=s+'<b><u>'+SXY[0]+'</u></b><span style="color:#000000"><br><br>'+SXY[1]+'<br><br></span><b>'+t[5]+"</b><br>Klicks: "+t[6];
if (t[2]>408) PC.style.left=t[2]-387; else PC.style.left=t[2]+2;
if (n6) var s=window.pageYOffset; else var s=Doc.body.scrollTop;
if (t[3]>LH.height-380+s) var hh=t[3]-82-Math.floor((t[1].length/65)*12)-12-((t[7]>0)?84:0); else var hh=t[3]+2;
if (hh<1) hh=1;
PC.style.top=hh;
PC.style.visibility="";
PC0=1;
if (!WI[0]) for (var i=0;i<4;i++) WI[i]=ELE("wi"+i);

for (var i=0;(i<n.length&&i<4);i++) {
	XC[i]=new Array();
	for (var x=0;x<n[i].length;x++) XC[i][x]=n[i][x];
	WU[i]=n[i][4];
	WI[i].innerHTML='<div onclick="lclick('+n[i][2]+','+n[i][3]+')" onmouseover="wover(this,'+n[i][2]+','+n[i][3]+','+i+')" onmouseout="wout(this,'+i+')" style="width:140px;border:0;height:44px;cursor:pointer;overflow:hidden"><table cellspacing=0 style="border:1px solid #D7B433;width:100%;height:100%"><tr><td style="padding:2px"><div id="wu'+i+'" style="width:134px;height:38px;text-align:center;overflow:hidden;color:#D7B433"><b>'+n[i][0]+'</b><br>'+n[i][1]+' ...</div></td></tr></table></div>';
	};
Z0=0;
};


function showxy2(t,n) {
SXY[0]=t[0];
SXY[1]=t[1];
SXY[2]=t[2];
SXY[3]=t[3];
SXY[4]=t[4];
SXY[5]=t[5];
SXY[6]=t[6];
PI.style.left=t[2]-2;
PI.style.top=t[3]-2;
PI.style.width=i4?5:1;
PI.style.height=i4?5:1;

if (!INH) INH=ELE("inh");
var s=(t[7]>0)?'<img class="tn" src="mem/p'+t[7]+'.jpg">':'';
INH.innerHTML=s+'<b><u>'+SXY[0]+'</u></b><span style="color:#000000"><br><br>'+SXY[1]+'<br><br></span><b>'+t[5]+"</b><br>Klicks: "+t[6];
if (t[2]>408) PC.style.left=t[2]-387; else PC.style.left=t[2]+2;
if (n6) var s=window.pageYOffset; else var s=Doc.body.scrollTop;
if (t[3]>LH.height-380+s) PC.style.top=t[3]-82-Math.floor((t[1].length/65)*12)-12-((t[7]>0)?84:0); else PC.style.top=t[3]+2;
PC.style.visibility="";
PC0=1;
};


function wover(t,x,y,i) {
t.style.backgroundColor="#D7B433";
ELE("wu"+i).style.color="#0B3081";
if (SXY[2]!=x||SXY[3]!=y) {
   showxy2(XC[i],XC[i]);
   //cic.location.replace("showxy.php?no=1&x="+x+"&y="+y+"&q="+document.goog.elements['q'].value);
   };
};

function wover2(t,x,y,i) {
t.style.backgroundColor="#D7B433";
ELE("wu"+i).style.color="#0B3081";
};

function wout(t,i) {
t.style.backgroundColor="";
ELE("wu"+i).style.color="#D7B433";
};

var WW=new Array();
function Pfound(n,w) {

var t=new Array(),c=0;
for (var i=0;i<n.length;i+=2) {
	t[c]='<div class="pixel" style="left:'+(n[i]-2)+';top:'+(n[i+1]-2)+(i4?'':';width:1px;height:1px')+'"></div>';
	c++;
	};
if (i) PSUCH.innerHTML=t.join('');

c=0; WW=new Array();
for (var i=0;i<w.length;i++) WW[i]=w[i];
setTimeout("blink()",200);
};

function pixcls() {PSUCH.innerHTML="";};

var IFRD=0;
var BLI=0;
function blink() {
if (BLI>4) {
   WET[3].style.backgroundColor="";
   BLI=0;
   RO=0;
   } else {
   for (i=0;i<4;i++) WET[i].style.backgroundColor=(i==BLI)?"#f0f0f0":"";
   if ((WW.length/3)>BLI) WET[BLI].innerHTML='<a href="'+WW[(BLI*3)+2]+'" target="_blank" class="gre2">'+WW[BLI*3]+'</a><br><a href="'+WW[(BLI*3)+2]+'" target="_blank" class="gre3">'+WW[BLI*3+1]+'</a>';
   BLI++;
   setTimeout("blink()",100);
   }; 
};

var AO=0;
function Aover() {AO=1;};
function Aout() {AO=0;};

function jover(t) {t.parentNode.style.backgroundColor="#808080";};
function jout(t) {t.parentNode.style.backgroundColor="#a0a0a0";};

var RO=0;
function rotat() {
if (!AO) RO++;
if (RO>45) {
   document.goog.action="rotate.php";
   document.goog.target="cic";
   document.goog.submit();
   RO=0;
   document.goog.action=IFRD?"katalog-suche.php":"pixel-suche.php";
   };
setTimeout("rotat()",1000);
};

function pixon() {
IFR.style.visibility="hidden";
IFRD=0;
pwoff();
};

function pixoff() {
IFR.style.visibility="";
IFRD=1;
};

var ER0=0;
function erooff() {
ELE("ero").style.visibility=ER0?"":"hidden";
ELE("erox").innerHTML=ER0?(lang?'Erotic-Area aus':'Erotic-Area off'):(lang?'Erotic-Area an':'Erotic-Area on');
ER0=ER0?0:1;
};

var PWA=0, eID=0;
function pwahlon() {
ELE("pwahl").style.visibility="visible";
ELE("pwahl2").style.visibility="visible";
IFR.style.visibility="hidden";
PWA=1;
PC.style.visibility="hidden";
};

function pwahloff() {
IFR.style.visibility="";
pwoff();
};

function pwoff() {
ELE("pwahl").style.visibility="hidden";
ELE("pwahl2").style.visibility="hidden";
PWA=0;
};

function pwahlx() {
IFR.style.visibility="hidden";
PWA=0;
};

function anmelden() {
haupt.location.href="anmeldung.php";
};

rotat();

