<!-- this javascript preloads primary nav images and sets up rollovers -->
<!--
if (document.images) {
  homeUp = new Image;
  homeOver = new Image;
  resumeUp = new Image;
  resumeOver = new Image;
  portfolioUp = new Image;
  portfolioOver = new Image;
  contactmeUp = new Image;
  contactmeOver = new Image;
  goldyneUp = new Image;
  goldyneOver = new Image;

  homeUp.src = "graphics/primarynav/home_up.gif";
  homeOver.src = "graphics/primarynav/home_over.gif";
  resumeUp.src = "graphics/primarynav/resume_up.gif";
  resumeOver.src = "graphics/primarynav/resume_over.gif";
  portfolioUp.src = "graphics/primarynav/portfolio_up.gif";
  portfolioOver.src = "graphics/primarynav/portfolio_over.gif";
  contactmeUp.src = "graphics/primarynav/contactme_up.gif";
  contactmeOver.src = "graphics/primarynav/contactme_over.gif";
  goldyneUp.src = "graphics/primarynav/goldyne_up.gif";
  goldyneOver.src = "graphics/primarynav/goldyne_over.gif";
}

else{
  homeUp = "";
  homeOver = "";
  resumeUp = "";
  resumeOver = "";
  portfolioUp = "";
  portfolioOver = "";
  contactmeUp = "";
  contactmeOver = "";
  goldyneUp = "";
  goldyneOver = "";
}
//-->

function spacer(){
	document.write('<img src="graphics/global/spacer.gif" border="0" width="30" height="1" alt="">');
}

function primary_nav(section){

spacer();

//HOME
	if(section == "home"){
		document.write('<a href="index.html"><img src="graphics/primarynav/home_over.gif" alt="Home" width="52" height="17" border="0"></a>');
	}else{
		document.write('<a href="index.html" onMouseOver="document.primarynav_home.src=homeOver.src" onMouseOut="document.primarynav_home.src=homeUp.src"><img src="graphics/primarynav/home_up.gif" alt="Home" name="primarynav_home" id="primarynav_home" width="52" height="17" border="0"></a>');
	}
	
	spacer();
	
//RESUME
	if(section == "resume"){
		document.write('<a href="resume/index.html"><img src="graphics/primarynav/resume_over.gif" alt="Resume" width="73" height="17" border="0"></a>');
	}else{
		document.write('<a href="resume/index.html" onMouseOver="document.primarynav_resume.src=resumeOver.src" onMouseOut="document.primarynav_resume.src=resumeUp.src"><img src="graphics/primarynav/resume_up.gif" alt="Resume" name="primarynav_resume" id="primarynav_resume" width="73" height="17" border="0"></a>');
	}
	
	spacer();
	
//PORTFOLIO
	if(section == "portfolio"){
		document.write('<a href="portfolio/index.html"><img src="graphics/primarynav/portfolio_over.gif" alt="Portfolio" width="97" height="17" border="0"></a>');
	}else{
		document.write('<a href="portfolio/index.html" onMouseOver="document.primarynav_portfolio.src=portfolioOver.src" onMouseOut="document.primarynav_portfolio.src=portfolioUp.src"><img src="graphics/primarynav/portfolio_up.gif" alt="Portfolio" name="primarynav_portfolio" id="primarynav_portfolio" width="97" height="17" border="0"></a>');
	}
	
	spacer();
	
//CONTACTME
	if(section == "contactme"){
		document.write('<a href="contactme/index.html"><img src="graphics/primarynav/contactme_over.gif" alt="Contact Me" width="111" height="17" border="0"></a>');
	}else{
		document.write('<a href="contactme/index.html" onMouseOver="document.primarynav_contactme.src=contactmeOver.src" onMouseOut="document.primarynav_contactme.src=contactmeUp.src"><img src="graphics/primarynav/contactme_up.gif" alt="Contact Me" name="primarynav_contactme" id="primarynav_contactme" width="111" height="17" border="0"></a>');
	}
	
	spacer();
	
//GOLDYNE
	if(section == "goldyne"){
		document.write('<a href="goldyne/index.html"><img src="graphics/primarynav/goldyne_over.gif" alt="Goldyne" width="83" height="17" border="0"></a>');
	}else{
		document.write('<a href="goldyne/index.html" onMouseOver="document.primarynav_goldyne.src=goldyneOver.src" onMouseOut="document.primarynav_goldyne.src=goldyneUp.src"><img src="graphics/primarynav/goldyne_up.gif" alt="Goldyne" name="primarynav_goldyne" id="primarynav_goldyne" width="83" height="17" border="0"></a>');
	}
}
