$(document).ready(function() {         
  
 //TWITTER
  $("#twitter").getTwitter({               
    userName: "FargoInsurance",               
    numTweets: 1,               
    loaderText: "Loading tweets...",               
    slideIn: true,               
    showHeading: true,               
    headingText: "Follow Us On Twitter",               
    showProfileLink: false         
  });
  
//SLIDE-DOWN-PANEL
  $("#open").click(function(){
    $("div#panel").slideDown("slow");
  });  
  $("#close").click(function(){
    $("div#panel").slideUp("slow");  
  });    
  $("#toggle a").click(function () {
    $("#toggle a").toggle();
  });
  
  
  
      if($(".socLikeTweet").length){
        $("body").append("<script src='http://platform.twitter.com/widgets.js'></script><script src='https://apis.google.com/js/plusone.js'></script>");
    }
    /* Make sidebar visible if it's not a partner page*/
/*    if(!$("#partnerList").length){
      $("#sidebar").removeClass("hide").addClass("clearfix");
    }*/
  
    if($("#blog_page").length || $("#fullArticle").length){
        $("body").append("<script src='http://cdn.astonishlive.com/CombineFiles.aspx?files=_blog-1.1.0.js,blogCalendar.js'></script>");
    }
  
  
});

