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('box'); 		
		
		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'; 
			} 
		}

		var loadingScreen = document.getElementById('loading');
		loadingScreen.style.display = 'none';
	}

} 

/*function selectDealer(waarde) {
	if (waarde == '') {
		window.location = "../verkoopadressen/dealers.html";
	} else window.location = "../verkoopadressen/vestiging-" + waarde + ".html";
}*/

function geldigEmail(str) {
   return (str.indexOf(".") > 0) && (str.indexOf("@") > 0); 
}
