// © 2004-2007, Intuit Canada, a general partnership. All rights reserved.
// Copyright Intuit Canada Ltd. 2002-2003
// All rights reserved

function GetStyleSheet()
{
	var stylesheet = "<style type='text/css'>\n"

	try
	{
		quicktax = new ActiveXObject("Intuit Canada.QuickTax 2008");
		stylesheet += quicktax.stylesheet();
	}
	catch(e)
	{
		// keep this syncronized with au_application.cpp
		
		// Flavours
		stylesheet += ".basic-block                     {display: block}\n"
		stylesheet += ".basic-inline                    {display: inline}\n"
		stylesheet += ".standard-block                  {display: none}\n"
		stylesheet += ".standard-inline                 {display: none}\n"
		stylesheet += ".platinum-block                  {display: none}\n"
		stylesheet += ".platinum-inline                 {display: none}\n"
		stylesheet += ".business-block                  {display: none}\n"
		stylesheet += ".business-inline                 {display: none}\n"
		stylesheet += ".pro20-block                     {display: none}\n"
		stylesheet += ".pro20-inline                    {display: none}\n"
		stylesheet += ".basicStandard-block             {display: block}\n"
		stylesheet += ".basicStandard-inline            {display: inline}\n"
		stylesheet += ".basicStandardPlatinum-block     {display: block}\n"
		stylesheet += ".basicStandardPlatinum-inline    {display: inline}\n"
		
		// False Flavours
		stylesheet += ".notstandard-block               {display: block}\n"
		stylesheet += ".notstandard-inline              {display: inline}\n"
		stylesheet += ".notbusiness-block               {display: block}\n"
		stylesheet += ".notbusiness-inline              {display: inline}\n"
		stylesheet += ".notpro-block                    {display: block}\n"
		stylesheet += ".notpro-inline                   {display: inline}\n"
		stylesheet += ".coupon-block                    {display: none}\n"
		stylesheet += ".coupon-inline                   {display: none}\n"
		stylesheet += ".notmycd-block                   {display: block}\n"
		stylesheet += ".notmycd-inline                  {display: inline}\n"
		stylesheet += ".mycd-block                      {display: none}\n"
		stylesheet += ".mycd-inline                     {display: none}\n"
		stylesheet += ".notmycdunlocked-block           {display: block}\n"
		stylesheet += ".notmycdunlocked-inline          {display: inline}\n"
		stylesheet += ".mycdunlocked-block              {display: none}\n"
		stylesheet += ".mycdunlocked-inline             {display: none}\n"
		
		// Features available
		stylesheet += ".autoBuyVsLeaseAnalyzer-block    {display: none}\n";
		stylesheet += ".autoBuyVsLeaseAnalyzer-inline   {display: none}\n";
	    stylesheet += ".capitalGainsAnalyzer-block      {display: none}\n";
	    stylesheet += ".capitalGainsAnalyzer-inline     {display: none}\n";
	    stylesheet += ".charitableDonationAnalyzer-block {display: none}\n";
	    stylesheet += ".charitableDonationAnalyzer-inline {display: none}\n";
	    stylesheet += ".cppIncomeOptimizer-block        {display: none}\n";
	    stylesheet += ".cppIncomeOptimizer-inline       {display: none}\n";
	    stylesheet += ".cppSharingOptimizer-block       {display: none}\n";
	    stylesheet += ".cppSharingOptimizer-inline      {display: none}\n";
	    stylesheet += ".businessExpenseTracker-block    {display: none}\n";
	    stylesheet += ".businessExpenseTracker-inline   {display: none}\n";
	    stylesheet += ".businessIncomeExpert-block      {display: none}\n";
	    stylesheet += ".businessIncomeExpert-inline     {display: none}\n";
	    stylesheet += ".incorporationAnalyzer-block     {display: none}\n";
	    stylesheet += ".incorporationAnalyzer-inline    {display: none}\n";
	    stylesheet += ".investmentSavingsPlanner-block  {display: none}\n";
	    stylesheet += ".investmentSavingsPlanner-inline {display: none}\n";
	    stylesheet += ".loanPlanner-block               {display: none}\n";
	    stylesheet += ".loanPlanner-inline              {display: inline}\n";
	    stylesheet += ".medicalExpenseOptimizer-block   {display: none}\n";
	    stylesheet += ".medicalExpenseOptimizer-inline  {display: none}\n";
	    stylesheet += ".pensionSplittingOptimizer-inline  {display: none}\n";
	    stylesheet += ".pensionSplittingOptimizer-block   {display: none}\n";
	    stylesheet += ".pensionSplittingOptimizerEnabled-inline  {display: none}\n";
	    stylesheet += ".pensionSplittingOptimizerEnabled-block   {display: none}\n";
	    stylesheet += ".respPlanner-block               {display: none}\n";
	    stylesheet += ".respPlanner-inline              {display: none}\n";
	    stylesheet += ".retirementPlanner-block         {display: none}\n";
	    stylesheet += ".retirementPlanner-inline        {display: none}\n";
	    stylesheet += ".rrspWizard-block                {display: none}\n";
	    stylesheet += ".rrspWizard-inline               {display: none}\n";
	    stylesheet += ".smartTips-block                 {display: none}\n";
	    stylesheet += ".smartTips-inline                {display: none}\n";
	    stylesheet += ".stockTradeTracker-block         {display: none}\n";
	    stylesheet += ".stockTradeTracker-inline        {display: none}\n";

        // Features not available
        stylesheet += ".notautoBuyVsLeaseAnalyzer-block {display: block}\n";
		stylesheet += ".notautoBuyVsLeaseAnalyzer-inline {display: inline}\n";
	    stylesheet += ".notcapitalGainsAnalyzer-block   {display: block}\n";
	    stylesheet += ".notcapitalGainsAnalyzer-inline  {display: inline}\n";
	    stylesheet += ".notcharitableDonationAnalyzer-block {display: block}\n";
	    stylesheet += ".notcharitableDonationAnalyzer-inline {display: inline}\n";
	    stylesheet += ".notcppIncomeOptimizer-block      {display: block}\n";
	    stylesheet += ".notcppIncomeOptimizer-inline     {display: inline}\n";
	    stylesheet += ".notcppSharingOptimizer-block     {display: block}\n";
	    stylesheet += ".notcppSharingOptimizer-inline    {display: inline}\n";
	    stylesheet += ".notbusinessExpenseTracker-block  {display: block}\n";
	    stylesheet += ".notbusinessExpenseTracker-inline {display: inline}\n";
	    stylesheet += ".notbusinessIncomeExpert-block    {display: block}\n";
	    stylesheet += ".notbusinessIncomeExpert-inline   {display: inline}\n";
	    stylesheet += ".notincorporationAnalyzer-block   {display: block}\n";
	    stylesheet += ".notincorporationAnalyzer-inline  {display: inline}\n";
	    stylesheet += ".notinvestmentSavingsPlanner-block {display: block}\n";
	    stylesheet += ".notinvestmentSavingsPlanner-inline {display: inline}\n";
	    stylesheet += ".notloanPlanner-block             {display: block}\n";
	    stylesheet += ".notloanPlanner-inline            {display: inline}\n";
	    stylesheet += ".notmedicalExpenseOptimizer-block {display: block}\n";
	    stylesheet += ".notmedicalExpenseOptimizer-inline {display: inline}\n";
	    stylesheet += ".notpensionSplittingOptimizer-block {display: block}\n";
	    stylesheet += ".notpensionSplittingOptimizer-inline {display: inline}\n";
	    stylesheet += ".notpensionSplittingOptimizerEnabled-block {display: block}\n";
	    stylesheet += ".notpensionSplittingOptimizerEnabled-inline {display: inline}\n";
	    stylesheet += ".notrespPlanner-block             {display: block}\n";
	    stylesheet += ".notrespPlanner-inline            {display: inline}\n";
	    stylesheet += ".notretirementPlanner-block       {display: block}\n";
	    stylesheet += ".notretirementPlanner-inline      {display: inline}\n";
	    stylesheet += ".notrrspWizard-block              {display: block}\n";
	    stylesheet += ".notrrspWizard-inline             {display: inline}\n";
	    stylesheet += ".notsmartTips-block               {display: block}\n";
	    stylesheet += ".notsmartTips-inline              {display: inline}\n";
	    stylesheet += ".notstockTradeTracker-block       {display: block}\n";
	    stylesheet += ".notstockTradeTracker-inline      {display: inline}\n";

        // Internet Access
		stylesheet += ".webaccess-block                  {display: block}\n"
		stylesheet += ".webaccess-inline                 {display: inline}\n"
		stylesheet += ".nowebaccess-block                {display: none}\n"
		stylesheet += ".nowebaccess-inline               {display: none}\n"
		
		// Sku delivery mechanism
		stylesheet += ".cdsku-block                      {display: block}\n"
		stylesheet += ".cdsku-inline                     {display: inline}\n"
		stylesheet += ".dnloadsku-block                  {display: none}\n"
		stylesheet += ".dnloadsku-inline                 {display: none}\n"
		
		// Intuit customer number
		stylesheet += ".custnum-block                    {display: none}\n"
		stylesheet += ".custnum-inline                   {display: none}\n"
		
		// Able to buy more returns ?
		stylesheet += ".custmorereturns-block            {display: none}\n"
		stylesheet += ".custmorereturns-inline           {display: none}\n"
		stylesheet += ".notcustmorereturns-block         {display: block}\n"
		stylesheet += ".notcustmorereturns-inline        {display: block}\n"
	}

	stylesheet += "</style>"

	return stylesheet
}

document.write(GetStyleSheet())
