var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById && d.documentElement.behaviorUrns)) ? true : false;

if(winIE) 
{
	jsHover = function() 
	{
	    var hEls = document.getElementById("nav").getElementsByTagName("LI");
	    for (var i=0, len=hEls.length; i<len; i++) {
	      hEls[i].onmouseover=function() {this.className+=" jshover"; }
	      hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
	    }
  	}
  if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
 }



var START = -130;
var END = 1;


function gogo()
{
	document.getElementById('autoriz').style.display="block";
	myFunction ();
}


function myFunction ()
{
 if (START > END) return;

 //то, что функция делает
 document.getElementById('autoriz').style.top=START + 'px';
//в конце функции - увеличение переменной цикла и рекурсия
START = START+5;

setTimeout (myFunction, 10);
} 

function formclose ()
{
	document.getElementById('autoriz').style.display = 'none';
	START = -130;
	END = 0;
}

function init()
{
	document.getElementById('border').style.height = document.getElementById('allPage').clientHeight+'px';
	if (document.getElementById('bottom'))
	{
		document.getElementById('content').style.height = document.getElementById('allPage').offsetHeight-187-document.getElementById('bottom').offsetHeight+'px';
	}
}