function getxml(){
	var xmlobj=false;
	try {
		xmlobj = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlobj = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e2) {
			xmlobj = false;
		}
	}
	if (!xmlobj && typeof XMLHttpRequest != 'undefined') {
		xmlobj = new XMLHttpRequest();
	}
	if(!xmlobj){
		alert("xmlhttpobject create failed!");
	}
	return xmlobj;
}
function site_focus(e,flag){
	var parent=$(e).parentNode;
	var childs=parent.childNodes;
	var num=childs.length;
	for(i=0;i<num;i++){
		Element.removeClassName(childs[i],'focus');
	}
	Element.addClassName($(e),'focus');
	var xmlobj=getxml();
	url='../ajax/sitemap_ajax.php?flag='+flag;
	xmlobj.open('get',url);
	xmlobj.onreadystatechange=function(){
		if(xmlobj.readyState<4){
			$('ler').innerHTML='Loading...';
		}
		if(xmlobj.readyState==4&&xmlobj.status==200){
			var text=xmlobj.responseText;
			$('ler').innerHTML=text;
		}
	}
	xmlobj.send(null);
}