<!-- this javascript preloads primary nav images and sets up rollovers -->
<!--

var navNames = Array("home","news","monument","history","book","pictures","links");
var pathPrefix = "graphics/nav/";
var fileExt = "gif";
var onSuffix = "_on";
var offSuffix = "_off";
for (var i = 0; i < navNames.length; i++) {
	// Create Image objects
	eval(navNames[i] + "On = new Image()");
	eval(navNames[i] + "Off = new Image()");
	// Build name of img and path to graphics
	var imgPath = pathPrefix + navNames[i];
	eval(navNames[i] + "On.src = \"" + imgPath + onSuffix + "." + fileExt + "\"");
	eval(navNames[i] + "Off.src = \"" + imgPath + offSuffix + "." + fileExt + "\"");
}
//-->

function spacer(){
	document.write('<img src="graphics/spacer.gif" border="0" width="15" height="1" alt="">');
}

function primary_nav(section){

//HOME
	if(section == "home"){
		document.write('<a href="index.html"><img src="graphics/nav/home_on.gif" alt="Home" width="31" height="14" border="0"></a>');
	}else{
		document.write('<a href="index.html" onMouseOver="document.primarynav_home.src=homeOn.src" onMouseOut="document.primarynav_home.src=homeOff.src"><img src="graphics/nav/home_off.gif" alt="Home" name="primarynav_home" id="primarynav_home" width="31" height="14" border="0"></a>');
	}
	
	spacer();
	
//Book
	if(section == "book"){
		document.write('<a href="book.html"><img src="graphics/nav/book_on.gif" alt="Book" width="80" height="14" border="0"></a>');
	}else{
		document.write('<a href="book.html" onMouseOver="document.primarynav_book.src=bookOn.src" onMouseOut="document.primarynav_book.src=bookOff.src"><img src="graphics/nav/book_off.gif" alt="Book" name="primarynav_book" id="primarynav_book" width="80" height="14" border="0"></a>');
	}
	
	spacer();
	
	//Monument
	if(section == "monument"){
		document.write('<a href="monument.html"><img src="graphics/nav/monument_on.gif" alt="Monument" width="54" height="14" border="0"></a>');
	}else{
		document.write('<a href="monument.html" onMouseOver="document.primarynav_monument.src=monumentOn.src" onMouseOut="document.primarynav_monument.src=monumentOff.src"><img src="graphics/nav/monument_off.gif" alt="Monument" name="primarynav_monument" id="primarynav_monument" width="54" height="14" border="0"></a>');
	}
	
	spacer();
	
//News
	if(section == "news"){
		document.write('<a href="news.html"><img src="graphics/nav/news_on.gif" alt="News" width="75" height="14" border="0"></a>');
	}else{
		document.write('<a href="news.html" onMouseOver="document.primarynav_news.src=newsOn.src" onMouseOut="document.primarynav_news.src=newsOff.src"><img src="graphics/nav/news_off.gif" alt="News" name="primarynav_news" id="primarynav_news" width="75" height="14" border="0"></a>');
	}
	
	spacer();
	
//History
	if(section == "history"){
		document.write('<a href="history.html"><img src="graphics/nav/history_on.gif" alt="History" width="75" height="14" border="0"></a>');
	}else{
		document.write('<a href="history.html" onMouseOver="document.primarynav_history.src=historyOn.src" onMouseOut="document.primarynav_history.src=historyOff.src"><img src="graphics/nav/history_off.gif" alt="History" name="primarynav_history" id="primarynav_history" width="75" height="14" border="0"></a>');
	}
	
	spacer();
	
//Pictures
	if(section == "pictures"){
		document.write('<a href="pictures.html"><img src="graphics/nav/pictures_on.gif" alt="Pictures" width="43" height="14" border="0"></a>');
	}else{
		document.write('<a href="pictures.html" onMouseOver="document.primarynav_pictures.src=picturesOn.src" onMouseOut="document.primarynav_pictures.src=picturesOff.src"><img src="graphics/nav/pictures_off.gif" alt="Pictures" name="primarynav_pictures" id="primarynav_pictures" width="43" height="14" border="0"></a>');
	}

	spacer();
	
//Links
	if(section == "links"){
		document.write('<a href="links.html"><img src="graphics/nav/links_on.gif" alt="Links" width="29" height="14" border="0"></a>');
	}else{
		document.write('<a href="links.html" onMouseOver="document.primarynav_links.src=linksOn.src" onMouseOut="document.primarynav_links.src=linksOff.src"><img src="graphics/nav/links_off.gif" alt="Links" name="primarynav_links" id="primarynav_links" width="29" height="14" border="0"></a>');
	}
}

function footer(){
	document.write('<span class="ondark"><a href="mailto:info@sfphoenix.com">info@sfphoenix.com</a></span> | All Contents Copyright © 2004-2006  - SFPhoenix - All rights reserved.');
}

function credit(){
	document.write('<span class="credit">Web Site by <a href="mailto:avig@goldyne.com">Avi Goldyne</a> - <a href="http://www.goldyne.com">www.goldyne.com</a></span>');
}