<!--

var headerNN = '';
var textNN = '';
var sizeNN = 0;
var authNN = '';
var dateNN = '';

function showNN(e)
{
 if (parseInt(navigator.appVersion) >= 5)
 {
  if (document.getElementById('hint').style.visibility == "visible")
  {
   hor = window.pageXOffset + window.innerWidth - document.getElementById('hint').offsetWidth - 20;
   ver = window.pageYOffset + window.innerHeight - document.getElementById('hint').offsetHeight - 20;
   posHor = window.pageXOffset + e.clientX + 10;
   posVer = window.pageYOffset + e.clientY + 10;
   posHor2 = window.pageXOffset + e.clientX - document.getElementById('hint').offsetWidth - 5;
   posVer2 = window.pageYOffset + e.clientY - document.getElementById('hint').offsetHeight - 5;
   if (posVer<ver)
    document.getElementById('hint').style.top = posVer
   else
        document.getElementById('hint').style.top = posVer2

   if (posHor<hor)
        document.getElementById('hint').style.left = posHor
   else
        document.getElementById('hint').style.left = posHor2
  }
 }
 else
 {
  temp = "<TABLE STYLE='width:310; border-right:1px solid #606060; border-bottom:1px solid #606060;' BGCOLOR='white' BORDER=0 CELLSPACING=1 CELLPADDING=4 ID='hintborder'><TR><TD BGCOLOR='#DEE3E7' HEIGHT=17><span class='gensmall'><b> " + headerNN + ":</b></span></TD></TR><TR><TD BGCOLOR='#DEDEDE'><P ALIGN='justify'><span class='gensmall'>" + textNN + "</span></P></TD></TR><TR><TD BGCOLOR='#D1D7DC' HEIGHT=17><span class='gensmall'><b> Тему начал</b> <font color='#006699'>" + authNN + "</font> " + dateNN + "</span></TD></TR></TABLE>";
  document.layers['hint'].document.write(temp);
  document.layers['hint'].document.close();
  if (document.layers['hint'].visibility == "show")
  {
   hor = window.pageXOffset + window.innerWidth - sizeNN - 20;
   ver = window.pageYOffset + window.innerHeight - document.layers['hint'].document.height - 20;
   posHor = e.pageX + 10;
   posVer = e.pageY + 10;
   posHor2 = e.pageX - sizeNN - 5;
   posVer2 = e.pageY - document.layers['hint'].document.height - 5;

   if (posVer<ver)
    document.layers['hint'].top = posVer
   else
        document.layers['hint'].top = posVer2

   if (posHor<hor)
        document.layers['hint'].left = posHor
   else
        document.layers['hint'].left = posHor2;
  }
   document.layers['hint'].visibility = "show";
 }
}

function hideNN(e)
{
 document.layers['hint'].visibility = "hide";
 document.releaseEvents(Event.MOUSEOVER);
 document.releaseEvents(Event.MOUSEOUT);
 document.releaseEvents(Event.MOUSEMOVE);
 document.layers['hint'].left = 0;
 document.layers['hint'].top = 0;
}

function moveNN(e)
{
 if (parseInt(navigator.appVersion)>= 5)
 {
  if (document.getElementById('hint').style.visibility == "visible")
  {
   hor = window.pageXOffset + window.innerWidth - document.getElementById('hint').offsetWidth - 20; ver = window.pageYOffset + window.innerHeight - document.getElementById('hint').offsetHeight - 20;
   posHor = window.pageXOffset + e.clientX + 10;
   posVer = window.pageYOffset + e.clientY + 10;
   posHor2 = window.pageXOffset + e.clientX - document.getElementById('hint').offsetWidth - 5;
   posVer2 = window.pageYOffset + e.clientY - document.getElementById('hint').offsetHeight - 5;

   if (posVer<ver)
    document.getElementById('hint').style.top = posVer
   else
    document.getElementById('hint').style.top = posVer2;

   if (posHor<hor)
    document.getElementById('hint').style.left = posHor
   else
    document.getElementById('hint').style.left = posHor2;
  }
 }
 else
 {
  if (document.layers['hint'].visibility == "show")
  {
   hor = window.pageXOffset + window.innerWidth - sizeNN - 20;
   ver = window.pageYOffset + window.innerHeight - document.layers['hint'].document.height - 20;
   posHor = e.pageX + 10; posVer = e.pageY + 10;
   posHor2 = e.pageX - sizeNN - 5;
   posVer2 = e.pageY - document.layers['hint'].document.height - 5;

   if (posVer<ver)
    document.layers['hint'].top = posVer
   else
    document.layers['hint'].top = posVer2

   if (posHor<hor)
    document.layers['hint'].left = posHor
   else
    document.layers['hint'].left = posHor2;
  }
 }
}

