/* Requires jQuery library
 * 
 * 
 */

var boxOpen = {'box3':false,'box4':false,'lbox3':false};
function shrinkBox(div2)
{
	jQuery('#' + div2).animate({height: "70px",marginTop: "0px"},"slow");
}
function expandBox(div2)
{
	jQuery('#' + div2).animate({height: "220",marginTop: "-100"},"slow",function(){});
}
jQuery(document).ready(function(){
	jQuery('#box3').corner("tr br bl");
	jQuery('#box4').corner("tr br bl");
	
	jQuery('#box4').click(function(){
		if(boxOpen['box4'])
		{
			shrinkBox('box4');
			boxOpen['box4'] = false;
			jQuery('#nne-min-max').html("+");
		}
		else
		{
			expandBox('box4');
			boxOpen['box4'] = true;
			jQuery('#nne-min-max').html("&ndash;");
		}
	});
	jQuery('#box3').click(function(){
		if(boxOpen['box3'])
		{
			shrinkBox('box3');
			boxOpen['box3'] = false;
			jQuery('#ne-min-max').html("+");
		}
		else
		{
			expandBox('box3');
			boxOpen['box3'] = true;
			jQuery('#ne-min-max').html("&ndash;");
		}
	});
	
	jQuery('#lbox3').click(function(){
		if(boxOpen['lbox3'])
		{
			jQuery('#lbox3').animate({height: "-=105",marginTop: "+=105"},"slow");
			boxOpen['lbox3'] = false;
			jQuery('#home-min-max').html("+");
		}
		else
		{
			jQuery('#lbox3').animate({height: "+=105",marginTop: "-=105"},"slow");
			boxOpen['lbox3'] = true;
			jQuery('#home-min-max').html("&ndash;");
		}
	});

	jQuery('#lbox3').corner("tr br bl");
	jQuery('#lbox3 *').css({"color":"white"});
});