function fader1() {
	clearTimeout(thetimer);
	var cells = document.getElementsByTagName('td');
	var numCells = cells.length;
		for (var i = 0; i < numCells; ++i) {
			if (cells[i].className=='link') {
				cells[i].style.filter = 'alpha(opacity=40)';
				cells[i].style.MozOpacity = 0.4;
				cells[i].style.opacity = 0.4;
			}
		}
	fader2();
}

function fader2() {
	opac+=1;
	sonikcell.filter = 'alpha(opacity=' + (100-(opac*3)) + ')';
	sonikcell.MozOpacity = ((100-(opac*3))/100);
	sonikcell.opacity = ((100-(opac*3))/100);
	if (opac<33) {thetimer1=setTimeout("fader2()", 25);}
	if (opac>20) {colamine1();}
}

function colamine() {yy=0;colamine1();}

function colamine1() {
	clearTimeout(thetimer);
	yy+=1;
	if (yy<(rnum)) {
		screencell[yy].borderBottomWidth='1pt';
		screencell[yy].borderBottomColor=two;
		screencell[yy].backgroundColor=one;
	}
//	if (yy>1&&yy<(rnum+2)) {
	if (yy>1&&yy<(rnum)) {
		if (secondscreen) {
			screencell[yy].backgroundColor=four;
			screencell[yy-1].borderBottomWidth='0pt';
		}
		screencell[(yy-1)].borderBottomColor=three;
		screencell[yy-1].backgroundColor=four;
	}
//	if(yy<(rnum+2)){thetimer=setTimeout("colamine1()", 5);}
	if(yy<(rnum+1)){thetimer=setTimeout("colamine1()", 1);}
	else 
	{colamine2();}
}

function colamine2() {
	if (!secondscreen) {
		secondscreen=true;
		one='';two='white';three='';four='';
		sonikLyr.visibility='hidden';
		mainLyr.visibility='visible';
		leftLyr.visibility='visible';
		rightLyr.visibility='visible';
		colamine();
	}
else
	{screenLyr.zIndex=-1;screenLyr.visibility='hidden';}
}

