
function over(numb,slika1,t) {
eval('document.gumb'+numb+'.src = "images/'+slika1+'"');
  if (t == 't') showtooltip(numb);
}

function out(numb,slika,t) {
eval('document.gumb'+numb+'.src = "images/'+slika+'"');
  if (t == 't') hidetooltip(numb);
}


function swapimg(name1,slika) {
document['gumb'+name1].src= slika;
}

function slika(kera,s,v) {
window.open('slika.asp?id='+kera+'&sirina='+s+'&visina='+v,'','width='+s+',height='+v+'');
}

function showtooltip(numb) {
var lyid = "tooltip"+numb;
if (document.getElementById && document.getElementById(lyid) != null)
node = document.getElementById(lyid).style.visibility='visible';
  else if (document.layers && document.layers[lyid] != null)
  document.layers[lyid].visibility = 'visible';
    else if (document.all)
    document.all[lyid].style.visibility = 'visible';
}

function hidetooltip(numb) {
var lyid = "tooltip"+numb;
if (document.getElementById && document.getElementById(lyid) != null)
node = document.getElementById(lyid).style.visibility='hidden';
  else if (document.layers && document.layers[lyid] != null)
  document.layers[lyid].visibility = 'hidden';
    else if (document.all)
    document.all[lyid].style.visibility = 'hidden';
}

function odpri(page) {
popupokno = window.open(page,'popup','width=400,height=300');
}

//funkcije za top gumb
function writetop(st) {
if (st == 204 || st == 401) document.writeln('<a href=\"#top\" onMouseOver=\"topover('+st+')\" onMouseOut=\"topout('+st+')\"><img src=\"images/top.gif\" name=\"topgumb'+st+'\" width=\"85\" height=\"12\" alt=\"\" border=\"0\" /></a><br />')
  else
  document.writeln('<br /><img src=\"images/transdot.gif\" width=\"1\" height=\"7\" alt=\"\" border=\"0\" /><br /><a href=\"#top\" onMouseOver=\"topover('+st+')\" onMouseOut=\"topout('+st+')\"><img src=\"images/top.gif\" name=\"topgumb'+st+'\" width=\"85\" height=\"12\" alt=\"\" border=\"0\" /></a><br />')
}

function topover(st) {
document['topgumb'+st].src = 'images/topi.gif';
}

function topout(st) {
document['topgumb'+st].src = 'images/top.gif';
}

function showLayer(lyid) {
 if (document.getElementById && document.getElementById(lyid) != null)
    node = document.getElementById(lyid).style.visibility='visible';
     else if (document.layers && document.layers[lyid] != null)
        document.layers[lyid].visibility = 'visible';
      else if (document.all)
         document.all[lyid].style.visibility = 'visible';
}
 
function hideLayer(lyid) {
 if (document.getElementById && document.getElementById(lyid) != null)
     node = document.getElementById(lyid).style.visibility='hidden';
     else if (document.layers && document.layers[lyid] != null)
        document.layers[lyid].visibility = 'hidden';
      else if (document.all)
         document.all[lyid].style.visibility = 'hidden';
}

function closenews() {
frompage();
showLayer('div02');
}

function opennews(num) {
var mjau = 'novica' + num;
closenews(mjau);
hideLayer('div02');
showLayer(mjau);
}