function showhide(whichLayer, textChangeLayer)
{
	if (document.getElementById)
	{
		if(document.getElementById('kat_'+whichLayer) && document.getElementById('plus_' + whichLayer)){
		    // this is the way the standards work
		    var style2 = document.getElementById('kat_'+whichLayer).style;	
		    var stylePlus = document.getElementById('plus_' + whichLayer).style;	
		    var styleMinus = document.getElementById('minus_' + whichLayer).style;	
		    
		    
		    if (style2.display == 'none')
		    {
			    style2.display = "block";
		        stylePlus.display = "none";
		        styleMinus.display = "inline";
		        //alert(whichLayer);
		    } else {
			    style2.display = "none";
		        stylePlus.display = "inline";
		        styleMinus.display = "none";
		    }
		    
	    }
	    else{
			//alert("nema ga"+whichLayer);	
		}
	}
}

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];}}
}

function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}
