function login_spusti(){
	var supported = (document.getElementById);
	if (!supported) return;
	var tr = document.getElementById('trenutno').value;
	document.getElementById('vrh-linkovi').style.display='none';
	var divPath = document.getElementById('vrh');
	var currPos = parseInt(divPath.style.height);
	if(tr!=''){
		vrativrh();
	}
	else{
		if (currPos < 70){
			brzina_x = ( 20 - currPos ) / 4;
			brzina_x=Math.round(brzina_x);
			currPos -= brzina_x;
			divPath.style.height = currPos+"px";
			setTimeout("login_spusti()",10);
		}
		else{
			document.getElementById('login').style.display='';
			document.formalogin.username.focus();
			document.getElementById('trenutno').value='login';
			document.getElementById('vrh-nazad').style.display='';

		}
	}
}



function vrativrh(){
	var supported = (document.getElementById);
	if (!supported) return;
	document.getElementById('login').style.display='none';
	document.getElementById('vrh-nazad').style.display='none';

	var divPath = document.getElementById('vrh');
	var currPos = parseInt(divPath.style.height);
	if (currPos > 30){
		brzina_x = ( 20 - currPos ) / 4;
		brzina_x=Math.round(brzina_x);
		currPos += brzina_x;
		divPath.style.height = currPos+"px";
		setTimeout("vrativrh()",10);
	}
	else{
	divPath.style.height = "30px";
	document.getElementById('trenutno').value='';
	document.getElementById('vrh-linkovi').style.display='';

	}
}
