// JavaScript Document


	$(function()
			{
		
			
				
	var isResizing;
	
	
	// and the body scrollpane
	var setContainerHeight = function()
	{
		
		// IE triggers the onResize event internally when you do the stuff in this function
		// so make sure we don't enter an infinite loop and crash the browser
		if (!isResizing) { 
		var widthup=$(window).width();
		if(widthup<$.minwidth){
			$('#main_wrapper').css('width',$.minwidth+'px');
			$('#header_wrapper').css('width',$.minwidth+'px');
			$('#footer_wrapper').css('width',$.minwidth+'px');
		}else{
				$('#main_wrapper').css('width',"100%");
			$('#header_wrapper').css('width',"100%");
			$('#footer_wrapper').css('width',"100%");
		}
			
			isResizing = false;
			
		}
		}
	
	setContainerHeight();
	setContainerHeight();
	
	$(window).bind('resize', setContainerHeight);
	});
	
	
