self.infoicon = string_to_xml('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\
  <xsl:output method="html"/>\
  <xsl:template match="/response">\
    <div id="memberinfo" onmouseout="hide_info();" onmouseover="self.show_info=true;return false;">\
      <xsl:attribute name="style">left:<xsl:value-of select="@x"/>px;top:<xsl:value-of select="@y"/>px;</xsl:attribute>\
      <xsl:choose>\
        <xsl:when test="@p = 1"><xsl:call-template name="pointer"><xsl:with-param name="class" select="\'left\'"/></xsl:call-template></xsl:when>\
        <xsl:otherwise><xsl:call-template name="pointer"><xsl:with-param name="class" select="\'right\'"/></xsl:call-template></xsl:otherwise>\
      </xsl:choose>\
      <table style="width:280px;">\
        <tr>\
          <td>\
          <div id="i_box">\
            <div class="rc_box_no_header">\
              <b class="rc_box_no_header_top">\
                <b class="rc_box_no_header1"></b>\
                <b class="rc_box_no_header2"></b>\
                <b class="rc_box_no_header3"></b>\
                <b class="rc_box_no_header4"></b>\
              </b>\
            <div class="rc_box_no_header_content">\
            <div class="closebutton" onclick="document.body.removeChild(document.getElementById(\'memberinfo\'));self.current=[];">X</div>\
            <xsl:choose>\
              <xsl:when test="//pwsid != \'\'">\
                <div class="iicon_header left" style="width:90%;">\
                  <xsl:value-of select="data/handle"/>\
                </div>\
                <div class="left clear" style="width:90%;padding:0 0 5px 0;">\
                  <xsl:choose>\
                    <xsl:when test="string-length(data/title) &lt; 31">\
                      "<xsl:call-template name="stripapos"><xsl:with-param name="string" select="data/title"/></xsl:call-template>"\
                    </xsl:when>\
                    <xsl:otherwise>\
                      "<xsl:call-template name="stripapos"><xsl:with-param name="string" select="substring(data/title,1,29)"/></xsl:call-template>..."\
                    </xsl:otherwise>\
                  </xsl:choose>\
                </div>\
                <div class="ibox_hr_line"></div>\
                <div>\
                  <xsl:attribute name="style"><xsl:if test="//@anon = 1">display:none;</xsl:if></xsl:attribute>\
                  <div class="label iicon_header left clear">Compatibilità:</div>\
                  <div class="left"><xsl:value-of select="data/compatibility"/>%</div>\
                </div>\
                <div>\
                  <div class="label iicon_header left clear">Località: </div>\
                  <div class="left" style="width:150px;"><xsl:value-of select="data/location"/> (<xsl:value-of select="data/distance"/> <xsl:choose><xsl:when test="data/unit = \'M\'"> kilometers from you</xsl:when><xsl:otherwise> miglia da te</xsl:otherwise></xsl:choose>))</div>\
                </div>\
                <div>\
                  <div class="label iicon_header left clear">Per:</div>\
                  <div class="left">\
                    <xsl:choose>\
                      <xsl:when test="data/status = 1">Sesso uno-a-uno</xsl:when>\
                      <xsl:when test="data/status = 2">Sesso a tre</xsl:when>\
                      <xsl:when test="data/status = 3">Sesso di gruppo (4 o più)</xsl:when>\
                      <xsl:when test="data/status = 4">Sesso virtuale</xsl:when>\
                      <xsl:when test="data/status = 5">Sesso virtuale in cam</xsl:when>\
                      <xsl:otherwise>Preferisco non dire</xsl:otherwise>\
                    </xsl:choose>\
                  </div>\
                </div>\
                <xsl:if test="count(data/photos/photo) &gt; 0">\
                  <div class="iicon_header clear ibox_photos">Foto:</div>\
                </xsl:if>\
                <div>\
                  <xsl:for-each select="data/photos/photo">\
                    <xsl:if test="position() &lt; 6">\
                      <div class="left smallimg" style="width:50px;height:50px;margin:1px;">\
                        <a href="{//links/profileurl}">\
                          <img src="{url}"/>\
                        </a>\
                      </div>\
                    </xsl:if>\
                  </xsl:for-each>\
                  <div class="clear"/>\
                </div>\
                <xsl:if test="count(data/photos/photo) &gt; 5">\
                  <div class="clear" style="width: 99%; text-align:right; padding-bottom: 8px;"><a style="color:#000000;" href="{//links/profileurl}">Altre&#39; foto</a></div>\
                </xsl:if>\
                <xsl:call-template name="vote">\
                  <xsl:with-param name="allowVoting" select="data/photos/photo[photonum = 1]/allowVoting"/>\
                  <xsl:with-param name="avgVotedScore" select="data/photos/photo[photonum = 1]/averageVote"/>\
                  <xsl:with-param name="photoNum" select="data/photos/photo[photonum = 1]/photonum"/>\
                  <xsl:with-param name="pwsid" select="data/pwsid"/>\
                  <xsl:with-param name="photoid" select="data/photos/photo[photonum = 1]/photoid"/>\
                  <xsl:with-param name="numVotes" select="data/photos/photo[photonum = 1]/numVotes"/>\
                  <xsl:with-param name="votedScore" select="data/photos/photo[photonum = 1]/votedScore"/>\
                </xsl:call-template>\
                <xsl:if test="count(data/videos/video) &gt; 0">\
                  <div class="iicon_header clear ibox_videos">Video:</div>\
                </xsl:if>\
                <div class="mb5">\
                  <xsl:for-each select="data/videos/video">\
                    <xsl:if test="position() &lt; 4">\
                      <div class="left smallvideoimg" style="height:50px;margin:1px;">\
                        <a>\
                          <xsl:attribute name="href">\
                            <xsl:choose>\
                              <xsl:when test="//@anon = 1">\
                                <xsl:value-of select="//links/profileurl"/>\
                              </xsl:when>\
                              <xsl:otherwise><xsl:value-of select="watch_link"/></xsl:otherwise>\
                            </xsl:choose>\
                          </xsl:attribute>\
                          <img src="{movie_thumb}" onmouseover="this.src=\'{movie_thumb}\'.replace(/\.gif|\.jpg/,\'_a.gif\')" onmouseout="this.src=\'{movie_thumb}\'"/>\
                        </a>\
                      </div>\
                    </xsl:if>\
                  </xsl:for-each>\
                  <div class="clear"/>\
                </div>\
                <div class="clear"/>\
                <div>\
                  <div class="iicon_action_btn_wrapper" id="Email">\
                    <a href="{//links/emaillink};to={data/handle}" class="iicon_action_btn">\
                      <span><span><img class="emaillink" src="http://graphics.pop6.com/images/getiton/common/spacer.gif" border="0" align="absmiddle" />Email</span></span>\
                    </a>\
                  </div>\
                  <div class="iicon_action_btn_wrapper" id="flirt">\
                    <xsl:choose>\
                      <xsl:when test="//wink_sent = 1"><span class="iicon_action_btn"><span><span><img class="flirtlink" src="http://graphics.pop6.com/images/getiton/common/spacer.gif" border="0" align="absmiddle" />Ha flirtato con</span></span></span></xsl:when>\
                      <xsl:otherwise><a href="javascript://" onclick="flirt(this)" handle="{data/handle}" level="{data/level}" sex="{data/sex}" pwsid="{data/pwsid}" flirt_type="0" class="iicon_action_btn"><span><span><img class="flirtlink" src="http://graphics.pop6.com/images/getiton/common/spacer.gif" border="0" align="absmiddle" />Flirta</span></span></a></xsl:otherwise>\
                    </xsl:choose>\
                  </div>\
                  <div class="iicon_action_btn_wrapper" id="hotlist">\
                    <xsl:choose>\
                      <xsl:when test="data/is_hotlisted != 1">\
				                <a href="javascript://" pwsid="{data/pwsid}" onclick="hotlist(this)" class="iicon_action_btn"><span><span><img class="hotlistlink" src="http://graphics.pop6.com/images/getiton/common/spacer.gif" border="0" align="absmiddle" />Lista piccante</span></span></a>\
                      </xsl:when>\
                      <xsl:otherwise><span class="iicon_action_btn"><span><span><img class="hotlistlink" src="http://graphics.pop6.com/images/getiton/common/spacer.gif" border="0" align="absmiddle" />Aggiunta</span></span></span></xsl:otherwise>\
                    </xsl:choose>\
                  </div>\
                  <div class="clear"></div>\
                </div>\
              </xsl:when>\
              <xsl:otherwise>\
                <div style="float:left">Caricamento in corso.....</div>\
                <div class="clear" style="margin:40px 0px;text-align:center;">\
                  <img src="http://graphics.pop6.com/images/getiton/common/anim_preloader2.gif" style="margin:auto;"/>\
                </div>\
              </xsl:otherwise>\
            </xsl:choose>\
            </div>\
            <b class="rc_box_no_header_bottom">\
              <b class="rc_box_no_header4"></b>\
              <b class="rc_box_no_header3"></b>\
              <b class="rc_box_no_header2"></b>\
              <b class="rc_box_no_header1"></b>\
            </b>\
            </div>\
          </div>\
          </td>\
        </tr>\
      </table>\
    </div>\
  </xsl:template>\
  <xsl:template name="pointer">\
    <xsl:param name="class"/>\
    <div class="pointer_{$class}">\
      <div style="width:3px;"/><div style="width:5px;"/><div style="width:7px;"/><div style="width:9px;"/><div style="width:11px;"/><div style="width:13px;"/><div style="width:15px;"/><div style="width:17px;"/><div style="width:19px;"/><div style="width:21px;"/><div style="width:23px;"/><div style="width:25px;"/><div style="width:27px;"/><div style="width:29px;"/><div style="width:31px;"/><div style="width:29px;"/><div style="width:27px;"/><div style="width:25px;"/><div style="width:23px;"/><div style="width:21px;"/><div style="width:19px;"/><div style="width:17px;"/><div style="width:15px;"/><div style="width:13px;"/><div style="width:11px;"/><div style="width:9px;"/><div style="width:7px;"/><div style="width:5px;"/><div style="width:3px;"/>\
    </div>\
  </xsl:template>\
  <xsl:template name="stripapos">\
    <xsl:param name="string"/>\
    <xsl:call-template name="globalreplace">\
      <xsl:with-param name="outputstring" select="$string"/>\
      <xsl:with-param name="target"><![CDATA[&#39;]]></xsl:with-param>\
      <xsl:with-param name="replacement"><![CDATA[\']]></xsl:with-param>\
    </xsl:call-template>\
  </xsl:template>\
  <xsl:template name="globalreplace">\
    <xsl:param name="outputstring"/>\
    <xsl:param name="target"/>\
    <xsl:param name="replacement"/>\
    <xsl:choose>\
      <xsl:when test="contains($outputstring,$target)">\
        <xsl:value-of select="concat(substring-before($outputstring,$target),$replacement)"/>\
        <xsl:call-template name="globalreplace">\
          <xsl:with-param name="outputstring" select="substring-after($outputstring,$target)"/>\
          <xsl:with-param name="target" select="$target"/>\
          <xsl:with-param name="replacement" select="$replacement"/>\
        </xsl:call-template>\
      </xsl:when>\
      <xsl:otherwise>\
        <xsl:value-of select="$outputstring"/>\
      </xsl:otherwise>\
    </xsl:choose>\
  </xsl:template>\
  <xsl:template match="/vote" name="vote">\
    <xsl:param name="allowVoting" select="photo/allowVoting"/>\
    <xsl:param name="avgVotedScore" select="photo/averageVote"/>\
    <xsl:param name="photoNum" select="photo/photonum"/>\
    <xsl:param name="pwsid" select="@pwsid"/>\
    <xsl:param name="photoid" select="photo/photoid"/>\
    <xsl:param name="numVotes" select="photo/numVotes"/>\
    <xsl:param name="votedScore" select="photo/votedScore"/>\
    <div id="photo_vote_icon">\
      <xsl:choose>\
        <xsl:when test="$allowVoting = 1">\
          <table style="position:relative">\
            <tr>\
              <td class="iicon_header " style="padding:4px 4px 0px 0px">Classifica Questo Membro:</td>\
              <td>\
                <xsl:variable name="info_vote">\
                  <xsl:choose>\
                    <xsl:when test="$avgVotedScore &gt; 4.75">s50</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 4.25">s45</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 3.75">s40</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 3.25">s35</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 2.75">s30</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 2.25">s25</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 1.75">s20</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 1.25">s15</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 0.75">s10</xsl:when>\
                    <xsl:when test="$avgVotedScore &gt; 0.25">s05</xsl:when>\
                    <xsl:otherwise>s00</xsl:otherwise>\
                  </xsl:choose>\
                </xsl:variable>\
                <div style="width:100px;height:20px;overflow:hidden;margin:0px auto;position:relative;float:left;" class="{$info_vote}" onmouseover="this.className=\'s00\'" onmouseout="this.className=\'{$info_vote}\'">\
                  <a href="javascript://" class="vote_star s1" photonum="{$photoNum}" uid="{$pwsid}" photo_id="{$photoid}" score="5" style="width:100px;" onclick="ivote(this)"><img src="http://graphics.pop6.com/images/common/clear.gif"/></a>\
                  <a href="javascript://" class="vote_star s2" photonum="{$photoNum}" uid="{$pwsid}" photo_id="{$photoid}" score="4" style="width:80px;" onclick="ivote(this)"><img src="http://graphics.pop6.com/images/common/clear.gif"/></a>\
                  <a href="javascript://" class="vote_star s3" photonum="{$photoNum}" uid="{$pwsid}" photo_id="{$photoid}" score="3" style="width:60px;" onclick="ivote(this)"><img src="http://graphics.pop6.com/images/common/clear.gif"/></a>\
                  <a href="javascript://" class="vote_star s4" photonum="{$photoNum}" uid="{$pwsid}" photo_id="{$photoid}" score="2" style="width:40px;" onclick="ivote(this)"><img src="http://graphics.pop6.com/images/common/clear.gif"/></a>\
                  <a href="javascript://" class="vote_star s5" photonum="{$photoNum}" uid="{$pwsid}" photo_id="{$photoid}" score="1" style="width:20px;" onclick="ivote(this)"><img src="http://graphics.pop6.com/images/common/clear.gif"/></a>\
                </div>\
              </td>\
            </tr>\
            <tr>\
              <td/>\
              <td style="font-size:8px;">\
                <xsl:if test="$votedScore &gt; 0">\
                    Your Vote: <xsl:value-of select="$votedScore"/>\
                </xsl:if>\
              </td>\
            </tr>\
          </table>\
          <div style="clear:both;"/>\
        </xsl:when>\
        <xsl:otherwise>\
           <div style="width:100px;height:20px;overflow:hidden;margin:0px auto;position:relative;"></div>\
        </xsl:otherwise>\
      </xsl:choose>\
    </div>\
  </xsl:template>\
</xsl:stylesheet>')
