// when the DOM is ready...
$(document).ready(function () {

 $('.nav').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );

 $('.nav2').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );


 $('.nav3').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );
 
 $('.nav4').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );


 $('.nav5').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );
 
$('.nav6').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );


 $('.nav7').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );
 
 $('.nav8').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );


 $('.nav9').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 );
 
  $('.navlast').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
  
  $('.sub').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
  
   $('.sub2').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
   
   $('.sub3').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
   
   $('.sub4').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
 
   $('.sub5').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
   
  $('.sub6').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
  
  $('.sub7').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
  
  $('.sub8').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 

  $('.sub9').hover(  
 function() {  
  $(this).addClass('hover');  
 },  
 function() {  
  $(this).removeClass('hover');  
  }  
 ); 
  
  
  
//Image swaps start here
$('img#part1').hover(function() {
	$(this).attr("src","images/01/logo1_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo1_off.jpg");
});

$('img#part2').hover(function() {
	$(this).attr("src","images/01/logo2_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo2_off.jpg");
});  

$('img#part3').hover(function() {
	$(this).attr("src","images/01/logo3_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo3_off.jpg");
});  

$('img#part4').hover(function() {
	$(this).attr("src","images/01/logo4_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo4_off.jpg");
});  

$('img#part5').hover(function() {
	$(this).attr("src","images/01/logo5_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo5_off.jpg");
});  

$('img#part6').hover(function() {
	$(this).attr("src","images/01/logo6_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo6_off.jpg");
});  

$('img#part7').hover(function() {
	$(this).attr("src","images/01/logo7_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo7_off.jpg");
});  

$('img#part8').hover(function() {
	$(this).attr("src","images/01/logo8_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo8_off.jpg");
});  
$('img#part9').hover(function() {
	$(this).attr("src","images/01/logo9_on.jpg");
		}, function() {
	$(this).attr("src","images/01/logo9_off.jpg");
}); 


$('img#comm1').hover(function() {
	$(this).attr("src","images/05/logo1_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo1_off.jpg");
});

$('img#comm2').hover(function() {
	$(this).attr("src","images/05/logo2_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo2_off.jpg");
});  

$('img#comm3').hover(function() {
	$(this).attr("src","images/05/logo3_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo3_off.jpg");
});  

$('img#comm4').hover(function() {
	$(this).attr("src","images/05/logo4_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo4_off.jpg");
});  

$('img#comm5').hover(function() {
	$(this).attr("src","images/05/logo5_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo5_off.jpg");
});  

$('img#comm6').hover(function() {
	$(this).attr("src","images/05/logo6_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo6_off.jpg");
});  

$('img#comm7').hover(function() {
	$(this).attr("src","images/05/logo7_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo7_off.jpg");
});  

$('img#comm8').hover(function() {
	$(this).attr("src","images/05/logo8_on.jpg");
		}, function() {
	$(this).attr("src","images/05/logo8_off.jpg");
});  





});
