function newstimer(cur)
	{
	count=cur;
	count+=1;
	clearTimeout(t);
	if (count==maxNews) {

	count=0;
	}
	t=setTimeout("change("+count+");",7000);
	}
function change(cur)
	{
	document.getElementById('mainNewsImg').style.backgroundImage="url("+mainIMG[cur]+")";
	document.getElementById('mainNewsLink').href=mainLink[cur];
	document.getElementById('mainNewsTitleLink').href=mainLink[cur];
	document.getElementById('mainNewsTitle').innerHTML=mainTitle[cur];
	newstimer(cur);
	}
