var helpWin;
function openWindow(sHelpPage, sAttributes) { 
if (helpWin != null) { if (helpWin.closed == false) { helpWin.close(); } }
helpWin = window.open(sHelpPage,'',sAttributes); 
}
function closeWindows() { 
if (helpWin != null) { if (helpWin.closed == false) { helpWin.close(); } }
}

function loadimages() {
   var arImageSrc = new Array (
        "nav_top_home_over",
        "nav_top_home",
        "nav_top_help_over",
		"nav_top_help",
        "nav_top_contact_over",
        "nav_top_contact"
    )

    var arImageList = new Array ();

    for (i=0; i<5;i++) {
        arImageList[i] = new Image();
        arImageList[i].src = "images/" + arImageSrc[i]  + ".gif";
    }
}
function rollOver(imName,newImage) {
   document.images[imName].src = newImage;
}


function sendMessage() {
  // SET MESSAGE VALUES
  var name = "sugars";
  var place = "fas.usda"; 
  var type = ".gov";
  var to = name + "@" + place + type;

  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" + to;

  // POP UP EMAIL MESSAGE WINDOW
  window.location = doc;
}
