$j(document).ready(function() {
	$j('#header_buttons .expand').bind('click', function() {
		$j(this).hide();
		$j('#header_container').animate({ height: '377px' }, 850).addClass('expanded');
    $j('#header .join-reasons').fadeIn(800);
		$j('#header_buttons .contract').show();
	});
	$j('#header_buttons .contract').bind('click', function() {
		$j(this).hide();
    $j('#header .join-reasons').fadeOut(600);
		$j('#header_container').removeClass('expanded').animate({ height: '187px' }, 600);
    window.setTimeout(function() {  
      $j('#header_buttons .expand').fadeIn('fast');
    }, 600);  
	});
	
	if ($j('.other-news-links').length > 0) {
		$j('.other-news-links li:first-child').addClass('first');
		$j('.other-news-links li:last-child').addClass('last');
	};
	
	/* Form classes */
	$j('input[type=text]').addClass('text');
	$j(':button').addClass('button');

});
