// 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('hollywood');  
    hideLayer('safety');  
    hideLayer('stuntriggers');  
    hideLayer('bungeemasters');  
    hideLayer('gallery');  
    hideLayer('press');  
    
    //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 gallery()
{
// finds the window width and height
  var myWidth = 0
  var myHeight = 0;

  if( typeof(window.innerWidth) == 'number') { 
 	 if (window.innerWidth > 840) { document.getElementById('gallery').style.marginLeft = window.innerWidth/2 - 428;
 	 } else if (window.innerWidth < 840) {document.getElementById('gallery').style.marginLeft = 0 }
    
  } 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 > 840) {
  document.getElementById('gallery').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('gallery').style.posLeft = 182; };


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

  if (myWidth > 840) {
  document.getElementById('gallery').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('gallery').style.posLeft = 182; };


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

  if( typeof(window.innerWidth) == 'number') { 
 	 if (window.innerWidth > 840) { document.getElementById('press').style.marginLeft = window.innerWidth/2 - 428;
 	 } else if (window.innerWidth < 840) {document.getElementById('press').style.marginLeft = 0 }
    
  } 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 > 840) {
  document.getElementById('press').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('press').style.posLeft = 182; };


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

  if (myWidth > 840) {
  document.getElementById('press').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('press').style.posLeft = 182; };


  }
// if statement that for each menu
  
}


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

  if( typeof(window.innerWidth) == 'number') { 
 	 if (window.innerWidth > 840) { document.getElementById('stuntriggers').style.marginLeft = window.innerWidth/2 - 428;
 	 } else if (window.innerWidth < 840) {document.getElementById('stuntriggers').style.marginLeft = 0 }
    
  } 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 > 840) {
  document.getElementById('stuntriggers').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('stuntriggers').style.posLeft = 182; };


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

  if (myWidth > 840) {
  document.getElementById('stuntriggers').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('stuntriggers').style.posLeft = 182; };


  }
// if statement that for each menu
  
}

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

  if( typeof(window.innerWidth) == 'number') { 
 	 if (window.innerWidth > 840) { document.getElementById('bungeemasters').style.marginLeft = window.innerWidth/2 - 428;
 	 } else if (window.innerWidth < 840) {document.getElementById('bungeemasters').style.marginLeft = 0 }
    
  } 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 > 840) {
  document.getElementById('bungeemasters').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('bungeemasters').style.posLeft = 182; };


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

  if (myWidth > 840) {
  document.getElementById('bungeemasters').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('bungeemasters').style.posLeft = 182; };


  }
// if statement that for each menu
  
}


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

  if( typeof(window.innerWidth) == 'number') { 
 	 if (window.innerWidth > 840) { document.getElementById('safety').style.marginLeft = window.innerWidth/2 - 428;
 	 } else if (window.innerWidth < 840) {document.getElementById('safety').style.marginLeft = 0 }
    
  } 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 > 840) {
  document.getElementById('safety').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('safety').style.posLeft = 182; };


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

  if (myWidth > 840) {
  document.getElementById('safety').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('safety').style.posLeft = 182; };


  }
// if statement that for each menu
  
}


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

  if( typeof(window.innerWidth) == 'number') { 
 	 if (window.innerWidth > 840) { document.getElementById('hollywood').style.marginLeft = window.innerWidth/2 - 428;
 	 } else if (window.innerWidth < 840) {document.getElementById('hollywood').style.marginLeft = 0 }
    
  } 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 > 840) {
  document.getElementById('hollywood').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('hollywood').style.posLeft = 182; };


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

  if (myWidth > 840) {
  document.getElementById('hollywood').style.posLeft= myWidth/2 - 238;
  } else if (myWidth < 840) { document.getElementById('hollywood').style.posLeft = 182; };


  }
// if statement that for each menu
  
}