    
function swapImages(){
      var $active = $('#largeimage .active');
      var $next = ($('#largeimage .active').next().length > 0) ? $('#largeimage .active').next() : $('#largeimage img:first');
      $active.fadeOut(function(){
      $active.removeClass('active');
      $next.fadeIn().addClass('active');
      });
    }

    $(document).ready(function(){
      // Run our swapImages() function every 5secs
      setInterval('swapImages()', 8000);
    });
	
jQuery(function(){
//home 
	 $(".img-swap1").hover(
          function(){this.src = this.src.replace("11","rollover_11");},
          function(){this.src = this.src.replace("rollover_11","11");
	 });
	  $(".img-swap2").hover(
          function(){this.src = this.src.replace("13","rollover_13");},
          function(){this.src = this.src.replace("rollover_13","13");
	 });
	  $(".img-swap3").hover(
          function(){this.src = this.src.replace("15","rollover_15");},
          function(){this.src = this.src.replace("rollover_15","15");
	 });
	  $(".img-swap4").hover(
          function(){this.src = this.src.replace("17","rollover_17");},
          function(){this.src = this.src.replace("rollover_17","17");
	 }); 
	 $(".img-swap5").hover(
          function(){this.src = this.src.replace("19","rollover_19");},
          function(){this.src = this.src.replace("rollover_19","19");
	 }); 

//about
	 $(".about").hover(
          function(){this.src = this.src.replace("about","about1");},
          function(){this.src = this.src.replace("about1","about");
	 }); 
	 $(".news").hover(
          function(){this.src = this.src.replace("news","news1");},
          function(){this.src = this.src.replace("news1","news");
	 }); 
	 $(".contact").hover(
          function(){this.src = this.src.replace("contact","contact1");},
          function(){this.src = this.src.replace("contact1","contact");
	 }); 
}); 
	 

$(document).ready(function() {
  $(".about").click(function(){
  	$(".about-copy").show();
	$(".news-copy").hide();
	$(".contact-copy").hide();
	});
$(".news").click(function(){
  	$(".about-copy").hide();
	$(".news-copy").show();
	$(".contact-copy").hide();
	});
$(".contact").click(function(){
  	$(".about-copy").hide();
	$(".news-copy").hide();
	$(".contact-copy").show();
	});
}); 

//capabilities
jQuery(function(){
	 $(".tm").hover(
          function(){this.src = this.src.replace("tm","tm1");},
          function(){this.src = this.src.replace("tm1","tm");
	 }); 
	 $(".hs").hover(
          function(){this.src = this.src.replace("hs","hs1");},
          function(){this.src = this.src.replace("hs1","hs");
	 }); 
	 $(".sg").hover(
          function(){this.src = this.src.replace("sg","sg1");},
          function(){this.src = this.src.replace("sg1","sg");
	 }); 
	 $(".engineering").hover(
          function(){this.src = this.src.replace("engineering","engineering1");},
          function(){this.src = this.src.replace("engineering1","engineering");
	 }); 
	 $(".os").hover(
          function(){this.src = this.src.replace("os","os1");},
          function(){this.src = this.src.replace("os1","os");
	 }); 
	 
}); 
$(document).ready(function() {
  $(".tm").click(function(){
  	$(".tm-copy").show();
	$(".hs-copy").hide();
	$(".sg-copy").hide();
	$(".engineering-copy").hide();
	$(".os-copy").hide();
	});
$(".hs").click(function(){
  	$(".tm-copy").hide();
	$(".hs-copy").show();
	$(".sg-copy").hide();
	$(".engineering-copy").hide();
	$(".os-copy").hide();
	});
$(".sg").click(function(){
  	$(".tm-copy").hide();
	$(".hs-copy").hide();
	$(".sg-copy").show();
	$(".engineering-copy").hide();
	$(".os-copy").hide();
	});
$(".engineering").click(function(){
  	$(".tm-copy").hide();
	$(".hs-copy").hide();
	$(".sg-copy").hide();
	$(".engineering-copy").show();
	$(".os-copy").hide();
	});
$(".os").click(function(){
  	$(".tm-copy").hide();
	$(".hs-copy").hide();
	$(".sg-copy").hide();
	$(".engineering-copy").hide();
	$(".os-copy").show();
	});
}); 


