<HTML>
<HEAD>
<TITLE>Grow'EM menu</TITLE>

<?php //CUSTOMIZATION CODE FOR SURGEMENU - STYLE DEFINITIONS

$menuitem_height = 18;								//height of each menu item, in pixels
$menuitem_style = array('font' => '9pt verdana', 'color' => 'black', 'background' => 'white', 'indent' => '7px');
$menuitem_hover = array('font' => '9pt verdana', 'color' => 'white', 'background' => '#016932', 'indent' => '7px');
$menu_opacity = 100;
$menu_offset = array('x' => '45', 'y' => '-5');					//default offset of menu from calling object
?>


<script type="text/JavaScript">
<?php
//SURGEMENU CUSTOM FUNCTION menuAction() - DEFINES JAVASCRIPT CODE TO EXECUTE WHEN A MENU ITEM HAS BEEN SELECTED
//
//available parameters:
//
//	divID		- supplied by showMenu; references the element that originally launched the menu
//	selection 	- references the selection clicked on. One of the its most useful properties is innerHTML (the selection text)
?>

menuActionArray = { "Seed - General": "see0", "Chipping Seed": "see1",			//declare associative array used with function
	"Soaking and Pricking": "see2", "Pre-sprouting Seed": "see3",			//menuAction(): sets either the unique code or
	"Stratifying Seed": "see4", "Cuttings - General": "cut0",			//the unique part of code to be used with this
	"Stem Cuttings": "cut1", "Heel Cuttings": "cut2",				//function
	"Root Cuttings": "cut3", "Leaf Cuttings": "cut5",
	"Rooting Hormone": "cut6", "Rooting with Vitamin B1": "cut7", "Rooting with Willow Extract": "cut8",
	"Dividing Plants": "div0", "Dividing Orchid Pseudobulbs": "div1", "Simple Layering": "lay0", "Air Layering": "lay1",
	"Tip or Trench Layering": "lay3", "Serpentine Layering": "lay5", "Bulbs - General": "bul0", "Bulb Chipping": "bul1",
	"Bulb Scaling": "bul2", "Twin Scaling": "bul3", "Grafting - General": "gra0", "Cleft or Wedge Grafting": "cut4",
	"Bud Grafting": "gra2", "Whip Grafting": "gra3", "Side-veneer Grafting": "gra4", "Plants of Home and Garden": "pla0",
	"Trees and Shrubs": "tre0", "Fruits and Vegetables": "fru0", "Herbs": "her0", "Grains and Grasses": "grs0",
	"Cacti and Succulents": "cac0", "Water Plants": "wat1", "Bonsai": "tre1", "Orchids": "orc0" }

function menuAction (selection) {
	selElement = document.getElementById(selection)
	location.href = "http://grow.ars-informatica.ca/grow_topic.php?subject=" + menuActionArray[selElement.innerHTML]
}

</script>

<?php include 'SurgeMenu.php';

//END OF SURGEMENU CUSTOMIZATION CODE ?>

</HEAD>

<BODY>
<h3>SurgeMenu Sample Menu: Simple</h3>

Borrowing a chunk of menu from my web site <a href="http://grow.ars-informatica.ca">Grow'Em Plant Propagation Database</a>:

<p><IMG src="techniques.gif" alt="propagation techniques" class="ref_img">

<div style="margin:10px 0 5px 5px;font: 9pt Verdana"><a href="http://grow.ars-informatica.ca/grow_topic.php?subject=see0" <?php 
callMenu('seed') ?>>Growing From Seed<br>
<a href="http://grow.ars-informatica.ca/grow_topic.php?subject=cut0" <?php callMenu('cut') ?>>Cuttings</a><br>
<a href="http://grow.ars-informatica.ca/grow_topic.php?subject=div0" <?php callMenu('div') ?>>Division</a><br>
<a href="http://grow.ars-informatica.ca/grow_topic.php?subject=lay0" <?php callMenu('lay') ?>>Layering</a><br>
<a href="http://grow.ars-informatica.ca/grow_topic.php?subject=bul0" <?php callMenu('bulb') ?>>Bulb Techniques</a><br>
<a href="http://grow.ars-informatica.ca/grow_topic.php?subject=gra0" <?php callMenu('grft') ?>>Grafting</a><br>
<a href="http://grow.ars-informatica.ca/grow_topic.php?subject=bar0">Bare-root Plants</a>

<p><a href="http://grow.ars-informatica.ca/grow_topic.php?subject=pla1" <?php callMenu('tech') ?>>Techniques by<br>Types of Plants</a>
</div>

<p>The <a href="http://www.ars-informatica.ca/article.php?article=1">SurgeMenu Dynamic Cascading Menu System</a> is free, modifiable
software released under the GNU General Public License (GPL).

<p>Specifics on and source code for this SurgeMenu Sample Menu are provided on the <a href="http://www.ars-informatica.ca">Ars
Informatica</a> web site, as is the SurgeMenu source code itself.



<?php
createMenu (0, 200, "seed", "Seed - General", "Chipping Seed", "Soaking and Pricking", "Pre-sprouting Seed", "Stratifying Seed");
createMenu (0, 200, "cut", "Cuttings - General", "Stem Cuttings", "Heel Cuttings", "Root Cuttings", "Leaf Cuttings",
"Rooting Hormone", "Rooting with Vitamin B1", "Rooting with Willow Extract");
createMenu (0, 200, "div", "Dividing Plants", "Dividing Orchid Pseudobulbs");
createMenu (0, 200, "lay", "Simple Layering", "Air Layering", "Tip or Trench Layering", "Serpentine Layering");
createMenu (0, 200, "bulb", "Bulbs - General", "Bulb Chipping", "Bulb Scaling", "Twin Scaling");
createMenu (0, 200, "grft", "Grafting - General", "Cleft or Wedge Grafting", "Bud Grafting", "Whip Grafting", "Side-veneer Grafting");

createMenu (0, 200, "tech", "Plants of Home and Garden", "Trees and Shrubs", "Fruits and Vegetables", "Herbs", "Grains and Grasses",
"Cacti and Succulents", "Water Plants", "Bonsai", "Orchids");
?>

</BODY>

This source code displayed in HTML format using the freeware source.php by Paul Postuma and Ars Informatica