isNS = (navigator.appName == 'Netscape');
isIE = (navigator.appName.indexOf('Microsoft') != -1);
isOP = (navigator.appName == 'Opera');
ns4 = (document.layers);
ie4 = (document.all && !document.getElementById);
ie5 = (document.all && document.getElementById);
ns6 = (!document.all && document.getElementById);


function swap_img(img_src) {
  var obj = document.getElementById('konteiner');
	obj.src = img_src;
}


function PopupPic(sPicURL) { 
     window.open( "/popup.html?"+sPicURL, "",  
     "resizable=1,HEIGHT=200,WIDTH=200, left=3, top=5"); 
   }

function PopupPic_d(sPicURL) { 
     window.open( "/popup.html?"+sPicURL, "",  
     "resizable=1,HEIGHT=200,WIDTH=200, left=3, top=5, scrollbars=1"); 
   }

function over(koi){
var obj = document.getElementById(koi);
   obj.src = "/images/orange_dot.png";
}
function out(koi){
var obj = document.getElementById(koi);
   obj.src = "/images/green_dot.png";
}

function sh_div(what) {
	 var i=0;
	 var coll = [];
	 while (document.getElementById('d'+ i)) {
	  coll[i] = document.getElementById('d'+ i);
		i++;
	 }
 obj = document.getElementById(what);
 var i=0;
 if (obj.className == 'off') {
	 while (coll[i]) {
		coll[i].className = 'off';
		i++;
		} 
	obj.className = 'on';
 } else {
	obj.className = 'off';
 }
 calcHeight_admin('podrobnosti');
}

