/*
 * Created on 2006-11-11
 *
 * author: Dariusz Grabowski
 */
function z(nazwa){ //wyswietlenie zdjecia
	window.open("zdj.php5?nazwa="+nazwa, "", "toolbar=0,top=50,left=50,location=0,resizable=1,directories=0,status=0,menubar=0,scrollbars=0,height=100,width=100");
}
//////
function aEL(o,t,f){var a=Array.prototype.slice.call(arguments,3)
o[t+f]=function(e){return !1===f.apply(o,[e||window.event].concat(a))?e.preventDefault?e.preventDefault():!1:1}
return(o.x=o.addEventListener)?o.x(t,o[t+f],!1):(o.x=o.attachEvent)?o.x('on'+t,o[t+f]):!1}
//////
function html2flash(e){
    pr=this.parentNode;
    obj=pr.getElementsByTagName('OBJECT');
    span=pr.getElementsByTagName('SPAN');
    if(this.innerHTML=='(wersja html)'){
//alert (obj.length);
      this.innerHTML='(wersja flash)'
      obj[0].style.display="none";
      span[0].style.display="block";
    }else{
      this.innerHTML='(wersja html)';
      obj[0].style.display="block";
      span[0].style.display="none";
    }
}
//-------
