document.writeln(" <SCRIPT language=javascript>");
document.writeln("//==========================");
document.writeln("//        菜单开始");
document.writeln("//==========================");
document.writeln("//菜单原提供：3dapple.com");
document.writeln("//修改：大奔");
document.writeln("//QQ：14368918");
document.writeln("//时间：2004.04.21");
document.writeln("//沸腾展望新闻多媒体系统");
document.writeln("//沸腾工作室");
document.writeln("//原 mt_dropdownC.js");
document.writeln("//*************************************对象参数*******************************************");
document.writeln("//下拉菜单装饰图片(前图片mtDropDown.spacerGif1 后图片 mtDropDown.spacerGif)");
document.writeln("mtDropDown.spacerGif1=\"../../../vsites/es00015653/\";");
document.writeln("//以下三图片设置固定地址,分别用于设置三种状态!");
document.writeln("mtDropDown.spacerGif =\"/Default_File/image/showall.gif\"");
document.writeln("//下拉菜单装饰图片");
document.writeln("mtDropDown.dingbatOn = \"/Default_File/image/showleft.gif\"; //开关图片");
document.writeln("mtDropDown.dingbatOff = \"/Default_File/image/showright.gif\"; //开关图片");
document.writeln("mtDropDown.dingbatSize = 14; ");
document.writeln("mtDropDown.menuPadding = 1; //下拉菜单头部和底部间距");
document.writeln("mtDropDown.itemPadding = 4; //菜单栏目间距");
document.writeln("mtDropDown.shadowSize = 2; ");
document.writeln("mtDropDown.shadowOffset = 3; ");
document.writeln("mtDropDown.shadowColor = \"000000\"; //菜单阴影颜色");
document.writeln("mtDropDown.shadowPng = \"images/space.gif\"; ");
document.writeln("mtDropDown.backgroundColor = \"f3f3f3\"; //下拉菜单背景颜色");
document.writeln("mtDropDown.backgroundPng = \"images/004.png\"; ");
document.writeln("//下拉菜单收起时间");
document.writeln("mtDropDown.hideDelay = 200; //下拉菜单收起时间");
document.writeln("//下拉菜单弹出时间");
document.writeln("mtDropDown.slideTime = 200; //下拉菜单弹出速度");
document.writeln("mtDropDown.reference = {topLeft:1,topRight:2,bottomLeft:3,bottomRight:4};//定义菜单的上下左右边距");
document.writeln("mtDropDown.direction = {down:1,right:2};");
document.writeln("mtDropDown.registry = [];");
document.writeln("mtDropDown._maxZ = 100;");
document.writeln("var delayhide;");
document.writeln("var tempx; //设置变量 用于检测 mouseover状态");
document.writeln("var tempx1; //设置变量 用于检测 mouseover状态");
document.writeln("var temp1=new Array(); //设置变量 用于检测 mouseover状态");
document.writeln("var temp2=0; //设置变量 用于检测 mouseover状态");
document.writeln("var tempParent1; //基于父窗口的变量");
document.writeln("var tempParent2=0;");
document.writeln("var tempParent3;");
document.writeln("var tep1;");
document.writeln("var tep2;");
document.writeln("//*************************************基本方法*******************************************");
document.writeln("mtDropDown.isSupported = function() {//设置isSupported属性");
document.writeln("if (typeof mtDropDown.isSupported.r == \"boolean\") ");
document.writeln("	return mtDropDown.isSupported.r;");
document.writeln("	var ua = navigator.userAgent.toLowerCase();");
document.writeln("	var an = navigator.appName;//浏览器版本");
document.writeln("	var r = false;");
document.writeln("	if (ua.indexOf(\"gecko\") > -1) r = true; ");
document.writeln("	else if (an == \"Microsoft Internet Explorer\") {");
document.writeln("	if (document.getElementById) r = true; ");
document.writeln("	}");
document.writeln("	mtDropDown.isSupported.r = r;");
document.writeln("	return r;");
document.writeln("}");
document.writeln("");
document.writeln("mtDropDown.initialize = function() {");
document.writeln("for (var i = 0, menu = null; menu = this.registry[i]; i++) {");
document.writeln("	menu.initialize();");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("mtDropDown.renderAll = function() {");
document.writeln("	var aMenuHtml = [];");
document.writeln("	for (var i = 0, menu = null; menu = this.registry[i]; i++) {");
document.writeln("	aMenuHtml[i] = menu.toString();");
document.writeln("	}");
document.writeln("	document.write(aMenuHtml.join(\"\"));");
document.writeln("}");
document.writeln("");
document.writeln("function mtDropDown(oActuator, iDirection, iLeft, iTop, iReferencePoint, parentMenuSet) {");
document.writeln("	");
document.writeln("	this.addItem = addItem;");
document.writeln("	this.addMenu = addMenu;");
document.writeln("	this.toString = toString;");
document.writeln("	this.initialize = initialize;");
document.writeln("	this.isOpen = false;");
document.writeln("	this.show = show;");
document.writeln("	this.hide = hide;");
document.writeln("	this.items = [];");
document.writeln("	");
document.writeln("	this.onactivate = new Function(); ");
document.writeln("	this.ondeactivate = new Function(); ");
document.writeln("	this.onmouseover = new Function(); ");
document.writeln("	this.onqueue = new Function(); ");
document.writeln("	");
document.writeln("	this.index = mtDropDown.registry.length;");
document.writeln("	mtDropDown.registry[this.index] = this;");
document.writeln("	var id = \"mtDropDown\" + this.index;");
document.writeln("	var contentHeight = null;");
document.writeln("	var contentWidth = null;");
document.writeln("	var childMenuSet = null;");
document.writeln("	var animating = false;");
document.writeln("	var childMenus = [];");
document.writeln("	var slideAccel = -1;");
document.writeln("	var elmCache = null;");
document.writeln("	var ready = false;");
document.writeln("	var _this = this;");
document.writeln("	var a = null;");
document.writeln("	var pos = iDirection == mtDropDown.direction.down ? \"top\" : \"left\";");
document.writeln("	var dim = null;");
document.writeln("");
document.writeln("	function addItem(sText, sUrl) {");
document.writeln("	var item = new mtDropDownItem(sText, sUrl, this);");
document.writeln("	item._index = this.items.length;");
document.writeln("	this.items[item._index] = item;");
document.writeln("	}");
document.writeln("	function addMenu(oMenuItem) {");
document.writeln("	if (!oMenuItem.parentMenu == this) throw new Error(\"Cannot add a menu here\");");
document.writeln("	if (childMenuSet == null) childMenuSet = new mtDropDownSet(mtDropDown.direction.right, -5, 2, mtDropDown.reference.topRight);");
document.writeln("	var m = childMenuSet.addMenu(oMenuItem);");
document.writeln("	childMenus[oMenuItem._index] = m;");
document.writeln("	m.onmouseover = child_mouseover;");
document.writeln("	m.ondeactivate = child_deactivate;");
document.writeln("	m.onqueue = child_queue;");
document.writeln("	return m;");
document.writeln("	}");
document.writeln("	function initialize() {");
document.writeln("		initCache();");
document.writeln("		initEvents();");
document.writeln("		initSize();");
document.writeln("		ready = true;");
document.writeln("	}");
document.writeln("	function show() {");
document.writeln("	");
document.writeln("		if (ready) {");
document.writeln("		_this.isOpen = true;");
document.writeln("		animating = true;");
document.writeln("		setContainerPos();");
document.writeln("		elmCache[\"clip\"].style.visibility = \"visible\";");
document.writeln("		elmCache[\"clip\"].style.zIndex = mtDropDown._maxZ++;");
document.writeln("		");
document.writeln("		slideStart();");
document.writeln("		_this.onactivate();");
document.writeln("	}");
document.writeln("	}");
document.writeln("	function hide() {");
document.writeln("		if (ready) {");
document.writeln("		_this.isOpen = false;");
document.writeln("		animating = true;");
document.writeln("		for (var i = 0, item = null; item = elmCache.item[i]; i++) ");
document.writeln("		dehighlight(item);");
document.writeln("		if (childMenuSet) childMenuSet.hide();");
document.writeln("		slideStart();");
document.writeln("		_this.ondeactivate();");
document.writeln("	}");
document.writeln("}");
document.writeln("function setContainerPos() {");
document.writeln("	var sub = oActuator.constructor == mtDropDownItem; ");
document.writeln("	var act = sub ? oActuator.parentMenu.elmCache[\"item\"][oActuator._index] : oActuator; ");
document.writeln("	var el = act;");
document.writeln("	//下拉菜单显示位置");
document.writeln("	var x = -20;");
document.writeln("	//下拉菜单显示位置");
document.writeln("	var y = 0;");
document.writeln("	//=================添加两个变量取得X,Y赋值时的值==================");
document.writeln("	var temp_x=x;");
document.writeln("    var temp_y=y;");
document.writeln("    //================================================================");
document.writeln("	var minX = 0;");
document.writeln("	var maxX = (window.innerWidth ? window.innerWidth : document.body.clientWidth) - parseInt(elmCache[\"clip\"].style.width);");
document.writeln("	var minY = 0;");
document.writeln("	var maxY = (window.innerHeight ? window.innerHeight : document.body.clientHeight) - parseInt(elmCache[\"clip\"].style.height);");
document.writeln("	");
document.writeln("	while (sub ? el.parentNode.className.indexOf(\"mtDropdownMenu\") == -1 : el.offsetParent) {");
document.writeln("		x += el.offsetLeft;");
document.writeln("		y += el.offsetTop;");
document.writeln("		if (el.scrollLeft) x -= el.scrollLeft;");
document.writeln("		if (el.scrollTop) y -= el.scrollTop;");
document.writeln("		el = el.offsetParent;");
document.writeln("	}");
document.writeln("	if (oActuator.constructor == mtDropDownItem) {");
document.writeln("		//设置(项目)的宽度,原来显示方式为:");
document.writeln("          //x += parseInt(el.parentNode.style.left);");
document.writeln("          //y += parseInt(el.parentNode.style.top);");
document.writeln("          //现在改正为以下:");
document.writeln("		x =x + parseInt(el.parentNode.style.left)-temp_x;");
document.writeln("		y =y + parseInt(el.parentNode.style.top)- temp_y;");
document.writeln("	}");
document.writeln("	switch (iReferencePoint) {");
document.writeln("		case mtDropDown.reference.topLeft:");
document.writeln("		break;");
document.writeln("		case mtDropDown.reference.topRight:");
document.writeln("		x += act.offsetWidth;");
document.writeln("		break;");
document.writeln("		case mtDropDown.reference.bottomLeft:");
document.writeln("		y += act.offsetHeight;");
document.writeln("		break;");
document.writeln("		case mtDropDown.reference.bottomRight:");
document.writeln("		x += act.offsetWidth;");
document.writeln("		y += act.offsetHeight;");
document.writeln("		break;");
document.writeln("	}");
document.writeln("	x += iLeft;");
document.writeln("	y += iTop;");
document.writeln("	x = Math.max(Math.min(x, maxX), minX);");
document.writeln("	y = Math.max(Math.min(y, maxY), minY);");
document.writeln("	elmCache[\"clip\"].style.left = x + \"px\";");
document.writeln("	elmCache[\"clip\"].style.top = y + \"px\";");
document.writeln("}");
document.writeln("function slideStart() {");
document.writeln("	var x0 = parseInt(elmCache[\"content\"].style[pos]);");
document.writeln("	var x1 = _this.isOpen ? 0 : -dim;");
document.writeln("	if (a != null) a.stop();");
document.writeln("	a = new Accelimation(x0, x1, mtDropDown.slideTime, slideAccel);");
document.writeln("	a.onframe = slideFrame;");
document.writeln("	a.onend = slideEnd;");
document.writeln("	a.start();");
document.writeln("}");
document.writeln("function slideFrame(x) {");
document.writeln("	elmCache[\"content\"].style[pos] = x + \"px\";");
document.writeln("}");
document.writeln("function slideEnd() {");
document.writeln("	if (!_this.isOpen) elmCache[\"clip\"].style.visibility = \"hidden\";");
document.writeln("	animating = false;");
document.writeln("}");
document.writeln("function initSize() {");
document.writeln("");
document.writeln("	var ow = elmCache[\"items\"].offsetWidth;");
document.writeln("	var oh = elmCache[\"items\"].offsetHeight;");
document.writeln("	var ua = navigator.userAgent.toLowerCase();");
document.writeln("	");
document.writeln("	elmCache[\"clip\"].style.width = ow + mtDropDown.shadowSize + 2 + \"px\";");
document.writeln("	elmCache[\"clip\"].style.height = oh + mtDropDown.shadowSize + 2 + \"px\";");
document.writeln("	");
document.writeln("	elmCache[\"content\"].style.width = ow + mtDropDown.shadowSize + \"px\";");
document.writeln("	elmCache[\"content\"].style.height = oh + mtDropDown.shadowSize + \"px\";");
document.writeln("	contentHeight = oh + mtDropDown.shadowSize;");
document.writeln("	contentWidth = ow + mtDropDown.shadowSize;");
document.writeln("	dim = iDirection == mtDropDown.direction.down ? contentHeight : contentWidth;");
document.writeln("	");
document.writeln("	elmCache[\"content\"].style[pos] = -dim - mtDropDown.shadowSize + \"px\";");
document.writeln("	elmCache[\"clip\"].style.visibility = \"hidden\";");
document.writeln("	");
document.writeln("	if (ua.indexOf(\"mac\") == -1 || ua.indexOf(\"gecko\") > -1) {");
document.writeln("	");
document.writeln("		elmCache[\"background\"].style.width = ow + \"px\";");
document.writeln("		elmCache[\"background\"].style.height = oh + \"px\";");
document.writeln("		elmCache[\"background\"].style.backgroundColor = mtDropDown.backgroundColor;");
document.writeln("		");
document.writeln("		elmCache[\"shadowRight\"].style.left = ow + \"px\";");
document.writeln("		elmCache[\"shadowRight\"].style.height = oh - (mtDropDown.shadowOffset - mtDropDown.shadowSize) + \"px\";");
document.writeln("		elmCache[\"shadowRight\"].style.backgroundColor = mtDropDown.shadowColor;");
document.writeln("		");
document.writeln("		");
document.writeln("		");
document.writeln("		elmCache[\"shadowBottom\"].style.top = oh + \"px\";");
document.writeln("		elmCache[\"shadowBottom\"].style.width = ow - mtDropDown.shadowOffset + \"px\";");
document.writeln("		elmCache[\"shadowBottom\"].style.backgroundColor = mtDropDown.shadowColor;");
document.writeln("	}");
document.writeln("	");
document.writeln("	else {");
document.writeln("	");
document.writeln("		elmCache[\"background\"].firstChild.src = mtDropDown.backgroundPng;");
document.writeln("		elmCache[\"background\"].firstChild.width = ow;");
document.writeln("		elmCache[\"background\"].firstChild.height = oh;");
document.writeln("		");
document.writeln("		elmCache[\"shadowRight\"].firstChild.src = mtDropDown.shadowPng;");
document.writeln("		elmCache[\"shadowRight\"].style.left = ow + \"px\";");
document.writeln("		elmCache[\"shadowRight\"].firstChild.width = mtDropDown.shadowSize;");
document.writeln("		elmCache[\"shadowRight\"].firstChild.height = oh - (mtDropDown.shadowOffset - mtDropDown.shadowSize);");
document.writeln("				");
document.writeln("		elmCache[\"shadowBottom\"].firstChild.src = mtDropDown.shadowPng;");
document.writeln("		elmCache[\"shadowBottom\"].style.top = oh + \"px\";");
document.writeln("		elmCache[\"shadowBottom\"].firstChild.height = mtDropDown.shadowSize;");
document.writeln("		elmCache[\"shadowBottom\"].firstChild.width = ow - mtDropDown.shadowOffset;");
document.writeln("");
document.writeln("	}");
document.writeln("}");
document.writeln("function initCache() {");
document.writeln("	var menu = document.getElementById(id);");
document.writeln("	var all = menu.all ? menu.all : menu.getElementsByTagName(\"*\"); ");
document.writeln("	elmCache = {};");
document.writeln("	elmCache[\"clip\"] = menu;");
document.writeln("	elmCache[\"item\"] = [];");
document.writeln("	for (var i = 0, elm = null; elm = all[i]; i++) {");
document.writeln("		switch (elm.className) {");
document.writeln("		case \"items\":");
document.writeln("		case \"content\":");
document.writeln("		case \"background\":");
document.writeln("		case \"shadowRight\":");
document.writeln("		case \"shadowBottom\":");
document.writeln("		elmCache[elm.className] = elm;");
document.writeln("		break;");
document.writeln("		case \"item\":");
document.writeln("		elm._index = elmCache[\"item\"].length;");
document.writeln("		elmCache[\"item\"][elm._index] = elm;");
document.writeln("		break;");
document.writeln("		}");
document.writeln("	}");
document.writeln("");
document.writeln("	_this.elmCache = elmCache;");
document.writeln("}");
document.writeln("function initEvents() {");
document.writeln("");
document.writeln("	for (var i = 0, item = null; item = elmCache.item[i]; i++) {");
document.writeln("	item.onmouseover = item_mouseover;");
document.writeln("	item.onmouseout = item_mouseout;");
document.writeln("	item.onclick = item_click;");
document.writeln("	}");
document.writeln("	");
document.writeln("	if (typeof oActuator.tagName != \"undefined\") {");
document.writeln("	oActuator.onmouseover = actuator_mouseover;");
document.writeln("	oActuator.onmouseout = actuator_mouseout;");
document.writeln("	}");
document.writeln("	");
document.writeln("	elmCache[\"content\"].onmouseover = content_mouseover;");
document.writeln("	elmCache[\"content\"].onmouseout = content_mouseout;");
document.writeln("}");
document.writeln("function highlight(oRow) {");
document.writeln("	oRow.className = \"item hover\";");
document.writeln("	if (childMenus[oRow._index]) ");
document.writeln("	oRow.lastChild.firstChild.src = mtDropDown.dingbatOn;");
document.writeln("}");
document.writeln("function dehighlight(oRow) {");
document.writeln("	oRow.className = \"item\";");
document.writeln("	if (childMenus[oRow._index]) ");
document.writeln("	oRow.lastChild.firstChild.src = mtDropDown.dingbatOff;");
document.writeln("}");
document.writeln("function item_mouseover() {");
document.writeln("	if (!animating) {");
document.writeln("	highlight(this);");
document.writeln("//====================================================================================================");
document.writeln("// 设置父窗口变量,当触发父窗口等300 在期内如触发item_mouseover 什么都不做,如果没有触发则退出菜单");
document.writeln("//====================================================================================================");
document.writeln("tempParent2=1;");
document.writeln("//=====================================================");
document.writeln("//     在鼠标移动到菜单项中添加检测函数设置时间");
document.writeln("//=====================================================");
document.writeln("	if( elmCache[\"clip\"].id.substring(0,10)==\"mtDropDown\" ){");
document.writeln(" 	if (window.delayhide){");
document.writeln("       clearTimeout(delayhide);");
document.writeln("       }");
document.writeln("       }");
document.writeln("");
document.writeln("	if (childMenus[this._index]) ");
document.writeln("	childMenuSet.showMenu(childMenus[this._index]);");
document.writeln("	else if (childMenuSet) childMenuSet.hide();");
document.writeln("	}");
document.writeln("}");
document.writeln("function item_mouseout() {");
document.writeln("	if (!animating) {");
document.writeln("//=====================================================");
document.writeln("//     在鼠标移动到菜单项中添加检测函数设置时间");
document.writeln("//=====================================================");
document.writeln("	if(elmCache[\"clip\"].id.substring(0,10)==\"mtDropDown\" ){");
document.writeln("   temp2=temp2+1;");
document.writeln("  temp1[temp2]=elmCache[\"clip\"];");
document.writeln("   delayhide=setTimeout(\"tempx.aaa(tempx1)\",300);");
document.writeln("}");
document.writeln("	if (childMenus[this._index])");
document.writeln("	childMenuSet.hideMenu(childMenus[this._index]);");
document.writeln("	else ");
document.writeln("	dehighlight(this);");
document.writeln("	}");
document.writeln("}");
document.writeln("function item_click() {");
document.writeln("	if (!animating) {");
document.writeln("	if (_this.items[this._index].url) ");
document.writeln("	location.href = _this.items[this._index].url;");
document.writeln("	}");
document.writeln("}");
document.writeln("function actuator_mouseover() {");
document.writeln("//=====================================================");
document.writeln("//        在鼠标移动到第一级菜单中添加检测函数");
document.writeln("//=====================================================");
document.writeln("tempx=parentMenuSet;");
document.writeln("tempx1=_this;");
document.writeln("tempParent2=3;");
document.writeln("tep1=parentMenuSet");
document.writeln("   tep2=_this");
document.writeln("//=====================================================");
document.writeln("//     在鼠标移动到菜单项中添加检测函数设置时间(父级)");
document.writeln("//=====================================================");
document.writeln("if( elmCache[\"clip\"].id.substring(0,10)==\"mtDropDown\" ){");
document.writeln(" 	if (window.tempParent3){");
document.writeln("       clearTimeout(tempParent3);");
document.writeln("       }");
document.writeln("       }");
document.writeln("	parentMenuSet.showMenu(_this);");
document.writeln("}");
document.writeln("function actuator_mouseout() {");
document.writeln("//=====================================================");
document.writeln("//     在鼠标移动到菜单项中添加检测函数设置时间");
document.writeln("//=====================================================");
document.writeln("if(elmCache[\"clip\"].id.substring(0,10)==\"mtDropDown\" ){");
document.writeln("   tempParent1=elmCache[\"clip\"];");
document.writeln("   ");
document.writeln("   tempParent3=setTimeout(\"tempx.bbb(tempx1)\",300);");
document.writeln("}");
document.writeln("");
document.writeln("	parentMenuSet.hideMenu(_this);");
document.writeln("}");
document.writeln("function content_mouseover() {");
document.writeln("	if (!animating) {");
document.writeln("	parentMenuSet.showMenu(_this);");
document.writeln("	_this.onmouseover();");
document.writeln("	}");
document.writeln("}");
document.writeln("function content_mouseout() {");
document.writeln("if (!animating) {");
document.writeln("parentMenuSet.hideMenu(_this);");
document.writeln("}");
document.writeln("}");
document.writeln("function child_mouseover() {");
document.writeln("	if (!animating) {");
document.writeln("	parentMenuSet.showMenu(_this);");
document.writeln("	}");
document.writeln("}");
document.writeln("function child_deactivate() {");
document.writeln("	for (var i = 0; i < childMenus.length; i++) {");
document.writeln("	if (childMenus[i] == this) {");
document.writeln("	dehighlight(elmCache[\"item\"][i]);");
document.writeln("	break;");
document.writeln("	}");
document.writeln("	}");
document.writeln("}");
document.writeln("function child_queue() {");
document.writeln("	parentMenuSet.hideMenu(_this);");
document.writeln("}");
document.writeln("function toString() {");
document.writeln("	var aHtml = [];");
document.writeln("	var sClassName = \"mtDropdownMenu\" + (oActuator.constructor != mtDropDownItem ? \" top\" : \"\");");
document.writeln("	for (var i = 0, item = null; item = this.items[i]; i++) {");
document.writeln("	aHtml[i] = item.toString(childMenus[i]);");
document.writeln("	}");
document.writeln("	//下拉菜单显示宽度 width=\"200\"");
document.writeln("	return \'<div id=\"\' + id + \'\" class=\"\' + sClassName + \'\">\' + ");
document.writeln("	\'<div class=\"content\"><table class=\"items\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"120\">\' + ");
document.writeln("	\'<tr><td colspan=\"2\"><img src=\"\' + mtDropDown.spacerGif + \'\" width=\"1\" height=\"\' + mtDropDown.menuPadding + \'\"></td></tr>\' + ");
document.writeln("	aHtml.join(\'\') + ");
document.writeln("	\'<tr><td colspan=\"2\"><img src=\"\' + mtDropDown.spacerGif + \'\" width=\"1\" height=\"\' + mtDropDown.menuPadding + \'\"></td></tr></table>\' + ");
document.writeln("	\'<div class=\"shadowBottom\"><img src=\"\' + mtDropDown.spacerGif + \'\" width=\"1\" height=\"1\"></div>\' + ");
document.writeln("	\'<div class=\"shadowRight\"><img src=\"\' + mtDropDown.spacerGif + \'\" width=\"1\" height=\"1\"></div>\' + ");
document.writeln("	\'<div class=\"background\"><img src=\"\' + mtDropDown.spacerGif + \'\" width=\"1\" height=\"1\"></div>\' + ");
document.writeln("	\'</div></div>\';");
document.writeln("	}");
document.writeln("}");
document.writeln("");
document.writeln("mtDropDownSet.registry = [];");
document.writeln("function mtDropDownSet(iDirection, iLeft, iTop, iReferencePoint) {");
document.writeln("");
document.writeln("	this.addMenu = addMenu;");
document.writeln("	this.showMenu = showMenu;");
document.writeln("	this.hideMenu = hideMenu;");
document.writeln("	this.hide = hide;");
document.writeln("	this.aaa=aaa; //自定义函数用于设置时间");
document.writeln("	this.bbb=bbb; //自定义函数用于设置时间");
document.writeln("	var menus = [];");
document.writeln("	var _this = this;");
document.writeln("	var current = null;");
document.writeln("	this.index = mtDropDownSet.registry.length;");
document.writeln("	mtDropDownSet.registry[this.index] = this;");
document.writeln("	");
document.writeln("	function addMenu(oActuator) {");
document.writeln("	var m = new mtDropDown(oActuator, iDirection, iLeft, iTop, iReferencePoint, this);");
document.writeln("	menus[menus.length] = m;");
document.writeln("	return m;");
document.writeln("	}");
document.writeln("//=================================================");
document.writeln("//                   添加aaa自定义变量");
document.writeln("//=================================================");
document.writeln("	function aaa(oMenu){");
document.writeln("	");
document.writeln("      for(var i=1;i<=(temp2+1);i++){");
document.writeln("        if(temp1[i]){");
document.writeln("         temp1[i].style.visibility = \"hidden\";");
document.writeln("        _this.isOpen = false;");
document.writeln("        animating = false;");
document.writeln("          }");
document.writeln("        }");
document.writeln("       if (this != current) {");
document.writeln("");
document.writeln("           if (current != null) hide(current); ");
document.writeln("");
document.writeln("              current = this;");
document.writeln("");
document.writeln("         }");
document.writeln("         else {");
document.writeln("");
document.writeln("             cancelHide(this);");
document.writeln("         }");
document.writeln(" ");
document.writeln("       }");
document.writeln("");
document.writeln("//=================================================");
document.writeln("//                   添加bbb自定义变量");
document.writeln("//=================================================");
document.writeln("function bbb(oMenu){");
document.writeln("");
document.writeln("if(tempParent2==3){");
document.writeln("  //alert(\"ok\");");
document.writeln(" if(tempParent1){");
document.writeln(" ");
document.writeln(" tempParent1.style.visibility = \"hidden\";");
document.writeln("");
document.writeln("  _this.isOpen = false;");
document.writeln(" animating = false;");
document.writeln(" }   ");
document.writeln("");
document.writeln(" if (this != current) {");
document.writeln("");
document.writeln("if (current != null) hide(current); ");
document.writeln("");
document.writeln("current = this;");
document.writeln("");
document.writeln("}");
document.writeln("else {");
document.writeln("");
document.writeln("cancelHide(this);");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("	function showMenu(oMenu) {");
document.writeln("	if (oMenu != current) {");
document.writeln("	");
document.writeln("	if (current != null) hide(current); ");
document.writeln("	");
document.writeln("	current = oMenu;");
document.writeln("	");
document.writeln("	oMenu.show();");
document.writeln("	}");
document.writeln("	else {");
document.writeln("	");
document.writeln("	cancelHide(oMenu);");
document.writeln("	}");
document.writeln("	}");
document.writeln("	function hideMenu(oMenu) {");
document.writeln("	");
document.writeln("	if (current == oMenu && oMenu.isOpen) {");
document.writeln("	");
document.writeln("	if (!oMenu.hideTimer) scheduleHide(oMenu);");
document.writeln("	}");
document.writeln("}");
document.writeln("	function scheduleHide(oMenu) {");
document.writeln("	oMenu.onqueue();");
document.writeln("	//========================================================");
document.writeln("	//                 注销此段影响效果");
document.writeln("	//========================================================");
document.writeln("	//oMenu.hideTimer = window.setTimeout(\"mtDropDownSet.registry[\" + _this.index + \"].hide(mtDropDown.registry[\" + oMenu.index + \"])\", mtDropDown.hideDelay);");
document.writeln("	}");
document.writeln("	function cancelHide(oMenu) {");
document.writeln("	");
document.writeln("	if (oMenu.hideTimer) {");
document.writeln("	window.clearTimeout(oMenu.hideTimer);");
document.writeln("	oMenu.hideTimer = null;");
document.writeln("	}");
document.writeln("	}");
document.writeln("	function hide(oMenu) { ");
document.writeln("	if (!oMenu && current) oMenu = current;");
document.writeln("	if (oMenu && current == oMenu && oMenu.isOpen) {");
document.writeln("	");
document.writeln("	cancelHide(oMenu);");
document.writeln("	current = null;");
document.writeln("	oMenu.hideTimer = null;");
document.writeln("	oMenu.hide();");
document.writeln("	}");
document.writeln("	}");
document.writeln("}");
document.writeln("");
document.writeln("function mtDropDownItem(sText, sUrl, oParent) {");
document.writeln("this.toString = toString;");
document.writeln("this.text = sText;");
document.writeln("this.url = sUrl;");
document.writeln("this.parentMenu = oParent;");
document.writeln("function toString(bDingbat) {");
document.writeln("//sDingbat1 设置显示前面图片");
document.writeln("var sDingbat1 = mtDropDown.spacerGif1;");
document.writeln("//sDingbat显示后面图片");
document.writeln("var sDingbat = bDingbat ? mtDropDown.dingbatOff : mtDropDown.spacerGif;");
document.writeln("var iEdgePadding = mtDropDown.itemPadding + mtDropDown.menuPadding;");
document.writeln("var sPaddingLeft = \"padding:\" + mtDropDown.itemPadding + \"px; padding-left:\" + iEdgePadding + \"px;\"");
document.writeln("var sPaddingRight = \"padding:\" + mtDropDown.itemPadding + \"px; padding-right:\" + iEdgePadding + \"px;\"");
document.writeln("//下拉菜单字体设置位置大小加粗 align=\"center\" style=\"font-size:16px;font-weight:bold;\"");
document.writeln("return \'<tr class=\"item\"><td nowrap style=\"\' + sPaddingLeft + \'\" align=\"left\" style=\"font-size:12px;;\" onmouseover=this.className=\"syb_mouseover\"; onmouseout=this.className=\"syb_mouseout\"; class=\"syb\">\'+ sText + \'</td><td width=\"14\" style=\"\' + sPaddingRight + \'\">\' + ");
document.writeln("\'<img src=\"\' + sDingbat + \'\" width=\"10\" height=\"10\" ></td></tr>\';");
document.writeln("//==========================================================");
document.writeln("// 此处设置 IMG 图片的显示属性为display:none");
document.writeln("//==========================================================");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("function Accelimation(from, to, time, zip) {");
document.writeln("if (typeof zip == \"undefined\") zip = 0;");
document.writeln("if (typeof unit == \"undefined\") unit = \"px\";");
document.writeln("this.x0 = from;");
document.writeln("this.x1 = to;");
document.writeln("this.dt = time;");
document.writeln("this.zip = -zip;");
document.writeln("this.unit = unit;");
document.writeln("this.timer = null;");
document.writeln("this.onend = new Function();");
document.writeln("this.onframe = new Function();");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation.prototype.start = function() {");
document.writeln("this.t0 = new Date().getTime();");
document.writeln("this.t1 = this.t0 + this.dt;");
document.writeln("var dx = this.x1 - this.x0;");
document.writeln("this.c1 = this.x0 + ((1 + this.zip) * dx / 3);");
document.writeln("this.c2 = this.x0 + ((2 + this.zip) * dx / 3);");
document.writeln("Accelimation._add(this);");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation.prototype.stop = function() {");
document.writeln("Accelimation._remove(this);");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation.prototype._paint = function(time) {");
document.writeln("if (time < this.t1) {");
document.writeln("var elapsed = time - this.t0;");
document.writeln("this.onframe(Accelimation._getBezier(elapsed/this.dt,this.x0,this.x1,this.c1,this.c2));");
document.writeln("}");
document.writeln("else this._end();");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation.prototype._end = function() {");
document.writeln("Accelimation._remove(this);");
document.writeln("this.onframe(this.x1);");
document.writeln("this.onend();");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation._add = function(o) {");
document.writeln("var index = this.instances.length;");
document.writeln("this.instances[index] = o;");
document.writeln("");
document.writeln("if (this.instances.length == 1) {");
document.writeln("this.timerID = window.setInterval(\"Accelimation._paintAll()\", this.targetRes);");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation._remove = function(o) {");
document.writeln("for (var i = 0; i < this.instances.length; i++) {");
document.writeln("if (o == this.instances[i]) {");
document.writeln("this.instances = this.instances.slice(0,i).concat( this.instances.slice(i+1) );");
document.writeln("break;");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("if (this.instances.length == 0) {");
document.writeln("window.clearInterval(this.timerID);");
document.writeln("this.timerID = null;");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation._paintAll = function() {");
document.writeln("var now = new Date().getTime();");
document.writeln("for (var i = 0; i < this.instances.length; i++) {");
document.writeln("this.instances[i]._paint(now);");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation._B1 = function(t) { return t*t*t }");
document.writeln("Accelimation._B2 = function(t) { return 3*t*t*(1-t) }");
document.writeln("Accelimation._B3 = function(t) { return 3*t*(1-t)*(1-t) }");
document.writeln("Accelimation._B4 = function(t) { return (1-t)*(1-t)*(1-t) }");
document.writeln("");
document.writeln("Accelimation._getBezier = function(percent,startPos,endPos,control1,control2) {");
document.writeln("return endPos * this._B1(percent) + control2 * this._B2(percent) + control1 * this._B3(percent) + startPos * this._B4(percent);");
document.writeln("}");
document.writeln("");
document.writeln("Accelimation.instances = [];");
document.writeln("Accelimation.targetRes = 10;");
document.writeln("Accelimation.timerID = null;");
document.writeln("");
document.writeln("</SCRIPT>");
document.writeln("");
document.writeln("            <SCRIPT language=javascript>");
document.writeln("//原 mt_dropdown_initialize.js");
document.writeln("		var preloaded = [];");
document.writeln("");
document.writeln("		// here is a lame preloading script i am putting in just for demonstration");
document.writeln("		for (var i = 1; i <= 8; i++) {");
document.writeln("			preloaded[i] = [loadImage(i + \"-0.gif\"), loadImage(i + \"-1.gif\")];");
document.writeln("		}");
document.writeln("");
document.writeln("		function init() {");
document.writeln("			if (mtDropDown.isSupported()) {");
document.writeln("				mtDropDown.initialize();");
document.writeln("			}");
document.writeln("		}");
document.writeln("");
document.writeln("		// this is a crappy example preloader. Use whichever one you want.");
document.writeln("		function loadImage(sFilename) {");
document.writeln("			var img = new Image();");
document.writeln("			img.src =\"images/\" + sFilename;");
document.writeln("			return img;");
document.writeln("		}");
document.writeln("</SCRIPT>");
document.writeln("");
document.writeln("            <TABLE cellSpacing=0 cellPadding=0 align=center border=0 ");
document.writeln("            menuname=\"Menu_cn\">");
document.writeln("              <TBODY>");
document.writeln("              <TR>");
document.writeln("                <TD width=0>　</TD>");
document.writeln("                <TD><SPAN class=menu_cn>|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu1 ");
document.writeln("                  href=\"/\"><!--Menu_cn_Note_End--><SPAN>学校主页</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu150 ");
document.writeln("                  href=\"honor.asp\"><!--Menu_cn_Note_End--><SPAN>学校荣誉</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu160 ");
document.writeln("                  href=\"function.asp\"><!--Menu_cn_Note_End--><SPAN>公益活动</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu180 ");
document.writeln("                  href=\"power.asp\"><!--Menu_cn_Note_End--><SPAN>师资力量</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu182 ");
document.writeln("                  href=\"teach.asp\"><!--Menu_cn_Note_End--><SPAN>教学内容</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu184 ");
document.writeln("                  href=\"news.asp\"><!--Menu_cn_Note_End--><SPAN>最新动态</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu188 ");
document.writeln("                  href=\"show.asp\"><!--Menu_cn_Note_End--><SPAN>项目展示</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu194 ");
document.writeln("                  href=\"teacher.asp\"><!--Menu_cn_Note_End--><SPAN>教师资料</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu216 ");
document.writeln("                  href=\"student.asp\"><!--Menu_cn_Note_End--><SPAN>学员风采</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu162 ");
document.writeln("                  href=\"info.asp\"><!--Menu_cn_Note_End--><SPAN>信息反馈</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN><!--Menu_cn_Note_Start--><A ");
document.writeln("                  class=menu_cn id=menu234 ");
document.writeln("                  href=\"intro.asp\"><!--Menu_cn_Note_End--><SPAN>乐器介绍</SPAN></A><SPAN ");
document.writeln("                  class=menu_cn>&nbsp;|&nbsp;</SPAN>");
document.writeln("                  <SCRIPT language=javascript>");
document.writeln("if (mtDropDown.isSupported()) {");
document.writeln("	var ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);");
document.writeln("	");
document.writeln("");
document.writeln("");
document.writeln("	mtDropDown.renderAll();");
document.writeln("	}");
document.writeln("	//==========================");
document.writeln("	//        菜单结束");
document.writeln("	//==========================");
document.writeln("</SCRIPT>");