  ////---------------------------//// windowSize - Cross browser window dimensions
 //    windowSize.js			  //  © 2004 Thijs Putman (info@tphnet.com), alle rechten voorbehouden.
////---------------------------////

  //////
 // windowHeight()
//////


function windowWidth(){

	return windowSize('width');}

  //////
 // windowWidth()
//////

function windowHeight(){

	return windowSize('height');}

  //////
 // windowSize()
//////

function windowSize(what) {

	var winWidth = 0;
	var winHeight = 0;


	// Niet Internet Explorer

	if(typeof(window.innerWidth) == 'number'){
		winWidth = window.innerWidth;
		winHeight = window.innerHeight;}

	// Internet Explorer 6 - Standards Compliant

	else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){

		winWidth = document.documentElement.clientWidth;
		winHeight = document.documentElement.clientHeight;}

	// Internet Explorer 4+

	else if(document.body && (document.body.clientWidth || document.body.clientHeight)){

		winWidth = document.body.clientWidth;
		winHeight = document.body.clientHeight;}

	// Teruggeven

	if(what == 'width'){
		return winWidth;}
	else if(what == 'height'){
		return winHeight;}

}
