$(document).ready(function(){
 // top navigation menu and footer:
 $(function(){
  $.get('/common/_site_layouts/v4/menu.html', function(data) {
   $('ul.jd_menu').html(data).jdMenu({
    showDelay: 500,
    hideDelay: 500,
    disableLinks: false
   });
  });
  
  $.get('/sso/header.aspx',function(data) {
   $('#figures').html(data);
   $('#figures').css('padding-right','20px');
  });
 });
 
 $(function(){
  $.get('/common/_site_layouts/v4/footer.html', function(data) {
   $('#footer-content').html(data);
  });
 });
 
 // function for image rollovers
 $(function() {
  $('.rollover').hover(function() {      
   var currentImg = $(this).attr('src');       
   $(this).attr('src', $(this).attr('hover'));        
   $(this).attr('hover', currentImg); 
  }, function() {  
   var currentImg = $(this).attr('src');   
   $(this).attr('src', $(this).attr('hover'));     
   $(this).attr('hover', currentImg); 
  }); 
 });
});
 
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-906526-1']);
  _gaq.push(['_trackPageview']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
