    bG = new Image();
    bG.src = "images/bg.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 ))
	);
	
	rotate_def = new Image();
	rotate_def.src = "images/rotate_def.gif";
	rotate_home = new Image();
	rotate_home.src = "images/rotate_home.gif";
	rotate_serv = new Image();
	rotate_serv.src = "images/rotate_serv.gif";
	rotate_about = new Image();
	rotate_about.src = "images/rotate_about.gif";
	rotate_links = new Image();
	rotate_links.src = "images/rotate_links.gif";
	rotate_contact = new Image();
	rotate_contact.src = "images/rotate_contact.gif";
	
	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("about", "images/about_normal.gif", "images/about_over.gif", "images/about_down.gif");
	AddImageToImageList("shoes", "images/shoes_normal.gif", "images/shoes_over.gif", "images/shoes_down.gif");
	AddImageToImageList("workshops", "images/workshops_normal.gif", "images/workshops_over.gif", "images/workshops_down.gif");
	AddImageToImageList("guest", "images/guest_normal.gif", "images/guest_over.gif", "images/guest_down.gif");
	AddImageToImageList("store", "images/store_normal.gif", "images/store_over.gif", "images/store_down.gif");
	AddImageToImageList("contact", "images/contact_normal.gif", "images/contact_over.gif", "images/contact_down.gif");