/* Written by Dan Narsavage (spazmaster@cableone.net) on 11/27/03 */
/* Copy it if you want, leaving this heading, but I don't know why you'd want to. */
/* It's doubtlessly buggy as hell  */
/* Seems to work on MS Internet Explorer 6.x and Netscape 7.x. in both Windows XP and Windows 98 */

var roster = new Array();
	roster.push(new Array("Alldredge, Ruth",""));
	roster.push(new Array("Anderson, Stacie","Weimaraner"));
	roster.push(new Array("Barta, Jean","Brittany, English Setter"));
	roster.push(new Array("Brackenridge, Sandra","Bullmastiff"));
	roster.push(new Array("Burgoon, Denise & Sarah","Labrador Retriever"));
	roster.push(new Array("Collins, Karen","Great Dane"));
	roster.push(new Array("Dankenbring, Dawn","Cockapoo"));
	roster.push(new Array("De Meter-Gietzen, Rosemary","Siberian Husky, Belgian Tervuren"));
	roster.push(new Array("DeVita, Sharon","Irish Wolfhound, Scottish Deerhound"));
	roster.push(new Array("Dorman, Alyssa","Min. Pinscher"));
	roster.push(new Array("Dorman, Darrell &amp; Marian","Poodle"));
	roster.push(new Array("Erickson, Teressa &amp; Randy","Border Collie, German Shorthair Pointer, Collie X"));
	roster.push(new Array("Evans, Vicki &amp; Patrick","Border Collie"));
	roster.push(new Array("Floyd, Terry","Papillon, Shih Tzu, Chihuahua"));
	roster.push(new Array("Fornarotto, John &amp; Kate","Weimaraner, Labrador"));
	roster.push(new Array("Gaines, Randy &amp; Melinda","Bernese Mtn Dog"));
	roster.push(new Array("Gerback, Kim","Schipperke"));
	roster.push(new Array("Gibson, Al","Bulldog"));
	roster.push(new Array("Gibson, Connie","Bulldog"));
	roster.push(new Array("Guidinger, Jane &amp; Maurice","Irish Setter, Shetland Sheepdog"));
	roster.push(new Array("Spencer, Lois","Shih Tzu"));
	roster.push(new Array("Huber, Joann","Chesapeake Bay Retriever"));
	roster.push(new Array("Hughes, Fred &amp; Joyce","Basenji"));
	roster.push(new Array("Humphries, Jill","Siberian Husky"));
	roster.push(new Array("Humphries, Pamela","Siberian Husky"));
	roster.push(new Array("Kreider, Lorraine &amp; Bob","Akita, Std Poodle, Greyhound"));
	roster.push(new Array("Law, Sandra &amp; James","Shih Tzu"));
	roster.push(new Array("Lisby, Valerie","Bouvier"));
	roster.push(new Array("Lowdermilk, Paul &amp; Wendy","Chow Chow"));
	roster.push(new Array("Marcel/Magee, Denise &amp; Doug","Collie, Border Collie"));
	roster.push(new Array("Marks, Tracey","Irish Wokfhound, Golden Retriever"));
	roster.push(new Array("Mayer, Alice","Bassett Hound, Pembroke Welshi Corgi"));
	roster.push(new Array("McGrath, Kathy","English Setter"));
	roster.push(new Array("Nelson, Christine &amp; Dave","Basenji"));
	roster.push(new Array("Nickerson, Carla","Min Schnauzer"));
	roster.push(new Array("Patrick/Dopita, Katy &amp; Dan","Samoyed, Lab X, Japanese Chin"));
	roster.push(new Array("Paulson, Shannon &amp; Andrew","Pug X, Cattledog X, Bassett Hound"));
	roster.push(new Array("Petersen/Boyer, Lisa &amp; Amie","Pekingese, Pomeranian"));
	roster.push(new Array("Pickett/Narsavage, Kate &amp; Dan","Aussie, Pointer, Australian Cattle Dog"));
	roster.push(new Array("Powell, Jim","Pembroke Welch Corgi"));
	roster.push(new Array("Read, Dorothy","Irish Water Spaniel"));
	roster.push(new Array("Schmitt, Michael",""));
	roster.push(new Array("Ritter/Langerman, Teri &amp; Jay","Doberman, Chinese Crested"));
	roster.push(new Array("Rodnick, Ken &amp; Cheryl","Irish Terrier"));
	roster.push(new Array("Steed, Doug &amp; Teri","Cocker Spaniel"));
	roster.push(new Array("Thompson/Gates, Mary &amp; Craig","Border Collie, Weimaraner"));
	roster.push(new Array("Thyberg, Stan, Floreen, &amp; Karl","Min Schnauzer"));
	roster.push(new Array("Timm, Russ &amp; Sue","Gordon Setter"));
	roster.push(new Array("Weber, Keith &amp; Soo","Great Pyrenees"));
	roster.push(new Array("Weidert, Leonard &amp; Glennie","Min Wirehair Dachshund, Springer Spaniel"));




