var r,g,b;
var colorFlag = 0;
var r1,g1,b1;
var colorFlag1 = 0;

function mouseOver(div1)
{
	if(div1.tagName == 'DIV'){
		div1.className = 'buttonLink';
		for(i=0;;i++){
			ch = div1.childNodes[i];
			if(!ch)break;
			if(ch.tagName=='A')
				ch.style['textDecoration'] = 'underline';
		}
	}
	else{
		div1.style['textDecoration'] = 'underline';
		div1.parentNode.className = 'buttonLink';
	}
	r = 110;
	g = 131;
	b = 152;	
	
	div2 = document.getElementById('div28');
	div2.innerHTML = div1.attributes.getNamedItem('descr').value;
	div2.style['color'] = 'RGB('+r+', '+g+', '+b+')'
	div2.style['display'] = 'block';
	colorFlag = 0;
	
	r1 = 255;
	g1 = 255;
	b1 = 255;	
	colorFlag1 = 0;
	div1.parentNode.style['backgroundColor'] = 'RGB(255, 255, 255)';
	
}

function fadeToBlue(div){
	if((r1>208)&&(colorFlag1 == 1)){
		--r1;
		if(b1>249)--b1;
		if(g1>230)--g1;
		div.style['backgroundColor'] = 'RGB('+ (r1)+', '+ (g1)+', '+ (b1)+')';
		setTimeout(function(){fadeToBlue(div)},1);
	}
	else{
		div.style['backgroundColor'] = 'RGB(208, 230, 249)';
	}
}

function fadeToBlack(){
	
	if((b<250)&&(colorFlag == 1)){
		document.getElementById('div28').style['color'] = 'RGB('+ (++r)+', '+ (++g)+', '+ (++b)+')';
		setTimeout(fadeToBlack,1);
	}
}

function mouseOut(div1)
{
	if(div1.tagName == 'DIV'){
		div1.className = 'buttonLinkDis';
		for(i=0;;i++){
			ch = div1.childNodes[i];
			if(!ch)break;
			if(ch.tagName=='A')
				ch.style['textDecoration'] = 'none';
		}
	}
	else{
		div1.style['textDecoration'] = 'none';
		div1.parentNode.className = 'buttonLinkDis';
	}
	
	colorFlag = 1;
	colorFlag1 = 1;
	setTimeout(fadeToBlack,1);
	setTimeout(function(){fadeToBlue(div1.parentNode)},1);
}

