var desc=new Array();

desc[0]="";
desc[1]="<a onclikc=setmenu(1) href=/cifa_En/index.asp>英文版页面English</a>";
desc[2]="<a onclick=setmenu(2) href=/news/index.asp?id=36>协会动态</a> | <a onclick=setmenu(2) href=/news/index.asp?id=2>经贸信息</a> | <a onclick=setmenu(2) href=/news/index.asp?id=3>货代物流</a> | <a href='/activities.asp'>活动通知</span> | <a onclick=setmenu(2) href='/qianjing/'>货代前景专栏</a>";
desc[3]="<a onclick=setmenu(3) href=../news/index.asp?id=48&page=1>信用评价</a> | <a onclick=setmenu(3) href=http://www.cnfreight.org.cn/>百强活动</a> | <a onClick=window.open('/user/nianshen.asp','','width=655,height=500,toolbar=no,scrollbars=yes') href=#>货代政策</a>";
desc[4]="<a href=# onclick=window.open('http://www.fiatadiploma.org')>FIATA培训</a> |<a href=# onclick=window.open('http://ehorse.sce.com.cn/Fish/FiataDiploma/20060310113545869.shtml')>FIATA成绩</a> | <a onclick=setmenu(4) href=/news/index.asp?id=6>培训信息</a> | <a href=# onclick=window.open('http://211.87.160.204/')>货运代理考试中心</a>";
desc[5]="<a onclick=setmenu(5) href=/news/index.asp?id=7>对外出访</a> | <a onclick=setmenu(5) href=/news/index.asp?id=42>国际交流活动</a> | <a onclick=setmenu(5) href=/news/index.asp?id=9>FIATA专栏</a>";
desc[6]="<a onclick=setmenu(6) href=/shop/newshop.asp>行业图书</a>";
desc[7]="<a onclick=setmenu(7) href=/user/huodai.asp>企业查询</a> | <a onclick=setmenu(7) href=/user/list.asp?classname=会员>会员查询</a> | <a onClick=window.open('/user/100_apply.asp','','width=640,height=320,toolbar=no') href=#>货运百强</a> | <a onclick=setmenu(7) href=/user/list.asp>企业推荐</a>";
desc[8]="<a onclick=setmenu(8) href=http://shipping.jctrans.com/OtherComp/OthterFreightList788.rails?flag=9>物流采购</a> | <a onclick=setmenu(8) href='/faq/'>货代咨询</a> | <a onclick=setmenu(8) href='/policy/'>法律法规</a> | <a onclick=setmenu(8) href=/dict/>专业词汇</a> ";
desc[9]="";


function showmenu(obj,menunum)
{
	mitem=desc[menunum];
	mtabhead="<table width=90% border=0 cellspacing=0 cellpadding=0 align=center class=main><tr>"
	mtabright="<td Height=20 align=center>";
    mtabbottom="</td></tr></table>";
    obj.innerHTML=mtabhead+mtabright+mitem+mtabbottom;
}
function setmenu(menunum)
{
	var menu_cookie="ko_menu="+ escape(menunum);
	document.cookie=menu_cookie;
}

function getmenu()
{
	if(document.cookie=='')
		return 0;
	else
		//return document.cookie;
		return WM_getCookieValue('ko_menu');
}

function WM_getCookieValue(name)
{

	// Declare variables.
	var firstChar,lastChar;
	// Get the entire cookie string.
	// (This may have othername=value pairs in it.)

	var theBigCookie = document.cookie;

	// Grab just this cookie from theBigCookie string.

	// Find the start of 'name'.

	firstChar = theBigCookie.indexOf(name);

	// If you found it,

	if(firstChar != -1)
	{
	// skip 'name' and '='.
		firstChar +=name.length + 1;
	// Find the end of the value string (i.e. the next';').
		lastChar = theBigCookie.indexOf(';', firstChar);
	
		if(lastChar == -1) lastChar = theBigCookie.length;
	// Return the value.
		return theBigCookie.substring(firstChar, lastChar);
	}
	else
	{
	// If there was no cookie, return false.
		return 0;
	}
}
