function Tabs() {
	this.idName = null; // id 名称
	this.tagName = null; // tag 标签名称
	this.showContent = false; // 是否更换内容
	this.showMore = false;
	this.delayTime = 250; // 鼠标移上去的响应时间
}

Tabs.prototype.turnTabs = function() {
	var base = this;
	var __o = document.getElementById(this.idName).getElementsByTagName(this.tagName);
	
	for(var __i=0; __i<__o.length; __i++) {
		__o[__i].onmouseover = function() {
			var __obj = this;
			with(base) {
				setTimeout(function() { turnTabsA(base, __o, __obj); }, delayTime);
			}
		}
	}
};

Tabs.prototype.turnTabsA = function(base, __o, __obj) {

	for(var __j=0; __j<__o.length; __j++) {
		__o[__j].className = null;
	}
	
	__obj.className = "on";
	
	if(base.showContent) {
		for(var __j=0; __j<__o.length; __j++) {
			document.getElementById(base.idName + __j).style.display = "none"
			if(__o[__j].className == "on")
				document.getElementById(base.idName + __j).style.display = "block";
		}
	}
	if(base.showMore){
		for(var __j=0; __j<__o.length; __j++) {
			document.getElementById(base.idName + __j + "more").style.display = "none"
			if(__o[__j].className == "on")
				document.getElementById(base.idName + __j + "more").style.display = "block";
		}
	}
}