$(document).ready(function(){ $(".nav-home").attr("src","/images/nav/IPSC_home_on.jpg"); $(".nav-whatisipsc").hover(function(over){ $(this).attr("src","/images/nav/IPSC_whatisipsc_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_whatisipsc_off.jpg"); }); $(".nav-officials").hover(function(over){ $(this).attr("src","/images/nav/IPSC_officials_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_officials_off.jpg"); }); $(".nav-matches").hover(function(over){ $(this).attr("src","/images/nav/IPSC_matches_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_matches_off.jpg"); }); $(".nav-results").hover(function(over){ $(this).attr("src","/images/nav/IPSC_results_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_results_off.jpg"); }); $(".nav-classifications").hover(function(over){ $(this).attr("src","/images/nav/IPSC_classifications_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_classifications_off.jpg"); }); $(".nav-rules").hover(function(over){ $(this).attr("src","/images/nav/IPSC_rules_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_rules_off.jpg"); }); $(".nav-contacts").hover(function(over){ $(this).attr("src","/images/nav/IPSC_contacts_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_contacts_off.jpg"); }); $(".nav-myipscworld").hover(function(over){ $(this).attr("src","/images/nav/IPSC_myipscworld_on.jpg"); }, function(out){ $(this).attr("src","/images/nav/IPSC_myipscworld_off.jpg"); }); });