	function browserClientSize(){

		
		var theWidth, theHeight;
		// Window dimensions: 
		if (window.innerWidth) {
			theWidth=window.innerWidth;
		}
		else if (document.documentElement && document.documentElement.clientWidth) {
			theWidth=document.documentElement.clientWidth;
		}
		else if (document.body) {
			theWidth=document.body.clientWidth;
		}
		if (window.innerHeight) {
			theHeight=window.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight) {
			theHeight=document.documentElement.clientHeight;
		}
		else if (document.body) {
			theHeight=document.body.clientHeight;
		}
		
		var size = { width:theWidth, height:theHeight }
		
		return size;
	}

	var clientSize = browserClientSize();
	
	function viEcho( text ){
		$('#status-bar #title').html(text);
	}
	
	function viPrint( text ){
		$('#status-bar #title').after('<p>'+text+'</p>');
		$('#status-bar').css('height','auto').css('position','relative');
	}
	
	function showAjaxOverlay( text ){
		$("#ajax-overlay").children('.loader:first').css('margin-top', $().scrollTop()+clientSize.height/2-50 );
		$("#ajax-overlay").children('.info:first').html(text);
		$("#ajax-overlay").css('opacity','0.75').css( 'top','0px' ).height( $('body').height() ).fadeIn(500);

	}
	
	function hideAjaxOverlay( text ){
		$("#ajax-overlay").fadeOut(500);
	}
