var contents = new Array();
contents[0] = "url(img33.jpg) top left no-repeat";
contents[1] = "url(img34.jpg) top left no-repeat";
contents[2] = "url(img35.jpg) top left no-repeat";
contents[3] = "url(img36.jpg) top left no-repeat";
contents[4] = "url(img37.jpg) top left no-repeat";
var total = 4
//////////












































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;
