// website & media: http://www.silance.net mailto:pawel@silance.net
hex = new Array(6)
set = new Array(4)
set1 = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0)
hex[0] = "CCCCCC"
hex[1] = "BBBBBB"
hex[2] = "AAAAAA"
hex[3] = "999999"
hex[4] = "888888"
hex[5] = "777777"  
hex[6] = "666666"

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)
if (n==13)(set[13]=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)
if (n==13)(set[13]=0)
}

function color(){
if (set[1]==1){
	if (set1[1]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]==6){} 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]] }
}

if (set[13]==1){
	if (set1[13]==6){} else{set1[13]++ ;item13.style.background = hex[set1[13]] }
} else {
if (set1[13]==0){} else{set1[13]=set1[13]-1 ;item13.style.background = hex[set1[13]] }
}
setTimeout("color()",100)
}