 $(function(){
 
 	function featureSize() {
 		$win = $(window).height();
 		if ($win < 840)
 		{ imgHeight = 840 }
 		else if ($win > 1000)
 		{ imgHeight = 1000 }
 		else
 		{ imgHeight = $win }
 		$('.mp_featureMen').css('height',imgHeight)
 	}
 	
 	featureSize();
 	$(window).resize(function(){
 		featureSize();
 	})		
 	
 })

$(function() {
	
  // Bind the resize event. When the window size changes, update its corresponding
  // info div.
  $(window).resize(function(){
    

    var slid = $('#slider');
    var aspectratio = '0.4666';
    var tempWidth = slid.width();
    var tempHeight = slid.height();
    
    // Update image div width and height, display both
    $('#slider').css({
    'width':'100%',
    'height': slid.width() * aspectratio
    }),
		$('#rightSpace').css({
		 'height': slid.height()
		});

	
  });
  
  // Updates the info div immediately.
  $(window).resize();
});
