     function go(form) {
       window.location = form.range.options[form.range.selectedIndex].value;
     }
function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

function bookmark(title)
 {

   var urlAddress = location.href;
   var pageName = title;
   var browser = navigator.appName;

  if (browser == 'Microsoft Internet Explorer')
  {
     window.external.AddFavorite(urlAddress,pageName)
  }
  else if (browser == 'Netscape')
  { 
     alert("Your browser does not support this feature.  Use CTRL-D to bookmark this page");
  }
  else
  { 
   alert("Your browser does not support this feature.");
  }
 }
 
var quotes = new Array()

quotes[0] = '/images/JCquote.jpg'
quotes[1] = '/images/JKquote.jpg'
quotes[2] = '/images/MFquote.jpg'
quotes[3] = '/images/ZINGquote.jpg'
quotes[4] = '/images/SSquote.jpg'
quotes[5] = '/images/SMquote.jpg'
quotes[6] = '/images/KCSCquote.jpg'

var j = 0
var p = quotes.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = quotes[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
  document.write('<img src="'+quotes[whichImage]+'" width="400">');
}

function nmi() {
  alert('This item requires more information.');
}

// blurbs for home page
heroBlurbs = {
  1 : {
    title:"They're worth their weight in gold.",
    blurb:"\"Zingerman's Mail Order has gone from barely pushing 2 million in sales to surging past 8 million in just six years thanks to the marketing plans and services of 5th Food Group.\"<br /><br /> - Mo Frechette<br />Partner<br />Zingerman's Mail Order",
    link:"/catalog_marketing"
  },
  2 : {
    title:'Vital Information For Your Business',
    blurb:'"Increased sales was a given - the real bonus was time savings and how easy they made this for me. 5th Food Group lives and breathes catalog food marketing. Every communication is full of vital information to my business."<br /><br /> - Alexa Ricketts, Director of Catalog Marketing<br />',
    link:'/update'
  },
  3 : {
    title:'100% Guaranteed Satisfaction',
    blurb:'"Thanks 5th Food Group - this is MUCH better than the system we were using to date. I have not seen the orders come in at this rate in some time now. THANK YOU for your hard work."<br /><br /> - John Doyle, Owner<br /><br />',
    link:'/quickstart'
  },
  4 : {
    title:'Take The Guesswork Out Of Success',
    blurb:'"Choosing to work with 5th Food Group on our catalog and direct-mail marketing strategies has proven to be one of the best, most cost-effective decisions we’ve made since we established Vital Choice in 2001. Their counsel, based in their broad experience and deep command of analytics, has helped us thrive, even through the Great Recession. Our catalogs and other direct-mail materials now cost much less but bring us far greater returns – and even win awards from others in our industry."<br /> - Randy Hartnell, Founder & President<br />',
    link:'/catalog_marketing'
  }
};

// toggle the hero that was clicked/requested
function toggleHero(num) {
  cancelHero(num); // untrigger any triggered hero

  var button = (document.getElementById('hero'+num) != null && typeof document.getElementById('hero'+num) != 'undefined') ? document.getElementById('hero'+num) : null;
  if (button) {
    button.className = 'hero_button_active';
    var title = (document.getElementById('hero_headline') != null && typeof document.getElementById('hero_headline') != 'undefined') ? document.getElementById('hero_headline') : null;
    var blurb = (document.getElementById('hero_blurb') != null && typeof document.getElementById('hero_blurb') != 'undefined') ? document.getElementById('hero_blurb') : null;
    var link = (document.getElementById('hero_link') != null && typeof document.getElementById('hero_link') != 'undefined') ? document.getElementById('hero_link') : null;
    var home_hero = (document.getElementById('home_hero') != null && typeof document.getElementById('home_hero') != 'undefined') ? document.getElementById('home_hero') : null;
    if (title && typeof heroBlurbs[num].title != 'undefined') {
      title.innerHTML = heroBlurbs[num].title;
      blurb.innerHTML = heroBlurbs[num].blurb;
      link.href = heroBlurbs[num].link;
      home_hero.className = 'hero'+num;
    }
  }
}

// cancel any hero that isn't the one requested
function cancelHero(num) {
  var heroes = 4;
  for (var i=1;i<=heroes;i++) {
    var button = (document.getElementById('hero'+i) != null && typeof document.getElementById('hero'+i) != 'undefined') ? document.getElementById('hero'+i) : null;
    if (button && i != num) {
      button.className = 'hero_button';
    }
  }
}

// loop through the hero items on the home page:
var heroTimer = 0;
function heroLoop(i) {
  toggleHero(i);

  if (i == 4) {
    i = 0;
  }

  i++;
  heroTimer = setTimeout('heroLoop('+i+')',5000);
}

window.onload = heroLoop(1);

function blank() {
}
