function menu_home_level1_over(node) {
node.parentNode.firstChild.src='images/arrow_home_selected.gif'
}

function menu_home_level1_out(node) {
node.parentNode.firstChild.src='images/arrow_home.gif'
}

function menu_home_level2_over(node) {
if (node.parentNode.childNodes[1].src != undefined) { node.parentNode.childNodes[1].src='images/arrow_home_selected.gif' }
else { node.parentNode.firstChild.src='images/arrow_home_selected.gif' }
}

function menu_home_level2_out(node) {
if (node.parentNode.childNodes[1].src != undefined) { node.parentNode.childNodes[1].src='images/arrow_home.gif' }
else { node.parentNode.firstChild.src='images/arrow_home.gif' }
}

function menu_home_level3_over(node) {
if (node.parentNode.childNodes[1].src != undefined) { node.parentNode.childNodes[1].src='images/arrow_home_selected.gif' }
else { node.parentNode.firstChild.src='images/arrow_home_selected.gif' }
}

function menu_home_level3_out(node) {
if (node.parentNode.childNodes[1].src != undefined) { node.parentNode.childNodes[1].src='images/arrow_home.gif' }
else { node.parentNode.firstChild.src='images/arrow_home.gif' }
}

function menu_over(node) {
if (node.parentNode.parentNode.firstChild.tagName != undefined) { // Mozilla, Safari false
  if (node.parentNode.parentNode.firstChild.firstChild.src != undefined) { node.parentNode.parentNode.firstChild.firstChild.src='images/arrow_selected.gif' } // Opera false
  else { node.parentNode.parentNode.firstChild.childNodes[1].src='images/arrow_selected.gif' }
}
else { node.parentNode.parentNode.childNodes[1].childNodes[1].src='images/arrow_selected.gif'}
}

function menu_out(node) {
if (node.parentNode.parentNode.firstChild.tagName != undefined) {
  if (node.parentNode.parentNode.firstChild.firstChild.src != undefined) { node.parentNode.parentNode.firstChild.firstChild.src='images/arrow.gif' }
  else { node.parentNode.parentNode.firstChild.childNodes[1].src='images/arrow.gif' }
}
else { node.parentNode.parentNode.childNodes[1].childNodes[1].src='images/arrow.gif'}
}

function tab_over(node) {
node.parentNode.className='selected'
node.parentNode.style.backgroundImage="url(images/tab_selected.gif)";
}

function tab_out(node) {
if (!window.location.href.match(node.parentNode.id)) {
node.parentNode.className='normal'
node.parentNode.style.backgroundImage="url(images/tab.gif)";
}
}

function tab_click(node) {
if (window.location.href.match("Id")) 
{
  if (window.location.href.match("&tab")) 
  {
  window.location = window.location.href.substring(0,window.location.href.indexOf("&tab")) + '&tab=' + node;
  }
  else
  {
  window.location = window.location.href + '&tab=' + node;
  }
}
}

function tab_load() {
if (window.location.href.match("tab_resitev")) { document.getElementById('tab_resitev').className = 'selected'; }
if (window.location.href.match("tab_referenca")) { document.getElementById('tab_referenca').className = 'selected'; }
if (window.location.href.match("tab_predavatelj")) { document.getElementById('tab_predavatelj').className = 'selected'; }
}