  function closeAll (){$(".gallery1,.gallery2,.gallery3,.gallery4,.gallery5,.gallery6,.gallery7,.gallery8,.gallery9,.gallery10,.gallery11,.gallery12,.gallery13").hide();}
  function removeAll (){$(".one_hover,.two_hover,.three_hover,.four_hover,.five_hover,.six_hover,.seven_hover,.eight_hover,.nine_hover,.ten_hover,.eleven_hover,.thirteen_hover").removeAttr("style");}


  $(document).ready(function() {

		$(function () {
			$(".one_hover").mouseover(closeAll);
			$(".one_hover").mouseover(removeAll);
			$(".one_hover").mouseover(function (){$(".gallery1").show();});
			$(".one_hover").mouseover(function (){$(this).css('background', 'url(../images/rural_america_hover.gif) no-repeat');});
			
		});

		$(function () {
			$(".two_hover").mouseover(closeAll);
			$(".two_hover").mouseover(removeAll);
			$(".two_hover").mouseover(function (){$(".gallery2").show();});
			$(".two_hover").mouseover(function (){$(this).css('background', 'url(../images/western_hover.gif) no-repeat');});
		});

		$(function () {
			$(".three_hover").mouseover(closeAll);
			$(".three_hover").mouseover(removeAll);
			$(".three_hover").mouseover(function (){$(".gallery3").show();});
			$(".three_hover").mouseover(function (){$(this).css('background', 'url(../images/camp_michaux_hover.gif) no-repeat');});
		});

		$(function () {
			$(".four_hover").mouseover(closeAll);
			$(".four_hover").mouseover(removeAll);
			$(".four_hover").mouseover(function (){$(".gallery4").show();});
			$(".four_hover").mouseover(function (){$(this).css('background', 'url(../images/industrial_hover.gif) no-repeat');});
		});

		$(function () {
			$(".five_hover").mouseover(closeAll);
			$(".five_hover").mouseover(removeAll);
			$(".five_hover").mouseover(function (){$(".gallery5").show();});
			$(".five_hover").mouseover(function (){$(this).css('background', 'url(../images/michaux_forest_hover.gif) no-repeat');});
		});

		$(function () {
			$(".six_hover").mouseover(closeAll);
			$(".six_hover").mouseover(removeAll);
			$(".six_hover").mouseover(function (){$(".gallery6").show();});
			$(".six_hover").mouseover(function (){$(this).css('background', 'url(../images/gettysburg_hover.gif) no-repeat');});
		});

		$(function () {
			$(".seven_hover").mouseover(closeAll);
			$(".seven_hover").mouseover(removeAll);
			$(".seven_hover").mouseover(function (){$(".gallery7").show();});
			$(".seven_hover").mouseover(function (){$(this).css('background', 'url(../images/mount_holly_hover.gif) no-repeat');});
		});

		$(function () {
			$(".eight_hover").mouseover(closeAll);
			$(".eight_hover").mouseover(removeAll);
			$(".eight_hover").mouseover(function (){$(".gallery8").show();});
			$(".eight_hover").mouseover(function (){$(this).css('background', 'url(../images/outer_banks_hover.gif) no-repeat');});
		});

		$(function () {
			$(".nine_hover").mouseover(closeAll);
			$(".nine_hover").mouseover(removeAll);
			$(".nine_hover").mouseover(function (){$(".gallery9").show();});
			$(".nine_hover").mouseover(function (){$(this).css('background', 'url(../images/maryland-virginia-west-virginia_hover.gif) no-repeat');});
		});

		$(function () {
			$(".ten_hover").mouseover(closeAll);
			$(".ten_hover").mouseover(removeAll);
			$(".ten_hover").mouseover(function (){$(".gallery10").show();});
			$(".ten_hover").mouseover(function (){$(this).css('background', 'url(../images/portrait_hover.gif) no-repeat');});
		});

		$(function () {
			$(".eleven_hover").mouseover(closeAll);
			$(".eleven_hover").mouseover(removeAll);
			$(".eleven_hover").mouseover(function (){$(".gallery11").show();});
			$(".eleven_hover").mouseover(function (){$(this).css('background', 'url(../images/night_hover.gif) no-repeat');});
		});

		$(function () {
			$(".twelve_hover").mouseover(closeAll);
			$(".twelve_hover").mouseover(removeAll);
		});

		$(function () {
			$(".thirteen_hover").mouseover(closeAll);
			$(".thirteen_hover").mouseover(removeAll);
			$(".thirteen_hover").mouseover(function (){$(".gallery13").show();});
			$(".thirteen_hover").mouseover(function (){$(this).css('background', 'url(../images/color_photos_hover.gif) no-repeat');});
		});

	});	