/* TAKES pageNum AND USES IT TO DETERMINE COLOR OF NAVIGATION BAR PANELS (var navClass) AND THE PROPER MESSAGE TO  APPLY TO heading (var page), WRITES THE REDUNDANT CODE FOR EACH PAGE  */
function redundant(pageNum) {
	//alert ("I'm working on it");
	var page = new Array();
		page[0] = "Home";  			// HOMEPAGE
		page[1] = "Newsletter";			// NEWSLETTER
		page[2] = "Classes";		 	// CLASS SCHEDULE
		page[3] = "Events";		 	// EVENTS
		page[4] = "Getting a Dog";  		// GETTING A DOG
		page[5] = "Video Library";	 	// VIDEO LIBRARY
		page[6] = "Officers";  			// OFFICER BIOS AND CONTACTS
		page[7] = "Roster";  			// MEMBERSHIP ROSTER
		page[8] = "Links";  			// LINKS PAGE
	var heading = page[pageNum];
	var navClass = new Array(page.length);

	//alert("Heading length = " + heading.length);


	/* SETS heading TO "Pocatello Kennel Club" IF EMPTY  */
/*	if (heading.length < 1) {
		heading = "Pocatello Kennel Club";
	}
*/

	/* SETS ALL NAVBAR ITEMS TO CLASS=NAVBAR  */
	var i=0;
	var x = page.length;
	while (i < x) {
		//alert(i);
		navClass[i] = 'navbar';			
		//alert(i + " = " + navClass[i]);
		//alert(page[i] + " = " + navClass[i]);
		i++;
	}  
	/*  DETERMINES WHICH NAVBAR ITEM TO MAKE CLASS=NAVHERE  */
	navClass[pageNum] = 'navhere';

	/* WRITE THE HTML  */


	document.write ("<table HEIGHT=\"100%\" width=\"750\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write ("  <tr>");
	document.write ("    <td height=\"175\" align=\"right\" background=\"images/back1.gif\">");
	document.write ("     <div id=\"holder\">");
	document.write ("     <p id=\"address\">");
	document.write ("     <img src=\"images/logo170.gif\" width=\"170\" height=\"160\" align=\"right\">");
	document.write ("      <br />Mailing Address:<br />PO Box 6244<br /> Pocatello ID  83205");
	document.write ("     </p>");
	document.write ("     </div>");
	document.write ("    </td>");
	document.write ("  </tr>");
	document.write ("  <tr> ");
	document.write ("    <td valign=\"top\">");
	document.write ("");
	document.write ("<!--  CONTENTS TABLE -->");
	document.write ("	<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write ("        <tr valign=\"top\"> ");
	document.write ("          <td width=\"1%\" bgcolor=\"#ffff99\">");
	document.write (" 		<table width=\"114\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write ("              <!-- the \"1%\" makes this column shrink to the smallest allowed for its contents... since it contains a table with 114 width, this is what it will become; without it, some browsers will enlarge the \"menu\" area and shrink the \"text\" area to try and balance them -->");
	document.write ("              <tr> ");
	document.write ("                <!-- Keep this row to create a \"top margin\" to the menu -->");
	document.write ("                <td height=\"35\" align=\"center\" valign=\"middle\">&nbsp;</td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <!-- the \"bgcolor\" can show the user which page of the menu they are looking at  -->");
	document.write ("                <td class=\"" + navClass[0] + "\"><p><a href=\"./\">" + page[0] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[1] + "\"><p><a href=\"newsletter.html\">" + page[1] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[2] + "\"><p><a href=\"classes.html\">" + page[2] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[3] + "\"><p><a href=\"events.html\">" + page[3] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[4] + "\"><p><a href=\"gettingadog.html\">" + page[4] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[5] + "\"><p><a href=\"video/video.html\">" + page[5] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[6] + "\"><p><a href=\"officers.html\">" + page[6] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr> ");
	document.write ("                <td class=\"" + navClass[7] + "\"><p><a href=\"roster.html\">" + page[7] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr>");
	document.write ("                <td class=\"" + navClass[8] + "\"><p><a href=\"links.html\">" + page[8] + "</a></p></td>");
	document.write ("              </tr>");
	document.write ("              <tr>");
	document.write ("                <!-- Keep this row to create a \"minimum bottom margin\" and prevent page from shrinking too small -->");
	document.write ("                <td height=\"65\">&nbsp;</td>");
	document.write ("              </tr>");
	document.write ("            </table>");
	document.write ("");
	document.write ("<!--  END CONTENTS TABLE -->");
	document.write ("");



}  //END OF FUNCTION


//  WILL OPEN A POP UP WINDOW OF [PARAMETERS] SIZE - NOT RESIZABLE OR SCROLLABLE
function popUpWindow(URLStr, left, top, width, height) {
	var popUpWin=0;
	if ((popUpWin) && (!popUpWin.closed)) popUpWin.close();
	//alert('URL =' + URLStr);
	//alert('Left =' + left);
	//alert('Top =' + top);
	//alert('Width =' + width);
	//alert('Height =' + height);
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width='+width+', height='+height+', left='+left+', top='+top+', screenX='+left+', screenY='+top+''); 
	popUpWin.focus();
}


//  WILL OPEN A POP UP WINDOW OF [PARAMETERS] SIZE - RESIZABLE AND SCROLLABLE
function openSizedWindow(URLStr, width, height, name) {
	var sizedWin=0;
	var winName = new String(name);
	if (winName.length == 0) {
		winName = "Sized_Window";
	}
	if ((sizedWin) && (!sizedWin.closed)) sizedWin.close();
	sizedWin = open(URLStr, winName, 'toolbar=yes, location=yes, directories=no, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width='+width+', height='+height+'');
	sizedWin.focus();
}


function goToGoogle(theAddy) {
	if (theAddy.length != 0) {
		var goodGrief = " ";
		while (theAddy.indexOf(" ") != -1) {
			theAddy = theAddy.replace(goodGrief,"+");
		}
		var theURL = "http://maps.google.com/maps?f=q&hl=en&q=" + theAddy + "+to+850+Barton+Rd,+Pocatello,+ID+83204";
	} else {
		var theURL = "http://maps.google.com/maps?f=q&hl=en&q=850+Barton+Rd,+Pocatello,+ID+83204";
	}
	document.location = theURL;
}

function writeRoster() {
	var halfRoster = Math.floor(roster.length/2);
	document.write("<table width=\"100%\" border=\"0\" align=\"center\">");
	 document.write("<tr>");
	  document.write("<td width=\"50%\">");
	
	for (i = 0; i < halfRoster; i++)
	{
		document.write("<p class=\"rosterentry\"><b><u>" + roster[i][0] + "</u></b>");
		if (roster[i][1].length > 0)
		{
			document.write("<br>(" + roster[i][1] + ")</p>");
		}
	}
	
	  document.write("</td>");
	  document.write("<td width=\"50%\">");	
	
	for (i = halfRoster; i < roster.length; i++)
	{
		document.write("<p class=\"rosterentry\"><b><u>" + roster[i][0] + "</u></b>");
		if (roster[i][1].length > 0)
		{
			document.write("<br>(" + roster[i][1] + ")</p>");
		}
	}
	
	  document.write("</td>");
	 document.write("</tr>");
	document.write("</table>");
}