//MENU BAR

hex = new Array(8)
set = new Array(12)
set1 = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0)
hex[0] = "FF9900"
hex[1] = "3399FF"
hex[2] = "6699FF"
hex[3] = "66CCFF"
hex[4] = "99CCFF"
hex[5] = "FFFFFF"  
hex[6] = "FF9900"
hex[7] = "FFFFFF"
hex[8] = "FF3366"

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}
if (n==8){set[8]=1}
if (n==9){set[9]=1}
if (n==10){set[10]=1}
if (n==11){set[11]=1}
if (n==12){set[12]=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}
if (n==8){set[8]=0}
if (n==9){set[9]=0}
if (n==10){set[10]=0}
if (n==11){set[11]=0}
if (n==12){set[12]=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]] }
}

if (set[8]==1){
	if (set1[8]==8){} else{set1[8]++ ;item8.style.background = hex[set1[8]] }
} else {
if (set1[8]==0){} else{set1[8]=set1[8]-1 ;item8.style.background = hex[set1[8]] }
}

if (set[9]==1){
	if (set1[9]==8){} else{set1[9]++ ;item9.style.background = hex[set1[9]] }
} else {
if (set1[9]==0){} else{set1[9]=set1[9]-1 ;item9.style.background = hex[set1[9]] }
}

if (set[10]==1){
	if (set1[10]==8){} else{set1[10]++ ;item10.style.background = hex[set1[10]] }
} else {
if (set1[10]==0){} else{set1[10]=set1[10]-1 ;item10.style.background = hex[set1[10]] }
}

if (set[11]==1){
	if (set1[11]==8){} else{set1[11]++ ;item11.style.background = hex[set1[11]] }
} else {
if (set1[11]==0){} else{set1[11]=set1[11]-1 ;item11.style.background = hex[set1[11]] }
}

if (set[12]==1){
	if (set1[12]==8){} else{set1[12]++ ;item12.style.background = hex[set1[12]] }
} else {
if (set1[12]==0){} else{set1[12]=set1[12]-1 ;item12.style.background = hex[set1[12]] }
}
setTimeout("color()",40)
}
