function closegallery() { document.getElementById('picpopup').style.display = "none"; document.getElementById('picpopup2').style.display = "none"; } function pic(pfad, kategorie) { if (kategorie == "land") { url_abfragen('/_inc/gallerie_land.php?land_key=uk','gallerie'); } else if (kategorie == "stadt") { url_abfragen('/_inc/gallerie_stadt.php?stadt_id=0&stadt_pfad=','gallerie'); } else if (kategorie == "profil") { url_abfragen('/_inc/gallerie_profil.php?aid=22&typ=','gallerie'); } if (document.getElementById('picpopup').style.display == "none") { document.getElementById('picpopup').style.display = "inline"; document.getElementById('picpopup2').style.display = "inline"; } bild1 = new Image(); bild1.src = pfad; document.getElementById('abcdef').src = bild1.src; delete bild1; } IE = document.all &&!window.opera; GK = window.sidebar; AOB = []; x = 0; function Fader() { this.timeOut=false; this.fade=function(y) { clearTimeout(this.timeOut); this.value=Number(eval('this.object.'+this.attr))+(this.delta*this.evt[y]); if(this.value>=this.min && this.value<=this.max) { eval('this.object.'+this.attr+'='+this.value) this.timeOut=setTimeout('AOB['+this.index+'].fade('+y+')',this.rate); } } } function init_fader(obj,delta,rate,min,max,dir) { if(IE || GK) { AOB.push(new Fader(x)); OB = AOB[x]; OB.index = x; OB.object = obj; if(IE) { OB.attr = 'filters.alpha.opacity'; OB.faktor = 1; } else { OB.attr = 'style.MozOpacity'; OB.faktor = 100; } OB.delta = delta/OB.faktor; OB.rate = rate; OB.min = min/OB.faktor; OB.max = max/OB.faktor; OB.evt=[-1,1];if(dir)OB.evt.reverse(); OB.object.onmouseover = new Function('f1','AOB['+x+'].fade(0)'); OB.object.onmouseout = new Function('f2','AOB['+x+'].fade(1)'); OB.fade(0);x++; } }