namespace Orciid.PageTemplate
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;

	public abstract class PageFooter : System.Web.UI.UserControl
	{
/*		protected System.Web.UI.WebControls.HyperLink hyperlinkFontSize;
		protected System.Web.UI.WebControls.HyperLink mailtoSysAdmin;

		/// <summary>
		/// Reads the value of the named cookie.
		/// </summary>
		/// <param name="cookieName">Cookie Name</param>
		/// <returns>If named cookies exists, returns it value; otherwise, returns empty string</returns>
		protected string ReadCookie(string cookieName)
		{
			try
			{
				return Request.Cookies[cookieName].Value.ToString();
			}
			catch
			{
				return "";
			}
		}

		/// <summary>
		/// Reads the value of the named querystring variable.
		/// </summary>
		/// <param name="valueName">QueryString Value Name</param>
		/// <returns>If named querystring variable exists, returns it value; otherwise, returns empty string</returns>
		protected string ReadQueryString(string valueName)
		{
			try
			{
				return Request.QueryString[valueName].ToString();
			}
			catch
			{
				return "";
			}
		}
*/
		private void Page_Load(object sender, System.EventArgs e)
		{
/*			// Put user code to initialize the page here
			string thisURL = Request.FilePath;
			mailtoSysAdmin.NavigateUrl = "mailto:" + Application["sysAdminEmailAddr"].ToString();
			if (ReadQueryString("font") == "large") 
			{
				hyperlinkFontSize.ToolTip = "Decrease font size";
				hyperlinkFontSize.NavigateUrl = thisURL + "?font=normal";
				hyperlinkFontSize.Text = "Font-";
				if (Response.Cookies["fontsize"] != null)
					Response.Cookies["fontsize"].Value = "large";
				else
					Response.Cookies.Add(new HttpCookie("fontsize","large"));
			}
			else if (ReadQueryString("font") == "normal") 
			{
				hyperlinkFontSize.NavigateUrl = thisURL + "?font=large";
				if (Response.Cookies["fontsize"] != null)
					Response.Cookies["fontsize"].Value = "normal";
				else
					Response.Cookies.Add(new HttpCookie("fontsize","normal"));
			}
			else if (ReadCookie("fontsize") == "large")
			{
				hyperlinkFontSize.ToolTip = "Decrease font size";
				hyperlinkFontSize.NavigateUrl = thisURL + "?font=normal";
				hyperlinkFontSize.Text = "Font-";
			}
			else
			{
				hyperlinkFontSize.NavigateUrl = thisURL + "?font=large";
			}
*/		}
		#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);
		}
		

		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}
