var contents = new Array();
contents[0] = "url(img47.jpg) top left no-repeat";
contents[1] = "url(img54.jpg) top left no-repeat";
contents[2] = "url(img58.jpg) top left no-repeat";
contents[3] = "url(img59.jpg) top left no-repeat";
var total = 3
//////////












































































var opacity = 0;
var display = 0;


function updatetext(){



	if (document.getElementById("mg")){
		rm = document.getElementById("mg");
		if (display != total){
		rm.style.opacity = 1.0;
		rm.style.filter = 'alpha(opacity=100)';

		rm.style.background = contents[(display+1)];
		} else {
		rm.style.opacity = 1.0;
		rm.style.filter = 'alpha(opacity=100)';

		rm.style.background = contents[0];
		}


	rr = document.getElementById("bg");
	rr.style.background = contents[display];


	opacity =0;

		if (display > 0){
		display--;
		} else {
		display=total;
		}

		var t = setTimeout("fadein()", 7500);

	}
}

function fadein(){
	if (opacity < 11){
	value=(10-opacity);
	y= document.getElementById("mg");
	y.style.opacity = value/10;
	y.style.filter = 'alpha(opacity=' + value*10 + ')';
	var t = setTimeout("fadein()",50);
	opacity++;
	} else {
	updatetext();
	}

}

window,onload= updatetext;

