/**
 *
 *
 */
jResize = function(minW)
{	
	var v = navigator.appVersion;
	var use_min_width = true;
		
	if( /MSIE 6\.0/.test(v) == true && /MSIE 7\.0/.test(v) == false ) {
		use_min_width = false;
	}
	
	if( /MSIE 7\.0/.test(v) == true && document.compatMode != 'CSS1Compat' ) {
		use_min_width = false;
	}
	
	if( ! use_min_width ) {
		$(document).ready(function(){ _jResize( minW ); });
		$(window).resize( function(){ _jResize( minW ); });
	} else{
		$('.jResize').each(function(){			
			$(this).css('min-width', minW+'px');
		});
	}
	
	/**
	 *
	 *
	 */	
	function _jResize( minW ){
		$('.jResize').each(function(){
			/*
			if( $(this).width() < minW ) {
				$(this).width( minW+'px' );
			} else {
				$(this).width('100%');
				alert('100%');
			}
			*/
			$(this).width( $(this).width() <= minW ? minW+'px' : '100%' );
			
			if( $(this).width() < $(window).width() ) {
				$(this).width( $(window).width() );
			}			
		});				
	}	
}

