Cufon.replace(
  '#comments,'+
  '#content h2,'+
  '#sidebar h2',
  {hover:true}
);

$(document).ready(function() {
  $("a[rel=external]").attr('target', '_blank');
  
  $.Juitter.start({
		searchType:'fromUser', //needed, you can use 'searchWord', 'fromUser', 'toUser'
		searchObject:'elevation_wrshp', //needed, you can insert a username here or a word to be searched for, if you wish multiple search, separate the words by comma.
		lang:'en', //restricts the search by the given language
		placeHolder:'twitter-feed', //Set a place holder DIV which will receive the list of tweets example <div id='juitterContainer'></div>
		loadMSG:'Loading messages...', //Loading message, if you want to show an image, fill it with 'image/gif' and go to the next variable to set which image you want to use on 
		total:2, //number of tweets to be show - max 100
		nameUser:'none', //insert 'image' to show avatar of 'text' to show the name of the user that sent the tweet 
		openExternalLinks:'newWindow' //here you can choose how to open link to external websites, 'newWindow' or 'sameWindow'
	});
  
  $('.the-cause').click(function() {
    $('#video').hide();
    $('#video-and-cause .cause').fadeIn();
    $('#video-and-cause').css('height','auto');
    var h=$('#video-and-cause').height();
    $('#video-and-cause').css('height',290);
    $('#video-and-cause').animate({height:h});
    
    return false;
  });
  
  $('.watch-video').click(function() {
    $('#video').hide();
    $('#video-and-cause .cause').fadeOut(function() {
      $('#video-and-cause').animate({height:290});
      $('#video').show();
    });
    return false;
  });
});
