document.writeln("<script type=\"text\/javascript\">");
document.writeln("\/*");
document.writeln("穿皮鞋的青蛙");
document.writeln("qq:66118181");
document.writeln("msn:accord1104@hotmail.com");
document.writeln("http:\/\/www.jsweb8.cn\/JS特效学院欢迎光临");
document.writeln("*\/");
document.writeln("function switchmodTag(){");
document.writeln("}");
document.writeln("switchmodTag.prototype = {");
document.writeln("	st : function(menus,divs,openClass,closeClass){");
document.writeln("		var _this = this;");
document.writeln("		if(menus.length != divs.length)");
document.writeln("		{");
document.writeln("			alert(\"菜单层数量和内容层数量不一样!\");");
document.writeln("			return false;");
document.writeln("		}				");
document.writeln("		for(var i = 0 ; i < menus.length ; i++)");
document.writeln("		{	");
document.writeln("			_this.$(menus[i]).value = i;				");
document.writeln("			_this.$(menus[i]).onmouseover = function(){\/\/如果想把效果变成点击切换，将此行onmouseover 改成onclick即可。");
document.writeln("					");
document.writeln("				for(var j = 0 ; j < menus.length ; j++)");
document.writeln("				{						");
document.writeln("					_this.$(menus[j]).className = closeClass;");
document.writeln("					_this.$(divs[j]).style.display = \"none\";");
document.writeln("				}");
document.writeln("				_this.$(menus[this.value]).className = openClass;	");
document.writeln("				_this.$(divs[this.value]).style.display = \"block\";				");
document.writeln("			}");
document.writeln("		}");
document.writeln("		},");
document.writeln("	$ : function(oid){");
document.writeln("		if(typeof(oid) == \"string\")");
document.writeln("		return document.getElementById(oid);");
document.writeln("		return oid;");
document.writeln("	}");
document.writeln("}");
document.writeln("window.onload = function(){");
document.writeln("	var STmodel = new switchmodTag();");
document.writeln("	STmodel.st([\"a_1\",\"a_2\",\"a_3\",\"a_4\"],[\"c1_1\",\"c1_2\",\"c1_3\",\"c1_4\"],\"st01\",\"st02\");\/\/第一组动滑轮");
document.writeln("	STmodel.st([\"b_1\",\"b_2\"],[\"c2_1\",\"c2_2\"],\"st01\",\"st02\");\/\/第二组动滑轮");
document.writeln("	STmodel.st([\"c_1\",\"c_2\"],[\"c3_1\",\"c3_2\"],\"st01\",\"st02\");\/\/第三组动滑轮");
document.writeln("	STmodel.st([\"d_1\",\"d_2\",\"d_3\",\"d_4\",\"d_5\"],[\"c4_1\",\"c4_2\",\"c4_3\",\"c4_4\",\"c4_5\"],\"st01\",\"st02\");\/\/第四组动滑轮");
document.writeln("	\/\/如需增加滑动门个数，请复制代码，ID命名规则如上即可。");
document.writeln("}");
document.writeln("<\/script>");
