function __firefox(){
	HTMLElement.prototype.__defineGetter__("runtimeStyle", __element_style);
	window.constructor.prototype.__defineGetter__("event", __window_event);
	Event.prototype.__defineGetter__("srcElement", __event_srcElement);
}
function __element_style(){ return this.style;}
function __window_event(){ return __window_event_constructor();}
function __event_srcElement(){  return this.target;}
function __window_event_constructor(){
	if(document.all){ return window.event;	}
	var _caller = __window_event_constructor.caller;
	while(_caller!=null){
		var _argument = _caller.arguments[0];
		if(_argument){
			var _temp = _argument.constructor;
			if(_temp.toString().indexOf("Event")!=-1){  return _argument;	}
		}
		_caller = _caller.caller;
	}
	return null;
}
if(window.addEventListener){ __firefox();}
if(window.Event && -[1,]){// 修正Event的DOM -[1,],非ie
/* 
							IE5		MacIE5		Mozilla		Konqueror2.2		Opera5 
event						yes		yes			yes			yes					yes 
event.returnValue			yes		yes			no			no					no 
event.cancelBubble			yes		yes			no			no					no 
event.srcElement			yes		yes			no			no					no 
event.fromElement			yes		yes			no			no					no 
 
*/ 
Event.prototype.__defineSetter__("returnValue",function(b){//
	if(!b)this.preventDefault(); return b; 	}); 
Event.prototype.__defineSetter__("cancelBubble",function(b){// 设置或者检索当前事件句柄的层次冒泡 
	if(b)this.stopPropagation(); return b; 	}); 
Event.prototype.__defineGetter__("srcElement",function(){ 
	var node=this.target; 
	while(node.nodeType!=1)node=node.parentNode; 
	return node; 
	}); 
Event.prototype.__defineGetter__("fromElement",function(){// 返回鼠标移出的源节点 
	var node; 
	if(this.type=="mouseover") 
		node=this.relatedTarget; 
	else if(this.type=="mouseout") 
		node=this.target; 
	if(!node)return; 
	while(node.nodeType!=1)node=node.parentNode; 
	return node; 
	}); 
Event.prototype.__defineGetter__("toElement",function(){// 返回鼠标移入的源节点 
	var node; 
	if(this.type=="mouseout") node=this.relatedTarget; 
	else if(this.type=="mouseover") node=this.target; 
	if(!node)return; 
	while(node.nodeType!=1)node=node.parentNode; 
	return node; 
	}); 
Event.prototype.__defineGetter__("offsetX",function(){ return this.layerX; 	}); 
Event.prototype.__defineGetter__("offsetY",function(){ return this.layerY; 	}); 
} 
if(window.Document){// 修正Document的DOM 
/* 
							IE5		MacIE5		Mozilla		Konqueror2.2		Opera5 
document.documentElement	yes		yes			yes			yes					no 
document.activeElement		yes		null		no			no					no 
 
*/ 
} 
if(window.Node){// 修正Node的DOM 
/* 
							IE5		MacIE5		Mozilla		Konqueror2.2		Opera5 
Node.contains				yes		yes			no			no					yes 
Node.replaceNode			yes		no			no			no					no 
Node.removeNode				yes		no			no			no					no 
Node.children				yes		yes			no			no					no 
Node.hasChildNodes			yes		yes			yes			yes					no 
Node.childNodes				yes		yes			yes			yes					no 
Node.swapNode				yes		no			no			no					no 
Node.currentStyle			yes		yes			no			no					no 
 
*/ 
Node.prototype.replaceNode =function(Node){// 替换指定节点 
	this.parentNode.replaceChild(Node,this); 
	} 
Node.prototype.removeNode =function(removeChildren){// 删除指定节点 
	if(removeChildren) 
		return this.parentNode.removeChild(this); 
	else{ 
		var range=document.createRange(); 
		range.selectNodeContents(this); 
		return this.parentNode.replaceChild(range.extractContents(),this); 
		} 
	} 
Node.prototype.swapNode =function(Node){// 交换节点 
	var nextSibling=this.nextSibling; 
	var parentNode=this.parentNode; 
	node.parentNode.replaceChild(this,Node); 
	parentNode.insertBefore(node,nextSibling); 
	} 
} 
if(window.HTMLElement){ 
HTMLElement.prototype.__defineGetter__("all",function(){ 
	var a=this.getElementsByTagName("*"); 
	var node=this; 
	a.tags=function(sTagName){ 
		return node.getElementsByTagName(sTagName); 
		} 
	return a; 
	}); 
HTMLElement.prototype.__defineGetter__("parentElement",function(){ 
	if(this.parentNode==this.ownerDocument)return null; 
	return this.parentNode; 
	}); 
HTMLElement.prototype.__defineGetter__("children",function(){ 
	var tmp=[]; 
	var j=0; 
	var n; 
	for(var i=0;i<this.childNodes.length;i++){ 
		n=this.childNodes[i]; 
		if(n.nodeType==1){ 
			tmp[j++]=n; 
			if(n.name){ 
				if(!tmp[n.name]) 
					tmp[n.name]=[]; 
				tmp[n.name][tmp[n.name].length]=n; 
				} 
			if(n.id) 
				tmp[n.id]=n; 
			} 
		} 
	return tmp; 
	}); 
HTMLElement.prototype.__defineGetter__("currentStyle", function(){ 
	return this.ownerDocument.defaultView.getComputedStyle(this,null); 
	}); 
HTMLElement.prototype.__defineSetter__("outerHTML",function(sHTML){ 
	var r=this.ownerDocument.createRange(); 
	r.setStartBefore(this); 
	var df=r.createContextualFragment(sHTML); 
	this.parentNode.replaceChild(df,this); 
	return sHTML; 
	}); 
HTMLElement.prototype.__defineGetter__("outerHTML",function(){ 
	var attr; 
	var attrs=this.attributes; 
	var str="<"+this.tagName; 
	for(var i=0;i<attrs.length;i++){ 
		attr=attrs[i]; 
		if(attr.specified) 
			str+=" "+attr.name+'='+attr.value+'"'; 
		} 
	if(!this.canHaveChildren) 
		return str+">"; 
	return str+">"+this.innerHTML+"</"+this.tagName+">"; 
	}); 
HTMLElement.prototype.__defineGetter__("canHaveChildren",function(){ 
	switch(this.tagName.toLowerCase()){ 
		case "area": 
		case "base": 
		case "basefont": 
		case "col": 
		case "frame": 
		case "hr": 
		case "img": 
		case "br": 
		case "input": 
		case "isindex": 
		case "link": 
		case "meta": 
		case "param": 
			return false; 
		} 
	return true; 
	}); 

HTMLElement.prototype.__defineSetter__("innerText",function(sText){ 
	var parsedText=document.createTextNode(sText); 
	this.innerHTML=parsedText; 
	return parsedText; 
	}); 
HTMLElement.prototype.__defineGetter__("innerText",function(){ 
	var r=this.ownerDocument.createRange(); 
	r.selectNodeContents(this); 
	return r.toString(); 
	}); 
HTMLElement.prototype.__defineSetter__("outerText",function(sText){ 
	var parsedText=document.createTextNode(sText); 
	this.outerHTML=parsedText; 
	return parsedText; 
	}); 
HTMLElement.prototype.__defineGetter__("outerText",function(){ 
	var r=this.ownerDocument.createRange(); 
	r.selectNodeContents(this); 
	return r.toString(); 
	}); 
HTMLElement.prototype.attachEvent =function(sType,fHandler){ 
	var shortTypeName=sType.replace(/on/,""); 
	fHandler._ieEmuEventHandler=function(e){ 
		window.event=e; 
		return fHandler(); 
		} 
	this.addEventListener(shortTypeName,fHandler._ieEmuEventHandler,false); 
	} 
HTMLElement.prototype.detachEvent =function(sType,fHandler){ 
	var shortTypeName=sType.replace(/on/,""); 
	if(typeof(fHandler._ieEmuEventHandler)=="function") 
		this.removeEventListener(shortTypeName,fHandler._ieEmuEventHandler,false); 
	else 
		this.removeEventListener(shortTypeName,fHandler,true); 
	} 
HTMLElement.prototype.contains =function(Node){// 是否包含某节点 
	do if(Node==this)return true; 
	while(Node=Node.parentNode); 
	return false; 
	} 
HTMLElement.prototype.insertAdjacentElement =function(where,parsedNode){ 
	switch(where){ 
		case "beforeBegin": 
			this.parentNode.insertBefore(parsedNode,this); 
			break; 
		case "afterBegin": 
			this.insertBefore(parsedNode,this.firstChild); 
			break; 
		case "beforeEnd": 
			this.appendChild(parsedNode); 
			break; 
		case "afterEnd": 
			if(this.nextSibling) 
				this.parentNode.insertBefore(parsedNode,this.nextSibling); 
			else 
				this.parentNode.appendChild(parsedNode); 
			break; 
		} 
	} 
HTMLElement.prototype.insertAdjacentHTML =function(where,htmlStr){ 
	var r=this.ownerDocument.createRange(); 
	r.setStartBefore(this); 
	var parsedHTML=r.createContextualFragment(htmlStr); 
	this.insertAdjacentElement(where,parsedHTML); 
	} 
HTMLElement.prototype.insertAdjacentText =function(where,txtStr){ 
	var parsedText=document.createTextNode(txtStr); 
	this.insertAdjacentElement(where,parsedText); 
	} 
HTMLElement.prototype.attachEvent =function(sType,fHandler){ 
	var shortTypeName=sType.replace(/on/,""); 
	fHandler._ieEmuEventHandler=function(e){ 
		window.event=e; 
		return fHandler(); 
		} 
	this.addEventListener(shortTypeName,fHandler._ieEmuEventHandler,false); 
	} 
HTMLElement.prototype.detachEvent =function(sType,fHandler){ 
	var shortTypeName=sType.replace(/on/,""); 
	if(typeof(fHandler._ieEmuEventHandler)=="function") 
		this.removeEventListener(shortTypeName,fHandler._ieEmuEventHandler,false); 
	else 
		this.removeEventListener(shortTypeName,fHandler,true); 
	} 
}











