function style1(){
	document.getElementById("b1").style.background = "url(img/bg2act.png)";
	document.getElementById("b2").style.background = "url(img/bg2.png)";
	document.getElementById("b3").style.background = "url(img/bg2.png)";
	document.getElementById("plashcont1").style.display = "block";
	document.getElementById("plashcont2").style.display = "none";
	document.getElementById("plashcont3").style.display = "none";
}	
function style2(){
	document.getElementById("b1").style.background = "url(img/bg2.png)";
	document.getElementById("b2").style.background = "url(img/bg2act.png)";
	document.getElementById("b3").style.background = "url(img/bg2.png)";
	document.getElementById("plashcont1").style.display = "none";
	document.getElementById("plashcont2").style.display = "block";
	document.getElementById("plashcont3").style.display = "none";
}
function style3(){
	document.getElementById("b1").style.background = "url(img/bg2.png)";
	document.getElementById("b2").style.background = "url(img/bg2.png)";
	document.getElementById("b3").style.background = "url(img/bg2act.png)";
	document.getElementById("plashcont1").style.display = "none";
	document.getElementById("plashcont2").style.display = "none";
	document.getElementById("plashcont3").style.display = "block";

}
i = 0.1;
int = 0;
current = 2;
function showFF(num) {
		clearInterval(interval);
		i += 0.1;
		for (j = 1; j <= 3; j++){
			if (j != num) {
				document.getElementById("f0" + j + j).style.opacity = "0" ;
				document.getElementById("f" + j).style.background = "url(img/bggg.png)";
			}
		}
		document.getElementById("f0" + num + num).style.opacity = i;
		if (i >= 1){
			clearInterval(int);
			i = 0;
			current = num;
			interval = setInterval('next()', 5000);
		}
		for (j = 1; j <= 3; j++) {
			document.getElementById("f" + j).style.background = "url(img/bggg.png)";	
			document.getElementById("f0" + j).style.display = 'none';
			document.getElementById("lo" + j).style.display = 'none';
			/*document.getElementById("n" + j).style.display = 'none';*/
		}
		document.getElementById("f" + num).style.background = "url(img/bggg1.png)";
		document.getElementById("f0" + num).style.display = 'block';
		document.getElementById("lo" + num).style.display = 'block';
		/*document.getElementById("n" + num).style.display = 'block';*/
}
function next() {
	if (current == 3) {
		current = 1;			
	}
	else {
		current++;
	}
	int = setInterval('showFF(current)', 50);
}
interval = setInterval('next()', 5000);
