function lon()
{
}

function loff()
{
}

function getWindowWidth() { 
	var windowWidth = 0; 
	if (typeof(window.innerWidth) == 'number') { 
			windowWidth = window.innerWidth; 
		} else { 
		if (document.documentElement && document.documentElement.clientWidth) { 
			windowWidth = document.documentElement.clientWidth; 
		} else { 
			if (document.body && document.body.clientWidth) { 
				windowWidth = document.body.clientWidth; 
			} 
		} 
	} 
	
	return windowWidth; 
} 

function getWindowHeight() { 
	var windowHeight = 0; 
	if (typeof(window.innerHeight) == 'number') { 
			windowHeight = window.innerHeight; 
		} else { 
		if (document.documentElement && document.documentElement.clientHeight) { 
			windowHeight = document.documentElement.clientHeight; 
		} else { 
			if (document.body && document.body.clientHeight) { 
				windowHeight = document.body.clientHeight; 
			} 
		} 
	} 
	
	return windowHeight; 
} 

function setContent() { 
	if (document.getElementById) { 
		var windowWidth = getWindowWidth(); 
		var windowHeight = getWindowHeight();
		var contentElement = document.getElementById('wrapper'); 		
		var middle = document.getElementById('middle');
		var menu = '';
		if (document.getElementById('menu')) var menu = document.getElementById('menu');
		var content = document.getElementById('content');
		
		if (windowWidth > 0) { 
			var contentWidth = contentElement.offsetWidth; 
			if (windowWidth - contentWidth > 0) { 
				contentElement.style.position = 'absolute'; 
				contentElement.style.left = ((windowWidth / 2) - (contentWidth / 2)) + 'px'; 
			} else { 
				contentElement.style.position = 'static'; 
			} 
		}

		if (windowHeight > 0) {
			contentElement.style.height = windowHeight;
			var middleheight = windowHeight - 180;
			middle.style.height = middleheight;
			if (menu != '') {
				//menu.style.height = middleheight;
			} else {
				content.style.width = "773px";
			}
			content.style.height = middleheight-21;
		}
		var loadingScreen = document.getElementById('loading');
		loadingScreen.style.display = 'none';
	}

} 

