/**
*  This JavaScript was generated by Brian Freeman
*  http://www.befreeman.com
*  Please feel free to use this script
*/

// The default path for your website
var path=""; //"http://www.angermanhf.com/"

// If you want to have your links run horizontally, set this to true.
var horizontalButtons = true;

// This image is used in between each button.  If you don't want a spacer
// image then just set it to ""
var spacerImage = "";

/***** Creates a table to keep the images in *****/
document.write("<table  border=0 cellspacing=0 cellpadding=0 bgcolor=#ffffff>");
document.write("<tr><td>");

/***** Arrays (DO NOT MODIFY) *****/
var img_normal = new Array();    //the img when the mouse is not over the link
var img_mOver = new Array();     //the img to be displayed when the mouse is over the link
var img_currentPg = new Array(); //this is the img that should be displayed when you are on the page that the link usually points to
var linkLocation = new Array();  //this is the location where the link should point to, the path is automatically added to the front
var title = new Array();         //the title of the page where the link points to
var link_title = new Array();    //the name to be placed in association with the link & images
var img_obj_name = new Array();  //this shouldn't will not need to be modified by user, it contains the object name used when creating the image

/*****
*	Core - Here is the core code needed for each button.
*
*	- Only needed for buttons after the first one, bumps up the array location
	i++;
*	- This is the normal button image. The base variable is prepended to this path
	img_normal[i]  = "/images/home.gif";
*	- This is the button image to use when the mouse is placed over it
	img_mOver[i] = "/images/home.gif";
*	- This is the button image to use if the current web page's title matches
*		the title specified below.  If you don't want to display an image for
*		the current page, set this value to ""
	img_currentPg[i] = "/images/home.gif";
*	- The target web page's Title, so we can not make it a link, and display
*		the button image specified in the img_currentPg variable.
	title[i] = "BeFreeman.com";
*	- This is the link location used for the href=
	linkLocation[i] = "/";
*	- This is the text used int the alt= parameter
	link_title[i] = "Home";
*/

var i = 0; //used for bumping up each value in array

/*****
*	Modify the following items, replacing them with your data.  You can
*	have as many links as you want, just add or remove the core array
*	elements for each button.
*/


//<!-- Photos button -->
img_normal[i]  = "/buttons/photos_up.jpg";
img_mOver[i] = "/buttons/photos.jpg";
img_currentPg[i] = "/buttons/photos_up.jpg";
linkLocation[i] = "/photos.htm";
title[i] = "Angerman Hardwood Floors | Photos";
link_title[i] = "Floor Photos";

i++;
//<!-- Store Button -->
img_normal[i]  = "/buttons/store_up.jpg";
img_mOver[i] = "/buttons/store.jpg";
img_currentPg[i] = "/buttons/store_up.jpg";
linkLocation[i] = "/1store.html";
title[i] = "Angerman Hardwood Floors | Store";
link_title[i] = "AHF Store";

i++;
//<!-- What We Do Button -->
img_normal[i]  = "/buttons/whatwedo_up.jpg";
img_mOver[i] = "/buttons/whatwedo.jpg";
img_currentPg[i] = "/buttons/whatwedo_up.jpg";
linkLocation[i] = "/whatwedo.html";
title[i] = "Angerman Hardwood Floors | What We Do";
link_title[i] = "What We Do";

i++;
//<!-- FAQ Button -->
img_normal[i]  = "/buttons/faq_up.jpg";
img_mOver[i] = "/buttons/faq.jpg";
img_currentPg[i] = "/buttons/faq_up.jpg";
linkLocation[i] = "/faqs.htm";
title[i] = "Angerman Hardwood Floors | Frequently Asked Questions ";
link_title[i] = "Frequently Asked Questions";

i++;
//<!-- Message Board Button -->
img_normal[i]  = "/buttons/message_up.jpg";
img_mOver[i] = "/buttons/message.jpg";
img_currentPg[i] = "/buttons/message_up.jpg";
linkLocation[i] = "/messageboard";
title[i] = "Angerman Hardwood Floors | Message Board";
link_title[i] = "Post a Message";

i++;
//<!-- Contact Us Button -->
img_normal[i]  = "/buttons/contact_up.jpg";
img_mOver[i] = "/buttons/contact.jpg";
img_currentPg[i] = "/buttons/contact_up.jpg";
linkLocation[i] = "/contact/contact.html";
title[i] = "Angerman Hardwood Floors | Contact Us";
link_title[i] = "Contact Us";

i++;
//<!-- Home Page Button -->
img_normal[i]  = "/buttons/homepage_up.jpg";
img_mOver[i] = "/buttons/homepage.jpg";
img_currentPg[i] = "/buttons/homepage_up.jpg";
linkLocation[i] = "/home.htm";
title[i] = "Angerman Hardwood Floors | Home Page";
link_title[i] = "Home";

/**** This is where the buttons get written out *****/
for( i=0; i<img_normal.length; i++ )
{
 	// keep track to see if we printed an image, if we did we might need a spacer image
 	var printedImage=false;
   if(document.title==title[i])
	{
		if( img_currentPg[i]!="" )
		{
     		document.write("<img src='" + path + img_currentPg[i] + "' border=0 alt='"+link_title[i]+"'>");
     		printedImage=true;
		}
   }
	else
	{
      img_obj_name[i] = "image_"+i;
      document.write("<a href=\"" + path + linkLocation[i] + "\" onMouseOver= \"if (document.images) document."+img_obj_name[i]+".src='" + path + img_mOver[i] + "';\" onMouseOut= \"if (document.images) document."+img_obj_name[i]+".src='" + path + img_normal[i] + "';\"><img src=\"" + path + img_normal[i]+"\" alt=\"" + link_title[i] + "\" name=\""+img_obj_name[i]+"\" border=0></a>");
      printedImage=true;
   }
   if(!horizontalButtons)
   {
   	document.write("<br>");
   }
   if((i<img_normal.length-1) && (spacerImage!="") && printedImage ){ //don't want a bar after the last link
      document.write("<img src='" + path + spacerImage + "'>");
   }
}

document.write("</td></tr></table>");

// Preload the roll over images
document.write("<script language=\"javascript\"><!-- \n");
for( i=0; i<img_normal.length; i++ ){
  document.write("if (document.images) {var "+img_obj_name[i]+"=new Image(); "+img_obj_name[i]+".src=\"" + path + img_mOver[i]+"\";} \n");
}

	
