
//--------------------------------------------------------------------->
//-- menPre_ = menu item #_, show on menu button during mouseover    -->
//-- 0=home, 1=sitemap, 2=catalog, 3=aboutUs (co. info), 4=Links,    -->
//-- 5=what's new, 6=iris, 7=lily, 8=perennials, 9=services          -->
//-- mIn (x) = perform this function on mouseover                    -->
//-- mOut(x) = perform this function on mouseout                     -->
//--------------------------------------------------------------------->

// imagePath is defined by including DLHN/noframes.js before this file

function imagePreload()
{

//	alert ("imagePreload - imagePath=" + imagePath);

	if (document.images)
	{
		menPre0 = new Image(); menPre0.src = imagePath + "m_0_over.gif";
		menPre1 = new Image(); menPre1.src = imagePath + "m_1_over.gif";
		menPre2 = new Image(); menPre2.src = imagePath + "m_2_over.gif";
		menPre3 = new Image(); menPre3.src = imagePath + "m_3_over.gif";
		menPre4 = new Image(); menPre4.src = imagePath + "m_4_over.gif";
		menPre5 = new Image(); menPre5.src = imagePath + "m_5_over.gif";
		menPre6 = new Image(); menPre6.src = imagePath + "m_6_over.gif";
		menPre7 = new Image(); menPre7.src = imagePath + "m_7_over.gif";
		menPre8 = new Image(); menPre8.src = imagePath + "m_8_over.gif";
		menPre9 = new Image(); menPre9.src = imagePath + "m_9_over.gif";
	
		menPreA = new Image(); menPreA.src = imagePath + "m_A_over.gif";
		menPreI = new Image(); menPreI.src = imagePath + "m_I_over.gif";
		menPreZ = new Image(); menPreZ.src = imagePath + "m_Z_over.gif";
//	} else {
//		alert ("no images in document, can't preload buttons ... ?");
	}
}

function mIn(ch)
{
	if (document.images)
	{
		menItem = "butImg"+ ch;
		butImg = imagePath + "m_"+ch+"_over.gif";
		document.images[menItem].src = butImg;
//	} else {
//		alert ("no images in document, can't do mouse-in ... ?");
	}
}

function mOut(ch)
{
	if (document.images)
	{
		menItem = "butImg"+ ch;
		butImg = imagePath + "m_"+ch+".gif";
		document.images[menItem].src = butImg;
//	} else {
//		alert ("no images in document, can't do mouse-out ... ?");
	}
}

//--------------------------------------------------------------------->
//--             end of mouseover control functions                   ->
//--------------------------------------------------------------------->

// Usage of these functions:
//
// in <body ...> tag, include 
//     onload="setTimeout('imagePreload()',500)"
//
// in buttons with associated big images, use (example: button '5')
//    <a href="_____.html" onmouseover="mOn('5');" onmouseout="mOff('5');" > <img
//                  src="images/buttons/m_5.gif" name=butImg5
//
// in buttons without associated big images, use (example: button 'Z'
//    <a href="____.html" onmouseover="mIn('Z');" onmouseout="mOut('Z');" > <img 
//                   src="images/buttons/m_Z.gif" alt="____"
//                   name=butImgZ
// and in the associated big image, default=mem_0.gif, use
//    <img src="images/pictures/mem_0.gif" name=mem ...>

//alert ("done reading script file");

