<!--
  // this function is need to work around 
  // a bug in IE related to element attributes
  function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  }   

 function stripe(id) {

    // the flag we'll use to keep track of 
    // whether the current row is odd or even
    var even = false;
  
    // if arguments are provided to specify the colours
    // of the even & odd rows, then use the them;
    // otherwise use the following defaults:
    var evenColor = arguments[1] ? arguments[1] : "#fff";
    var oddColor = arguments[2] ? arguments[2] : "#eee";
    var evenClass = 'even';
    var oddClass = 'odd';
    var ruledClass = 'ruled';
  
    // obtain a reference to the desired table
    // if no such table exists, abort
    var table = document.getElementById(id);
    if (! table) { return; }
    
    // by definition, tables can have more than one tbody
    // element, so we'll have to get the list of child
    // &lt;tbody&gt;s 
    var tbodies = table.getElementsByTagName("tbody");

    // and iterate through them...
    for (var h = 0; h < tbodies.length; h++) {
    
     // find all the &lt;tr&gt; elements... 
      var trs = tbodies[h].getElementsByTagName("tr");
      
      // ... and iterate through them
      for (var i = 0; i < trs.length; i++) {
				
				if (even){
					trs[i].onmouseover=function()
       		{
	       		this.className=ruledClass;return false
       		}
       		trs[i].onmouseout=function()
       		{       						
       			this.className=evenClass;return false
       		}
					trs[i].className = evenClass;
				}else{
					trs[i].onmouseover=function()
       		{
	       		this.className=ruledClass;return false
       		}
       		trs[i].onmouseout=function()
       		{       						
       			this.className=oddClass;return false
       		}
					trs[i].className = oddClass;
				}	
        // flip from odd to even, or vice-versa
        even =  ! even;
      }
    }
  }    	
  	
  	startList = function() {
				if (document.all&&document.getElementById) {
					navRoot = document.getElementById("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", "");
   						}
   					}
  				}
 				}
			}
			
			startListClick = function() {
				if (document.getElementById) {
					navRoot = document.getElementById("navLeft");
					for (j=0; j<navRoot.childNodes.length; j++){
						node = navRoot.childNodes[j];						
						if (node.nodeName=="LI") {																					
							node.onclick=function(){
								if (this.className=="on"){
									this.className="";
								}else{
									this.className="on";
								}								
							}							
						}
					}
				}
			}			
  function DoNav(theUrl){
		document.location.href = theUrl;
	}
	
	function DoNavNew(theUrl,callWidth,callHeight){
		var width;
		var height;
		if ( callWidth ) {
			width = callWidth;
		}else{
			width = 775;
		}
		if ( callHeight ) {
			height = callHeight;
		}else{
			height = screen.height - 100;
		}		
		x=window.open( theUrl, 'transWindow', 'left=30,top=30,resizeable=yes,status=no,titlebar=no,scrollbars=yes,fullscreen=no,height='+height+',width='+width+',');
		// bring vinduet i front
		x.focus();		
	}
	
	function changeClassName(theElement,classname) {		
		theElement.className=classname;
	}
  
  
// -->

