﻿// 左边分类的伸缩函数
function show(no, classid){
var Obj=document.getElementById("menusub" + no);//eval("menusub" + no);
	//判断是否有子目录
	if((Obj.innerHTML).length < 150){
		//alert( (Obj.innerHTML).length < 150 )
		//无子目录
		window.open('showroom.asp?Class1ID=' + classid, '_self');
		return ;
	}
//var ImgObj=eval("menuimg"+ no);
var tempColl = document.all.tags("div");
 for(i=0; i<tempColl.length; i++)
 {
  if ((tempColl(i).id != Obj.id) && ((tempColl(i).className == "menusub"))){  
   tempColl(i).style.display = "none";
   }
   
 }
if(Obj.style.display=='none')
 {
   Obj.style.display='';
  // ImgObj.src='bbs_image/forum_parent_1.gif';
 }
else
 {
   Obj.style.display='none';
   //ImgObj.src='bbs_image/forum_parent_0.gif';
 }
}

//显示当前日期的函数
function DateShow(){
var isnMonths=new initArray("Jan","Feb","Mar","Apr","May","Jun","July","Aug","Sep","Oct","Nov","Dec");
var isnDays=new initArray("Sun","Mon","Tues","Wed","","Thurs","Sat","Sun");
today=new Date();

function initArray()
{
	for(i=0;i<initArray.arguments.length;i++)
	this[i]=initArray.arguments[i];
}

function getFullYear(d)
{//d is a date object
	yr = d.getYear();
	if(yr<1000)	yr += 1900;
	return yr;
}
document.write(isnDays[today.getDay()]+"&nbsp;"+today.getDate()+"&nbsp;" + isnMonths[today.getMonth()]+"&nbsp;,&nbsp;" +getFullYear(today));
}
DateShow();//调用该函数

function mSH(a2, SetVal)
{
var Obj = document.getElementById(a2);
if( SetVal ){//显示
Obj.style.display = SetVal;
}else{
 if(Obj.style.display =="none"){
 //显示
 Obj.style.display = "block";
 }else{
 //隐藏
 Obj.style.display = "none";
 }
}
}
