﻿// JScript File
		stdBrowser = (document.getElementById) ? true : false;
		
		function VisON(currElem, Label)
		{			
			var InstructionText;
			//docObj = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem); 			
			//docObj.visibility = "visible";
				
			document.getElementById("DescriptionText").visibility = "visible";			
			
			
			document.getElementById("LineOne").style.backgroundColor = "#ffffff";
			document.getElementById("LineTwo").style.backgroundColor = "#ffffff";
			document.getElementById("LineThree").style.backgroundColor = "#ffffff";
			document.getElementById("LineFour").style.backgroundColor = "#ffffff";	
			
			document.getElementById("TopOne").style.backgroundColor = "#ffffff";
			document.getElementById("BottomOne").style.backgroundColor = "#ffffff";
			document.getElementById("TopTwo").style.backgroundColor = "#ffffff";
			document.getElementById("BottomTwo").style.backgroundColor = "#ffffff";
			document.getElementById("TopThree").style.backgroundColor = "#ffffff";
			document.getElementById("BottomThree").style.backgroundColor = "#ffffff";

						
			if (currElem == "GrassText") {InstructionText = "Grasses are typically upright or bunching plants with fibrous roots, rhizomes or stolons.  Hollow stems are either round or flattened.  Leaves have parallel veins, are in groups of two, and are much longer than they are wide.  Generally have inconspicuous flowers.";
			PlantImage="images/GrassImage.gif";
			QuestionImage="images/QuestionMarkLight.gif";
						
			document.getElementById("LineTwo").style.backgroundColor = "#f32222";
			document.getElementById("LineThree").style.backgroundColor = "#f32222";
			document.getElementById("TopTwo").style.backgroundColor = "#f32222";
			document.getElementById("BottomTwo").style.backgroundColor = "#f32222";
			document.getElementById("PlantType").innerHTML= "Grasses";	
			}			
			
			else if (currElem == "BroadleafText") {InstructionText = "Broadleaf weed characteristics are widely varied.  Leaves are generally wide, and have net-like veins.  Broadleaves can have either round or square stems, and growth can be upright, prostrate or vining.  Generally have showy flowers.";
			PlantImage="images/BroadleafImage.gif";
			QuestionImage="images/QuestionMarkLight.gif";
			
			document.getElementById("LineOne").style.backgroundColor = "#f32222";
			document.getElementById("LineTwo").style.backgroundColor = "#f32222";
			document.getElementById("TopOne").style.backgroundColor = "#f32222";
			document.getElementById("BottomOne").style.backgroundColor = "#f32222";
			document.getElementById("PlantType").innerHTML= "Broadleaves";	
			}
						
			else if (currElem == "SedgeText") {InstructionText = "Sedges can be easily distinguished from grasses by comparing the shape of the stem.  Sedges always exhibit solid triangular stems with leaves in groups of three,  while grasses have round or flattened stems.";
			PlantImage="images/SedgeImage.gif";
			QuestionImage="images/QuestionMarkLight.gif";
			
			document.getElementById("LineThree").style.backgroundColor = "#f32222";
			document.getElementById("LineFour").style.backgroundColor = "#f32222";
			document.getElementById("TopThree").style.backgroundColor = "#f32222";
			document.getElementById("BottomThree").style.backgroundColor = "#f32222";
		
			document.getElementById("PlantType").innerHTML= "Sedges";	
			}
			else {InstructionText = "";
			QuestionImage="images/QuestionMark.gif";
			document.getElementById("PlantType").innerHTML= "<p STYLE='FONT-SIZE:20pt; text-align: center;'>Which<BR>Plant Type<BR>Do I Have?</p><br><p style='FONT-SIZE:12pt; text-align: left;'>To get started, click on the plant type (broadleaf, grass, or sedge) which matches the plant you are trying to identify.</p>";
			}
			
			document.getElementById("DescriptionText").innerHTML= "<br>" + InstructionText;		
			//document.getElementById("PlantImage").src=PlantImage;
			document.getElementById("QuestionMark").src=QuestionImage;
			
		}			

		function VisOFF(currElem)
		{
			docObj = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem); 
			docObj.visibility = "hidden";

		}
		
		function swapPic(currElem, Pic)
		{
            docObj = (stdBrowser) ? document.getElementById(currElem) : eval("document.[" + currElem + "]"); 
			docObj.src = Pic;
		}
