$(document).ready(function() {
 // hides content as soon as the DOM is ready (a little sooner that page load)
  $('.content').hide();
  
 // toggle on click
 
  // What We Do Content  
  $('.toggle').click(function() {
    // Hide all content divs
    $('.content').fadeOut('fast');
    // Show the content div which was selected
    $('#' + $(this).attr('id').replace('toggle', 'content')).fadeIn('slow');
  });
});

/* Smooth Scrolling -------------------- */

$(document).ready(function(){
  $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
    && location.hostname == this.hostname) {
      var $target = $(this.hash);
      $target = $target.length && $target
      || $('[name=' + this.hash.slice(1) +']');
      if ($target.length) {
        var targetOffset = $target.offset().top;
        $('html,body')
        .animate({scrollTop: targetOffset}, 1000);
       return false;
      }
    }
  });
});

/* End Smooth Scrolling */

/* External Links load ------------------------------------*/

function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external")
anchor.target="_blank";}}
window.onload=externalLinks;

/* End External Links load */