//          ##    ##
//         ####  ####
//         ####  ####
//          ##    ##
//           ######
//          #(.)(.)#
//          ########
//           ######
//            ####
//           ==##==           MOUSE
//             @@
//
//      ###############       OVER
// 
//      #   # #   # #  #
//      #   # ##  # ###       LINK
//      #   # # # # # #
//      ### # #  ## #  #
//
// #######################################
// ##                                   ##
// ##   This javascript is copyright    ##
// ##   2001 Expressive Sites and       ##
// ##   Services.                       ##
// ##                                   ##
// ##   programming@expressivesites.com ##
// ##                                   ##
// ##   Documentation Follows:          ##
// ##                                   ##
// #######################################
// ##                                   ##
// ##   Installation:                   ##
// ##   Create desired buttons in this  ##
// ##   file as described below.        ##
// ##   Place this file in a directory  ##
// ##   on the webserver.               ##
// ##   include the following script    ##
// ##   in each html file that will use ##
// ##   the button set. Replace         ##
// ##   "validpath/" with your path     ##
// ##   to the script.                  ##
// ##                                   ##
// ##########################################################################
// ##                                                                      ##
// ##   <script language="javascript" src="validpath/mouseoverlink.js">    ##
// ##   </script>                                                          ##
// ##                                                                      ##
// ##########################################################################
// ##                                   ##
// ##   Then place the following script ##
// ##   in the same html file(s).       ##
// ##   Depending what kind of things   ##
// ##   are in your page, (other java   ##
// ##   and so on), you may have to put ##
// ##   it in a certain place like the  ##
// ##   top or bottom, in or out of a   ##
// ##   particular table etc...         ##
// ##   On the first line after the     ##
// ##   <body ...> tag is the first     ##
// ##   place you should try it.        ##
// ##                                   ##
// #######################################
// ##                                   ##
// ##  <script language="javascript">   ##
// ##  makemenu();                      ##
// ##  </script>                        ##
// ##                                   ##
// #######################################
// ##                                   ##
// ##   button_count is the total       ##
// ##   number of buttons you have      ##
// ##   created in the areas below.     ##
// ##   DO NOT COUNT THE TEST BUTTON.   ##
// ##   For example, if your last       ##
// ##   button has tags like:           ##
// ##                                   ##
// ##   off_image[9] = "some.gif"       ##
// ##                                   ##
// ##   ...then                         ##
// ##   button_count = 9;               ##
// ##   ...would be correct.            ##
// ##                                   ##
// #######################################

button_count = 8;

// #######################################
// ##                                   ##
// ##  Don't edit the var pieces below. ##
// ##                                   ##
// #######################################

var off_image = new Array();
var onn_image = new Array();
var url_click = new Array();
var url_label = new Array();
var image_top = new Array();
var image_lft = new Array();

// #######################################
// ##                                   ##
// ##   Each button gets its own        ##
// ##   definition block below.         ##
// ##                                   ##
// ##   All you have to do is copy      ##
// ##   and paste the entire example    ##
// ##   button section and change       ##
// ##   the variables to match your     ##
// ##   needs. Increment the number     ##
// ##   in brackets [0] with each       ##
// ##   button you section create.      ##
// ##   Place any new buttons           ##
// ##   after this box and before       ##
// ##   the next box.                   ##
// ##                                   ##
// #######################################


// Example button. You can leave it here because [0] isn't used.

off_image[0] = "images/aboutoff.gif";
onn_image[0] = "images/abouton.gif";
url_click[0] = "www.example.com";
url_label[0] = "Visit example.com!";
image_top[0] = 100;
image_lft[0] = 0;

off_image[1] = "images/aboutoff.gif";
onn_image[1] = "images/abouton.gif";
url_click[1] = "about.htm";
url_label[1] = "About Molding Dynamics";
image_top[1] = 165;
image_lft[1] = 0;

off_image[2] = "images/serviceoff.gif";
onn_image[2] = "images/serviceon.gif";
url_click[2] = "services.htm";
url_label[2] = "Services";
image_top[2] = 184;
image_lft[2] = 0;

