////////////////////////////////////////////////////////////////////////////////
//                        Image Roll Over v1.00                               //
//                                                                            //
//      This Javascript program is very very simple, but sometimes usefull.   //
//  This script must be updated for each image that is on the page that will  //
//use the image rollover properties.                                          //
//                                                                            //
//      This Page, Script, and/or Associated Scripts are copyrighted 2002     //
//                      Derek Mantey, Hyper                                   //
//      Distribution of this file is not permitted without the writen consent //
//of Derek Mantey or Hyper.                                                   //
////////////////////////////////////////////////////////////////////////////////

var browserName = navigator.appName;
var browserVer = parseInt( navigator.appVersion );
var version = "";


if ( browserName == "Netscape" && browserVer >= 3 )
	version = "n3";
else if ( browserName == "Netscape" && browserVer == 2 )
	version = "n2";
else if ( browserName == "Microsoft Internet Explorer" && browserVer >= 4 )
	version = "e4";
else if ( browserName == "Microsoft Internet Explorer" && browserVer >= 2 )
	version = "e2";
else
	version = "other";

if ( version == "n3" || version == "e4" )
{
	z1on = new Image;
	z1on.src = "images/homed.gif";
	z1off = new Image;
	z1off.src = "images/homeu.gif";
	z2on = new Image;
	z2on.src = "images/computersd.gif";
	z2off = new Image;
	z2off.src = "images/computersu.gif";
	z3on = new Image;
	z3on.src = "images/accessoriesd.gif";
	z3off = new Image;
	z3off.src = "images/accessoriesu.gif";
	z4on = new Image;
	z4on.src = "images/componentsd.gif";
	z4off = new Image;
	z4off.src = "images/componentsu.gif";
	z5on = new Image;
	z5on.src = "images/servicesd.gif";
	z5off = new Image;
	z5off.src = "images/servicesu.gif";
    z6on = new Image;
    z6on.src = "images/viewcartd.gif";
    z6off = new Image;
    z6off.src = "images/viewcartu.gif";
	z7on = new Image;
	z7on.src = "images/contact-usd.gif";
	z7off = new Image;
	z7off.src = "images/contact-usu.gif";
}

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
var term;

function open_window(url)
{
	window.onerror = handleError
	term = window.open(url, "term",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=300,height=300');
	if ((bName == "Netscape") || (bName == "Microsoft Internet Explorer" && bVer >= 4.0))
	{
		term.focus(url);
	}
}

function handleError()
{
	//  error handling code
	return true;
}

function img_act(imgName)
{
	if (version == "n3" || version == "e4")
	{
		imgOn = eval(imgName + "on.src");
		document [imgName].src = imgOn;
	}
}

function img_inact(imgName)
{
	if (version == "n3" || version == "e4")
	{
		imgOff = eval(imgName + "off.src");
		document [imgName].src = imgOff;
	}
}