/***************************************** 
本文件记录各频道的最新发展信息，感谢您的关注
Copyright (C) 2003-2005, IB Networks.
IB Networks, a professional Web IE & Web CMS solution provider.
Web: http://www.vbyte.com

lastmodified: 2005年10月12日 15:26:15
*******************************************/
var strComment = "倡导体贴服务&nbsp;&nbsp;传播IT文化 \n------ 虚数传播网络(iB Networks)";

var iBChannels = new Array();
iBChannels[0] = new Array();
iBChannels[0][0] = "&#105; &#223;首页";
iBChannels[0][1] = "http://www.vbyte.com";
iBChannels[0][2] = "虚数传播网络：虚数反之为实数，即另一个无穷大。如果可以，vByte就做那个无穷大。";

iBChannels[1] = new Array();
iBChannels[1][0] = "会员控制中心";
iBChannels[1][1] = "/my";
iBChannels[1][2] = "只为用户使用vByte.COM更顺手。目前仅支持注册全站护照、使用E店提供的服务，功能有待完善。";

iBChannels[2] = new Array();
iBChannels[2][0] = "GTools";
iBChannels[2][1] = "/GTools";
iBChannels[2][2] = "提供便利的在线工具，也有本站原创的相应代码工具，Web开发人员和大众通用型。工具箱会不断充实。";

iBChannels[3] = new Array();
iBChannels[3][0] = "生日榜";
iBChannels[3][1] = "/CBS";
iBChannels[3][2] = "原TOM论坛《天蝎座》生日榜，目前提供全年所有生日榜，暂未整合到vbyte.com的一个小型应用系统。";

iBChannels[4] = new Array();
iBChannels[4][0] = "虚数E店";
iBChannels[4][1] = "/Shop";
iBChannels[4][2] = "主要提供电子资源的刻盘服务，以英文电子书为主，部分电子书籍可以通过iReader阅读或下载。";

iBChannels[5] = new Array();
iBChannels[5][0] = "WebOne";
iBChannels[5][1] = "/WebOne/Public";
iBChannels[5][2] = "本站即将应用的Web应用系统的预公开文档，WebOne专注于Web IE和Web CMS领域的开发。";

iBChannels[6] = new Array();
iBChannels[6][0] = "关于我们";
iBChannels[6][1] = "/v";
iBChannels[6][2] = "联系和关于虚数传播网络的更多信息。";

iBChannels[8] = new Array();
iBChannels[8][0] = "反馈";
iBChannels[8][1] = "/v/support.asp";
iBChannels[8][2] = "直接把您的建议或意见通过在线邮件发给我们。";

iBChannels[7] = new Array();
iBChannels[7][0] = "iReader";
iBChannels[7][1] = "/iReader";
iBChannels[7][2] = "主要针对E店提供的在线阅读电子书功能、阅读或下载随意选择。【状态】有部分Bug，需进一步完善。";

/*---------------------------------------------------*/
function showChannel()
{
	var GetIdx = arguments.length;
	switch (GetIdx)
	{
	case 0:
		showChannelHtml();
		break;
	case 1: 
		if (!isNaN(arguments[0]))
		{
			document.write(showChannelMsg(arguments[0]));
		}
		break;
	case 2: 
		if (!isNaN(arguments[0]))
		{
			try {
				//alert(arguments[1]);
				document.getElementById(arguments[1]).innerHTML = showChannelMsg(arguments[0]);
			}
			catch (e) { }
		}
		break;
	default:
		;
		break;
		
	}
}

function showChannelMsg(idx)
{
	var idx = parseInt(idx);
	if (idx>=0 && idx<=8)
	{
		strComment = iBChannels[idx][2];
		return strComment;
	}
	else { return "";}
}

function showChannelHtml()
{
	strComment = "<table border=\"0\" cellspacing=\"5\" cellpadding=\"5\"><tr>";
	var strChannelHTML = "<td><a href=\"{$LINK}\" target=\"_blank\" title=\"{$TITLE}\">{$NAME}</a></td>";
	var strItem = "";
	for (var i=0 ;i<iBChannels.length ; i++)
	{
		strItem = strChannelHTML.replace(/\{\$NAME\}/gi,iBChannels[i][0]);
		strItem = strItem.replace(/\{\$LINK\}/gi,iBChannels[i][1]);
		strItem = strItem.replace(/\{\$TITLE\}/gi,iBChannels[i][2]);
		strComment += strItem;
	}
	strComment += "</tr></table>";
	document.write(strComment);
}