//STEP 1: Define sub nav links

function secondaryNav(page) {
if (section == "one") {
	document.write('<div class="subNav1">');
	if (page == "faqs") {
		document.write('<font style class="subnavHilite">Frequently Asked Questions</font> | ');
		document.write('<a href="grand-waikikian-factsheet.html">Fact Sheet</a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a>');
	} else if (page == "factsheet") {
		document.write('<a href="grand-waikikian-faqs.html">Frequently Asked Questions</a> | ');
		document.write('<font style class="subnavHilite">Fact Sheet</font> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a>');
	} else {
		document.write('<a href="grand-waikikian-faqs.html">Frequently Asked Questions</a> | ');
		document.write('<a href="grand-waikikian-factsheet.html">Fact Sheet</a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a>');
	} 
	document.write('</div>');
} else if (section == "two") {
	document.write('<div class="subNav2">');
	if (page == "faqs") {
		document.write('<a href="lagoon-beautification.html">Lagoon Beautification</a> | ');
		document.write('<a href="village-projects.html">Village Projects </a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<font style class="subnavHilite">Frequently Asked Questions</font>');
	} else if (page == "villagebeautification") {
		document.write('<font style class="subnavHilite">Lagoon Beautification</font> | ');
		document.write('<a href="village-projects.html">Village Projects</a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<a href="lagoon-faqs.html">Frequently Asked Questions</a>');
	} else if (page == "villageprojects") {
		document.write('<a href="lagoon-beautification.html">Lagoon Beautification</a> | ');
		document.write('<font style class="subnavHilite">Village Projects</font> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<a href="lagoon-faqs.html">Frequently Asked Questions</a>');
	} else {
		document.write('<a href="lagoon-beautification.html">Lagoon Beautification</a> | ');
		document.write('<a href="village-projects.html">Village Projects </a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<a href="lagoon-faqs.html">Frequently Asked Questions</a>');
	}
	document.write('</div>');
} else if (section == "three") {
	document.write('<div class="subNav3">');
	if (page == "exiting") {
		document.write('<font style class="subnavHilite">Village Dining & Shopping</font>');
	} else {
		document.write('<a href="dine-shops.html">Village Dining & Shopping</a>');
	}
	document.write('</div>');
} else if (section == "four") {
	document.write('<div class="subNav4">');
	if (page == "releases") {
		document.write('<font style class="subnavHilite">Releases</font> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<a href="milestones.html">Milestones</a>');
	} else if (page == "photogallery") {
		document.write('<a href="releases.html">Releases</a> | ');
		document.write('<font style class="subnavHilite">Photo Gallery</font>  | ');
		document.write('<a href="milestones.html">Milestones</a>');
	} else if (page == "milestones") {
		document.write('<a href="releases.html">Releases</a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<font style class="subnavHilite">Milestones</font>');
	} else {
		document.write('<a href="releases.html">Releases</a> | ');
		document.write('<a href="photo-gallery.html">Photo Gallery</a> | ');
		document.write('<a href="milestones.html">Milestones</a>');
	}
	document.write('</div>');
} else if (section == "five") {
	document.write('<div class="subNav5">');
	document.write('&nbsp;');
	document.write('</div>');
	}
	
} 

// STEP 2: Generate the navbar
secondaryNav(page);