$(document).ready(function() {

	$(document).bgStretcher(background_opt);

      $('#menu .col').hover(function() {

         $(this).find(".bg").animate({ height:"100%"}, 1000);

      }, function() {

        $(this).find(".bg").animate({ height:"6"}, 500);

      });


      $('#page-description-content').css({
          height: parseInt($('.page-description-excerpt').height())+'px',
          overflow: 'hidden'
      })
      $('#footer-twitter-content').css({
          height: '0px',
          overflow: 'hidden'
      });
      $('#page-description').hover(
          function(){
              $('#page-description').find(':animate').stop();
              var content_h = parseInt($(this).find('#page-description-content').children('.page-description-copy').height());
              $(this).find('#page-description-content').animate({height:content_h+'px'}, 500);
              $('.page-description-copy').show();
              $('.page-description-excerpt').hide();
              var twitter_h = $(this).find('#footer-twitter-content').children('div').height();
              $(this).find('#footer-twitter-content').animate({height:twitter_h+'px'}, 500);
          },
          function(){
              $('#page-description').find(':animate').stop();
              $(this).find('#page-description-content').animate({height:parseInt($('.page-description-excerpt').height())+'px'}, 500)
              $('.page-description-excerpt').show();
              $('.page-description-copy').hide();
              $(this).find('#footer-twitter-content').animate({height:'0px'}, 500);

          }
      );

	  if ( background_overlay != '' )
		  $('body').append('<div style="background:url(\''+background_overlay+'\') repeat;width:100%;height:100%;position:fixed;z-index:1;top:0;left:0;"></div>');

});