off_image[3] = "images/equipoff.gif";
onn_image[3] = "images/equipon.gif";
url_click[3] = "equipment.htm";
url_label[3] = "Facilities And Equipment";
image_top[3] = 203;
image_lft[3] = 0;

off_image[4] = "images/qualityoff.gif";
onn_image[4] = "images/qualityon.gif";
url_click[4] = "quality.htm";
url_label[4] = "Quality Systems";
image_top[4] = 221;
image_lft[4] = 0;

off_image[5] = "images/locationoff.gif";
onn_image[5] = "images/locationon.gif";
url_click[5] = "location.htm";
url_label[5] = "Location";
image_top[5] = 240;
image_lft[5] = 0;

off_image[6] = "images/contactoff.gif";
onn_image[6] = "images/contacton.gif";
url_click[6] = "contact.htm";
url_label[6] = "Contact Us";
image_top[6] = 259;
image_lft[6] = 0;

off_image[7] = "images/homeoff.gif";
onn_image[7] = "images/homeon.gif";
url_click[7] = "home.htm";
url_label[7] = "Home";
image_top[7] = 278;
image_lft[7] = 0;

off_image[8] = "images/ISOoff-2-9-15-09 copy.gif";
onn_image[8] = "images/ISOoff-2-9-15-09 copy.gif";
url_click[8] = "quality.htm";
url_label[8] = "ISO 9001:2008 Registered";
image_top[8] = 333;
image_lft[8] = 0;

// Add new button sections here.



// #######################################
// ##                                   ##
// ##   Troubleshooting:                ##
// ##   1) Compare your code to the     ##
// ##   example code for a consistent   ##
// ##   pattern and proper increments.  ##
// ##   2) Make sure you didn't forget  ##
// ##   to make button_count equal to   ##
// ##   the # of your last button.      ##
// ##   3) Check your urls and links.   ##
// ##   4) Consider the position of the ##
// ##   code in the html document as    ##
// ##   mentioned above.                ##
// ##                                   ##
// #######################################
// ##                                   ##
// ##   Do not edit below this area     ##
// ##                                   ##
// ##   That's all there is to read.    ##
// ##                                   ##
// #######################################

var gflag;
function l88003311()
{
	appName=navigator.appName;
	appVer=navigator.appVersion.substring(0,1);
	if ((appName == "Netscape") && (appVer >=4)) return true;
	return false;
}
function l88033011()
{
	appName=navigator.appName;
	appVer=navigator.appVersion.substring(0,1);
	if ((appName == "Microsoft Internet Explorer") && (appVer >=4)) return true;
	return false;
}
function l88030311()
{
	var lt = new Array();
	if (l88003311())
		{
		for (z=1;z<(button_count+1);z++){
			lt[z] = eval("document.lt"+z+";");
			lt[z].left=-640;
			}
		}
	else if (l88033011())
		{
		for (z=1;z<(button_count+1);z++){
			lt[z] = eval("lt"+z+".style;");
			lt[z].left=-640;
			}
		}
	gflag = 0;
}

function l88303011(c)
{
	gflag = 1
	var lt = new Array();
	if (l88003311())
		{
		for (z=1;z<(button_count+1);z++){
			lt[z] = eval("document.lt"+z+";");
			lt[z].left=-640;
			}
		}
	else if (l88033011())
		{
		for (z=1;z<(button_count+1);z++){
			lt[z] = eval("lt"+z+".style;");
			lt[z].left=-640;
			}
		}
	lt[c].left = image_lft[c];
}
function l88313100()
{
}
function makemenu()
{
		for (increment=1;increment<(button_count+1);increment++){
		document.write("<span style='left: "+image_lft[increment]+"; top: "+image_top[increment]+"; position: absolute' id='gt"+increment+"'><a onmouseover='javascript:l88303011("+increment+")' onmouseout='javascript:l88030311()' href='"+url_click[increment]+"'><img border='0' src='"+off_image[increment]+"'></a></span>");
		document.write("<span style='left: -640; top: "+image_top[increment]+"; position: absolute' id='lt"+increment+"'><a onmouseover='javascript:l88303011("+increment+")' onmouseout='javascript:l88030311()' href='"+url_click[increment]+"'><img border='0' src='"+onn_image[increment]+"'></a></span>");
		}
}

