$(document).ready(function() {
    
    $("#home").hover(
        function() {
            $(this).attr("src", "images/homeover.jpg");
        },
        function() {
            $(this).attr("src", "images/home.jpg");
        }
    );
    $("#about").hover(
        function() {
            $(this).attr("src", "images/aboutover.jpg");
        },
        function() {
            $(this).attr("src", "images/about.jpg");
        }
    );
    $("#services").hover(
        function() {
            $(this).attr("src", "images/servicesover.jpg");
        },
        function() {
            $(this).attr("src", "images/services.jpg");
        }
    );
    $("#areas").hover(
        function() {
            $(this).attr("src", "images/areasover.jpg");
        },
        function() {
            $(this).attr("src", "images/areas.jpg");
        }
    );
    $("#jobphotos").hover(
        function() {
            $(this).attr("src", "images/jobphotosover.jpg");
        },
        function() {
            $(this).attr("src", "images/jobphotos.jpg");
        }
    );
    $("#contact").hover(
        function() {
            $(this).attr("src", "images/contactover.jpg");
        },
        function() {
            $(this).attr("src", "images/contact.jpg");
        }
    );
    $("#read").hover(
        function() {
            $(this).attr("src", "images/readmoreover.jpg");
        },
        function() {
            $(this).attr("src", "images/readmore.jpg");
        }
    );
    $("#view").hover(
        function() {
            $(this).attr("src", "images/viewmoreover.jpg");
        },
        function() {
            $(this).attr("src", "images/viewmore.jpg");
        }
    );
    
});

if (document.images)
{
  pic1= new Image(); 
  pic1.src="images/homeover.jpg"; 

  pic2= new Image(); 
  pic2.src="images/aboutover.jpg"; 

  pic3= new Image(); 
  pic3.src="images/servicesover.jpg";
  
  pic4= new Image(); 
  pic4.src="images/areasover.jpg";
  
  pic5= new Image(); 
  pic5.src="images/jobphotosover.jpg";
  
  pic6= new Image(); 
  pic6.src="images/contactover.jpg";
  
  pic7 = new Image();
  pic7.src="images/viewmoreover.jpg";
  
  pic8 = new Image();
  pic8.src="images/readmoreover.jpg";
}
