var iecountcolor = new Array;
var ffcountcolor = new Array;
var timein = new Array;
var timeout = new Array;
for(var i = 0; i < 10; i++){
	iecountcolor[i] = 100;
	ffcountcolor[i] = 1.00;
}

function colorchangein(num){
	var userAgent = window.navigator.userAgent.toLowerCase();
	if(userAgent.indexOf("msie") > -1){
		document.getElementById("img" + num).src = "menu/" + num + "back.jpg";
	}else{
		clearInterval(timeout[num]);
		timein[num] = setInterval("ffcolorchangein('" + num + "')",20);
	}
}


function ffcolorchangein(num){
	ffcountcolor[num] -= 0.05;
	if(ffcountcolor[num] > 0.00){
		document.getElementById("img" + num).style.opacity = ffcountcolor[num];
	}else{
		clearInterval(timein[num]);
		ffcountcolor[num] = 0.00;
		document.getElementById("img" + num).style.opacity = ffcountcolor[num];
	}
}

function colorchangeout(num){
	var userAgent = window.navigator.userAgent.toLowerCase();
	if(userAgent.indexOf("msie") > -1){
		document.getElementById("img" + num).src = "menu/" + num + ".jpg";
	}else{
		clearInterval(timein[num]);
		timeout[num] = setInterval("ffcolorchangeout('" + num + "')",50);
	}
}

function ffcolorchangeout(num){
	ffcountcolor[num] += 0.05;
	if(ffcountcolor[num] < 1.00){
		document.getElementById("img" + num).style.opacity = ffcountcolor[num];
	}else{
		clearInterval(timeout[num]);
		ffcountcolor[num] = 1.00;
		document.getElementById("img" + num).style.opacity = ffcountcolor[num];
	}
}


function sampledisp(){
	document.getElementById("set1").style.display = "list-item";
	document.getElementById("set2").style.display = "list-item";
}

function sampledispnone(){
	document.getElementById("set1").style.display = "none";
	document.getElementById("set2").style.display = "none";
}

