rollImg = /* navX = navY = */ active = "";
/* sMenuOn = */ flasher = loadState = false;
allDDObjects = "leadDD,litbuilderDD,fulfillDD,surveyDD"
/* sMenuVar="about,location,news,events,contact,jobs"
sMenu = sMenuVar.split(",");
*/


/* left menu item functions */
  function lmenuRoll(itemID,state) {
    if (itemID == lmenu_active) {
      return false;
    } else {
      clsName = (state == "over") ? "lmenu-hover" : "lmenu-item";
      document.getElementById(itemID).className = clsName
    }
  }
  function lmenuSet(itemID) {
    if (itemID > "") {
      clsName = "lmenu-hover";
      document.getElementById(itemID).className = clsName
    }
  }

/* semi-generic image rollover function -- assumes standard naming convention */
function imgRoll(itemID,state) {
  if (itemID != active) {
    if (state=='over') {
      rollImg = itemID;
      rollSrc = root + "images/"+itemID+"_on.gif";
    } else {
      rollSrc = root + "images/"+itemID+".gif";
    }
    document.images[itemID].src = rollSrc
  }
}

function newWindow(file,name,width,height,center,otherSet) {
  var over = false;
  if (center == "yes") {
    LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
    position = ',top='+parseInt(TopPosition)+',left='+parseInt(LeftPosition) ;
  }
  if (height > screen.height-25) { height = screen.height - 55; width = width + 20; over = true;}
  if (width > screen.width) { width = screen.width-10; height = height + 20; over = true; }
  if (over) { otherSet = otherSet + ",scrollbars=yes"; }
  settings = 'width='+width+',height='+height + position + otherSet;
  if (name == "") name = "unnamed";
  window.open(file,name,settings);
}

function surfTo(form) {
  var myindex  = form.dest.selectedIndex 
  var passed   = form.dest.options[myindex].value 
  var acomma   = passed.indexOf(",") 
  var chars    = passed.length 
  var filename = passed.substring(0,acomma) 
  var where    = passed.substring(acomma+1,chars) 
  if (filename != "") { document.location=filename; }
}