//Windows
window.onload=function(){
	try{ winLoad() }catch(e){}
	try{ winLoad0() }catch(e){}
	try{ winLoad1() }catch(e){}
	try{ if(fixHeightArg.length>0)loadFixHeight();	}catch(e){}
}
function settopmenu(img){
	img.style.position="relative";
	img.onmouseover=function(){		this.src=this.src.replace("a.","b.");	}
	img.onmouseout=function(){		this.src=this.src.replace("b.","a.");	}
}


function getOffset(evt){
	if (evt.offsetX != undefined){
		return {	offsetX: evt.offsetX,offsetY: evt.offsetY	};
	}
	var target = evt.target;
	if (target.offsetLeft == undefined){	target = target.parentNode;	}
	var pageCoord = getPageCoord(target);
	var eventCoord ={	x: window.pageXOffset + evt.clientX,y: window.pageYOffset + evt.clientY	};
	var offset ={	offsetX: eventCoord.x - pageCoord.x,offsetY: eventCoord.y - pageCoord.y	};
	return offset;
}
function getPageCoord(element){
	var coord = {x: 0, y: 0};
	while (element){
		coord.x += element.offsetLeft;	coord.y += element.offsetTop;	element = element.offsetParent;
	}	return coord;
}


var lrPg=[],lrLmid=[];
function lrLeft(n,lmid){	lrPg[n]--;	if(lrPg[n]<1) return;	lrGoPage(n);			}
function lrRight(n,lmid){	if(lrPg[n]<1) lrPg[n]=1;	lrPg[n]++;		lrGoPage(n);	}
function lrSet(n,lmid){		lrLmid[n]=lmid;	lrPg[n]=1;	lrGoPage(n);	}
function lrGoPage(n){
	var txt=xmlGetText("/lrhtml.aspx?n="+n+"&lmid="+lrLmid[n]+"&pg="+lrPg[n]+"&rnd="+Math.floor(Math.random()*99999));
	document.getElementById("lr_"+n).innerHTML=txt;	//	alert(txt);
}
//newspage
var prevPage="",nextPage="",lastPage="",firstPage="";
document.onkeydown=goNextPage;
function goNextPage(){
	if(event.ctrlKey){
		if (event.keyCode==37 && prevPage!="") location=prevPage;
		else if (event.keyCode==39 && nextPage!="") location=nextPage;
		else if (event.keyCode==38 && firstPage!="") location=firstPage;
		else if (event.keyCode==40 && lastPage!="") location=lastPage;
	}
}
function setPage(up,right,down,left){
	firstPage=up;		nextPage=right;		lastPage=down;		prevPage=left;
}
function alertPageHelp(){
	alert("方向键为分页列表的快捷键：\n\n上一页：CTRL+←\n下一页：CTRL+→\n\n第一页：CTRL+↑\n最后页：CTRL+↓");
}
function gId(idName){
	return (document.getElementById(idName));
}
function gName(Name,i){
	if(typeof(i) !="number") i=0;
	return document.getElementsByName(Name)[i];
}
function flash(src,w,h,model,flashvars,srcid){
	if(typeof(srcid)!="string") srcid="swf_"+src.substr(src.length-6,2);
	var f="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
	f+="codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" ";
	f+="width=\""+w+"\" height=\""+h+"\" id=\""+srcid+"\">\n";
	f+="	<param name=\"movie\" value=\""+src+"\" />\n";
	f+="	<param name=\"quality\" value=\"high\" />\n";
	if(typeof(model)=="string") f+="	<param name=\"WMode\" value=\""+model+"\" />\n";	//model="Opaque";
	if(typeof(flashvars)=="string" & flashvars!=""){
		f+="	<param name=\"flashvars\" value=\""+flashvars+"\">";
	}	f+="</object>\n";	document.write(f);	return(srcid);
}
function wopen(s){	window.open(s); }
var fixHeightArg=new Array();
function bodyNotSelect(nosel){
	if(typeof(nosel)=="undefined") nosel="|INPUT|TEXTAREA|";
	document.onselectstart = function(){	if(nosel.indexOf(document.activeElement.tagName)==-1) return false;	}
}
//设置div对齐
function fixHeight(){	fixHeightArg.push(arguments); }
function loadFixHeight(){	var i,j,height=new Array();

	for(i=0;i<fixHeightArg.length;i++){
		height[i]=0;
		for(j=0;j<fixHeightArg[i].length;j++){
			if(parseInt(document.getElementById(fixHeightArg[i][j]).offsetHeight)>height[i]){
				height[i]=parseInt(document.getElementById(fixHeightArg[i][j]).offsetHeight);
			}
		}
		for(j=0;j<fixHeightArg[i].length;j++){
			document.getElementById(fixHeightArg[i][j]).style.height=height[i];
		}
	}
}
function pageto(p){
	var q=delqry(location.href,"p",p); location.href=q;
}
function delqry(qry,k,v){
	var q=qry.split("?",2);	if(q.length==1) q.push("");
	q[1]=("&" + q[1]).replace(/&([^=&]+)=?[^&]*/ig,	function($0,$1){
		if($1.toLowerCase()==k.toLowerCase()) return(""); else return($0);
	});
	if(typeof(v)!="undefined") q[1]+="&"+k+"="+v; q[1]=q[1].replace("&&","&").substr(1);
	var rt=q[0]+"?"+q[1];	return(rt);
}
function checkForm(name,reg,msg){
	if(typeof(reg)!="object") reg=/^[\s\S]+$/ig;
	if(typeof(msg)!="string") msg="字段“"+name+"”格式错误";
	var obj=gName(name); if(reg.test(obj.value)){	return(true);
	}else{	alert(msg); obj.focus; obj.select();	}	return(false);
}
function tan(src,tag,w,h,other){
	if(typeof(tag)!="string") tag="_blank";
	if(typeof(w)!="number") w=400;
	if(typeof(h)!="number") h=500;
	if(typeof(other)!="string") other="toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no";
	var l=Math.floor((screen.width-w)/2);
	var t=Math.floor((screen.height-h)/2);
	window.open(src,tag,"top="+t+", left="+l+", height="+h+", width="+w+","+other);
}
function tanm(src,chuan,w,h,other){
	if(typeof(w)!="number") w=520;
	if(typeof(h)!="number") h=300;
	if(typeof(other)!="string") other="help: no; scroll: no; status: yes";

	var l=Math.floor((screen.width-w)/2);
	var t=Math.floor((screen.height-h)/2);
	var arr=showModalDialog(src,chuan,
		"dialogWidth:"+w+"px;dialogLeft:"+l+"px;dialogTop:"+t+"px;dialogHeight:"+h+"px;"+other);
}
function news(url,db){
	var ustart="wz.aspx?id=";	if(typeof(db)!="undefined") ustart="wz.aspx?db="+db+"&id=";
	var url2="";	if(typeof(url)=="string"){ url2=url; } else{ url2=ustart+ url;}
	tan(url2,"_blank",565,600,"toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
function aspnews(url){
	var url2="";	if(typeof(url)=="string"){ url2=url; } else{ url2="wz.asp?id="+ url;}
	tan(url2,"_blank",565,600,"toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//组合栏目载入
function loadLmMenu(){
	var uls=document.getElementsByTagName("UL");
	for(var i=0;i<uls.length;i++){
		if(uls[i].className.toLowerCase()=="titul") menuThis(uls[i]);
	}
}
function menuThis(obj){
	var lis=obj.getElementsByTagName("li");
	for(var i=0;i<lis.length;i++){
		lis[i].lis=lis;
		lis[i].moreid=obj.id+"_more";
		lis[i].title="点击查看更多...";
		lis[i].onclick=menuLiMouseClick;
	}
}
function menuLiMouseClick(){
	var lis=this.lis;
	if(this.className.toLowerCase()=="active"){
		location.href=this.href;
	}else{
		for(var i=0;i<lis.length;i++){
			if(lis[i].className.toLowerCase()=="active"){
				lis[i].className="";
				gId(lis[i].id+"b").style.display="none";
			}
		}
		this.className="active";	gId(this.id+"b").style.display="block";
		gId(this.moreid).href=this.href;
	}
}
function xmlGetText(url){
	var xmlHttp=InitRequest();	if(typeof (xmlHttp) == "undefined") return("");
	xmlHttp.open("GET",url, false);	xmlHttp.send(null);	return(xmlHttp.responseText);
}
function InitRequest(){
	var xmlHttp = null;
	for(var i=5;i>0;i--){
		try{	objstr="MSXML"+i+".XMLHTTP";	xmlHttp=new ActiveXObject(objstr);  break;		}catch(e){ 	}
	}
	if(!xmlHttp){
		try{	xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");	}catch(oc){		xmlHttp = null;		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != "undefined"){
		try{	xmlHttp = new XMLHttpRequest();	}	catch(fa){
			alert("对不起!您的浏览器不支持该功能,请使用Internet Explorer 6.0或FireFox浏览器!");	xmlHttp = null;
		}
	}	return xmlHttp;
}
function yanzheng(){
	gId("yzimg").src="/user/yanzheng.aspx?rnd="+Math.floor(Math.random()*9999999);
}
function Cxty_XMLHTTP(){
	var objXMLHttp;
	if (window.XMLHttpRequest){	objXMLHttp = new XMLHttpRequest();	}
 	else{
		var MSXML = ['MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'];
		for(var n = 0; n < MSXML.length; n ++){
			try{	objXMLHttp = new ActiveXObject(MSXML[n]);	break;	}catch(e){	}
		}
	}
	if (objXMLHttp.readyState == null){ // mozilla_No readyState
		objXMLHttp.readyState = 0;
		objXMLHttp.addEventListener("load", function (){		objXMLHttp.readyState = 4;
			if (typeof objXMLHttp.onreadystatechange == "function"){	objXMLHttp.onreadystatechange();	}
		},false);
	}	return objXMLHttp;
}
function Ajax_Send(URL,vStr,method,callback){
	var Send_T = null,req = new Cxty_XMLHTTP();
	if(req){	} else{	alert('您的浏览器不支持 Ajax 请使用 IE 6 以上版本或其他支持 Ajax 的浏览器.');return;	}
	try {
		if(method == 'GET'){	req.open('GET', URL, true);	}
		if(method == 'POST'){	req.open('POST', URL, true);	req.setRequestHeader('Content-Type','text/xml; charset=utf-8');	Send_T = vStr;	}
	}catch(e){	return false;	}
	req.onreadystatechange = function() {
		if (req.readyState == 4) {
			if (req.status == 200 && req.responseXML) {		if (callback){	callback(req.responseText);	}	}
			else {	callback('');	}
		}
	};
	if (typeof(req.onerror) != 'undefined') {	req.onerror = function(e){		callback('');	return false;	};	}
	req.send(Send_T);
}
function toDesktop(sUrl,sName){ 
	try{
		var WshShell = new ActiveXObject("WScript.Shell"); 
		var oUrlLink = WshShell.CreateShortcut(WshShell.SpecialFolders("Desktop") + "\\" + sName + ".url"); 
		oUrlLink.TargetPath = sUrl; 
		oUrlLink.Save(); 
	} 
	catch(e) { alert("请点击弹出对话框的：是 "); } 
}
document.write("<base target='_blank' />");
