Elettra Wiedemann

var $ = jQuery.noConflict();
$(document).ready(function(){
  initWidhtHeader();
  initSupersized();
  initGetContent();
  initInstagram();
  initTwitter();
});
 
$(window).load(function(){
  initMasonry();
});
 
$(window).resize(function(){
  initWidhtHeader();
});
 
function initWidhtHeader(){
  $('#page').height('100%');
  $('#ajax-container').height('100%');
  var windowWidth = parseInt($(window).width());
  var windowHeight = parseInt($(window).height());
  var sidebarWidth = parseInt($('#page').width());
  var sidebarHeight = parseInt($('#page').outerHeight());
  var footerHeight = parseInt($('#footer').outerHeight());
  var sidebarHeightNotFooter = sidebarHeight - footerHeight;
  var headerWidth = windowWidth - sidebarWidth;
  var ajaxContainerWidth = parseInt($('#ajax-container').width());
  $("#ajax-container div.ajax-holder").width(ajaxContainerWidth);