var mainListObj = document.getElementById('mainListWrap');
var mainListLock = false;
function getMain(){
	mxml = null;
	try{
		mxml = new XMLHttpRequest();
		mxml.overrideMimeType("text/xml");
	}
	catch(e){
		try{mxml = new ActiveXObject("Msxml2.XMLHTTP");}
		catch(e){ return null;}
	}
	if(!mxml) return null;
	try{
		mxml.open("GET",'main.html',false);
		mxml.send(null);
	}
	catch(e){return null;}
	return mxml.responseText;
}

function mainListRefresh(){
	var reply=null;
	if((document.readyState == 'complete' || document.readyState == undefined) && !mainListLock) {
		reply = getMain();
		if(reply!=null && reply!=undefined ){
			mainListObj.innerHTML = reply;
		}
	}

	window.setTimeout('mainListRefresh();', 6500);
}
mainListRefresh();

mainListObj.onmouseover = function(){
	mainListLock=true;
}
mainListObj.onmouseout = function(){
	mainListLock=false;
}

