/* utilities */
function fooUtil(){}
fooUtil.prototype = {
	
	minHeight : 800 ,
	thumbWidth : 100 ,
	
	adjustView : function() {
		
		var height = $(window).height();
		if ( height < this.minHeight ) height = this.minHeight;
		var width = $(window).width() + this.thumbWidth - 1;		
		
		$('#page_wrapper').css( 'height', height );
		$('#image_wrapper').css( 'width', width );
		
	}
	
}
var foo_util = new fooUtil();

/* on page ready */
jQuery(document).ready(function() {	
	foo_util.adjustView();	
});

/* on window resize */
$(window).resize(function() {
	foo_util.adjustView();	
});
