var Open = "";
var Closed = "";

var isDOM  = (typeof(document.getElementsByTagName) != 'undefined') ? 1 : 0;
var isIE4  = ((typeof(document.all) != 'undefined') && (parseInt(navigator.appVersion) >= 4)) ? 1 : 0;
var isNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0;
var capable = (isDOM || isIE4 || isNS4) ? 1 : 0;
// Uggly fix for Konqueror and Opera that are not fully DOM compliant
 if (capable && typeof(navigator.userAgent) != 'undefined') {
  var browserName = ' ' + navigator.userAgent.toLowerCase();
   if (browserName.indexOf('opera') > 0) {
     capable = 0;
   }
}

if (document.images) {
 Open = new Image(16,13); Closed = new Image(16,13);
 Open.src = "/gfx/open.gif"; Closed.src = "/gfx/closed.gif";
}

function shdiv(what,ilosc) {
for (i=0; i<ilosc; i++) {
//  eval('span' + i + '.style.display="none"')
   
  if (isDOM) { var whichEl = document.getElementById('span' + i); whichEl.style.display  = 'none'; }
  else if (isIE4) { var whichEl = document.all('span' + i); whichEl.style.display  = 'none'; }
  else if (isNS4) { var whichEl = document.layers['span' + i]; whichEl.visibility  = 'hide'; }
}
  
  if (isDOM) { var whichEl = document.getElementById(what); whichEl.style.display  = 'block'; }
  else if (isIE4) { var whichEl = document.all(what); whichEl.style.display  = 'block'; }
  else if (isNS4) { var whichEl = document.layers[what]; whichEl.visibility  = 'show'; }
}

function showhide(what, what2){
  if (isDOM) {
    var whichEl = document.getElementById(what);
    if ( whichEl.style.display == 'none' ) { whichEl.style.display  = 'block'; what2.src=Open.src; }
    else { whichEl.style.display  = 'none'; what2.src=Closed.src; }  
  }
  else if (isIE4) {
    var whichEl = document.all(what);
    if (whichEl.style.display == 'none') { whichEl.style.display  = 'block'; what2.src=Open.src;}
    else { whichEl.style.display  = 'none'; what2.src=Closed.src; }
  }
  else if (isNS4) {
    var whichEl = document.layers[what];
    if (whichEl.visibility == 'hide') { whichEl.visibility  = 'show'; what2.src=Open.src;}
    else { whichEl.visibility  = 'hide'; what2.src=Closed.src; }
  }
}

function show5() {
if (!document.layers&&!document.all) return
 var Digital = new Date()
 var     all = Digital

if (document.layers){
 document.layers.liveclock.document.write(all)
 document.layers.liveclock.document.close()
} else if (document.all) liveclock.innerHTML=all

setTimeout("show5()",1000)
}


function divShowHide(what, act){
  if (isDOM) {
    var whichEl = document.getElementById(what);
    if (act == 's') whichEl.style.display  = 'block'
    else if (act == 'h') whichEl.style.display = 'none'
    else if (act == 'a') 
        if (whichEl.style.display == 'none') whichEl.style.display  = 'block'
        else whichEl.style.display  = 'none' 
  }
  else if (isIE4) {
    var whichEl = document.all(what);
    if (act == 's') whichEl.style.display  = 'block'
    else if (act == 'h') whichEl.style.display = 'none'
    else if (act == 'a') 
        if ( whichEl.style.display == 'none' ) { whichEl.style.display  = 'block'; }
        else { whichEl.style.display  = 'none'; }  
  }
  else if (isNS4) {
    var whichEl = document.layers[what];
    if (act == 's') whichEl.visibility  = 'block'
    else if (act == 'h') whichEl.visibility = 'none'
    else if (act == 'a') 
        if ( whichEl.visibility == 'none' ) { whichEl.visibility  = 'block'; }
        else { whichEl.visibility  = 'none'; }  
  }
}


function tabs(x) {
  for (a in Z) {
    divShowHide(Z[a], 'h');
    document.getElementById(Z[a]+'t').className='tabOff'
  }

  divShowHide(x, 's');
  if (x!=Z[0]) document.getElementById(x).style.top = document.getElementById(Z[0]).offsetTop;
  document.getElementById(x+'t').className='tabOn'
}

/*************************************
**** opacifier v1.01
****    3.8.01
****    Anarchos
****    anarchos.xs.mw/opacifier.phtml
**************************************/

function hover(id,opacity){
       document.all[id].filters.alpha.opacity = opacity;
}

function opacify(id,delay,start,stop){
    opacify(id,delay,start,stop,0);
    }
    
function opacify(id,delay,start,stop,offset){
    offset *= 1000;
    if (document.all){
        hover(id,start);
        setTimeout("fadeOut('"+id +"',"+ delay +","+ start +","+stop +")",offset);
        }
    }    

function fadeOut(id,delay,start,stop){
    if (document.all[id].filters.alpha.opacity > stop){
        document.all[id].filters.alpha.opacity -= 2;
        setTimeout("fadeOut('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
        }
    else {
        setTimeout("fadeIn('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
        }
    }   
    
function fadeIn(id,delay,start,stop){
    if (document.all[id].filters.alpha.opacity < start){
        document.all[id].filters.alpha.opacity += 2;
        setTimeout("fadeIn('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
        }
    else {
        setTimeout("fadeOut('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
        }
    }      
    
<!--
/* ***************************************************************************
works with any browser ver. 3.0+;
this whole script allows you to make a simple rollover without creating any 
difficullt arrays with images; just include this script into your page; 
you don't need to make any changes in it;
******************************************************************************
this is an example how to use it:
<a href="#" onmouseout="rolloff()" onmouseover="rollon('button1','','button2.gif',0);">
<IMG border=0 name="button1" src="button.gif">
</a>
*************************************************************************** */

// restoring images to their previous state

<!--
function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
