bG = new Image();
bG.src = "../images/kto_bg2.jpg";
toP = new Image();
toP.src = "../images/kto_top.gif";
buT1 = new Image();
buT1.src = "../images/home_normal.gif";
buT2 = new Image();
buT2.src = "../images/products_normal.gif";
buT3 = new Image();
buT3.src = "../images/order_normal.gif";
buT4 = new Image();
buT4.src = "../images/jobs_normal.gif";
buT5 = new Image();
buT5.src = "../images/about_normal.gif";
buT6 = new Image();
buT6.src = "../images/contact_normal.gif";
buT7 = new Image();
buT7.src = "../images/swcase_normal.gif";
buT8 = new Image();
buT8.src = "../images/rlist_normal.gif";
doT = new Image();
doT.src = "../images/dot.gif";

nMaxItem = 4;
NameIndex = 0;
DefaultState = 1;

MouseOverState = 2;
MouseDownState = 3;
imgCounter = 0;

ImageList = new Array();

bIsSupportOK = (
	((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
	((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )) ||
	((navigator.appName == "Opera") && (parseInt(navigator.appVersion) >= 6 ))
);

function AddImageToImageList(name, Default, MouseOver, MouseDown)
{
	ImageList[imgCounter] = new Array(nMaxItem);
	ImageList[imgCounter][NameIndex] = name;
	ImageList[imgCounter][DefaultState] = new Image();
	ImageList[imgCounter][DefaultState].src = Default;
	if (MouseOver != "") {
		ImageList[imgCounter][MouseOverState] = new Image();
		ImageList[imgCounter][MouseOverState].src = MouseOver;
	}
	if (MouseDown != "") {
		ImageList[imgCounter][MouseDownState] = new Image();
		ImageList[imgCounter][MouseDownState].src = MouseDown;
	}

	imgCounter++;
}

function ReplaceImage(name, state)
{
	for (i = 0; i < imgCounter; i++) {
		if (document.images[ImageList[i][NameIndex]] != null) {
			if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
				document.images[name].src = ImageList[i][state].src;
		}
	}
}

AddImageToImageList("home", "../images/home_normal.gif", "../images/home_over.gif", "../images/home_down.gif");
AddImageToImageList("prod", "../images/products_normal.gif", "../images/products_over.gif", "../images/products_down.gif");
AddImageToImageList("order", "../images/order_normal.gif", "../images/order_over.gif", "../images/order_down.gif");
AddImageToImageList("showcase", "../images/swcase_normal.gif", "../images/swcase_over.gif", "../images/swcase_down.gif");
AddImageToImageList("rlist", "../images/rlist_normal.gif", "../images/rlist_over.gif", "../images/rlist_down.gif");
AddImageToImageList("about", "../images/about_normal.gif", "../images/about_over.gif", "../images/about_down.gif");
AddImageToImageList("contact", "../images/contact_normal.gif", "../images/contact_over.gif", "../images/contact_down.gif");

