﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/">
        <xsl:variable name="NotificationTypeID" select="EmailNotifications/NotificationTypeID"/>
        <html>
            <head>
            </head>
            <body>
                <div id="divEmailDigest_Container" style="margin-left:3%;z-index: 1; background-color: #FFFFFF;">
                    <div style="padding-top: 10px; margin-bottom: 20px;">
                        <table  cellpadding="0" border="0" cellspacing="0">
                            <tr>
                                <td>
                                    <span  align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <xsl:choose>
                                            <xsl:when test ="normalize-space($NotificationTypeID)= 40">
                                                Hi <xsl:value-of select ="EmailNotifications/UserName"/>,
                                            </xsl:when>
                                            <xsl:otherwise>
                                                Dear <xsl:value-of select ="EmailNotifications/UserName"/>,
                                            </xsl:otherwise>
                                        </xsl:choose>
                                    </span>
                                </td>
                            </tr>
                            <tr height="5"></tr>
                            <tr>
                                <td>
                                    <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 2">
                                            <xsl:call-template name="GoalChanged"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 3">
                                            <xsl:call-template name="GoalCompleted"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 4">
                                            <xsl:call-template name="ActionCreated"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 5">
                                            <xsl:call-template name="ActionChanged"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 6">
                                            <xsl:call-template name="ActionCompleted"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 7">
                                            <xsl:call-template name="NoteCreated"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 8">
                                            <xsl:call-template name="NoteChanged"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 12 or
                                                normalize-space($NotificationTypeID)= 1">
                                            <xsl:call-template name="SecureItMemberAdded"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 13">
                                            <xsl:call-template name="SecureItMemberRightUpdated"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 14">
                                            <xsl:call-template name="UserRegistered"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 15">
                                            <xsl:call-template name="AccountActivated"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 16">
                                            <xsl:call-template name="ActionAssigned"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 17">
                                            <xsl:call-template name="RelationshipRequest"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 18">
                                            <xsl:call-template name="RelationshipRequestConfirmed"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 26">
                                            <xsl:call-template name="DiscussionAddedUser"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 21">
                                            <xsl:call-template name="DiscussionAddedActive"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 22">
                                            <xsl:call-template name="CommentsAddedinDiscussion"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 35">
                                            <xsl:call-template name="IsUnauthorizedUser"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 36">
                                            <xsl:call-template name="FollowItUser"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 37">
                                            <xsl:call-template name="NewBlogPosts"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 38">
                                            <xsl:call-template name="CreateBrand"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 39">
                                            <xsl:call-template name="PromoterRegistration"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 40">
                                            <xsl:call-template name="BrandReview"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 45">
                                            <xsl:call-template name="ResponseAdded"></xsl:call-template>
                                        </xsl:if>
                                        <xsl:if test ="normalize-space($NotificationTypeID)= 46">
                                            <xsl:call-template name="ResponseUpdated"></xsl:call-template>
                                        </xsl:if>
                                    </span>
                                </td>
                            </tr>
                            <tr height="5"></tr>
                            <td>
                                <span>&#xa0;</span>
                            </td>
                            <tr height="5"></tr>
                            <tr>
                                <td>
                                    <xsl:if test ="normalize-space($NotificationTypeID) &lt; 37">
                                        <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                            <b>Open LifeSpace:</b>
                                            <a href="http://www.LifeSpace.com" target="_blank">http://www.LifeSpace.com</a>
                                        </span>
                                    </xsl:if>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </body>
        </html>
    </xsl:template>

    <xsl:template name ="BrandReview">
        <xsl:variable name ="Address" select ="normalize-space(EmailNotifications/PrimaryAddress)"></xsl:variable>
        <xsl:variable name ="Phone" select ="normalize-space(EmailNotifications/PrimaryPhone)"></xsl:variable>
        <xsl:variable name ="Logo" select ="normalize-space(EmailNotifications/BrandLogoSmallURL)"></xsl:variable>
        <xsl:variable name ="Website" select ="normalize-space(EmailNotifications/CompanyWebsiteURL)"></xsl:variable>
        <div id="div_Notification" style="margin-top:10px; margin-bottom: 10px;">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    We would like to thank you for your application to setup your Marketplace Community on LifeSpace. We will help you complete the application
                    and get you started using your new community on LifeSpace.
                    <br/><br/>The LifeSpace Marketplace is a growing network of local companies and industry experts, specializing in Fitness, Finance, Relationships, Entertainment, Personal Growth and all other key areas of
                    life that LifeSpace users focus on. We encourage our Marketplace Specialists to build their own custom communities, providing great content and knowledge
                    not only to your own personal networks, but also to the entire LifeSpace universe of users. In other words, if you have knowledge and products to share,
                    we will help you promote it to your communities, our communities and all over the internet, helping you to build your brand following, find new customers
                    and keep existing ones.
                    <br/><br/>Right now the Marketplace is in our beta launch, which means we are reviewing applications and approving them individually. During this beta phase, companies
                    that join us will not be paying any fees to be apart of the Marketplace and will receive extra assistance from our team in setting up your pages graphically
                    as well as assistance with bringing in your great content.
                    <br/><br/>If you have applied for our Marketplace in error, simply reply and let us know. However, if you are interested in taking advantage of our powerful tools and
                    free assistance, please help us continue this process by providing some additional information. You may simply reply to this e-mail with all the information
                    we are requesting below:<br/><br/>
                    <xsl:if test ="$Address = '' or $Phone = '' or $Logo = '' or $Website = ''">
                        <b>
                            We noticed that you are missing some information on your application. Please provide us with the following:
                        </b>
                        <br/>
                        <br/>
                    </xsl:if>
                    <xsl:if test ="$Logo = ''">
                        <b>Brand Logo:</b>
                        <br/>
                    </xsl:if>
                    <xsl:if test ="$Website = ''">
                        <b>Website URL:</b>
                        <br/>
                    </xsl:if>
                    <xsl:if test ="$Address = ''">
                        <b>Primary Address:</b>
                        <br/>
                    </xsl:if>
                    <xsl:if test ="$Phone = ''">
                        <b>Primary Phone:</b>
                        <br/>
                    </xsl:if>
                    <br/>
                    <b>
                        Please answer the following questions:
                        <br/><br/>1. Please describe your areas of expertise and what type of knowledge you would like to share in the LifeSpace Marketplace?
                        <br/><br/>2. How did you hear about the LifeSpace Marketplace? Did a LifeSpace representative invite you to participate or did you
                        find us through LifeSpace or via a search engine?
                        <br/><br/>3. Please describe your current social media marketing strategy and whether you would like to use the LifeSpace
                        Marketplace to enhance this strategy. Or is participating in the Marketplace the beginning of your social media
                        marketing strategy?
                        <br/><br/>4. We can help you setup your pages graphically, can help publish content effectively and will provide marketing
                        assistance to reach existing LifeSpace users and new ones on the internet. We are prepared to make this investment
                        of time and resources to ensure your success at no cost to you. In return, we ask you to devote a few hours to assist
                        us with this setup process, a few hours per month to continue to add fresh content, and a willingness to promote your
                        community to your existing network of friends, customers and prospects. Do you agree that you have the time and interest
                        in building a great community and a desire to promote it to your own contacts and networks?
                    </b><br/><br/>Thank you once again for your participation in the LifeSpace Marketplace. We are excited to add your expertise to our knowledge
                    base and look forward to helping you expand your business and build your social following using our powerful platform.
                    <br/><br/>
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>To view your Marketplace page:</b>
                <a href="http://www.LifeSpace.com/{normalize-space(EmailNotifications/BrandKey)}" target="_blank">
                    http://www.LifeSpace.com/<xsl:value-of select ="EmailNotifications/BrandKey"/>
                </a>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>To change your settings:</b>
                <a href="http://www.LifeSpace.com/Settings.aspx" target="_blank">
                    http://www.LifeSpace.com/Settings.aspx
                </a>
            </span>
        </div>
        <div style="margin-top:20px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                --<br/>
                LifeSpace<br/>
                Dream It! Plan It! Do It! Track It!<br/>
                <a href="http://www.LifeSpace.com" target="_blank">http://www.LifeSpace.com</a><br/>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="PromoterRegistration">
        <div id="div_Notification" style="margin-top:10px; margin-bottom: 10px;">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>
                            &#xa0;
                        </b>
                    </font>has aplied to be a Promoter.
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Promoter Admin page:</b>
                <a href="http://www.LifeSpace.com/PromoterAdmin.aspx" target="_blank">
                    http://www.LifeSpace.com/PromoterAdmin.aspx
                </a>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open LifeSpace:</b>
                <a href="http://www.LifeSpace.com" target="_blank">
                    http://www.LifeSpace.com
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="NewBlogPosts">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/AuthorDisplayName)"/>
                        </b>
                    </font>
                    posted a new blog post
                </span>
            </div>
            <div id="div_Notification_Sumamry"
                 style="margin-top:10px;">
                <table cellspacing="0" border="0" cellpadding="0">
                    <tr>
                        <td>
                            <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                                <font color="#17375E">
                                    <b>
                                        <a href="http://www.LifeSpace.com/Publication.aspx?ID={normalize-space(EmailNotifications/ItemID)}&amp;Ref=EM.Not">
                                            <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                        </a>&#xa0;
                                    </b>
                                </font>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Publication">
                                <p id="lbl_itemSummary" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt;" wrap="true">
                                    <xsl:value-of select ="EmailNotifications/PublicationSummary"/>
                                </p>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Alter Communities I follow:</b>
                <a href="http://www.LifeSpace.com/CommunityWizard.aspx" target="_blank">
                    http://www.LifeSpace.com/CommunityWizard.aspx
                </a>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Alter My Notification Settings:</b>
                <a href="http://www.LifeSpace.com/Settings.aspx" target="_blank">
                    http://www.LifeSpace.com/Settings.aspx
                </a>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open LifeSpace:</b>
                <a href="http://www.LifeSpace.com" target="_blank">
                    http://www.LifeSpace.com
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="CreateBrand">
        <xsl:variable name ="Type" select ="normalize-space(EmailNotifications/BrandCategory)"></xsl:variable>
        <xsl:variable name ="Name" select ="normalize-space(EmailNotifications/BrandKey)"></xsl:variable>
        <xsl:variable name ="Description" select ="normalize-space(EmailNotifications/BrandDescription)"></xsl:variable>
        <xsl:variable name ="Email" select ="normalize-space(EmailNotifications/BrandCompanyEmail)"></xsl:variable>
        <xsl:variable name ="LogoURL" select ="normalize-space(EmailNotifications/BrandLogoSmallURL)"></xsl:variable>
        <xsl:variable name ="Website" select ="normalize-space(EmailNotifications/CompanyWebsiteURL)"></xsl:variable>
        <xsl:variable name ="CouponCode" select ="normalize-space(EmailNotifications/BrandCouponCode)"></xsl:variable>
        <xsl:variable name ="PublicYN" select ="normalize-space(EmailNotifications/BrandPublicYN)"></xsl:variable>

        <xsl:variable name ="Address1" select="normalize-space(EmailNotifications/PrimaryAddress)"></xsl:variable>
        <xsl:variable name ="Address2" select="normalize-space(EmailNotifications/Address2)"></xsl:variable>
        <xsl:variable name ="Address3" select="normalize-space(EmailNotifications/Address3)"></xsl:variable>
        <xsl:variable name ="City" select="normalize-space(EmailNotifications/City)"></xsl:variable>
        <xsl:variable name ="State" select="normalize-space(EmailNotifications/State)"></xsl:variable>
        <xsl:variable name ="PostalCode" select="normalize-space(EmailNotifications/PostalCode)"></xsl:variable>
        <xsl:variable name ="Country" select="normalize-space(EmailNotifications/Country)"></xsl:variable>
        <xsl:variable name ="PhoneMain" select="normalize-space(EmailNotifications/PrimaryPhone)"></xsl:variable>
        <xsl:variable name ="OwnerName" select="normalize-space(EmailNotifications/BrandOwnerName)"></xsl:variable>
        <xsl:variable name ="OwnerEmailID" select="normalize-space(EmailNotifications/BrandOwnerEmail)"></xsl:variable>

        <div id="div_Notification" style="margin-top:10px; margin-bottom: 10px;">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <a href="http://www.LifeSpace.com/{normalize-space(EmailNotifications/BrandKey)}">
                                <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                            </a>&#xa0;
                        </b>
                    </font>has setup their brand.
                </span>
            </div>
        </div>
        <div id="div_BrandDetail" style="margin-top:10px; margin-bottom: 10px;">
            <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Band Key:&#xa0;</b>
                <xsl:value-of select ="$Name"/>
                <br/>
                <b>Brand Coupon Code:&#xa0;</b>
                <xsl:value-of select ="$CouponCode"/>
                <br/>
                <b>Type:&#xa0;</b>
                <xsl:value-of select ="$Type"/>
                <br/>
                <b>Description:&#xa0;</b>
                <xsl:value-of select ="$Description"/>
                <br/>
                <xsl:if test ="$PublicYN = 1">
                    <b>Public:&#xa0;</b>Yes
                    <br/>
                </xsl:if>
                <xsl:if test ="$PublicYN = 0">
                    <b>Public:&#xa0;</b>No
                    <br/>
                </xsl:if>
                <b>Logo URL:&#xa0;</b>
                <xsl:value-of select ="$LogoURL"/>
                <br/>
                <b>Website:&#xa0;</b>
                <xsl:value-of select ="$Website"/>
                <br/>
                <b>Email:&#xa0;</b>
                <xsl:value-of select ="$Email"/>
                <br/>

                <b>Address1:&#xa0;</b>
                <xsl:value-of select ="$Address1"/>
                <br/>
                <b>Address2:&#xa0;</b>
                <xsl:value-of select ="$Address2"/>
                <br/>
                <b>City, State Zip:&#xa0;</b>
                <xsl:value-of select ="$City"/>,&#xa0;<xsl:value-of select ="$State"/>&#xa0;<xsl:value-of select ="$PostalCode"/>
                <br/>
                <b>Country:&#xa0;</b>
                <xsl:value-of select ="$Country"/>
                <br/>
                <b>Phone:&#xa0;</b>
                <xsl:value-of select ="$PhoneMain"/>
                <br/>
                <b>Owner's Name:&#xa0;</b>
                <xsl:value-of select ="$OwnerName"/>
                <br/>
                <b>Owner's EmailID:&#xa0;</b>
                <xsl:value-of select ="$OwnerEmailID"/>
                <br/>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>View application:</b>
                <a href="http://www.LifeSpace.com/CreateBrand.aspx?ID={normalize-space(EmailNotifications/BrandID)}" target="_blank">
                    http://www.LifeSpace.com/CreateBrand.aspx?ID=<xsl:value-of select="EmailNotifications/BrandID"/>
                </a>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Brand Page:</b>
                <a href="http://www.LifeSpace.com/{normalize-space(EmailNotifications/BrandKey)}" target="_blank">
                    http://www.LifeSpace.com/<xsl:value-of select ="EmailNotifications/BrandKey"/>
                </a>
            </span>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open LifeSpace:</b>
                <a href="http://www.LifeSpace.com" target="_blank">
                    http://www.LifeSpace.com
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="FollowItUser">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_FollowIt">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    is now following the
                    <a href="http://www.LifeSpace.com/Community.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                            </b>
                        </font>
                    </a>
                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                        Community
                    </span>
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Community.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    http://www.LifeSpace.com/Community.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="CommentsAddedinDiscussion">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    added a new
                    <font color="#17375E">
                        <b>
                            Comment <!--: <xsl:value-of select="EmailNotifications/Item"/>-->
                        </b>
                    </font> to the <font color="#17375E">
                        <b>
                            <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ParentItemID)}">
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </a>&#xa0;
                        </b>
                    </font>
                    <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                        Discussion
                    </span>
                </span>
            </div>
            <div id="div_Notification_Discussion"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Comments" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <div id="div_Note_View">
                                    <div id="divComments" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px;">
                                        <!--<div>
                                            <span class="notesFrom" style ="color: #7F7F7F;	font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                <xsl:value-of select ="EmailNotifications/ActorName"/>&#xa0; Wrote on <xsl:value-of select ="EmailNotifications/CreatedOn"/>
                                            </span>
                                        </div>-->
                                        <div>
                                            <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt; width: 80%" wrap="true">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>To Reply, Comment or View Discussion:</b>
                <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ParentItemID)}" target="_blank">
                    http://www.LifeSpace.com/Discussion.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ParentItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="IsUnauthorizedUser">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                            (<xsl:value-of select="normalize-space(EmailNotifications/ActorEmail)"/>)
                        </b>
                    </font>
                    has made
                    <font color="#17375E">
                        <b>
                            5+ unauthorized
                        </b>
                    </font> item views today
                </span>
            </div>
        </div>
    </xsl:template>

    <xsl:template name ="DiscussionAddedActive">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    added a new
                    <font color="#17375E">
                        <b>
                            Discussion <!--: <xsl:value-of select="EmailNotifications/Item"/>-->
                        </b>
                    </font> to the <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>&#xa0;
                        </b>
                    </font>
                    <xsl:if test ="EmailNotifications/ParentItemType = 5">
                        <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                            Goal
                        </span>
                    </xsl:if>
                    <xsl:if test ="EmailNotifications/ParentItemType = 18">
                        <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                            Community
                        </span>
                    </xsl:if>
                </span>
            </div>
            <div id="div_Notification_Discussion"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Action" style="margin-left:5px">
                                <div>
                                    <div>
                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; margin-left: 15px;" wrap="true">
                                            <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </a>
                                        </span>
                                    </div>
                                    <xsl:if test ="EmailNotifications/ItemDescription != ''">
                                        <div id="div_Description" style="margin-left:5px;
                                             background-color: rgb(242, 242, 242); border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                            <div id="div_Note_View">
                                                <div id="divDescription" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px;">
                                                    <!--<div>
                                            <span class="notesFrom" style ="color: #7F7F7F;	font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                <xsl:value-of select ="EmailNotifications/ActorName"/>&#xa0; Wrote on <xsl:value-of select ="EmailNotifications/CreatedOn"/>
                                            </span>
                                        </div>-->
                                                    <div>
                                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt; width: 80%" wrap="true">
                                                            <xsl:apply-templates select ="EmailNotifications/ItemDescription"></xsl:apply-templates>
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </xsl:if>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    http://www.LifeSpace.com/Discussion.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="DiscussionAddedUser">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Discussion">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    added a
                    <font color="#17375E">
                        <b>
                            Discussion <!--: <xsl:value-of select="EmailNotifications/Item"/>-->
                        </b>
                    </font> under the
                    <!--<xsl:if test ="EmailNotifications/ParentItem != EmailNotifications/PrimaryItem">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        of the
                    </xsl:if>-->
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                        </b>
                    </font>
                    <xsl:if test ="EmailNotifications/ParentItemType = 5">
                        <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                            Goal
                        </span>
                    </xsl:if>
                    <xsl:if test ="EmailNotifications/ParentItemType = 18">
                        <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                            Community
                        </span>
                    </xsl:if>
                </span>
            </div>
            <div id="div_Notification_Discussion"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Action" style="margin-left:5px">
                                <div>
                                    <div>
                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; margin-left: 15px;" wrap="true">
                                            <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </a>
                                        </span>
                                    </div>
                                    <xsl:if test ="EmailNotifications/ItemDescription != ''">
                                        <div id="div_Description" style="margin-left:5px;
                                             background-color: rgb(242, 242, 242); border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                            <div id="div_Note_View">
                                                <div id="divDescription" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px;">
                                                    <!--<div>
                                            <span class="notesFrom" style ="color: #7F7F7F;	font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                <xsl:value-of select ="EmailNotifications/ActorName"/>&#xa0; Wrote on <xsl:value-of select ="EmailNotifications/CreatedOn"/>
                                            </span>
                                        </div>-->
                                                    <div>
                                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt; width: 80%" wrap="true">
                                                            <xsl:apply-templates select ="EmailNotifications/ItemDescription"></xsl:apply-templates>
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </xsl:if>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    http://www.LifeSpace.com/Discussion.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="NoteCreated">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    added a
                    <font color="#17375E">
                        <b>Comment</b>
                    </font> under
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                        </b>
                    </font>
                    in the
                    <!--<a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">-->
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    <!--</a>
                    Goal-->
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id="div_Notification_Notes"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Note" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <div id="div_Note_View">
                                    <div id="divNote" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px;">
                                        <!--<div>
                                            <span class="notesFrom" style ="color: #7F7F7F;	font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                <xsl:value-of select ="EmailNotifications/ActorName"/>&#xa0; Wrote on <xsl:value-of select ="EmailNotifications/CreatedOn"/>
                                            </span>
                                        </div>-->
                                        <div>
                                            <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt; width: 80%" wrap="true">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </span>
                                        </div>
                                    </div>
                                    <!--<xsl:for-each select ="EmailNotifications/Reply">
                                        <xsl:if test ="normalize-space(ReplyID) &gt; 0">
                                            <div id="divNoteReply" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px; margin-left: 50px;">
                                                <div>
                                                    <span class="ReplyNotesFrom" style ="color: #7F7F7F; font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                        <xsl:value-of select ="ReplyFrom"/>&#xa0; Wrote on <xsl:value-of select ="ReplyCreatedOn"/>
                                                    </span>
                                                </div>
                                                <div>
                                                    <span id="lbl_itemReplyNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt;" wrap="true">
                                                        <xsl:apply-templates select ="ReplyNote"></xsl:apply-templates>
                                                    </span>
                                                </div>
                                            </div>
                                        </xsl:if>
                                    </xsl:for-each>-->
                                </div>
                                <!--<div id="div_Note_{normalize-space($itemID)}_Replies" style="margin-left:20px">
                                        <xsl:for-each select ="../Note[ParentID=$itemID]">
                                            <div id="div_Reply_{normalize-space(ItemID)}">
                                                <div>
                                                    <span class="notesFrom" style ="color: #7F7F7F;	font-family: Calibri, Verdana, Arial;	font-size: 10pt; font-style: italic;">
                                                        <xsl:value-of select ="FirstName"/>&#xa0;<xsl:value-of select ="LastName"/> Wrote on <xsl:value-of select ="NoteDateTime"/>
                                                    </span>
                                                </div>
                                                <div class="noteSeperator">
                                                    <span class="label" style ="font-family: Calibri, Verdana, Arial;	font-size: 10pt;" wrap="true">
                                                        <xsl:apply-templates select ="NoteDesc"></xsl:apply-templates>
                                                    </span>
                                                    <img src="{normalize-space($TemplatePathURL)}Web/Images/big_spacer.gif"></img>
                                                </div>
                                            </div>
                                        </xsl:for-each>
                                    </div>-->
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>To Reply, Comment or View Discussion:</b>
                <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ParentItemID)}" target="_blank">
                    http://www.LifeSpace.com/Discussion.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ParentItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="NoteChanged">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    modified a
                    <font color="#17375E">
                        <b>Comment</b>
                    </font> under
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                        </b>
                    </font>
                    in the
                    <!--<a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">-->
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    <!--</a>-->
                    <!--Goal-->
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id="div_Notification_Notes"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Note" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <div id="div_Note_View">
                                    <div id="divNote" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px;">
                                        <!--<div>
                                            <span class="notesFrom" style ="color: #7F7F7F;	font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                <xsl:value-of select ="EmailNotifications/ActorName"/>&#xa0; Wrote on <xsl:value-of select ="EmailNotifications/CreatedOn"/>
                                            </span>
                                        </div>-->
                                        <div>
                                            <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt; width: 80%" wrap="true">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </span>
                                        </div>
                                    </div>
                                    <!--<xsl:for-each select ="EmailNotifications/Reply">
                                        <xsl:if test ="normalize-space(ReplyID) &gt; 0">
                                            <div id="divNoteReply" style="border-bottom: 1px solid #BCBCBC;	padding-bottom: 2px; margin-bottom: 5px; margin-left: 50px;">
                                                <div>
                                                    <span class="ReplyNotesFrom" style ="color: #7F7F7F; font-family: Calibri, Verdana, Arial; font-size: 10pt; font-style: italic;">
                                                        <xsl:value-of select ="ReplyFrom"/>&#xa0; Wrote on <xsl:value-of select ="ReplyCreatedOn"/>
                                                    </span>
                                                </div>
                                                <div>
                                                    <span id="lbl_itemReplyNote" class="label" style="font-family: Calibri, Verdana, Arial; font-size: 10pt;" wrap="true">
                                                        <xsl:apply-templates select ="ReplyNote"></xsl:apply-templates>
                                                    </span>
                                                </div>
                                            </div>
                                        </xsl:if>
                                    </xsl:for-each>-->
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>To Reply, Comment or View Discussion:</b>
                <a href="http://www.LifeSpace.com/Discussion.aspx?ID={normalize-space(EmailNotifications/ParentItemID)}" target="_blank">
                    http://www.LifeSpace.com/Discussion.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ParentItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="GoalChanged">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    modified a Goal
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id ="div_Notification_Item"
                 style="margin-left:50px; margin-top:3px;">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    &#xa0;
                    <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                            </b>
                        </font>
                    </a>
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="GoalCompleted">
        <div id="div_Notification" style="margin-top:10px">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    completed a Goal
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id ="div_Notification_Item"
                 style="margin-left:50px; margin-top:3px;">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    &#xa0;
                    <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                            </b>
                        </font>
                    </a>
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="ActionCreated">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    added an
                    <font color="#17375E">
                        <b>Action</b>
                    </font> under
                    <xsl:if test ="EmailNotifications/ParentItem != EmailNotifications/PrimaryItem">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        of the
                    </xsl:if>
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    Goal
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id="div_Notification_Action"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Action" style="margin-left:5px">
                                <div>
                                    <div>
                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; margin-left: 15px;" wrap="true">
                                            <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/PrimaryItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="ActionChanged">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    updated an
                    <font color="#17375E">
                        <b>Action</b>
                    </font> to you under
                    <xsl:if test ="EmailNotifications/ParentItem != EmailNotifications/PrimaryItem">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        of the
                    </xsl:if>
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    Goal
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id="div_Notification_Action"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Action" style="margin-left:5px">
                                <div>
                                    <div>
                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; margin-left:15px;" wrap="true">
                                            <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/PrimaryItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="ActionCompleted">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    completed an
                    <font color="#17375E">
                        <b>Action</b>
                    </font> under
                    <xsl:if test ="EmailNotifications/ParentItem != EmailNotifications/PrimaryItem">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        of the
                    </xsl:if>
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    Goal

                </span>
                <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
            </div>
            <div id="div_Notification_Action"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Action" style="margin-left:5px">
                                <div>
                                    <div>
                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; margin-left:15px;" wrap="true">
                                            <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/PrimaryItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="SecureItMemberAdded">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    <xsl:if test="normalize-space(EmailNotifications/TypeID) = 3">
                        added you to a Portal
                    </xsl:if>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 4 or normalize-space(EmailNotifications/TypeID) = 5">
                        added you to a Goal
                    </xsl:if>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                        added you to a Lifespace
                    </xsl:if>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 8 or normalize-space(EmailNotifications/TypeID) = 9">
                        added you to an
                        <font color="#17375E">
                            <b>Action</b>
                        </font> under
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        of
                        <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>'s
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                            </b>
                        </font>
                        Goal
                    </xsl:if>
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div style="margin-left:50px; margin-top:3px;">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    &#xa0;
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 4 or normalize-space(EmailNotifications/TypeID) = 5">
                        <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                            <font color="#17375E">
                                <b>
                                    <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                </b>
                            </font>
                        </a>
                    </xsl:if>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                        <a href="http://www.LifeSpace.com/LifeSpace.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                            <font color="#17375E">
                                <b>
                                    <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                </b>
                            </font>
                        </a>
                    </xsl:if>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 3">
                        <a href="http://www.LifeSpace.com/ClientPortal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                            <font color="#17375E">
                                <b>
                                    <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                </b>
                            </font>
                        </a>
                    </xsl:if>
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 4 or normalize-space(EmailNotifications/TypeID) = 5">
                    <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                    </a>
                </xsl:if>
                <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                    <a href="http://www.LifeSpace.com/LifeSpace.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        http://www.LifeSpace.com/LifeSpace.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                    </a>
                </xsl:if>
                <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 3">
                    <a href="http://www.LifeSpace.com/ClientPortal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        http://www.LifeSpace.com/ClientPortal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                    </a>
                </xsl:if>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="SecureItMemberRightUpdated">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(Actor/FirstName)"/>&#xa0;
                        </b>
                    </font>
                    changed your
                    <font color="#17375E">
                        <b>Right</b>
                    </font> for
                    <xsl:if test ="normalize-space(EmailNotifications/PrimaryItemID) != normalize-space(EmailNotifications/ParentItemID)">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        under
                    </xsl:if>
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    Goal
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div style="margin-left:50px; margin-top:3px;">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    &#xa0;
                    <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                            </b>
                        </font>
                    </a>
                </span>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="ActionAssigned">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    assigned an <font color="#17375E">
                        <b>Action</b>
                    </font> to you
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                        </b>
                    </font>
                    under
                    <xsl:if test ="EmailNotifications/ParentItem != EmailNotifications/PrimaryItem">
                        <font color="#17375E">
                            <b>
                                <xsl:value-of select="normalize-space(EmailNotifications/ParentItem)"/>
                            </b>
                        </font>
                        of
                    </xsl:if>
                    <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>'s
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/PrimaryItem)"/>
                        </b>
                    </font>
                    Goal
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id="div_Notification_Action"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Action" style="margin-left:5px">
                                <div>
                                    <div>
                                        <span id="lbl_itemNote" class="label" style="font-family: Calibri, Verdana, Arial;	font-size: 10pt; margin-left:15px;" wrap="true">
                                            <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                                                <xsl:apply-templates select ="EmailNotifications/Item"></xsl:apply-templates>
                                            </a>
                                        </span>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
            <span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                <b>Open Item:</b>
                <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/PrimaryItemID)}" target="_blank">
                    http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/PrimaryItemID)"></xsl:value-of>
                </a>
            </span>
        </div>
    </xsl:template>

    <xsl:template name ="UserRegistered">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 4 or normalize-space(EmailNotifications/TypeID) = 5">
                        has just registered to LifeSpace
                    </xsl:if>
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div></div>
        </div>
    </xsl:template>

    <xsl:template name ="AccountActivated">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;'s
                        </b>
                    </font>
                    <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 4 or normalize-space(EmailNotifications/TypeID) = 5">
                        account has been activated.
                    </xsl:if>
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div></div>
        </div>
    </xsl:template>

    <xsl:template name ="RelationshipRequest">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    created a relationship with you. Please confirm.
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div style="margin-left:50px; margin-top:3px;">
                <!--<span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                         &#xa0;
                        <xsl:if test ="normalize-space(EmailNotifications/TypeID) != 2">
                            <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                                <font color="#17375E">
                                    <b>
                                        <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                    </b>
                                </font>
                            </a>
                        </xsl:if>
                        <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                            <a href="http://www.LifeSpace.com/LifeSpace.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                                <font color="#17375E">
                                    <b>
                                        <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                    </b>
                                </font>
                            </a>
                        </xsl:if>
                    </span>-->
            </div>
        </div>
        <div style="margin-top:10px;">
            <!--<span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <b>Open Item:</b>
                   <xsl:if test ="normalize-space(EmailNotifications/TypeID) != 2">
                       <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                           http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                       </a>
                   </xsl:if>
                   <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                       <a href="http://www.LifeSpace.com/LifeSpace.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                           http://www.LifeSpace.com/LifeSpace.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                       </a>
                   </xsl:if>
               </span>-->
        </div>
    </xsl:template>

    <xsl:template name ="RelationshipRequestConfirmed">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    has approved your relationship request.
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div style="margin-left:50px; margin-top:3px;">
                <!--<span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                         &#xa0;
                        <xsl:if test ="normalize-space(EmailNotifications/TypeID) != 2">
                            <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                                <font color="#17375E">
                                    <b>
                                        <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                    </b>
                                </font>
                            </a>
                        </xsl:if>
                        <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                            <a href="http://www.LifeSpace.com/LifeSpace.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                                <font color="#17375E">
                                    <b>
                                        <xsl:value-of select="normalize-space(EmailNotifications/ItemName)"/>
                                    </b>
                                </font>
                            </a>
                        </xsl:if>
                    </span>-->
            </div>
        </div>
        <div style="margin-top:10px;">
            <!--<span align="left" style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <b>Open Item:</b>
                   <xsl:if test ="normalize-space(EmailNotifications/TypeID) != 2">
                       <a href="http://www.LifeSpace.com/Goal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                           http://www.LifeSpace.com/Goal.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                       </a>
                   </xsl:if>
                   <xsl:if test ="normalize-space(EmailNotifications/TypeID) = 2">
                       <a href="http://www.LifeSpace.com/LifeSpace.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                           http://www.LifeSpace.com/LifeSpace.aspx?ID=<xsl:value-of select="normalize-space(EmailNotifications/ItemID)"></xsl:value-of>
                       </a>
                   </xsl:if>
               </span>-->
        </div>
    </xsl:template>

    <xsl:template name ="TimeStamp">
        <xsl:variable name="CreatedMinutes" select="EmailNotifications/CreatedMinutes"/>
        <i>
            <font color="#17375E">
                <xsl:if test ="$CreatedMinutes &lt; 1">
                    &#xa0;<xsl:value-of select="round(normalize-space($CreatedMinutes) * 60)"/> second(s) ago
                </xsl:if>
                <xsl:if test ="$CreatedMinutes &gt;= 1 and $CreatedMinutes &lt; 60">
                    &#xa0;<xsl:value-of select="round(normalize-space($CreatedMinutes))"/> minute(s) ago
                </xsl:if>
                <xsl:if test ="$CreatedMinutes &gt;= 60 and $CreatedMinutes &lt; 1440 ">
                    &#xa0;<xsl:value-of select="round(normalize-space($CreatedMinutes) div 60)"/> hour(s) ago
                </xsl:if>
                <xsl:if test ="$CreatedMinutes &gt; 1440 ">
                    &#xa0;<xsl:value-of select="round(normalize-space($CreatedMinutes) div 1440)"/> day(s) ago
                </xsl:if>
            </font>
        </i>
    </xsl:template>

    <xsl:template match="EmailNotifications/Item">
        <xsl:call-template name="break"></xsl:call-template>
    </xsl:template>

    <xsl:template match="ReplyNote">
        <xsl:call-template name="break"></xsl:call-template>
    </xsl:template>

    <xsl:template name="break">
        <xsl:param name="text" select="."/>
        <xsl:choose>
            <xsl:when test="contains($text, '&#xD;&#xa;')">
                <xsl:value-of select="substring-before($text, '&#xD;&#xa;')"/>
                <br/>
                <xsl:call-template name="break">
                    <xsl:with-param name="text" select="substring-after($text,'&#xD;&#xa;')"/>
                </xsl:call-template>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="$text" disable-output-escaping="yes"/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template name ="ResponseAdded">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    added a Response in
                    <a href="http://www.LifeSpace.com/ClientPortal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                        <xsl:apply-templates select ="EmailNotifications/ItemName"></xsl:apply-templates>
                    </a>. Please approve.
                </span>
            </div>
            <div id="div_Notification_Responses"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Note_Subject" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <b>
                                    <xsl:value-of select ="EmailNotifications/ResponseSubject"/>
                                </b>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Note_Body" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <xsl:value-of select ="EmailNotifications/ResponseHTML" disable-output-escaping ="yes"/>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
        </div>
    </xsl:template>


    <xsl:template name ="ResponseUpdated">
        <div id="div_Notification" style="margin-top:10px;">
            <div id="div_Notification_Summary">
                <span style="font-family: Calibri, Verdana, Arial;font-size: 10pt;">
                    <font color="#17375E">
                        <b>
                            <xsl:value-of select="normalize-space(EmailNotifications/ActorName)"/>&#xa0;
                        </b>
                    </font>
                    updated a response in
                    <a href="http://www.LifeSpace.com/ClientPortal.aspx?ID={normalize-space(EmailNotifications/ItemID)}" target="_blank">
                    <xsl:apply-templates select ="EmailNotifications/ItemName"></xsl:apply-templates>
                </a>. Please approve.
                    <!--<xsl:call-template name="TimeStamp"></xsl:call-template>-->
                </span>
            </div>
            <div id="div_Notification_Responses"
                 style="margin-left:50px; margin-top:3px;">
                <table cellspacing="0" border="0" cellpadding="0" width="100%">
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Note_Subject" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <b>
                                    <xsl:value-of select ="EmailNotifications/ResponseSubject"/>
                                </b>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" align="left">
                            <div id="div_Note_Body" style="margin-left:5px;
                                 background-color: rgb(242, 242, 242); 
                                 border: 1px dashed rgb(217, 217, 217); font-family: Calibri, Verdana, Arial; font-size: 10pt; vertical-align: top;">
                                <xsl:value-of select ="EmailNotifications/ResponseHTML" disable-output-escaping ="yes"/>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div style="margin-top:10px;">
        </div>
    </xsl:template>



</xsl:stylesheet>
