var patH;
function path(put){
patH=put;
return patH;
}



// Get the left and the top of the element.
function ds_getleft(el) {
	var tmp = el.offsetLeft;
	el = el.offsetParent
	while(el) {
		tmp += el.offsetLeft;
		el = el.offsetParent;
	}
	return tmp;
}
function ds_gettop(el) {
	var tmp = el.offsetTop;
	el = el.offsetParent
	while(el) {
		tmp += el.offsetTop;
		el = el.offsetParent;
	}
	return tmp;
}

var element;
function ds(t,stolica) {
document.getElementById("resultt").innerHTML=stolica;

		the_left = ds_getleft(t);
	the_top = ds_gettop(t) + t.offsetHeight;


	element=document.getElementById("resultt")
	element.style.top=the_top-130 + 'px';
	element.style.left=the_left+100 + 'px';
	return false;
	}
function popup(table,page,id)
{
width=550;
height=600;
var path;
var xPos;
var yPos;

xPos = (window.screen.width/2) - (width/2 + 10);
yPos = (window.screen.height/2) - (height/2 + 50);
var win2 = window.open(page+"?id="+id+"&table="+table+"","Window2","status=no,height="+height+",width="+width+",resizable=yes,left=" + xPos + ",top=" + yPos + ",screenX=" + xPos + ",screenY=" + yPos + ",toolbar=no,menubar=yes,scrollbars=yes,location=no,directories=no");
win2.focus();
}
function printpage() {
window.print();  
}


function gone(selectedurl,path){

var sajt;
sajt=path;

if(selectedurl=="slo")
ura=sajt;
else
if(selectedurl=="eng")
ura=sajt+"/eng/index.php";
else
if(selectedurl=="ger")
ura=sajt+"/ger";
else
if(selectedurl=="ita")
ura=sajt+"/ita";
/*else
var ura=sajt+"/"+selectedurl+"/";
*/
window.location=ura

}

function show(){
document.getElementById("zaposleni").style.display="block";
}
function hide(){
document.getElementById("zaposleni").style.display="none";
}
function showpp(url) { window.open(url,"min","toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes,resizeable=yes,width=440,height=310") }
