
hex = new Array(8)
set = new Array(6)
set1 = new Array(0,0,0,0,0,0,0,0)
hex[0] = "ffffff"
hex[1] = "C7E3F1"
hex[2] = "A8D3E9"
hex[3] = "B3E0EF"
hex[4] = "8DD4EB"
hex[5] = "64C4E4"  
hex[6] = "38B2DA"
hex[7] = "13A0CF"
hex[8] = "0199CB"

function rollon(n){
if (n==1){set[1]=1}
if (n==2){set[2]=1}
if (n==3){set[3]=1}
if (n==4){set[4]=1}
if (n==5){set[5]=1}
if (n==6){set[6]=1}
if (n==7){set[7]=1}
}
function rolloff(n){
if (n==1){set[1]=0}
if (n==2){set[2]=0}
if (n==3){set[3]=0}
if (n==4){set[4]=0}
if (n==5){set[5]=0}
if (n==6){set[6]=0}
if (n==7){set[7]=0}
}

function color(){
if (set[1]==1){
	if (set1[1]==8){} else{set1[1]++ ;item1.style.background = hex[set1[1]] }
} else {
if (set1[1]==0){} else{set1[1]=set1[1]-1 ;item1.style.background = hex[set1[1]] }
}

if (set[2]==1){
	if (set1[2]==8){} else{set1[2]++ ;item2.style.background = hex[set1[2]] }
} else {
if (set1[2]==0){} else{set1[2]=set1[2]-1 ;item2.style.background = hex[set1[2]] }
}

if (set[3]==1){
	if (set1[3]==8){} else{set1[3]++ ;item3.style.background = hex[set1[3]] }
} else {
if (set1[3]==0){} else{set1[3]=set1[3]-1 ;item3.style.background = hex[set1[3]] }
}

if (set[4]==1){
	if (set1[4]==8){} else{set1[4]++ ;item4.style.background = hex[set1[4]] }
} else {
if (set1[4]==0){} else{set1[4]=set1[4]-1 ;item4.style.background = hex[set1[4]] }
}

if (set[5]==1){
	if (set1[5]==8){} else{set1[5]++; item5.style.background = hex[set1[5]] }
} else {
if (set1[5]==0){} else{set1[5]=set1[5]-1; item5.style.background = hex[set1[5]] }
}

if (set[6]==1){
	if (set1[6]==8){} else{set1[6]++ ;item6.style.background = hex[set1[6]] }
} else {
if (set1[6]==0){} else{set1[6]=set1[6]-1 ;item6.style.background = hex[set1[6]] }
}

if (set[7]==1){
	if (set1[7]==8){} else{set1[7]++ ;item7.style.background = hex[set1[7]] }
} else {
if (set1[7]==0){} else{set1[7]=set1[7]-1 ;item7.style.background = hex[set1[7]] }
}

setTimeout("color()",100)
}
