<xsl:choose>
<xsl:when test="date < 13">
<!-- Код таймера1 на 1.30 ночи -->
<div class="datetop" id = 'show'></div>
<SCRIPT>
<xsl:comment>
<xsl:text disable-output-escaping="yes">
<![CDATA[
function two(a) {
return (9 < a ? "" : "0") + a
}
function formatTime(a) {
a = Math.floor(a / 1E3);
var c = Math.floor(a / 60),
d = Math.floor(c / 60);
a %= 60;
c %= 60;
return two(d) + " ч : " + two(c) + " м : " + two(a) + " с "
}
function Time() {
var a = new Date, c = [1, 0, 0, 1], d = [], e = a.getDate() + 1, b = 0;
for (; b < c.length; b++)
a.setHours(c[b], 0, 0, 0),
3 == b && a.setDate(e),
d[b] = a.getTime();
for (b = 0; b < c.length && !(a = d[b] - (new Date).getTime(), 0 < a); b++);
document.getElementById("show").innerHTML = " " + formatTime(a);
window.setTimeout(Time, 1E3)
};
Time()
]]>
</xsl:text>
</xsl:comment>
</SCRIPT>
</xsl:when>
<xsl:otherwise>
<!-- Код таймера2 на 13.30 дня -->
<div class="datetop" id = 'show'></div>
<SCRIPT>
<xsl:comment>
<xsl:text disable-output-escaping="yes">
<![CDATA[
function two(a) {
return (9 < a ? "" : "0") + a
}
function formatTime(a) {
a = Math.floor(a / 1E3);
var c = Math.floor(a / 60),
d = Math.floor(c / 60);
a %= 60;
c %= 60;
return two(d) + " ч : " + two(c) + " м : " + two(a) + " с "
}
function Time() {
var a = new Date, c = [1, 0, 0, 14], d = [], e = a.getDate() + 1, b = 0;
for (; b < c.length; b++)
a.setHours(c[b], 0, 0, 0),
3 == b && a.setDate(e),
d[b] = a.getTime();
for (b = 0; b < c.length && !(a = d[b] - (new Date).getTime(), 0 < a); b++);
document.getElementById("show").innerHTML = " " + formatTime(a);
window.setTimeout(Time, 1E3)
};
Time()
]]>
</xsl:text>
</xsl:comment>
</SCRIPT>
</xsl:otherwise>
</xsl:choose>