	
	var XMLHttpReq = false;
	
	var ServicePath = "/";
	
	function CrXMLHttpReqRequest() {
		xmlHttpObj = ["Microsoft.xmlHttp","MSXML2.xmlHttp.5.0","MSXML2.xmlHttp.4.0","MSXML2.xmlHttp.3.0","MSXML2.xmlHttp"];
		if(window.XMLHttpRequest) { //Mozilla 浏览器
			XMLHttpReq = new XMLHttpRequest();
		} else if(window.ActiveXObject) {
			for(i=0;i<xmlHttpObj.length;i++) {
				XMLHttpReq = new ActiveXObject(xmlHttpObj[i]);
				if(XMLHttpReq) {
					break; 
				}
			}
		} else {
			return false;
		}
		return XMLHttpReq?XMLHttpReq:false;
	}
		
	function Notice() {
		var url = ServicePath + "news/slogan.asp";
		CrXMLHttpReqRequest();
		XMLHttpReq.open("GET", url, true);
		XMLHttpReq.onreadystatechange = ReadyStart;
		XMLHttpReq.send(null);
	}
	
	function ReadyStart() {
		if (XMLHttpReq.readyState == 4) {
			if (XMLHttpReq.status == 200) {
				var state = unescape(XMLHttpReq.responseText);
				//alert(state);
				if( state != "" ) {
					document.getElementById("slogan").innerHTML = "<marquee SCROLLAMOUNT=\"10\" SCROLLDELAY=\"200\" onmouseover=\"this.stop();\" onmouseout=\"this.start();\"><strong>公司动态：</strong>" + state + "</marquee>";
				} else {
					document.getElementById("slogan").innerHTML = "<marquee SCROLLAMOUNT=\"10\" SCROLLDELAY=\"200\" onmouseover=\"this.stop();\" onmouseout=\"this.start();\"><strong>公司动态：</strong><a href=\"/human_resource_hr/Careers.asp\">暂时没有公告内容...</a></marquee>";
				}
			} else {
				document.getElementById("slogan").innerHTML = "<span></span>暂时没有置顶内容...";
			}
		}
	}
	
	function getServicTime() {
		var url = ServicePath + "js/now.asp?random=" + Math.random();
		CrXMLHttpReqRequest();
		XMLHttpReq.open("GET", url, true);
		XMLHttpReq.onreadystatechange = ReadyState;
		XMLHttpReq.send(null);
	}
	
	function ReadyState() {
		if (XMLHttpReq.readyState == 4) {
			if (XMLHttpReq.status == 200) {
				var state = unescape(XMLHttpReq.responseText);
				document.getElementById("onShowTime").innerHTML = state;
			} else {
				document.getElementById("onShowTime").innerHTML = "";
			}
		}
	}
	
