var popWin = null
function openPopWin(url, w, h, f, l, t) {
  popup(url, w, h);
}
function popup(url, w, h) {
  popdown()
  popWin = window.open(url, "popWin", "width=" + w + ",height=" + h)
}
function popdown() {
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >= 4)
    if (popWin != null)
      if (!popWin.closed)
        popWin.close() 
}


function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}
/* Disabled per Karen's request  3/23/06
if (document.images) {
  home_over_09 = newImage("images/home_over_09.gif");
  home_over_10 = newImage("images/home_over_10.gif");
  home_over_11 = newImage("images/home_over_11.gif");
  home_over_12 = newImage("images/home_over_12.gif");
  home_over_13 = newImage("images/home_over_13.gif");
  home_over_14 = newImage("images/home_over_14.gif");
}

function swap() {
  if (document.images) {
     for (var i=0; i<swap.arguments.length; i+=2) {
      document[swap.arguments[i]].src = swap.arguments[i+1];
    }
  }
}
*/

function mailpage() {
  mail_str ="mailto:?subject=www.foodlabels.com -- info for food labels";
  mail_str +="&body=I thought you might be interested in Food Consulting Company's webpage for nutrition, labeling, and regulatory. ";
  mail_str +="You can view it at:  " + location.href;
  location.href = mail_str;
}

var bookmarkurl="http://www.foodlabels.com/"
var bookmarktitle="foodlabels.com - Nutritional Analysis and Food Labeling Services"
function addbookmark() {
  if (document.all)
    window.external.AddFavorite(bookmarkurl,bookmarktitle)
  else
    alert("Press Ctrl-D to bookmark this page.");
}



