var NS6 = (document.getElementById && !document.all)?1:0;
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var documentLoaded = 0;
var timeName = 'A';

function timer() {
	clearTimeout(timeName);
	    if  (IE4 || NS4 || NS6) {
	    	eval('timeName=setTimeout("pulldownsOff()",8500)');
	    }
}


function rollOn(target,pic,container) {
	  if (IE4 || NS6) { eval('document.' + target + '.src="../images/' + pic + 'hot.gif"'); }
          if (NS4) { eval('document.' + container + '.document.' + target + '.src="../images/' + pic + 'hot.gif"'); }
}
function rollOnRt(target,pic,container) {
	  if (IE4 || NS6) { eval('document.' + target + '.src="images/' + pic + 'hot.gif"'); }
          if (NS4) { eval('document.' + container + '.document.' + target + '.src="images/' + pic + 'hot.gif"'); }
}
function rollOffRt(target,pic,container) {

var pos = location.href.indexOf(target);
var notHome = 0;

if (((location.href.indexOf("about")) > 0) ||
   ((location.href.indexOf("products")) > 0) ||
   ((location.href.indexOf("service")) > 0) ||
   ((location.href.indexOf("customers")) > 0) ||
   ((location.href.indexOf("careers")) > 0) ||
   ((location.href.indexOf("salesreps")) > 0) ||
   ((location.href.indexOf("news")) > 0) )
   {notHome = 1;}
if (pos == -1) {
   if ((target == "home") && (notHome == 0)) {return;}
   else {
      if (IE4 || NS6) { eval('document.' + target + '.src="images/' + pic + '.gif"'); }
      if (NS4) { eval('document.' + container + '.document.' + target + '.src="images/' + pic + '.gif"'); }
   	} }
}
function rollOff(target,pic,container) {

var pos = location.href.indexOf(target);
var notHome = 0;

if (((location.href.indexOf("about")) > 0) ||
   ((location.href.indexOf("products")) > 0) ||
   ((location.href.indexOf("service")) > 0) ||
   ((location.href.indexOf("customers")) > 0) ||
   ((location.href.indexOf("careers")) > 0) ||
   ((location.href.indexOf("salesreps")) > 0) ||
   ((location.href.indexOf("news")) > 0) )
   {notHome = 1;}
if (pos == -1) {
   if ((target == "home") && (notHome == 0)) {return;}
   else {
      if (IE4 || NS6) { eval('document.' + target + '.src="../images/' + pic + '.gif"'); }
      if (NS4) { eval('document.' + container + '.document.' + target + '.src="../images/' + pic + '.gif"'); }
   	} }
}

function rollOver(target,pic,container) {
	  if (IE4 || NS6) { eval('document.' + target + '.src="../images/' + pic + '"'); }
          if (NS4) { eval('document.' + container + '.document.' + target + '.src="../images/' + pic + '"'); }
}
function rollOverRt(target,pic,container) {
	  if (IE4 || NS6) { eval('document.' + target + '.src="images/' + pic + '"'); }
          if (NS4) { eval('document.' + container + '.document.' + target + '.src="images/' + pic + '"'); }
}


function styleOn(sTarget) {
  if (documentLoaded) { 
          if (IE4) { eval(sTarget+'.style.visibility="visible"'); }
          if (NS4) { eval('document.'+sTarget+'.visibility="visible"'); }
  	  if (NS6) { document.getElementById(sTarget).style.visibility="visible"; }
  } }

function timeStyleOn(sTarget) {
  if (documentLoaded) { 
	  pulldownsOff();
          if (IE4) { eval(sTarget+'.style.visibility="visible"'); }
          if (NS4) { eval('document.'+sTarget+'.visibility="visible"'); }
  	  if (NS6) { document.getElementById(sTarget).style.visibility="visible"; }
  timer();
  } }

function styleOff(sTarget) {
  if (documentLoaded) {
          if (IE4) { eval(sTarget+'.style.visibility="hidden"'); }
          if (NS4) { eval('document.'+sTarget+'.visibility="hidden"'); }
  	  if (NS6) { document.getElementById(sTarget).style.visibility="hidden"; }
  } }
function t2MenuOff() {
	pulldownsOff();
	styleOff('subnavabout');
	styleOff('subnavproducts');
	styleOff('subnavpress');
	styleOff('subnavservice');
	styleOff('subnavcareers');
	styleOff('subnavreps');
}
function pulldownsOff() {
	styleOff('productpulldown');
	styleOff('datapulldown');
}
