var oMenuGroup='';
function onloaded(){
	<!--
	-->
}
<!--
function delayer(){
	window.location = "index.php?section=1";
}
//-->
function initMarges(){
var winW = 630, winH = 460;
  var x = 10;
  var y = 10;
  if (parseInt(navigator.appVersion)>3) {
    if (navigator.appName=="Netscape") {
      winW = window.innerWidth;
      winH = window.innerHeight;
    }
    if (navigator.appName.indexOf("Microsoft")!=-1) {
      winW = document.body.offsetWidth;
      winH = document.body.offsetHeight;
    }
  }  
  if(winH > 600){
	var extract = winH - 600;
	var mult = extract/5;
	x = Math.round(mult);	
  }
  if(document.getElementById("section_top_spacer")){
    var oTop = document.getElementById("section_top_spacer");  
    var heigth= x +'px';
    oTop.style.height= heigth;
  }
}
function initMenu(){ 
    var selNode = document.getElementById('activechild'); 
    if(selNode) {
	var selLevel = selNode.parentNode.parentNode; 
      while(selLevel.nodeName != "LI"){ 
          selLevel = prevNode(selLevel);                                  
      } 
      if(selLevel != null){ 
          if(selLevel.firstChild){ 
              selMenuAnchor = selLevel.firstChild; 
              var str = selMenuAnchor.firstChild.nodeValue; 
              oMenuGroup= str.replace(/\s/g,""); 
              selMenuAnchor.setAttribute('id','active');                         
           } 
      }
	//setLastChildMargin(selNode);
     } 
} 

// return previous node in document order 
function prevNode(node) { 
    if (!node) return null; 
    if (node.previousSibling) { 
       return node.previousSibling; 
    } 
    return node.parentNode; 
} 
// return previous node in document order 
function nextNode(node) { 
    if (!node) return null; 
    if (node.nextSibling) { 
       return node.nextSibling; 
    } 
    return node.parentNode; 
} 

function setLastChildMargin(aChildNode){
	//while(selLevel.nodeName != "LI"){ 
      //   selLevel = nextNode(selLevel);                                  
      //} 
}

function preparePrint(){
	if(document.getElementById("content")){
		var printArea = document.getElementById("content").innerHTML;
		if(document.getElementById("printView")){
			document.getElementById("printView").innerHTML=printArea;				
			window.print();
		}

	}
}



