function $(arg)
{
	return document.getElementById(arg);
}

function $f(){
	var arg=arguments[0];
	var isID=/^\#/;				//by ID
	var isClass=/^\./;			//by Class
	var isTag=/^[_a-zA-Z0-9]/;	//by Tag

	if(isID.test(arg)){
		var arg=arg.replace(isID, ""); 
		return document.getElementById(arg);
	}

	if(isClass.test(arg)){
		var arg=arg.replace(isClass, ""); 
		var args=[];
		var divArray=document.body.getElementsByTagName('*');
		for(i=0;i<divArray.length;i++){
			if(divArray[i].className==arg){
				args=args.concat(divArray[i]);
			}
		}
		return args;
	}

	if(isTag.test(arg)){
		var args=[];
		return document.getElementsByTagName(arg);
	}
}
setPageFuc = new Object;
	setPageFuc.addFavor=function(){
		window.external.AddFavorite('http://www.qzfc.cn','´óÈªÖÝ·¿²úÍø');
	}

	setPageFuc.setHomePage=function(){
		document.body.style.behavior='url(#default#homepage)';
		document.body.setHomePage('http://www.qzfc.cn');
	}

divFunction = new Object;
	divFunction.expandDiv=function(id){
		document.getElementById(id).style.height="auto";
	}
	divFunction.zoomOutDiv=function(id,height){
		document.getElementById(id).style.height=height;
	}
	divFunction.showDiv=function(id){
		document.getElementById(id).style.display="block";
	}
	divFunction.hideDiv=function(id){
		document.getElementById(id).style.display="none";
	}	
	divFunction.changeInnerHtml=function(id,theHtml){
		document.getElementById(id).innerHTML=theHtml;
	}
	divFunction.makeExpand=function(id,id2,id3){
		this.expandDiv(id);
		this.hideDiv(id2);
		this.showDiv(id3);
	}
	divFunction.makeZoomOut=function(id,id2,id3,height){
		this.hideDiv(id3);
		this.showDiv(id2);
		this.zoomOutDiv(id,height);
	}
	divFunction.switchDiv=function(){
		for(var i=1;i<arguments.length;i++){
		document.getElementById(arguments[i]).style.display="none";
		}		
		document.getElementById(arguments[0]).style.display="block";
	}
