jQuery(window).load(function() {
     jQuery("#block-webform-client-block-70").fadeIn();
});
jQuery(document).ready(function () {
 var theHeight = jQuery('.sidebar-second #content').height();
 
 if(!jQuery('body').hasClass('front') && theHeight > 700){
   var top = jQuery('.region-sidebar-second').offset().top - parseFloat(jQuery('.region-sidebar-second').css('marginTop').replace(/auto/, 0));
   
   jQuery(window).scroll(function (event) {
  // what the y position of the scroll is
  var y = jQuery(this).scrollTop();
  
  // whether that's below the form
  if (y >= top) {
    // if so, ad the fixed class
    jQuery('.region-sidebar-second').addClass('fixed');
    jQuery('.region-sidebar-second').css("margin-top", (top * -1));
  } else {
    // otherwise remove it
    jQuery('.region-sidebar-second').css("margin-top", "5px");
    jQuery('.region-sidebar-second').removeClass('fixed');
  }
   });
 }
});;
jQuery(window).load(function() { 
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=218030111589535";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});

