// JavaScript Document
// Функции
function getyScroll()
 {
  yScroll = 0;

  if (window.innerHeight && window.scrollMaxY || window.innerWidth && window.scrollMaxX)
   {
    yScroll = window.innerHeight + window.scrollMaxY;
    xScroll = window.innerWidth + window.scrollMaxX;

    var deff = document.documentElement;
    var wff = (deff&&deff.clientWidth) || document.body.clientWidth || window.innerWidth || self.innerWidth;
    var hff = (deff&&deff.clientHeight) || document.body.clientHeight || window.innerHeight || self.innerHeight;

    xScroll -= (window.innerWidth - wff);
    yScroll -= (window.innerHeight - hff);
   } 
  else if (document.body.scrollHeight > document.body.offsetHeight || document.body.scrollWidth > document.body.offsetWidth)
   { // all but Explorer Mac
    yScroll = document.body.scrollHeight;
    xScroll = document.body.scrollWidth;
   } 
  else 
   { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
    yScroll = document.body.offsetHeight;
    xScroll = document.body.offsetWidth;
   }

  return yScroll;
 }

function showloginform()
 {
  $('loginform').style.display = 'block';
  $('screen').style.display = 'block';
  $('screen').style.height = getyScroll() + 'px'; //window.innerHeight + window.scrollMaxY;
 }
function hideloginform()
 {
  $('loginform').style.display = 'none';
  $('screen').style.display = 'none';
 }

function counters()
{
	//document.write("<div>");
	document.write("<a href=\"http://hwtech.ru/go.php?http://liveinternet.ru/?hwtech.ru\" target=\"_blank\"><img src=\"http://counter.yadro.ru/logo?3.1\" width=\"88\" height=\"31\" border=\"0\" alt=\"\"></a>");
	//document.write("</div>");
	//Rambler
	document.write("<div style=\"display: none\">");
	document.write("<a href=\"http://hwtech.ru/go.php?http://top100.rambler.ru/top100/\" target=\"_blank\"><img src=\"http://top100-images.rambler.ru/top100/banner-88x31-rambler-black2.gif\" alt=\"Rambler\'s Top100\" width=\"88\" height=\"31\" border=\"0\" /></a>");
	document.write("</div>");
}
function hardwarez125()
	{
		// <!--
		var vbn="54";
		var account = "185";
		var rnd = Math.round(Math.random() * 100000);
		document.write('<iframe src="http://adv.hardwarez.ru/cgi-bin/iframe?'+vbn+','+account+','+rnd + '" width="125" height="300" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"><\/iframe>');
		// -->
		document.write("<noscript>");
		document.write("<iframe src=\"http://adv.hardwarez.ru/cgi-bin/iframe?54,185,740\" width=\"125\" height=\"300\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\"></iframe>");
		document.write("</noscript>");
	}
function hardwarez468()
	{
		// <!--
		var vbn="30";
		var account = "253";
		var rnd = Math.round(Math.random() * 100000);
		document.write('<iframe src="http://adv.hardwarez.ru/cgi-bin/iframe?'+vbn+','+account+','+rnd + '" width="468" height="60" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"><\/iframe>');
		// -->
		document.write("<noscript>");
		document.write("<iframe src=\"http://adv.hardwarez.ru/cgi-bin/iframe?30,253,740\" width=\"468\" height=\"60\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\"></iframe>");
		document.write("</noscript>");
	}
