/*
	Rollover Javascript for changing multiple images on NaturalGardening.com website
	
	Author: Richard Luck - DiMax.com (2002)
	License: GPL - Feel free to use this on your site ;)
	
	$Id: rollover.js,v 1.1.1.1 2004/02/29 08:24:24 pifmag Exp $	
*/
// 2009-09-28 - changing to be text based
var text = {
    plant: 'peruse our selection of certified organic vegetable, flower, and herb seedlings',
    veg:    'see our complete selection of certified organic and untreated vegetable seeds',
    herb:   'see our complete selection of certified organic and untreated herb seeds', 
    flower: 'see our complete selection of certified organic and untreated flower seeds', 
    drip:   'let us help you design your drip irrigation system this season', 
    wild:   'we have an excellent selection of b ulk wildflower seeds', 
    pest:   'natural solutions to your pest control and fertilizer needs',
    tools:  'look here for unusual tools, clothing, and greenhouses'
    }  
    
function rollOff(imgName) {
  document.desc.src = eval("desc_off.src");
  document[imgName].src = eval([imgName] + "_off.src");
}
// onmouseover - display the rollover images
function rollOn(imgName) {
  document.desc.src = eval([imgName] + "_desc_on.src");
  document[imgName].src = eval([imgName] + "_on.src");
}

// handle mouseover but by changing the text in the box instead of swapping images
function roll_on(type) {
    $('roll_desc').update(text[type]);
    $(type).addClassName('homepage_image_highlight');
}
// text-based mouseover for the rollOff function above
function roll_off(type) {
    $(type).removeClassName('homepage_image_highlight');
    $('roll_desc').update('');
}
