	var browserHeight;
	
	// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
	
	if (typeof window.innerWidth != 'undefined') {
		browserHeight = window.innerHeight
	}		 
	
	else if (typeof document.documentElement != 'undefined'
		&& typeof document.documentElement.clientWidth !=
		'undefined' && document.documentElement.clientWidth != 0) {
		// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
		browserHeight = document.documentElement.clientHeight
	}
	
	else {
	// older versions of IE
		browserHeight = document.getElementsByTagName('body')[0].clientHeight
	}
	
	if( document.getElementById ) {
		/* 
			this was...

			contentHeight = document.getElementById('wrapper').offsetHeight;

			changed it to the below line in order to supress javascript errors <gregs@mediadog.net 2007.July.18>
		*/
		contentHeight = document.getElementById('wrapper') ? document.getElementById('wrapper').offsetHeight : 0;
	} else if ( document.layers ) {
		contentHeight = document.layers['wrapper'].clip.height;
	}
	
	if(contentHeight > browserHeight) {
		var backToTopDiv = document.getElementById('backToTop');
		backToTopDiv.style.display = 'block';
	}