function showhint(x,y,z,a,b,s)
{
 y = y.replace(/(<)/gi,"&lt;");
 y = y.replace(/(>)/gi,"&gt;");

 headerNN = x;
 textNN = y;
 authNN = a;
 dateNN = b;

 temp = "<TABLE STYLE='width:115; border:1px solid #5ea2eb;' BGCOLOR='white' BORDER=0 CELLSPACING=1 CELLPADDING=4 ID='hintborder'>"
 + "<TR><TD BGCOLOR='#92c0f2' HEIGHT=17><span class='gensmall'><b>Формат:</b> " + x + "</span></TD></TR>"
 + "<TR><TD BGCOLOR='#eff5fc'><P ALIGN='justify'><span class='gensmall'><b>Стоимость:</b> " + y + "</span></P></TD></TR>"
 + "<TR><TD BGCOLOR='#92c0f2' HEIGHT=17><span class='gensmall'><b>Версия:</b> <font color='#006699'> " + a + "</font> " + b + "</span></TD></TR>"
 + "<TR><TD BGCOLOR='#eff5fc'><P ALIGN='justify'><span class='gensmall'><b>Размер:</b> " + s + "</span></P></TD></TR>"
 + "</TABLE>";

 if (navigator.appName == "Netscape")
 {
  document.captureEvents(Event.MOUSEOVER);
  document.captureEvents(Event.MOUSEOUT);
  document.captureEvents(Event.MOUSEMOVE);
//  document.onmouseover = showNN;
  document.onmousemove = moveNN;
  document.onmouseout = hideNN;

  if (parseInt(navigator.appVersion)>= 5)
  {
   document.getElementById('hint').innerHTML = temp;
   if (z == 1)
    document.getElementById('hint').style.visibility = "visible";
   else
    document.getElementById('hint').style.visibility = "hidden";
  }
  else
  {
   document.layers['hint'].document.write(temp);
   document.layers['hint'].document.close();
   document.layers['hint'].visibility = "show";
  }
 }
 else
 {
  if (z == 1)
  {
   document.all('hint').innerHTML = temp;
   movehint();
   document.all('hint').style.visibility = "visible";
  }
  else
  {
   document.all('hint').style.visibility = "hidden";
   document.all('hint').style.posTop = 0;
   document.all('hint').style.posLeft = 0;
  }
 }
}

function movehint()
{
 if (navigator.appVersion != "Netscape")
 {
  hor = document.body.scrollWidth - document.all('hint').offsetWidth;
  ver = document.body.scrollHeight - document.all('hint').offsetHeight;
  posHor = document.body.scrollLeft + event.clientX + 10;
  posVer = document.body.scrollTop + event.clientY + 10;
  posHor2 = document.body.scrollLeft + event.clientX - document.all('hint').offsetWidth - 5;
  posVer2 = document.body.scrollTop + event.clientY - document.all('hint').offsetHeight - 5;

  if (posHor < hor)
   document.all('hint').style.posLeft = posHor
  else
   document.all('hint').style.posLeft = posHor2;

  if (posVer < ver)
   document.all('hint').style.posTop = posVer
  else
   document.all('hint').style.posTop = posVer2;
 }
}
 function showhint_s(y,z)
{
 imgSrc=y;

 temp="<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 ID='hintborder'><TR><TD><IMG SRC='"+imgSrc+"' style='width:110%'/></TD></TR></TABLE>";

 if (navigator.appName == "Netscape")
 {
  document.captureEvents(Event.MOUSEOVER);
  document.captureEvents(Event.MOUSEOUT);
  document.captureEvents(Event.MOUSEMOVE);
//  document.onmouseover = showNN;
  document.onmousemove = moveNN;
  document.onmouseout = hideNN;

  if (parseInt(navigator.appVersion)>= 5)
  {
   document.getElementById('hint').innerHTML = temp;
   if (z == 1)
    document.getElementById('hint').style.visibility = "visible";
//    $("#hint").fadeIn("slow");
   else
   document.getElementById('hint').style.visibility = "hidden";
  //     $("#hint").fadeOut("slow");
  }
  else
  {
   document.layers['hint'].document.write(temp);
   document.layers['hint'].document.close();
   document.layers['hint'].visibility = "show";
  }
 }
 else
 {
  if (z == 1)
  {
   document.all('hint').innerHTML = temp;
   movehint();
   document.all('hint').style.visibility = "visible";
   // $("#hint").fadeIn("slow");
  }
  else
  {
   document.all('hint').style.visibility = "hidden";
  //$("#hint").opacity(0);
   document.all('hint').style.posTop = 0;
   document.all('hint').style.posLeft = 0;
  }
 }
}

-->