var numitems = 6;
var a = 0;
var b = 0;
var c = 0;
var d = 13;
var ud = "none";
var fading = "ja";
var currentitem = 0;
var colors = new Array(
	"FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF",
	"FFFFFF","F9F9F9","F1F1F1","E9E9E9","E1E1E1","D9D9D9",
	"D1D1D1","C9C9C9","C1C1C1","B9B9B9","B1B1B1","A9A9A9",
	"A1A1A1","999999","919191","898989","818181","797979",
	"717171","696969","616161","595959","515151","494949",
	"414141","393939","313131","292929","212121","191919",
	"111111","090909","000000");
var ting = new Array(); 

function pointat(item){
	if(fading == "nej"){
		if(ud == "up") clearTimeout(yy);
		ud = "down";
		if(currentitem != item) ting[item].style.color = "#" + colors[6];
		if(d < 20){
			for(c=1;c<(numitems+1);c++){ 
				if(item != c) if (currentitem != c) ting[c].style.color = '#' + colors[d];
			}
			d += 1;
			itemz = "pointat(" + item + ")";
			xx=setTimeout(itemz,30);
		}
	}
}
function dontpointat(utem){
	if(fading == "nej"){
		if(ud == "down") clearTimeout(xx);
		ud = "up";
		if(d > 6){
			for(c=1;c<(numitems+1);c++){ 
				if(utem != c) if(currentitem != c)	
					ting[c].style.color = '#' + colors[d];
			}
			d -= 1;
			itemz = "dontpointat(" + utem + ")";
			yy=setTimeout(itemz,30);
		}
	}
}
function currentsite(item){
	if(currentitem != 0) ting[currentitem].style.color = '#' + colors[d];
	currentitem = item;
	ting[currentitem].style.color = '#DDAAAA';
}
function fader2(){
	ting[1] = document.getElementById('men1');
	ting[2] = document.getElementById('men2');
	ting[3] = document.getElementById('men3');
	ting[4] = document.getElementById('men4');
	ting[5] = document.getElementById('men5');
	ting[6] = document.getElementById('men6');
	fading = "nej";
}