alturl = 'EMPRISETECHNOLOGIES.COM';
caller = "'"+self.location+"'";
ucaller = caller.toUpperCase();
testurl = ucaller.indexOf(alturl);
if (testurl > 0)
 {
 content = caller.substring(testurl+alturl.length,caller.length-1);
 location.replace('http://www.emprisetech.com'+content);
 }

function newImage(arg) {
 if (document.images) {
  rslt = new Image();
  rslt.src = arg;
  return rslt;
 }
}

function changeImages() {
 if (document.images && (preloadFlag == true)) {
  for (var i=0; i<changeImages.arguments.length; i+=2) {
   document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
  }
 }
}

var preloadFlag = false;
function preloadImages() {
 if (document.images) {
  news_02_news_01_over = newImage("images/news_02-news_01_over.gif");
  preloadFlag = true;
 }
}

function MM_showHideLayers() { //v2.0
  var i, visStr, args, theObj, depthValue;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr = args[i+2];
 depthValue = 1;
 if (visStr == 'show') depthValue = 10;
 if ((depthValue == 10) && (args[i].indexOf("news") > 0)) depthValue = 11;
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) {
      theObj.visibility = visStr;
    theObj.zIndex = depthValue;
   }
    } else if (document.all != null) { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) {
    theObj.style.visibility = visStr;
  theObj.style.zIndex = depthValue;
   }
   }
  }
}

function swapContent(layerHide, layerShow) {
  MM_showHideLayers('document.layers[\'' + layerHide + '\']','document.all[\'' + layerHide + '\']','hide');
  MM_showHideLayers('document.layers[\'' + layerShow + '\']','document.all[\'' + layerShow + '\']','show');
}

function popup(loc,h,w,tname)
 {
 h = 400;
 w = 550;
 window.open(loc,tname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h);
 }

function realpopup(loc,h,w,tname)
 {
 window.open(loc,tname,'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h);
 }


function init(navimg, navimgover, navimgon, len, wid)
 {
 eval (navimg+" = new Image("+len+","+wid+")");
 eval (navimg+".src = './images/"+navimg+".gif'");
 eval (navimgover+" = new Image("+len+","+wid+")");
 eval (navimgover+".src = './images/"+navimgover+".gif'");
 if (navimgon != '')
  {
  eval (navimgon+" = new Image("+len+","+wid+")");
  eval (navimgon+".src = './images/"+navimgon+".gif'");
  }
 eval (navimgover+"w = new Image()");
 return true;
 }

function rollover(place,imagename,stat)
 {
 document[place].src = eval(imagename+".src");
 if (stat == 'over')
  {window.status = eval(imagename + 'w');}
 else
  {window.status='Document: Done';}
 }

function layerollover(thislayer,place,imagename,stat)
 {
 if (navigator.appName == 'Netscape')
  {document[thislayer].document[place].src = eval(imagename+".src");}
 else
  {document.all[place].src = eval(imagename+".src");}
 if (stat == 'over')
  {window.status = eval(imagename + 'w');}
 else
  {window.status='Document: Done';}
 }
