//***   menus   ***

//main menu
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("h_nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

//popup window
function openNewWindow(URLtoOpen, windowName, windowFeatures){
	newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}

//companies links scrolling
//parameters
var UpdateInterval = 20;
var PixelPerInterval = 5;
var scorllerInterval;

//functions
function start_scroll_down() {
	scorllerInterval = setInterval(scroll_down, UpdateInterval);
}

function scroll_down() {
	document.getElementById('companies').scrollTop -= PixelPerInterval;
}

function start_scroll_up() {
	scorllerInterval = setInterval(scroll_up, UpdateInterval);
}

function scroll_up() {
	document.getElementById('companies').scrollTop += PixelPerInterval;
}

function stop_scrolling() {
	clearInterval(scorllerInterval);
}