function getElementsByClassName(className, tag, elm){
var testClass = new RegExp("(^|\\s)" + className + "(\\s|$)");
var tag = tag || "*";
var elm = elm || document;
var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag);
var returnElements = [];
var current;
var length = elements.length;
for(var i=0;i<length;i++){
    current=elements[i];
    if(testClass.test(current.className)){
        returnElements.push(current);}}
return returnElements;
}
function init_nav(){
// collect navigation items 
divhoogte()
var items = getElementsByClassName("navigation_item","li");
// loop through items and set the mouseover and mouseout
// functionality on each item, and also on the target
// child elements (this to stop the menu from collapsing
// on title mouseout)
var current;
for(i=0;i<items.length;i++){
    current = items[i];
    // set mouseover functionality
    current.onmouseover = function(){
        var children = this.childNodes;
        // loop through children
        for(j=0;j <children.length;j++){
            var child = children[j];
            // if this child is a <ul> element,
            // show it, and bind functionality
            if(child.tagName=="UL"){
                child.style.display = "block";
                child.onmouseover=function(){this.style.display="block";}
                child.onmouseout=function(){this.style.display="none";}
            }
        }
    }
    current.onmouseout=function(){
    var children=this.childNodes;
    for(j=0;j<children.length;j++){
        var child=children[j];
        if(child.tagName=="UL")
            child.style.display="none";
    }
   }
  }
}
function divhoogte()
{ var divh = 550;
if (screen.width==800||screen.height==600) 
	divh=350;
if (screen.width==1024||screen.height==768) 
	divh=530;
if (screen.width==1920||screen.height==1200) 
{	
	divh=xClientHeight();
	if(divh>550)
	divh=divh-175;
	else
	divh =700;
}
if (screen.width==1280||screen.height==1024)
	divh=730;
var target = xGetElementById('contentFrame');
	divh=xClientHeight();
	divh=divh-175;
xHeight(target,divh);
}



