var butHeightSelected = "90px";
var butMarginSelected = "-5px";

var butHeightNorm = "80px";
var butMarginNorm = "5px";

$(document).ready(function() {
	$('#img_1').fadeIn();
	
		$('#button_1').click(function(){
		$('#img_2, #img_3, #img_4, #img_5,').hide();
		$('#button_2, #button_3, #button_4, #button_5,').css('height',butHeightNorm);
		$('#button_2, #button_3, #button_4, #button_5,').css('margin-top',butMarginNorm);
		
		
		$('#img_1').fadeIn();
		$(this).css('height',butHeightSelected); 
		$(this).css('margin-top',butMarginSelected);
		
		$('#feature_img_container').click(function(){ window.location = "services.php"; });
		
		});
		
		
		
		
	$('#img_2').hide();
	
		$('#button_2').click(function(){
		$('#img_1, #img_3, #img_4, #img_5,').hide();
		$('#button_1, #button_3, #button_4, #button_5,').css('height',butHeightNorm);
		$('#button_1, #button_3, #button_4, #button_5,').css('margin-top',butMarginNorm);
		
		$('#img_2').fadeIn();
		$(this).css('height',butHeightSelected); 
		$(this).css('margin-top',butMarginSelected);
		
		$('#feature_img_container').click(function(){ window.location = "browse.php"; });
		
		});
		
		
	
	$('#img_3').hide();
	
		$('#button_3').click(function(){
		$('#img_1, #img_2, #img_4, #img_5,').hide();
		$('#button_1, #button_2, #button_4, #button_5,').css('height',butHeightNorm);
		$('#button_1, #button_2, #button_4, #button_5,').css('margin-top',butMarginNorm);
		
		$('#img_3').fadeIn();
		$(this).css('height',butHeightSelected); 
		$(this).css('margin-top',butMarginSelected);
		
		$('#feature_img_container').click(function(){ window.location = "wines4life.php"; });
		
		});
		
		
	
	$('#img_4').hide();
	
		$('#button_4').click(function(){
		$('#img_1, #img_2, #img_3, #img_5,').hide();
		$('#button_1, #button_2, #button_3, #button_5,').css('height',butHeightNorm);
		$('#button_1, #button_2, #button_3, #button_5,').css('margin-top',butMarginNorm);
		
		$('#img_4').fadeIn();
		$(this).css('height',butHeightSelected); 
		$(this).css('margin-top',butMarginSelected);
		
		$('#feature_img_container').click(function(){ window.location = "corporate.php"; });
		
		});
		
		

	$('#img_5').hide();
	
		$('#button_5').click(function(){
		$('#img_1, #img_2, #img_3, #img_4,').hide();
		$('#button_1, #button_2, #button_3, #button_4,').css('height',butHeightNorm);
		$('#button_1, #button_2, #button_3, #button_4,').css('margin-top',butMarginNorm);
		
		$('#img_5').fadeIn();
		$(this).css('height',butHeightSelected); 
		$(this).css('margin-top',butMarginSelected);
		
		$('#feature_img_container').click(function(){ window.location = "news.php"; });
		
		});
		
	$('#button_1').corner("bl");
	$('#button_5').corner("br");
	
	$('#img_1').corner("top");
	$('#img_2').corner("top");
	$('#img_3').corner("top");
	$('#img_4').corner("top");
	$('#img_5').corner("top");
	
	$("#mainPage").css('padding-bottom','10px');
	$("#mainPage").css('padding-top','5px');
	
	$("#mainPage").css('margin-left','0px');
	$("#mainPage").css('margin-right','0px');
	
	
	$("#button_1").css('height',butHeightSelected);
	$("#button_1").css('margin-top',butMarginSelected);


	$("#newsUpdate").show("slow");
  });