// JavaScript Document
//Define global variables 
var timerID = null; 
var timerOn = false; 
var timecount = 1000; 
// Change this to the time delay that you desire 
var what = null; 
var newbrowser = true; 
var check = false; 
function init() {  
if (document.layers) {  
layerRef="document.layers";  
styleSwitch="";  
visibleVar="show";  
screenSize = window.innerWidth;  
what ="ns4";  
}  
else if(document.all) {  
layerRef="document.all";  
styleSwitch=".style";  
visibleVar="block";  
screenSize = document.body.clientWidth + 18;  
what ="ie4";  
} 
 else if(document.getElementById) { 
 layerRef="document.getElementByID";  
 styleSwitch=".style";  
 visibleVar="block";  
 what="dom1";  
 }  
 else {  
 what="none";  
 newbrowser = false;  
 } 
 check = true; 
 } 
 // Toggles the layer display on
function showLayer(layerName) { 
 if(check) {  
 if (what =="none") {  
 return;  
 }  
 else if (what == "dom1") {  
 document.getElementById(layerName).style.display="block";  
 }  
 else {  
 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');  
 }  
 }  
 else {  
 return;  
 }  
 } 
// Toggles the layer display off
 function hideLayer(layerName) { 
  if(check) {  if (what =="none") {  
  return;  
  }  
  else if (what == "dom1") {  
  document.getElementById(layerName).style.display="none";  
  }  
  else {  
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="none"');  
  }  
  }  
  else {  
  return;  
  }  
  } 
function hideAll() { 
 hideLayer('subOverCoefficient');  
 hideLayer('subOverOns');  
 hideLayer('subBusinessManagement');  
 hideLayer('subCoactiveCoaching');  
 hideLayer('subTraining');
 hideLayer('subAssessments');
 hideLayer('subOnzeToolkit');  
  
//Put all layers used in the nav here.  
//Copy the hideLayer() function above.  
}
function change(id, newClass) {
identity=document.getElementById(id);
identity.className=newClass;
}
function startTime() { 
 if (timerOn == false) {  
 timerID=setTimeout( "hideAll()" , timecount);  
 timerOn = true;  
 }  
 }
function stopTime() { 
 if (timerOn) {  
 clearTimeout(timerID);  
 timerID = null;  
 timerOn = false;  
 }  
 }
function onLoad() { 
 init();  
 }