function initSite() {

//	var loginInpUsr = new WawLoginInput('login_username', 'login_password', 'proxypassword');
//	var loginInpPass = new WawLoginPassword('login_password', 'proxypassword');
	setDocumentSize();
}


$(document).ready(function() { 
initSite();
});

function resizeDoc() {
	setDocumentSize();
}

function setDocumentSize() {
	var height = $(document).height();
	var hPx = height + 'px';
	document.getElementById('body').style.height = hPx;
}

function toggleLogin(){
	
	var logDis = document.getElementById('login-disabled');
	var logEnabled = document.getElementById('login-enabled');
	
	if(logDis != null) {
		logDis.style.display = 'none';
		
		if(logEnabled != null) {
			logEnabled.style.display = 'block';
			
			var userN = document.getElementById('login_username');
			if(userN != null) { 
				userN.focus();
				userN.select();
			}
		}
	}
}
