
	for(i=0;i<GlowName.length;i++){
		Glow[i]= new Image()
		Glow[i].src = imagesPath + GlowName[i] + ".jpg"
		Fade[i]= new Image()
		Fade[i].src = imagesPath + FadeName[i] + ".jpg"
	}

	function glow(pos,im) {
		if (flag) {
			document.images[pos].src = Glow[im].src
			window.status=Status[im]
		}
	}

	function fade(pos,im) {
		if (flag && (pos != top.currentPos)) {
			document.images[pos].src = Fade[im].src
			window.status=""
		}
	}

	function active(pos,im){
		if (flag) {
			if (top.currentPos != 0)
				document.images[top.currentPos].src = Fade[top.currentIm].src
			top.currentPos = pos
			top.currentIm = im
			if (top.currentPos != 0)
				document.images[pos].src = Glow[im].src
		}
		else {
			top.currentPos = pos
			top.currentIm = im
		}
	}
