// JavaScript Document
(function(){
	window.$o = function(id,tag){var re=(id&&typeof id!="string")?id:document.getElementById(id);if(!tag){return re;}else{return re.getElementsByTagName(tag);}};
	window.addevent = function(o,s,fn){o.attachEvent?o.attachEvent('on'+s,fn):o.addEventListener(s,fn,false);return o;};
	window.setWidth=function (){
		if(!window.XMLHttpRequest && window.ActiveXObject){		
			var clientW = 950 ,obj = $o("head");
				if(!obj) return;
				function move(){
					clientW = document.documentElement.clientWidth||document.body.clientWidth;
					obj.style.width = (clientW<975)?"975px":""
				}
			move();
			addevent(window,"resize",move);
		}		
	}
	window.AhiddenB = function (a,b){
		var A = $o(a), B = $o(b);	
		function sw(){
			if(B.offsetHeight){
				B.style.display = "none";
				A.className = "close";
			}else{
				B.style.display = "";
				A.className = "";			
			}
			
		}	
		addevent(A,"click",sw)	
	}	
})()
