function minwidth() {
  if ( (jQuery.browser.msie) && (jQuery.browser.version==6) ) {
	var cssprop = jQuery("body div").css("min-width");
	if ( cssprop == null ) {
	  cssprop = 760; //No min-width; default to min-width of 760
	} else {
	  cssprop = parseInt(cssprop); //Convert value to numeric;
	};
	
	//get document margin to figure browser width to look for
	var margin = parseInt( jQuery("body").css("margin-left") ) + parseInt( jQuery("body").css("margin-right") );

	//21px is the width of the scroll bar.
	if (clientwidth() < (cssprop + margin + 21)) {
	  jQuery(document.body).width(cssprop); //Set fixed-width
	} else {
	  jQuery(document.body).width("auto"); //Un-set fixed-width
	};
  };
};

//get browser width; a bit overly complicated to work with all browsers.
function clientwidth() {
    var dimensions = {width: 0, height: 0};
    if ( window.innerWidth && window.innerHeight ) {
        dimensions.width = window.innerWidth;
        dimensions.height = window.innerHeight;
    } else if ( document.documentElement ) {
        dimensions.width = document.documentElement.offsetWidth;
        dimensions.height = document.documentElement.offsetHeight;
    };
    return dimensions.width; 
};
