    //1k DHTML API
    d=document;l=d.layers;op=navigator.userAgent.indexOf('Opera')!=-1;
    function gE(e,f){
      if(l){
        f=(f)?f:self;
        var V=f.document.layers;
        if(V[e])return V[e];
        for(var W=0;W<V.length;)
          t=gE(e,V[W++]);
        return t;
      }
      if(d.all) return d.all[e];
      return d.getElementById(e);
    }
    
    function sZ(e,z) {
      l?e.zIndex = z : e.style.zIndex=z;
    }
    
    function hE() { 
      var i,p,v,obj,args=hE.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=gE(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
        obj.visibility=v; }
    }

    function swapBg() {
      if (document.layers) {
        sZ(gE('background2'), 3);
      }
      for(i=0;i<document.links.length;i++){
    		document.links[i].onfocus=function() {if(this.blur)this.blur()}; 
    	}
    }
    
    var popAct = false;
    var popVis = false;
    function popUp(x) {
      if ( x == 1 ) {
        //show only if active
        if (popAct && !popVis) {
          hE('popup','','show');
          popVis = true;
        }
      }
      else if ( x == 0 ) {
        // hide if active
        if (popAct && popVis) {
          hE('popup','','hide');
          popVis = false;
        }
      }
      else {
        // toggle
        if (!popVis) {
          hE('popup','','show');
          popVis = true;
          popAct = true;
        }
        else {
          hE('popup','','hide');
          popVis = false;
          popAct = false;
        }
      }
    }
    
    var contentHidden = false;
    function showPhoto() {
      if (!contentHidden) {
        if (!popVis) {
          popUp(0);
          hE('content','','hide');
          hE('cytat','','hide');
          hE('up','','hide');
          hE('down','','hide');
          hE('cont','','hide');
          hE('text','','hide');
          contentHidden = true;
        }
      }  
      else {
        popUp(1);
        hE('content','','show');
        hE('cytat','','show');
        hE('up','','show');
        hE('down','','show');
        hE('cont','','show');
        hE('text','','show');
        contentHidden = false;
      }
    }

    function reloadMe() {
      brow_name = navigator.appName;
      if (brow_name.indexOf("Netscape") != -1) {
        self.location="index.shtml";
      }
    } 

