function titleToggleBox(divId,page,title,edition,exhibit)
{
//alert ("titletoggle");   
if (exhibit == null) {
      exhibit = "";
   }
   element = document.getElementById("largeImage");
   current = element.innerHTML;
   potential = "<table> <tr><td><img src=\"../images/" + page + "/" + divId + "-web.jpg\"></td></tr><tr><td align=center><span style='font-family: sans-serif;font-size: large;'>" + title + "</span></td></tr><tr><td align=center><span style='font-family: sans-serif'>" + edition + "</span></td></tr><tr><td align=center><span style='font-family: sans-serif;font-size: small;'><i>" + exhibit + "</i></span></td></tr></table>";
   if (current.toUpperCase().indexOf(divId.toUpperCase()) > 0) {
	   element.innerHTML = "<p></p>";
   } 
   if (current.toUpperCase().indexOf(divId.toUpperCase()) <= 0) {
     element.innerHTML = potential;
   }
}

function loadNavigation(page) {
//alert ("hello");
start = "../";
if (page == "home") {
 start = ""
}

var pages=new Array(
    "Home",
    "Fireworks",
    "Fireworks2",
    "Macro",
    "Botany",
    "Botany2",
    "Product",
    "Contact",
    "Links"
);

document.write("<table>")
document.write("<tr>")

for (index = 0; index < pages.length;index++) {
  imageName = start + "images/common/nav" + pages[index] + ".png";
  pageName = start + "source/" + pages[index] + ".html";

  document.write("<td>");

  if (pages[index] == "Home") {
    document.write("<a href=\"/index.html\" class=\"hoverNavigation\" >");
    document.write("<img src=\"" + imageName + "\" border=\"0\"/>");
  }
  if (pages[index] != "Home") {
    document.write("<a href=\"" + pageName +  "\" class=\"hoverNavigation\" >");
    document.write("<img src=\"" + imageName + "\" border=\"0\"/>");
    document.write("</a>");
  }
  document.write("</td>");
}

document.write("</tr>");

document.write("</table>");
}

