
var TDover=false;
var DIVover=false;
var inputFocus=false;

function LogonDivMusover() {
	if(TDover==true||DIVover==true||inputFocus==true){
		document.getElementById('logonDiv').style.height=83+'px';
		document.getElementById('logonDiv').style.bottom=25+'px';
		document.getElementById('logonDivBG').style.height=83+'px';
		document.getElementById('logonDivBG').style.bottom=25+'px';		
		
	};
};
function LogonDivMusUd() {
	if(TDover==false&&DIVover==false&&inputFocus==false){
		document.getElementById('logonDiv').style.height=0+'px';
		document.getElementById('logonDiv').style.bottom=5+'px';
		document.getElementById('logonDivBG').style.height=0+'px';
		document.getElementById('logonDivBG').style.bottom=5+'px';		
	};
};

document.getElementById('bundDivLog').onmouseover=function() {
	TDover=true;
	LogonDivMusover();
}
document.getElementById('logonDiv').onmouseover=function() {
	DIVover=true;
	LogonDivMusover();
}
document.getElementById('logonDivBG').onmouseover=function() {
	DIVover=true;
	LogonDivMusover();
}
document.getElementById('bruger').onfocus=function() {
	inputFocus=true;
}
document.getElementById('kode').onfocus=function() {
	inputFocus=true;
}

document.getElementById('bundDivLog').onmouseout=function() {
	TDover=false;
	setTimeout("LogonDivMusUd()",500);
}
document.getElementById('logonDiv').onmouseout=function() {
	DIVover=false;
	setTimeout("LogonDivMusUd()",500);
}
document.getElementById('logonDivBG').onmouseout=function() {
	DIVover=false;
	setTimeout("LogonDivMusUd()",500);
}
document.getElementById('bruger').onblur=function() {
	inputFocus=false;
	setTimeout("LogonDivMusUd()",500);
}
document.getElementById('kode').onblur=function() {
	inputFocus=false;
	setTimeout("LogonDivMusUd()",500);
}


