 function scrollTo(selector) {
        var targetOffset = $(selector).offset().top;
        $('html,body').animate({scrollTop: targetOffset}, 500);
    }
 
 
$(function() {
  $("a .off").hover(function() {
    $(this).attr("src", $(this).attr("src").split(".").join("_over."));
  }, function() {
    $(this).attr("src", $(this).attr("src").split("_over.").join("."));
  });
});
  
$(function() {
  $(".sup-submit").hover(function() {
    $(this).attr("src", $(this).attr("src").split(".").join("_over."));
  }, function() {
    $(this).attr("src", $(this).attr("src").split("_over.").join("."));
  });
});
 
   $(function(){
   $("a#c").click(function(e){
	e.preventDefault();							  
   	 $(".context").empty().html('<center><p style="margin:0px 0 0 0;"><img src="scripts/ajax-loader.gif" /></p></center>');
     $(".context").load('about-the-firm.php', function(){
			 scrollTo('#about_header');
		});
    });
 });
 
   $(function(){
   $("a#plus").click(function(e){
	e.preventDefault();									  
   	 $(".context").empty().html('<center><p style="margin:0px 0 0 0;"><img src="scripts/ajax-loader.gif" /></p></center>');
     $(".context").load('in-the-news.php', function(){
			 scrollTo('#news_header');
		});
    });
 });
 
   $(function(e){
   $("a#k").click(function(e){
	e.preventDefault();								  
   	 $(".context").empty().html('<center><p style="margin:0px 0 0 0;"><img src="scripts/ajax-loader.gif" /></p></center>');
     $(".context").load('contact-us.php', function(){
			 scrollTo('#contact_header');
		});
    });
 });