	var images = new Array("http://www.mgpu.ru/rbc-pict/header_rotation/header-chechulina.jpg", "http://www.mgpu.ru/rbc-pict/header_rotation/header-vdnh.jpg","http://www.mgpu.ru/rbc-pict/header_rotation/header-mkaz.jpg", "http://www.mgpu.ru/rbc-pict/header_rotation/header-krasnodonskaja.jpg");
	var flipLength = 15000;
	var timeColor = 100;
	var countImg = 4;
	var curImg = 0;
	var layerFront = 2;
	var timerSwitch;
	
	function SetClass(xClass)
	{
		if (xClass < 10)
		{
			document.getElementById("divImg"+layerFront).className = "opac"+xClass;
			timerAmt = setTimeout("SetClass("+(xClass+1)+")",timeColor);
		}
		else
		{
			document.getElementById("divImg"+layerFront).className = "";
			curImg++;
			if( curImg >= countImg)
				curImg = 0;
			timerSwitch = setTimeout("ChangeView()",flipLength);
			
		}
	}
	
	function ChangeView()
	{
		var strDisplay = "<img src='"+images[curImg]+"'>";
		var objDiv1 = document.getElementById("divImg1");
		var objDiv2 = document.getElementById("divImg2");
		if (layerFront == 1)
		{
			objDiv2.className = "opac0";
			objDiv1.style.zIndex = 1;
			objDiv2.style.zIndex = 2;
			objDiv2.innerHTML = strDisplay;
			layerFront = 2;
		}
		else
		{
			objDiv1.className = "opac0";
			objDiv2.style.zIndex = 1;
			objDiv1.style.zIndex = 2;
			objDiv1.innerHTML = strDisplay;
			layerFront = 1;
		}
		SetClass(0);
	}