// 导航
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"650\" height=\"127\"><param name=\"movie\" value=\"/media/Menu.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\"><embed src=\"/media/Menu.swf\" width=\"560\" height=\"127\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed></object>")
function MenuRedirect( ch1, ch2 )
{
	var url = null;
	var win = false;

	if ( ch1 == '1' )
	{
		// 首页
		url = "/";
	}
	else if ( ch1 == '2' )
	{
		// 新闻公告 热点
		if ( ch2 == '1' )
		{
			url = "/html/news/xinwen/index.html";
		}
		// 新闻公告 新闻
		else if ( ch2 == '2' )
		{
			url = "/html/news/gonggao/index.html";
		}
		// 新闻公告 公告
		else if ( ch2 == '3' )
		{
			url = "/html/news/gonggao/index.html";
		}
		// 新闻公告
		else
		{
			url = "/html/news/index.html";
		}
	}
	else if ( ch1 == '3' )
	{
		// 下载中心 客户端和补丁
		if ( ch2 == '1' )
		{
			url = "http://www.sns52.com/html/download/index.html";
		}
		// 下载中心 壁纸下载
		else if ( ch2=='2' )
		{
			url = "http://www.sns52.com/html/wallpaper/index.html";
		}
		// 下载中心
		else
		{
			url = "http://www.sns52.com/html/download/index.html";
		}
	}
	else if (ch1=='4')
	{
		// 帐号管理 注册
		if ( ch2 == '1' )
		{
			var win = true;
			url = "http://passport.u1ge.com/register/index/token/xen";
                        if (tid != '' )
			{
			       url = url +"/tid/"+tid;
			} 
		}
		// 帐号管理 修改密码
		else if ( ch2 == '2' )
		{
			var win = true;
			url = "http://passport.u1ge.com/";
		}
		// 帐号管理 充值中心
		else if ( ch2 == '3' )
		{
			url = "http://passport.u1ge.com/payment/paynavigation/";
		}
		// 帐号管理
		else
		{
			var win = true;
			url = "http://passport.u1ge.com/";
		}
	}
	else if ( ch1 == '5' )
	{
		// 商城
		url = "/html/ziliao/youxi/5.html";
	}
	if (url)
	{
		if (win)
		{
			window.open(url);
		}
		else
		{
			window.location.href = url;
		}
	}
}