public static string InstallHtml(this HtmlHelper helper, Installation inst)
        {
            string html = "";
            string backgroundColor = "";

            if (inst.GetType() == typeof(CustomerInstallation))
            {
                CustomerInstallation installation = (CustomerInstallation)inst;
                if (installation.valuedCustomer)
                    backgroundColor = "FFCC00";
                else if (installation.region == "Internal")
                    backgroundColor = "66CC00";
                html = String.Format("<span style='font-style:{0}; background-color:#{10}'><a href='{1}'>{2}</a>: {3} {4} @ {5} [{6}]{7}{8}{9}</span><br/><hr/>",
                    installation.dateApproved ? "normal" : "italic", installation.link, installation.key, installation.product,
                    installation.installTask, installation.customerCode, SILink(installation.serviceIncident, installation.cases),
                    !String.IsNullOrEmpty(installation.hosted) ? ", " + installation.hosted : "",
                    (installation.ryo) ? ", RYO" : "",
                    !String.IsNullOrEmpty(installation.security) ? ", " + installation.security : "",
                    backgroundColor);
            }
            else
            {
                Installation installation = inst;
                html = String.Format("<span style='font-style:normal; background-color:#white'><a href='{0}'>{1}</a>: {3} @ {2}</span><br/><hr/>",
                    installation.link, installation.key, installation.customerCode, SILink(installation.serviceIncident, installation.cases ));

            }

            return html;
        }
        private static bool ValuedCustomer(Installation inst)
        {
            if (inst.GetType() == typeof(CustomerInstallation))
            {
                CustomerInstallation i = (CustomerInstallation)inst;
                return i.valuedCustomer;
            }
            return false;

        }
 private static string InstallationTitle(Installation inst)
 {
     if (inst.GetType() == typeof(CustomerInstallation))
     {
         CustomerInstallation i = (CustomerInstallation)inst;
         return String.Format("{0}: {1} {2} @ {3} [{4}]{5}",
                                     i.key, i.product, i.installTask, i.customerCode, i.serviceIncident,
                                     !String.IsNullOrEmpty(i.security) ? ", " + i.security : "");
     }
     else
     {
         return inst.summary;
     }
 }