// hiLite

function hiLite(imgDocID, imgObjName, linkDescr)
{
    document.images[imgDocID].src = eval(imgObjName + ".src");
        parent.window.status = linkDescr;
}





function reDo() 
    {  
        window.location.reload();  
    } 
window.onresize = reDo; 

//Define global variables 
var timerID = null; 
var timerOn = false; 
var timecount = 10; 

// 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";  
        what ="ns4";  
        }  
        
        else if(document.all) {  
        layerRef="document.all";  
        styleSwitch=".style";  
        visibleVar="visible";  
        what ="ie4";  
        }  
        else if(document.getElementById) {  
        layerRef="document.getElementByID";  
        styleSwitch=".style";  
        visibleVar="visible";  
        what="dom1";  
        }  
        else {  
        what="none";  
        newbrowser = false;  
        } 
    check = true; 
    } 



// Toggles the layer visibility on 
function showLayer(layerName) {  
    if(check) {  
    if (what =="none") {  
    return;  
    }  
    else if (what == "dom1") {  
    document.getElementById(layerName).style.visibility="visible";  
    }  
    else {  
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');  
    }  
    }  
    else {  
    return;  
    }  
    } 
 
 

// Toggles the layer visibility off 
function hideLayer(layerName) {  
    if(check) {  
    if (what =="none") {  
    return;  
    }  
    else if (what == "dom1") {  
    document.getElementById(layerName).style.visibility="hidden";  
    }  
    else {  
    eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');  
    }  
    }  
    else {  return;  
    }  
    } 
    
function hideAll() {  
    hideLayer('educate');  
    hideLayer('support');  
    hideLayer('engage');  
    
    //Put all layers used in the nav here.  
    //Copy the hideLayer() function above.  
    
    } 


function startTime() {  
    if (timerOn == false) {  
    timerID=setTimeout( "hideAll()" , timecount);  
    timerOn = true;  
    }  
    } 


function stopTime() {  
    if (timerOn) {  
    clearTimeout(timerID);  
    timerID = null;  
    timerOn = false;  
    }  
    } 

function onLoad() {  
    init();  
    } 
    
function moveme() {
// finds the window width and height
  var myWidth = 0
  var myHeight = 0;

  if( typeof( window.innerWidth) == 'number' || window.innerWidth > 750 ) { 
  if (window.innerWidth > 750) { document.getElementById('educate').style.marginLeft = window.innerWidth/2 - 118;
  } else if (window.innerWidth < 750) {document.getElementById('educate').style.marginLeft = 266 }
    
    //Non-IE
    //myWidth = window.innerWidth;
    //myHeight = window.innerHeight;

  //if (myWidth > 750) {
  //document.getElementById('educate').style.posLeft= myWidth/2 - 109;
  //c = document.getElementById("educate");
  //c.style.p = "left: 256px";
  //alert("hello");
  //} else if (myWidth < 750) { document.getElementById('educate').style.posLeft = 265; };


  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;

  if (myWidth > 750) {
  document.getElementById('educate').style.posLeft= myWidth/2 - 209;
  } else if (myWidth < 750) { document.getElementById('educate').style.posLeft = 565; };


  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;

  if (myWidth > 750) {
  document.getElementById('educate').style.posLeft= myWidth/2 - 209;
  } else if (myWidth < 750) { document.getElementById('educate').style.posLeft = 565; };


  }
// if statement that for each menu
  
}
    
function moveEducating() {
// finds the window width and height
  var myWidth = 0
  var myHeight = 0;

  if( typeof( window.innerWidth) == 'number' || window.innerWidth > 750 ) { 
  if (window.innerWidth > 750) { document.getElementById('educate').style.marginLeft = window.innerWidth/2 - 350;
  } else if (window.innerWidth < 750) {document.getElementById('educate').style.marginLeft = 5 }
    
    //Non-IE
    //myWidth = window.innerWidth;
    //myHeight = window.innerHeight;

  //if (myWidth > 750) {
  //document.getElementById('educate').style.posLeft= myWidth/2 - 350;
  //c = document.getElementById("educate");
  //c.style.p = "left: 256px";
  //alert("hello");
  //} else if (myWidth < 750) { document.getElementById('educate').style.posLeft = 5; };


  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
	
  if (myWidth > 750) {
  document.getElementById('educate').style.posLeft= myWidth/2 - 350;
  } else if (myWidth < 750) { document.getElementById('educate').style.posLeft = 5; };


  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;

  if (myWidth > 750) {
  document.getElementById('educate').style.posLeft= myWidth/2 - 350;
  } else if (myWidth < 750) { document.getElementById('educate').style.posLeft = 5; };


  }
// if statement that for each menu
  
}
    

function moveSupporting() {
// finds the window width and height
  var myWidth = 0
  var myHeight = 0;

  if( typeof( window.innerWidth) == 'number' || window.innerWidth > 750 ) { 
  if (window.innerWidth > 750) { document.getElementById('support').style.marginLeft = window.innerWidth/2 - 95;
  } else if (window.innerWidth < 750) {document.getElementById('support').style.marginLeft = 256 }
    


  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;

  if (myWidth > 750) {
  document.getElementById('support').style.posLeft= myWidth/2 - 95;
  } else if (myWidth < 750) { document.getElementById('support').style.posLeft = 256; };


  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;

  if (myWidth > 750) {
  document.getElementById('support').style.posLeft= myWidth/2 - 95;
  } else if (myWidth < 750) { document.getElementById('support').style.posLeft = 256; };


  }
// if statement that for each menu
  
}	    

function moveEngaging() {
// finds the window width and height
  var myWidth = 0
  var myHeight = 0;

  if( typeof( window.innerWidth) == 'number' || window.innerWidth > 750 ) { 
  if (window.innerWidth > 750) { document.getElementById('engage').style.marginLeft = window.innerWidth/2 + 160;
  } else if (window.innerWidth < 750) {document.getElementById('engage').style.marginLeft = 530 }
    
    //Non-IE
    //myWidth = window.innerWidth;
    //myHeight = window.innerHeight;

  //if (myWidth > 750) {
  //document.getElementById('engage').style.posLeft= myWidth/2 + 160;
  //c = document.getElementById("engage");
  //c.style.p = "left: 256px";
  //alert("hello");
  //} else if (myWidth < 750) { document.getElementById('engage').style.posLeft = 350; };


  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;

  if (myWidth > 750) {
  document.getElementById('engage').style.posLeft= myWidth/2 + 160;
  } else if (myWidth < 750) { document.getElementById('engage').style.posLeft = 530; };


  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;

  if (myWidth > 750) {
  document.getElementById('engage').style.posLeft= myWidth/2 + 160;
  } else if (myWidth < 750) { document.getElementById('engage').style.posLeft = 530; };


  }
// if statement that for each menu
  
}	    
