using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// 
/// </summary>
public class ParentPage: Page
{
   /// <summary>
   /// Ustawia motyw strony na podstawie bieżącego stanu sesji
   /// </summary>
	protected void Page_PreInit(object sender, EventArgs e)
	{
      ProfileCommon profile = HttpContext.Current.Profile as ProfileCommon;
      string themeName = profile.Theme;

		if (themeName != null)
			this.Page.Theme = themeName;
		else
			this.Page.Theme = "Cool";
	}
}
