<?xml version="1.0" encoding="utf-8" ?>

<xsl:stylesheet
  version="1.0"
  exclude-result-prefixes="x d xsl msxsl cmswrt"
  xmlns:x="http://www.w3.org/2001/XMLSchema"
  xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
  xmlns:cmswrt="http://schemas.microsoft.com/WebParts/v3/Publishing/runtime"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  <xsl:template name="Default" match="*" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-left">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
          </a>
        </div>
      </xsl:if>
      <div class="link-item">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
          <xsl:value-of select="$DisplayTitle"/>
        </a>
        <div class="description">
          <xsl:value-of select="@Description" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="NoImage" match="Row[@Style='NoImage']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
      <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
        <xsl:value-of select="$DisplayTitle"/>
      </a>
      <div class="description">
        <xsl:value-of select="@Description" />
      </div>
    </div>
  </xsl:template>
  <xsl:template name="TitleOnly" match="Row[@Style='TitleOnly']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item link-item">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
      <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
        <xsl:value-of select="$DisplayTitle"/>
      </a>
    </div>
  </xsl:template>
  <xsl:template name="TitleWithBackground" match="Row[@Style='TitleWithBackground']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div class="title-With-Background">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
      <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
        <xsl:value-of select="$DisplayTitle"/>
      </a>
    </div>
  </xsl:template>
  <xsl:template name="Bullets" match="Row[@Style='Bullets']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item link-item bullet">
      <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
      <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
        <xsl:value-of select="$DisplayTitle"/>
      </a>
    </div>
  </xsl:template>
  <xsl:template name="ImageRight" match="Row[@Style='ImageRight']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-right">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
          </a>
        </div>
      </xsl:if>
      <div class="link-item">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
          <xsl:value-of select="$DisplayTitle"/>
        </a>
        <div class="description">
          <xsl:value-of select="@Description" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="ImageTop" match="Row[@Style='ImageTop']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="Url" select="@LinkUrl"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-top">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
          </a>
        </div>
      </xsl:if>
      <div class="link-item">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
          <xsl:value-of select="$DisplayTitle"/>
        </a>
        <div class="description">
          <xsl:value-of select="@Description" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="ImageTopCentered" match="Row[@Style='ImageTopCentered']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item centered">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-top">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
          </a>
        </div>
      </xsl:if>
      <div class="link-item">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
          <xsl:value-of select="$DisplayTitle"/>
        </a>
        <div class="description">
          <xsl:value-of select="@Description" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="LargeTitle" match="Row[@Style='LargeTitle']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-left">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
          </a>
        </div>
      </xsl:if>
      <div class="link-item-large">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
          <xsl:value-of select="$DisplayTitle"/>
        </a>
        <div class="description">
          <xsl:value-of select="@Description" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="ClickableImage" match="Row[@Style='ClickableImage']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-left">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
          </a>
        </div>
      </xsl:if>
    </div>
  </xsl:template>
  <xsl:template name="NotClickableImage" match="Row[@Style='NotClickableImage']" mode="itemstyle">
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-left">
          <img class="image" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}" />
        </div>
      </xsl:if>
    </div>
  </xsl:template>
  <xsl:template name="FixedImageSize" match="Row[@Style='FixedImageSize']" mode="itemstyle">
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="item">
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <div class="image-area-left">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <img class="image-fixed-width" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}"/>
          </a>
        </div>
      </xsl:if>
      <div class="link-item">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
          <xsl:value-of select="$DisplayTitle"/>
        </a>
        <div class="description">
          <xsl:value-of select="@Description" />
        </div>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="FeaturedProduct" match="Row[@Style='FeaturedProduct']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="">
      <div class="hw-webparts-h-in-space">
        <span class="hw-webparts-head" style="display:block; height:20px; line-height:20px;">
          <xsl:value-of select="$DisplayTitle"/>
        </span>
        <p>
          <xsl:if test="string-length($SafeImageUrl) != 0">
            <img src="{$SafeImageUrl}" width="233" height="105" alt="{$DisplayTitle}"/>
          </xsl:if>
        </p>
        <span class="hw-webparts-cont">
          <p style="padding-top:8px">
            <xsl:value-of select="@Description" />
          </p>
        </span>
        <span class="hw-webparts-link">
          <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
            <xsl:value-of select="@ImageUrlAltText"/>
            <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13" align="top" alt="{@ImageUrlAltText}" />
          </a>
        </span>
      </div>
    </div>
  </xsl:template>
  <xsl:template name="ProductRightImageWithDescription" match="Row[@Style='ProductRightImageWithDescription']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="">
        <tr>
          <td class="spacetenpix" colspan="3"></td>
        </tr>
        <tr>
          <td style="width:160px;">
            <xsl:if test="string-length($SafeImageUrl) != 0">
              <img src="{$SafeImageUrl}" class="hw_Products_ContentImage" alt="{$DisplayTitle}"/>
            </xsl:if>
          </td>
          <td width="20px"> </td>
          <td valign="middle">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">

              <tr>
                <td class="hw_Products_MiddleContentArea_Title">
                  <a href="{$SafeLinkUrl}" target="_blank">
                    <xsl:value-of select="$DisplayTitle"/>
                  </a>
                </td>
              </tr>
              <tr>
                <td width="10px"> </td>
              </tr>
              <tr>
                <td class="hw_Products_MiddleContentArea_Description">
                  <xsl:value-of select="@Description" />
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td class="spacetenpix" colspan="3"></td>
        </tr>
      </table>
    </div>
  </xsl:template>
  <xsl:template name="RelatedVideo" match="Row[@Style='RelatedVideo']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="">
      <table style="" cellpadding="0" cellspacing="0"  border="0">
        <tr>
          <td class="hw-related-link-vbox">
            <table width="100%" border="0" cellspacing="10" cellpadding="0" >
              <tr>
                <td colspan="3">
                  <h6>
                    <xsl:value-of select="$DisplayTitle" disable-output-escaping="yes"/>
                  </h6>
                </td>
              </tr>
              <tr>
                <td colspan="3">
                  <xsl:if test="string-length($SafeImageUrl) != 0">
                    <a href="{$SafeLinkUrl}" Title="{@ImageUrlAltText}" class="honeywellvideo">
                      <img src="{$SafeImageUrl}" class="hw-related-image-video" alt="{@LinkToolTip}"/>
                    </a>
                  </xsl:if>

                </td>
              </tr>
              <tr>
                <td>
                  <a href="{$SafeLinkUrl}" Title="{@ImageUrlAltText}" class="honeywellvideo">
                    <xsl:value-of select="@Description" disable-output-escaping="yes"/>
                    <img src="/_layouts/InternetFramework/Images/arrow_right.gif" width="9" height="13"  valign="middle" />
                  </a>
                </td>

              </tr>


            </table>
          </td>
        </tr>
      </table>
    </div>
  </xsl:template>
  <xsl:template name="PressReleasesSummary" match="Row[@Style='PressReleasesSummary']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="PressReleaseDate">
      <xsl:call-template name="formatPressReleaseDate">
        <xsl:with-param name="fieldName" select="@ArticleStartDate"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="PageContent">
      <xsl:call-template name="removeMarkup">
        <xsl:with-param name="string" select="@PublishingPageContent"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="PageContentShort">
      <xsl:call-template name="word-break">
        <xsl:with-param name="string" select="@PageContent"/>
        <xsl:with-param name="char-cnt" select="150"/>
      </xsl:call-template>
    </xsl:variable>
    <div>
      <div style="text-align:left;" class="hw-press-date">
        <xsl:value-of select="$PressReleaseDate" />
      </div>
      <div id="linkitem" class="hw-press-title">
        <a href="{$SafeLinkUrl}" class="pressreltitle" title="{@LinkToolTip}">
          <b>
            <xsl:value-of select="$DisplayTitle"/>
          </b>
        </a>
      </div>
    </div>
    <div class="spacetwenty">
    </div>
  </xsl:template>
  <xsl:template name="formatPressReleaseDate">
    <xsl:param name="fieldName" />
    <xsl:if test="$fieldName">
      <xsl:variable name="Year" select="substring($fieldName, 1, 4) "/>
      <xsl:variable name="Month" select="substring($fieldName, 6, 2) "/>
      <xsl:variable name="Day" select="substring($fieldName, 9, 2) "/>
      <xsl:choose>
        <xsl:when test="$Month='1' or $Month='01'">
          <xsl:value-of select ="concat('01','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='2' or $Month='02'">
          <xsl:value-of select ="concat('02','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='3' or $Month='03'">
          <xsl:value-of select ="concat('03','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='4' or $Month='04'">
          <xsl:value-of select ="concat('04','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='5' or $Month='05'">
          <xsl:value-of select ="concat('05','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='6' or $Month='06'">
          <xsl:value-of select ="concat('06','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='7' or $Month='07'">
          <xsl:value-of select ="concat('07','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='8' or $Month='08'">
          <xsl:value-of select ="concat('08','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='9' or $Month='09'">
          <xsl:value-of select ="concat('09','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='10'">
          <xsl:value-of select ="concat('10','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='11'">
          <xsl:value-of select ="concat('11','/', $Day, '/', $Year)"/>
        </xsl:when>
        <xsl:when test="$Month='12'">
          <xsl:value-of select ="concat('12','/', $Day, '/', $Year)"/>
        </xsl:when>
      </xsl:choose>
    </xsl:if>
  </xsl:template>
  <xsl:template name="removeMarkup">
    <xsl:param name="string" />
    <xsl:variable name="pRemovedString">
      <xsl:call-template name="string-replace-all">
        <xsl:with-param name="text"   select="$string" />
        <xsl:with-param name="replace" select="'&lt;p&gt;'" />
        <xsl:with-param name="by" select="' '" />
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="pEndRemovedString">
      <xsl:call-template name="string-replace-all">
        <xsl:with-param name="text"   select="$pRemovedString" />
        <xsl:with-param name="replace" select="'&lt;/p&gt;'" />
        <xsl:with-param name="by" select="' '" />
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="brRemovedString">
      <xsl:call-template name="string-replace-all">
        <xsl:with-param name="text"   select="$pEndRemovedString" />
        <xsl:with-param name="replace" select="'&lt;br&gt;'" />
        <xsl:with-param name="by" select="' '" />
      </xsl:call-template>
    </xsl:variable>
    <xsl:choose>
      <xsl:when test="contains($brRemovedString, '__publishingReusableFragmentIdSection')">
        <xsl:variable name="reuseStripped">
          <xsl:call-template name="removeMarkup">
            <xsl:with-param name="string" select="substring-after($brRemovedString, '&lt;/div&gt;')" />
          </xsl:call-template>
        </xsl:variable>
        <xsl:value-of select="$reuseStripped"/>
      </xsl:when>
      <xsl:when test="contains($brRemovedString, '&lt;')">
        <xsl:variable name="nextString">
          <xsl:call-template name="removeMarkup">
            <xsl:with-param name="string" select="substring-after($brRemovedString, '&gt;')" />
          </xsl:call-template>
        </xsl:variable>
        <xsl:value-of select="concat(substring-before($brRemovedString, '&lt;'), $nextString)" />
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$brRemovedString" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="string-replace-all">
    <xsl:param name="text" />
    <xsl:param name="replace" />
    <xsl:param name="by" />
    <xsl:choose>
      <xsl:when test="contains($text, $replace)">
        <xsl:value-of select="substring-before($text,$replace)" />
        <xsl:value-of select="$by" />
        <xsl:call-template name="string-replace-all">
          <xsl:with-param name="text"
          select="substring-after($text,$replace)" />
          <xsl:with-param name="replace" select="$replace" />
          <xsl:with-param name="by" select="$by" />
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$text" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="WorldwideSummary" match="Row[@Style='WorldwideSummary']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:param name="LastRow"/>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="CountryImageURL">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'CountryImage'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="CountryUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'CountryUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:if test="$CurPos = 1 ">
      <xsl:text disable-output-escaping="yes">&lt;div&gt;&lt;table cellpadding="0" cellspacing="0"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td style="vertical-align:top"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;table cellpadding="0" cellspacing="0"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td&gt;</xsl:text>
    </xsl:if>
    <table  border="0" cellpadding="0" cellspacing="0" id="worldtable">
      <tr>
        <td style="display:none; " >
          <input class="latitude" value="{@Latitude}" />
          <input class="longitude" value="{@Longitude}" />
          <div class="callout">
            <xsl:value-of select="@Callout" />
          </div>
        </td>
        <td valign="top" >

          <table cellpadding="0" cellspacing="0" border="0" width="255">
            <tr class="countryrow">
              <td valign="top" class="spacetwenty_v">
                <img src="{$CountryImageURL}" style="cursor:none" alt="{$DisplayTitle}" height="15px" width="20px" />
              </td>
              <td class="spacefive_v"></td>
              <td valign="top" class="hw-worldwide-lnk">
                <div class="location">
                  <xsl:value-of select="@CountryName" disable-output-escaping="yes" />
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="height:10px"></td>
      </tr>
    </table>
    <xsl:if test="round($LastRow div 3) = $CurPos">
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td style="width:30px"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td style="vertical-align:top"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;table cellpadding="0" cellspacing="0"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td&gt;</xsl:text>
    </xsl:if>
    <xsl:if test="round(($LastRow div 3)*2) = $CurPos">
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td style="width:30px"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td style="vertical-align:top"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;table cellpadding="0" cellspacing="0"&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;td&gt;</xsl:text>
    </xsl:if>
    <xsl:if test="$CurPos = $LastRow">
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
      <xsl:text disable-output-escaping="yes">&lt;/table&gt;&lt;/div&gt;</xsl:text>
    </xsl:if>
  </xsl:template>
  <xsl:template name="SolutionVideo" match="Row[@Style='SolutionVideo']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:param name="LastRow"/>
    <xsl:param name="StartNewGroup"/>
    <xsl:variable name="GroupName" select="@*[name()=$Group]" />
    <xsl:variable name="GroupPosition">
      <xsl:value-of select="count(preceding-sibling::*[@*[$Group]=$GroupName])"/>
    </xsl:variable>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="VideoUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'VideoUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="VideoDescription">
      <xsl:call-template name="word-break">
        <xsl:with-param name="string" select="@Description"/>
        <xsl:with-param name="char-cnt" select="100"/>

      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="VUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'VideoRedirectUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:choose>
      <xsl:when test="$GroupPosition mod 2 = 0">
        <xsl:text disable-output-escaping="yes">&lt;div style="width:221px;float:left;height:185px;margin-right:15px"&gt;</xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text disable-output-escaping="yes">&lt;div style="width:221px;float:right;height:185px;margin-left:15px"&gt;</xsl:text>
      </xsl:otherwise>
    </xsl:choose>
    <table cellspacing="0" cellpadding="0">
      <tr>
        <td class="hw-solutions-videosectiontitle">



          <xsl:choose>
            <xsl:when test="string-length($VUrl) != 0">

              <a href="{$VUrl}" target="_blank">
                <xsl:value-of select="$DisplayTitle" disable-output-escaping="yes"/>
              </a>

            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="$DisplayTitle" disable-output-escaping="yes"/>
            </xsl:otherwise>
          </xsl:choose>



        </td>
      </tr>
      <tr>
        <td height="5px">

        </td>
      </tr>
      <tr>
        <td>


          <xsl:choose>
            <xsl:when test="string-length($VideoUrl) != 0">

              <a class="honeywellvideo" href="{$VideoUrl}" title="{@VideoImageTitle}">
                <img src="{substring-before(@VideoImageUrl, ', ')}" class="hw-solutions-videosection-imagesize" />

              </a>

            </xsl:when>
            <xsl:otherwise>
              <img src="{substring-before(@VideoImageUrl, ', ')}" class="hw-solutions-videosection-imagesize" alt="{@VideoImageTitle}" />
            </xsl:otherwise>
          </xsl:choose>


        </td>
      </tr>
      <tr>
        <td height="5px">

        </td>
      </tr>
      <tr>
        <td class="hw-solutions-videosectiondesc">
          <a class="hw-sol-tip" href="#" onclick="javascript:return false;">
            <xsl:if test="string-length(@Description) &gt; 100">

              <!--xsl:value-of select="substring(@Description, 1, 100)" disable-output-escaping="yes" /-->

              <xsl:value-of select="$VideoDescription"  disable-output-escaping="yes"/>

              <span>
                <xsl:value-of select="@Description"  disable-output-escaping="yes"/>
              </span>

            </xsl:if>
          </a>
          <xsl:if test="string-length(@Description) &lt;= 100">

            <xsl:value-of select="@Description" disable-output-escaping="yes" />
          </xsl:if>




        </td>
      </tr>
      <!--tr>
                 
                    <td class="hw-solutions-videosection-imagedesc">
                     <xsl:value-of select="@VideoImageTitle" />
                   </td>  
                 </tr-->
      <tr>
        <!--td height="10px">
                   
                   </td-->
      </tr>
    </table>
    <xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
  </xsl:template>
  <xsl:template name="RelatedVideoWithLightbox" match="Row[@Style='RelatedVideoWithLightbox']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="">
      <table style="" cellpadding="0" cellspacing="0" width="157px" border="0">
        <tr>
          <td class="hw-related-v-box">
            <table width="100%" border="0" cellspacing="10" cellpadding="0" >
              <tr>
                <td class="hw_Products_MiddleContentArea_Title" colspan="3">
                  <xsl:value-of select="$DisplayTitle"/>
                </td>
              </tr>
              <tr>
                <td colspan="3">
                  <xsl:if test="string-length($SafeImageUrl) != 0">
                    <a href="{$SafeLinkUrl}" class="honeywellvideo">
                      <img src="{$SafeImageUrl}" class=""/>
                    </a>
                  </xsl:if>

                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </xsl:template>
  <xsl:template name="word-break">
    <xsl:param name="string"/>
    <xsl:param name="char-cnt"/>
    <xsl:choose>
      <xsl:when test="string-length($string) &lt;= $char-cnt">
        <xsl:value-of select="$string" disable-output-escaping="yes"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:choose>
          <xsl:when test="substring($string, $char-cnt, 1) = ' ' or substring($string, $char-cnt, 1) = '.'">
            <xsl:value-of select="substring($string, 1, $char-cnt - 1)"/>
            <xsl:text>...</xsl:text>
          </xsl:when>
          <xsl:otherwise>
            <xsl:call-template name="word-break">
              <xsl:with-param name="string" select="$string"/>
              <xsl:with-param name="char-cnt" select="$char-cnt+1"/>
            </xsl:call-template>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template name="CorporateCitizenship" match="Row[@Style='CorporateCitizenship']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div>
      <div class="{@LinkToolTip}">
        <a href="{$SafeLinkUrl}" Title="{@ImageUrlAltText}">
          <xsl:value-of select="$DisplayTitle" disable-output-escaping="yes"/>
        </a>
      </div>
      <xsl:if test="string-length($SafeImageUrl) != 0">
        <a href="{$SafeLinkUrl}" Title="{@ImageUrlAltText}">
          <img src="{$SafeImageUrl}" class="hw-corporate-image" alt="{@ImageUrlAltText}"/>
        </a>
      </xsl:if>
      <a href="{$SafeLinkUrl}" Title="{@ImageUrlAltText}">
      </a>
      <p>
        <xsl:value-of select="@Description" disable-output-escaping="yes"/>
      </p>
    </div>
  </xsl:template>
  <xsl:template name="HoneywellNow" match="Row[@Style='HoneywellNow']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="">
      <table style="" cellpadding="0" cellspacing="0" width="157px" border="0">
        <tr>
          <td class="hw-related-link-vbox">
            <table width="100%" border="0" cellspacing="10" cellpadding="0" >
              <tr>
                <td>
                  <xsl:if test="string-length($SafeImageUrl) != 0">
                    <a href="{$SafeLinkUrl}"  target="_blank">
                      <img src="{$SafeImageUrl}" class="hw-honeywellnow-imagesize" />
                    </a>
                  </xsl:if>
                </td>
              </tr>


              <tr>
                <td>
                  <p>
                    <xsl:value-of select="@Description" disable-output-escaping="yes"/>
                  </p>
                </td>
              </tr>


              <tr>
                <td>
                  <xsl:if test="string-length($SafeImageUrl) != 0">
                    <a href="{$SafeLinkUrl}"  target="_blank">
                      <xsl:value-of select="@ImageUrlAltText" disable-output-escaping="yes"/>
                      <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13"  align="top" />
                    </a>
                  </xsl:if>
                </td>
              </tr>

            </table>
          </td>
        </tr>
      </table>
    </div>
  </xsl:template>
  <xsl:template name="HoneywellVideo" match="Row[@Style='HoneywellVideo']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>
    <div id="linkitem" class="">
      <table style="" cellpadding="0" cellspacing="0" width="157px" border="0">
        <tr>
          <td class="hw-related-link-vbox">
            <table width="100%" border="0" cellspacing="10" cellpadding="0" >
              <tr>
                <td>
                  <div>
                    <a href="http://www.honeywell.com/video" target="_blank">
                      <img src="{@Title}" class="hw-HoneywellVideo-imagesize" />
                    </a>
                  </div>
                </td>
              </tr>

              <tr>
                <td>
                  <img src="{$SafeImageUrl}" class="hw-HoneywellVideo-imagesize" alt="{@LinkToolTip}"/>
                </td>
              </tr>

              <tr>
                <td >
                  <p>
                    <xsl:value-of select="@Description" disable-output-escaping="yes"/>
                  </p>
                </td>
              </tr>

              <tr>
                <td>
                  <xsl:if test="string-length($SafeImageUrl) != 0">
                    <a href="{$SafeLinkUrl}"  target="_blank">
                      <xsl:value-of select="@ImageUrlAltText" disable-output-escaping="yes"/>
                      <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13"  align="top" />
                    </a>
                  </xsl:if>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </xsl:template>
  <xsl:template name="RelatedLinks" match="Row[@Style='RelatedLinks']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:param name="LastRow"/>
    <xsl:if test="$CurPos = 1 ">
      <xsl:text disable-output-escaping="yes">&lt;div class="hw-related-link-box"&gt;</xsl:text>
      <h6>
        <xsl:value-of select="@Title" disable-output-escaping="yes"/>
      </h6>
    </xsl:if>
    <p>
      <a href="{@LinkUrl}" target="_blank">
        <xsl:if test="string-length(@Description) &gt;= 100">
          <span>
            <xsl:value-of select="@Description" disable-output-escaping="yes" />
          </span>
        </xsl:if>
        <xsl:if test="string-length(@Description) &lt;= 100">
          <xsl:value-of select="@Description" disable-output-escaping="yes" />
        </xsl:if>
      </a>
    </p>
    <xsl:if test="$CurPos = $LastRow ">
      <xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
    </xsl:if>
  </xsl:template>
  <xsl:template name="Affiliations" match="Row[@Style='Affiliations']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="VideoImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'VideoImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="VideoDescription">
      <xsl:call-template name="word-break">
        <xsl:with-param name="string" select="@Description"/>
        <xsl:with-param name="char-cnt" select="100"/>

      </xsl:call-template>
    </xsl:variable>
    <table cellspacing="0" cellpadding="0" width="100%" class="hw-content-txt">
      <tr>
        <xsl:if test="$CurPos != 1 ">
          <xsl:text disable-output-escaping="yes">&lt;td colspan="5" class="spacetwenty"/&gt;</xsl:text>
        </xsl:if>
      </tr>
      <tr>
        <td valign="top">
          <img src="{$SafeImageUrl}" class="hw-HoneywellVideo-imagesize" alt="{@LinkToolTip}" title="{@LinkToolTip}"/>
        </td>
        <td class="spacetwenty_v">
        </td>
        <td valign="top" >
          <p>
            <xsl:value-of select="@Description" disable-output-escaping="yes"/>
          </p>
        </td>
      </tr>
      <tr>
        <td colspan="5" class="spacetwenty">
        </td>
      </tr>
      <tr>
        <td colspan="5" class="hw-hr-border-bottom">
          <img src="/SiteCollectionImages/img_border.jpg" height="1" width="1"/>
        </td>
      </tr>
    </table>
  </xsl:template>
  <xsl:template name="PressReleasesLeftNav" match="Row[@Style='PressReleasesLeftNav']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:param name="LastRow"/>
    <xsl:param name="StartNewGroup"/>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="VUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'VideoRedirectUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <table cellspacing="0" cellpadding="0" border="0" width="100%">
      <tbody>
        <tr>
          <td valign="top" id="MSOZoneCell_WebPartWPQ1">
            <table cellspacing="0" cellpadding="0" border="0" width="100%" toplevel="">
              <tbody>
                <tr>
                  <td valign="top">

                    <xsl:text disable-output-escaping="yes">&lt;div&gt;</xsl:text>
                    <xsl:if test="@ParentCategory = 'Yes'">
                      <div class="hw-lft-nav-js-active-highlight">
                        <a href="{$VUrl}"  target="_blank">
                          <xsl:value-of select="$DisplayTitle" disable-output-escaping="yes"/>
                        </a>
                      </div>

                    </xsl:if>

                    <xsl:if test="@ParentCategory != 'Yes'">
                      <div class="hw-lft-nav-js-active">
                        <a href="{$VUrl}"  target="_blank">
                          <xsl:value-of select="$DisplayTitle" disable-output-escaping="yes"/>
                        </a>
                      </div>

                    </xsl:if>


                    <xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
                  </td>
                </tr>
              </tbody>
            </table>
          </td>
        </tr>
      </tbody>
    </table>
  </xsl:template>
  <!--Template for Document Press Release Article -->
  <xsl:template name="DocumentSummary" match="Row[@Style='DocumentSummary']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="ArticleDate">
      <xsl:call-template name="formatPressReleaseDate">
        <xsl:with-param name="fieldName" select="@ArticleStartDate"/>
      </xsl:call-template>
    </xsl:variable>

    <xsl:variable name="DTitle">
      <xsl:call-template name="removeFile-extension">
        <xsl:with-param name="strTitle" select="$DisplayTitle"/>
        <xsl:with-param name="strExtension" select="'.pdf'"/>
      </xsl:call-template>
    </xsl:variable>
    <div>
      <div style="text-align:left;" class="hw-press-date">
        <xsl:value-of select="$ArticleDate" />
      </div>
      <div id="linkitem" class="hw-press-title">
        <b class="pressreltitle" title="{@LinkToolTip}">
          <a href="{$SafeLinkUrl}" target="_blank">
            <b>
              <xsl:value-of select="$DTitle" />
            </b>
          </a>
        </b>
      </div>
    </div>
    <div class="spacetwenty">
    </div>

  </xsl:template>


  <xsl:template name="removeFile-extension">
    <xsl:param name="strTitle"/>
    <xsl:param name="strExtension"/>
    <xsl:param name="replacement" select="''" />
    <xsl:param name="global"      select="true()" />
    <xsl:choose>
      <xsl:when test="contains($strTitle, $strExtension)">
        <xsl:value-of select="substring-before($strTitle, $strExtension)" />
        <xsl:value-of select="$replacement" />
        <xsl:variable name="rest" select="substring-after($strTitle, $strExtension)" />
        <xsl:choose>
          <xsl:when test="$global">
            <xsl:call-template name="removeFile-extension">
              <xsl:with-param name="strTitle"     select="$rest" />
              <xsl:with-param name="strExtension"     select="$strExtension" />
              <xsl:with-param name="replacement" select="$replacement" />
              <xsl:with-param name="global"      select="$global" />
            </xsl:call-template>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$rest" />
          </xsl:otherwise>
        </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$strTitle" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <xsl:template name="TopNPressReleases" match="Row[@Style='TopNPressReleases']" mode="itemstyle">
    <xsl:param name="CurPos"/>
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="PressReleaseDate">
      <xsl:call-template name="formatPressReleaseDate">
        <xsl:with-param name="fieldName" select="@ArticleStartDate"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="PageContent">
      <xsl:call-template name="removeMarkup">
        <xsl:with-param name="string" select="@PublishingPageContent"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="PageContentShort">
      <xsl:call-template name="word-break">
        <xsl:with-param name="string" select="@PageContent"/>
        <xsl:with-param name="char-cnt" select="150"/>
      </xsl:call-template>
    </xsl:variable>
    <div>
      <table>
        <tr>
          <td style="text-align:left;" valign="top" class="hw-press-date">
            <xsl:value-of select="$PressReleaseDate" />
          </td>
          <td>
            <div id="linkitem" class="hw-press-title">
              <a href="{$SafeLinkUrl}" class="pressreltitle" title="{@LinkToolTip}">
                <b>
                  <xsl:value-of select="$DisplayTitle"/>
                </b>
              </a>
            </div>
          </td>
        </tr>
      </table>
    </div>

    <div class="spacetenpix">
    </div>
  </xsl:template>

  <xsl:template name="HoneywellGlobalWebsiteBanner" match="Row[@Style='HoneywellGlobalWebsiteBanner']" mode="itemstyle">
    <xsl:variable name="RHSUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'VideoUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LHSUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'CountryUrl'"/>
      </xsl:call-template>
    </xsl:variable>




    <div id="linkitem" class="">
      <div class="hw-webparts-h-in-space">
        <span class="hw-webparts-head" style="display:block; height:20px; line-height:20px;">
          <xsl:value-of select="@Title"/>
        </span>
        <p>
          <a href="{substring-before(@CountryImage, ', ')}" target="_blank">
            <img src="{substring-before(@VideoImageUrl, ', ')}" width="233" height="105" alt="{@Title}"/>
          </a>
        </p>
        <span class="hw-webparts-cont">
          <p style="padding-top:8px">
            <xsl:value-of select="@Description" />
          </p>
        </span>
        <span class="hw-webparts-link" style="float:left">
          <xsl:if test="@Latitude= 1">

            <a href="{$LHSUrl}" target="_blank">
              <xsl:value-of select="@CountryName"/>
              <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13" align="top" />
            </a>
          </xsl:if>
          <xsl:if test="@Latitude= 0">
            <a href="{$LHSUrl}">
              <xsl:value-of select="@CountryName"/>
              <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13" align="top" />
            </a>

          </xsl:if>

          <xsl:if test="@Latitude= ''">

          </xsl:if>

        </span>
        <span class="hw-webparts-link">
          <xsl:choose>

            <xsl:when test="@VideoImageTitle = '1'">

              <a href="{$RHSUrl}" target="_blank">
                <xsl:value-of select="@ParentCategory"/>
                <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13" align="top" />
              </a>
            </xsl:when>

            <xsl:otherwise>
              <a href="{$RHSUrl}">
                <xsl:value-of select="@ParentCategory"/>
                <img src="/_layouts/InternetFramework/Images/arrowbutton_normal.gif" width="11" height="13" align="top" />
              </a>
            </xsl:otherwise>
          </xsl:choose>
        </span>
      </div>
    </div>
  </xsl:template>



  <xsl:template name="HomeBanner" match="Row[@Style='HomeBanner']" mode="itemstyle">
    <xsl:param name="CurPos" />
    <xsl:param name="Last" />



    <xsl:variable name="column" select="count(/dsQueryResponse/Rows/Row[@Latitude=1])" />
    <xsl:if test="$CurPos=1">
      <xsl:if test="@Latitude=1">

        <link href="../Documents/Hon_home_banner_StyleScript/hon_home_banner.css" rel="stylesheet" type="text/css"/>
        <div class="home_banner_wrapper">
          <div class="settiming">
            <div class="banner_effect">Fade</div>
            <div>
              <div class="sl_timing">9500</div>
              <div class="sl_slidetiming">825</div>
              <div class="sl_fademacrotiming">500</div>
              <div class="sl_fadetiming">1000</div>
            </div>
            <div>
              <div class="fd_timing">5700</div>
              <div class="fd_fadetiming">1000</div>
              <div class="fd_slidemacrotiming">200</div>
              <div class="fd_slidetiming">500</div>
            </div>
          </div>


          <xsl:for-each select="((/dsQueryResponse/Rows/Row)[@Latitude=1])">

            <!--<xsl:if test="position()=@Longitude">-->

            <xsl:if test="@ParentCategory='Red'">
              <div class="home_banner" style="background-image: url({substring-before(@VideoUrl, ', ')});">
                <div class="home_banner_content">
                  <div class="banner_macro">
                    <div class="banner_macro_red">
                      <xsl:value-of select="@VideoImageTitle"/>
                    </div>
                  </div>
                  <div class="banner_clearing">
                    <!-- IE Fix -->
                  </div>
                  <div class="banner_text_content">
                    <div class="banner_title">
                      <xsl:if test="@Callout= 1">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}" target="_blank">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                      <xsl:if test="@Callout= 0">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                    </div>
                    <div class="banner_subtitle">
                      <xsl:if test="string-length(@Comments) &gt;= 240">
                        <xsl:value-of select="substring(@Comments, 1, 240)" disable-output-escaping="yes"/>...
                      </xsl:if>
                      <xsl:if test="string-length(@Comments) &lt; 240">
                        <xsl:value-of select="@Comments" disable-output-escaping="yes" />
                      </xsl:if>
                    </div>

                    <xsl:if test="@Callout= 1">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}" target="_blank">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_red.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>
                    <xsl:if test="@Callout= 0">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_red.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>

                    <div class="banner_clearing">
                      <!-- IE Fix -->
                    </div>

                  </div>
                </div>
              </div>
            </xsl:if>


            <xsl:if test="@ParentCategory='Blue'">
              <div class="home_banner" style="background-image: url({substring-before(@VideoUrl, ', ')});">
                <div class="home_banner_content">
                  <div class="banner_macro">
                    <div class="banner_macro_blue">
                      <xsl:value-of select="@VideoImageTitle"/>
                    </div>
                  </div>
                  <div class="banner_clearing">
                    <!-- IE Fix -->
                  </div>
                  <div class="banner_text_content">
                    <div class="banner_title">
                      <xsl:if test="@Callout= 1">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}" target="_blank">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                      <xsl:if test="@Callout= 0">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                    </div>
                    <div class="banner_subtitle">
                      <xsl:if test="string-length(@Comments) &gt;= 240">
                        <xsl:value-of select="substring(@Comments, 1, 240)" disable-output-escaping="yes"/>...
                      </xsl:if>
                      <xsl:if test="string-length(@Comments) &lt; 240">
                        <xsl:value-of select="@Comments" disable-output-escaping="yes" />
                      </xsl:if>
                    </div>

                    <xsl:if test="@Callout= 1">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}" target="_blank">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_blue.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>
                    <xsl:if test="@Callout= 0">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_blue.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>

                    <div class="banner_clearing">
                      <!-- IE Fix -->
                    </div>

                  </div>
                </div>
              </div>
            </xsl:if>

            <xsl:if test="@ParentCategory='Green'">
              <div class="home_banner" style="background-image: url({substring-before(@VideoUrl, ', ')});">
                <div class="home_banner_content">
                  <div class="banner_macro">
                    <div class="banner_macro_green">
                      <xsl:value-of select="@VideoImageTitle"/>
                    </div>
                  </div>
                  <div class="banner_clearing">
                    <!-- IE Fix -->
                  </div>
                  <div class="banner_text_content">
                    <div class="banner_title">
                      <xsl:if test="@Callout= 1">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}" target="_blank">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                      <xsl:if test="@Callout= 0">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                    </div>
                    <div class="banner_subtitle">
                      <xsl:if test="string-length(@Comments) &gt;= 240">
                        <xsl:value-of select="substring(@Comments, 1, 240)" disable-output-escaping="yes"/>...
                      </xsl:if>
                      <xsl:if test="string-length(@Comments) &lt; 240">
                        <xsl:value-of select="@Comments" disable-output-escaping="yes" />
                      </xsl:if>
                    </div>

                    <xsl:if test="@Callout= 1">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}" target="_blank">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_green.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>
                    <xsl:if test="@Callout= 0">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_green.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>

                    <div class="banner_clearing">
                      <!-- IE Fix -->
                    </div>

                  </div>
                </div>
              </div>
            </xsl:if>

            <xsl:if test="@ParentCategory='Yellow'">
              <div class="home_banner" style="background-image: url({substring-before(@VideoUrl, ', ')});">
                <div class="home_banner_content">
                  <div class="banner_macro">
                    <div class="banner_macro_yellow">
                      <xsl:value-of select="@VideoImageTitle"/>
                    </div>
                  </div>
                  <div class="banner_clearing">
                    <!-- IE Fix -->
                  </div>
                  <div class="banner_text_content">
                    <div class="banner_title">
                      <xsl:if test="@Callout= 1">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}" target="_blank">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                      <xsl:if test="@Callout= 0">
                        <a href="{substring-before(@VideoImageUrl, ', ')}" title="{@Title}">
                          <xsl:value-of select="substring(@Description, 1, 46)" disable-output-escaping="yes"/>
                        </a>
                      </xsl:if>
                    </div>
                    <div class="banner_subtitle">
                      <xsl:if test="string-length(@Comments) &gt;= 240">
                        <xsl:value-of select="substring(@Comments, 1, 240)" disable-output-escaping="yes"/>...
                      </xsl:if>
                      <xsl:if test="string-length(@Comments) &lt; 240">
                        <xsl:value-of select="@Comments" disable-output-escaping="yes" />
                      </xsl:if>
                    </div>

                    <xsl:if test="@Callout= 1">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}" target="_blank">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_yellow.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>
                    <xsl:if test="@Callout= 0">
                      <a class="banner_link" href="{substring-before(@VideoImageUrl, ', ')}" title="{@PublishingPageContent}">
                        <span class="banner_button" style="background-image:url(/PublishingImages/Hon_home_banner/arrow_yellow.png);">
                          <xsl:value-of select="substring(@CountryName, 1, 35)" disable-output-escaping="yes"/>
                        </span>
                      </a>
                    </xsl:if>

                    <div class="banner_clearing">
                      <!-- IE Fix -->
                    </div>

                  </div>
                </div>
              </div>
            </xsl:if>





            <!--</xsl:if>-->



          </xsl:for-each>
          <div class="banner_navigation">
          </div>
          <div class="home_banner_loading">
            <p>
              <img class="loading_logo" src="/PublishingImages/Hon_home_banner/honeywell_logo.png" alt="" />
            </p>
            <p>
              <img class="loading_animation" src="/PublishingImages//Hon_home_banner/loading.gif" alt="" />
            </p>
          </div>
        </div>
        <script type="text/javascript" src="../Documents/Hon_home_banner_StyleScript/hon_home_banner.js">
        </script>
      </xsl:if>
    </xsl:if>
  </xsl:template>


  <xsl:template name="HoneywellCountrySummary" match="Row[@Style='HoneywellCountrySummary']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
      <xsl:call-template name="OuterTemplate.GetSafeLink">
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="SafeImageUrl">
      <xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
        <xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
      <xsl:call-template name="OuterTemplate.GetTitle">
        <xsl:with-param name="Title" select="@Title"/>
        <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="LinkTarget">
      <xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
    </xsl:variable>

    <div class="country-summary-subbanner hw-related-link-vbox">
      <div class="country-summary-subbanner-innerdiv">
        <div>
          <img src="{$SafeImageUrl}" class="hw-HoneywellVideo-imagesize" title="{@LinkToolTip}"/>
        </div>
        <div class="spacing" style="padding-top: 13px;">
          <span class="subbannerheading">
            <xsl:value-of select="@Title" disable-output-escaping="yes"/>
          </span>
        </div>
        <div class="spacing">
          <p>
            <xsl:value-of select="@Description" disable-output-escaping="yes"/>
          </p>
        </div>
        <div class="spacing">
          <xsl:if test="string-length($SafeImageUrl) != 0">
            <a href="{$SafeLinkUrl}" target="{$LinkTarget}">
              <xsl:value-of select="@ImageUrlAltText" disable-output-escaping="yes"/>
            </a>
          </xsl:if>
        </div>
      </div>

    </div>
    <div style="height:35px;"></div>
  </xsl:template>




</xsl:stylesheet>
