/*******************************************************************************

 * section is an object contianing the title and url for navigation links

 ******************************************************************************/



function section ( title, url ) {

	this.title = title;

	this.url = url;

}





/*******************************************************************************

 * pages is an array with the titles and urls for pages to be used for

 * navigation

 ******************************************************************************/

/* debug *

var prefix = "file://C:/puppies/";

/* debug */



/* publish */

var prefix = "/";

/* publish */



var sections = [

	new section ( "Home", prefix + "index.html" ),

	new section ( "Puppies", prefix + "puppies/index.html" ),

	new section ( "Family", prefix + "family/index.html" ),

	new section ( "News", prefix + "news/index.html" ),

        new section ( "Pictures", prefix + "pictures/index.html" ),

	new section ( "Contact", prefix + "contact/index.html" ),

	new section ( "Links", prefix + "links/index.html" )

];





/*******************************************************************************

 * navigate returns an html table of the contents of the pages array

 ******************************************************************************/



function navigate () {



	var s = "<table class=\"nav\" cellspacing=\"0\" align=\"center\"><tr>";



	for ( i = 0; i < sections.length; i++ ) {

		if ( ( typeof current_section ) != "undefined" ) {

			selected = ( sections [i].title == current_section );

		} else {

			selected = ( sections [i].title == document.title );

		}

		s +=

			"<td align=\"center\"" +

			( (selected) ? " class=\"selected\">" : ">" ) +

			"<a class=\"nav\" href=\"" +

			sections [i].url +

			"\">" +

			sections [i].title +

			"</a></td>";

	}



	s += ( "</tr></table>" );



	return s;

}


