//更换close.gif open.gif file.gif图片修改图片样式
var menubgcolor="#ebf5ff";
		//菜单背景颜色
var menutxtcolor="#000000";
		//菜单文字颜色
var seltxtbgcolor="#0000ff";
		//当前选择菜单文字背景颜色
var seltxtcolor="#ffffff";
		//当前选择菜单文字颜色
var rumortargetframe="self.guestbook";
		//菜单目标框架名称

//使用：按顺序编辑menu数组即可
//举例：
//1、menu[0]="0,大分类";
//   第0级菜单；显示为"大分类"
//2、menu[1]="1,小分类,close.gif";
//   第1级菜单；显示为"小分类";选择之后在目标框架打开文件"close.gif"
//

var menu=new Array();

menu[0]="0,&nbsp;期货书籍 ,list.aspx?cid=69";
menu[1]="0,&nbsp;猫总视频,list.aspx?cid=86";
menu[2]="1,&nbsp;金融视频,list.aspx?cid=88";
menu[3]="1,&nbsp;培训视频,list.aspx?cid=361";
menu[4]="0,&nbsp;音乐世界,list.aspx?cid=357";
menu[5]="0,&nbsp;影视天地,list.aspx?cid=358";
menu[6]="0,&nbsp;藏书大全,list.aspx?cid=359";

///////////////////////多级菜单关合///////////////////////////
function expandit(obj0,obj1){
	if(obj1.style.display=="none"){
		obj1.style.display="inline";
		obj0.all.tags('img')[0].src="/newskin/gif-0864.gif";
		}
	else{
		obj1.style.display="none";
		obj0.all.tags('img')[0].src="/newskin/gif-0864.gif";
	}
}

function view_news(url){
window.open(url,"_blank","resizable=yes,scrollbars=yes,toolbar=1,location=no,status=no,menubar=1,top=0,left=0");
}
///////////////////////多级菜单链接///////////////////////////
function go(obj,url){
	eval(rumortargetframe).location=url;
	allspan=rumormenu.all.tags('span');
	for(i=0;i<allspan.length;i++){
		allspan[i].style.backgroundColor=menubgcolor;
		allspan[i].style.color=menutxtcolor;
	}
	obj.style.backgroundColor =seltxtbgcolor;
	obj.style.color=seltxtcolor;
}
///////////////////////多级菜单建立///////////////////////////
function buildmenu(){
var menuwant,menunow,i,folder;
menuwant=0;
menunow=0;
folder=0;

document.write("<TABLE id='rumormenu' border=0 cellspacing=0 cellpadding=0>");
for(i=0;i<menu.length;i++){
	if(menu[i]==null)continue;
	menuwant=menu[i].split(",")[0];
	while(menuwant!=menunow){
		if(menuwant>menunow){
			folder+=1;
			document.write("<tr id='folder"+folder+"' style='display:none'><td>&nbsp;</td><td><TABLE border=0 cellspacing=0 cellpadding=0>");
			menunow+=1;
		}
		if(menuwant<menunow){
			document.write("</table></td></tr>");
			menunow-=1;
		}
	};
	if(menu[i+1]!=null&&menu[i+1].split(",")[0]>menunow){
		document.write("<tr onclick=expandit(this,folder"+(folder+1)+")>");
		document.write("<td><img src='/newskin/gif-0864.gif'></td>");
		}
	else{
		document.write("<tr>");
		document.write("<td><img src='/newskin/gif-0829.gif'></td>");
	}
	if(menu[i].split(",")[2]!="#")
		document.write("<td valign=bottom><span style='cursor:hand' onclick=view_news('"+menu[i].split(",")[2]+"')>");
	else
		document.write("<td valign=bottom><span style='cursor:hand'>");
	document.write(menu[i].split(",")[1]+"</span></td></tr>");
}	
document.write("</TABLE>");
while(menuwant>0){
	document.write("</td></tr></table><br>");
	menuwant-=1;
};
//go(rumormenu.all.tags('span')[0],menu[0].split(",")[2]);
}
/////////////////////执行部分////////////////////////////
try{
	buildmenu();
}catch(e){}

