//this is the popup builder that must be added to the html page.
/*
		<!-- dynamic popup form starts hear -->
			<BR>
			<center>                                                
			<form name="form">                                                                 
			<font size="3">                                                                    
			<SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">                                                
			<!-- stop looking                                                                  
			var popPiker = genNav;                                                              
			//change popPiker to the proper *Nav array choice                                  
			//IE genNav advNav croNav you get the picture                        
			var genPopup = ""; //start assembling next part of page and form                    
			genPopup += "<SELECT NAME='gowhere' onChange='GotoPage(this.form.gowhere);'>";      
			//build popup list from the array chose above                                        
			for (var i = 0; i < popPiker.length; i++){                                         
					genPopup +=  "<OPTION"; //OPTION tag                                        
					if (i == 0) { //preselect first item in list                               
						genPopup += " SELECTED";                                                
					}                                                                          
					genPopup += " VALUE='" + popPiker[i].Fwhere; //add the value                 
					genPopup += "'>" + popPiker[i].Fname; //add the name                         
					genPopup += "</OPTION>"; //close the option tag                             
			}                                                                                  
			genPopup += "</SELECT>"; //close selection item tag                                 
			document.write(genPopup); //lay out this popup in the page                          
			// ok you can look again -->                                                       
			</SCRIPT>                                                                          
			</font>                                                                            
			</form>
			</center>
			<BR>                                                                            
		<!-- end the dynamic popup script --> 			
*/		

/*
	do not forget to link to this file from you web page
*/
			
//the  make it function
//changes the value of .location
//when user changes the popup lists
//this is used for all popup lists
	function GotoPage(form)
	{
	 var url = form.options[form.selectedIndex].value;
	 window.location.href=url;
	}

//stuff "rows" of data for our pseudo-two-dimensional array
//this is the frame-set for the second layer of the array
//this us used for all popup lists
	function genWhere(Fname, Fwhere){
		this.Fname = Fname
		this.Fwhere = Fwhere
	}


/***************************************************************************/
/*					begin the popup array lists (first layer)              */
/***************************************************************************/

//begin the general (gen) popup array's
	genNav = new Array()
	genNav[0] = new genWhere("Select a page", "")
	genNav[1] = new genWhere("Events", "events.html")
	genNav[2] = new genWhere("Membership", "members.html")
	genNav[3] = new genWhere("About TAK", "about.html")
	genNav[4] = new genWhere("Faqs", "faqs.html")
	genNav[5] = new genWhere("Contact Us", "contact.html")
	genNav[6] = new genWhere("Links", "links.html")
	genNav[7] = new genWhere("Home", "index.html")


//begin the  () popup array
	Nav = new Array()
	Nav[0] = new genWhere("", "")				