//products

jQuery(function(){
	 $(".spurgears").hover(
          function(){this.src = this.src.replace("spurgears","spurgears1");},
          function(){this.src = this.src.replace("spurgears1","spurgears");
	 }); 
	 $(".hg").hover(
          function(){this.src = this.src.replace("hg","hg1");},
          function(){this.src = this.src.replace("hg1","hg");
	 }); 
	 $(".shafts").hover(
          function(){this.src = this.src.replace("shafts","shafts1");},
          function(){this.src = this.src.replace("shafts1","shafts");
	 }); 
	 $(".pc").hover(
          function(){this.src = this.src.replace("pc","pc1");},
          function(){this.src = this.src.replace("pc1","pc");
	 }); 
	 $(".pm").hover(
          function(){this.src = this.src.replace("pm","pm1");},
          function(){this.src = this.src.replace("pm1","pm");
	 }); 
	 
}); 
$(document).ready(function() {
  $(".spurgears").click(function(){
  	$(".spurgears-copy").show();
	$(".hg-copy").hide();
	$(".shafts-copy").hide();
	$(".pc-copy").hide();
	$(".pm-copy").hide();
	});
$(".hg").click(function(){
  	$(".spurgears-copy").hide();
	$(".hg-copy").show();
	$(".shafts-copy").hide();
	$(".pc-copy").hide();
	$(".pm-copy").hide();
	});
$(".shafts").click(function(){
  	$(".spurgears-copy").hide();
	$(".hg-copy").hide();
	$(".shafts-copy").show();
	$(".pc-copy").hide();
	$(".pm-copy").hide();
	});
$(".pc").click(function(){
  	$(".spurgears-copy").hide();
	$(".hg-copy").hide();
	$(".shafts-copy").hide();
	$(".pc-copy").show();
	$(".pm-copy").hide();
	});
$(".pm").click(function(){
  	$(".spurgears-copy").hide();
	$(".hg-copy").hide();
	$(".shafts-copy").hide();
	$(".pc-copy").hide();
	$(".pm-copy").show();
	});
});

//markets

jQuery(function(){
	 $(".industrial").hover(
          function(){this.src = this.src.replace("industrial","industrial1");},
          function(){this.src = this.src.replace("industrial1","industrial");
	 }); 
	 $(".agriculture").hover(
          function(){this.src = this.src.replace("agriculture","agriculture1");},
          function(){this.src = this.src.replace("agriculture1","agriculture");
	 }); 
	 $(".automotive").hover(
          function(){this.src = this.src.replace("automotive","automotive1");},
          function(){this.src = this.src.replace("automotive1","automotive");
	 }); 
	  $(".cv").hover(
          function(){this.src = this.src.replace("cv","cv1");},
          function(){this.src = this.src.replace("cv1","cv");
	 }); 
	 
}); 
$(document).ready(function() {
  $(".industrial").click(function(){
  	$(".industrial-copy").show();
	$(".agriculture-copy").hide();
	$(".automotive-copy").hide();
	$(".cv-copy").hide();
	});
$(".agriculture").click(function(){
  	$(".industrial-copy").hide();
	$(".agriculture-copy").show();
	$(".automotive-copy").hide();
	$(".cv-copy").hide();
	});
$(".automotive").click(function(){
  	$(".industrial-copy").hide();
	$(".agriculture-copy").hide();
	$(".automotive-copy").show();
	$(".cv-copy").hide();
	});
$(".cv").click(function(){
  	$(".industrial-copy").hide();
	$(".agriculture-copy").hide();
	$(".automotive-copy").hide();
	$(".cv-copy").show();
	});
});
