function showSubmenu(id){
	for(var i=1;i<=5;i++){
		if (i!=id && eval("menu"+i).style.display=="block") eval("menu"+i).style.display='none';
	}
	eval("menu"+id).style.display='block';
}
function MarqueeStar(name,direction,height,speed)
{
	if (!height) height=20;
	if (!speed) speed=2;
	document.write("<marquee id="+name+" behavior=scroll direction="+direction+" width=100% height="+height+" scrollamount="+speed+" scrolldelay=30  onMouseout="+name+".start() onMouseover="+name+".stop()>")
}
function MarqueeEnd()
{
	document.write("</marquee>")
}

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",100)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=100
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity>0)
cur2.filters.alpha.opacity-=25
else if (window.highlighting)
clearInterval(highlighting)
}

function MM_findObj(n, d) { //v4.01 管理图片使用
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0 管理图片使用
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}