namespace free.bbs
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	/// <summary>
	///		Summary description for head.
	/// </summary>
	public class head : System.Web.UI.UserControl
	{
		protected System.Web.UI.WebControls.LinkButton dengchu;
		protected System.Web.UI.HtmlControls.HtmlAnchor kongzhimianban;
		protected System.Web.UI.HtmlControls.HtmlAnchor denglu;
		protected System.Web.UI.WebControls.Label Label1;
		string heihei;

		private void Page_Load(object sender, System.EventArgs e)
		{
			try 
			{
				Label1.Text=Request.Cookies["free_huiyuan"].Value.ToString();
			    heihei=Request.Cookies["free_huiyuan"].Value.ToString();
				if(heihei=="dengchu")
				{
					kongzhimianban.Visible=false;
					dengchu.Visible=false;
					denglu.InnerText="µÇÂ¼";
				}
				else
				{
					denglu.InnerText="ÖØÐÂµÇÂ¼";
					kongzhimianban.Visible=true;
					dengchu.Visible=true;
				}
				
			}
			catch 
			{
				kongzhimianban.Visible=false;
				dengchu.Visible=false;
				denglu.InnerText="µÇÂ¼";

			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.dengchu.Click += new System.EventHandler(this.dengchu_Click);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion

		private void dengchu_Click(object sender, System.EventArgs e)
		{
			Response.Cookies["free_huiyuan"].Value ="dengchu";
			Response.Redirect("../default.aspx");
		}
	}
}
