A Native Hawaiian Company

<script type="text/javascript"><!-- [et_pb_line_break_holder] -->//<![CDATA[<!-- [et_pb_line_break_holder] -->jQuery(<!-- [et_pb_line_break_holder] -->function($){<!-- [et_pb_line_break_holder] -->var i = 0;<!-- [et_pb_line_break_holder] -->var animate = true;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> var header_banner = $("#background-changer");<!-- [et_pb_line_break_holder] --> var banners = ['https://nakoaco.com/wp-content/uploads/sites/15/2018/03/NAKOA-Swing-1-e1520399947978.jpg','https://nakoaco.com/wp-content/uploads/sites/15/2018/01/construction-site-in-guam-e1520399979987.jpg','https://nakoaco.com/wp-content/uploads/sites/15/2018/03/20160615_025921-e1520400067938.jpg','https://nakoaco.com/wp-content/uploads/sites/15/2018/01/pexels-photo-421888-e1515475062918.jpeg'];<!-- [et_pb_line_break_holder] -->var bgImages = banners;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> header_banner.css("background-image", "url("+banners[0]+")");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> i = banners.length; <!-- [et_pb_line_break_holder] --> window.setInterval(function () {<!-- [et_pb_line_break_holder] --> if(animate){<!-- [et_pb_line_break_holder] --> if (i >= banners.length){<!-- [et_pb_line_break_holder] -->i = 0;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> //animate it to fade, then do a callback, after animation is done<!-- [et_pb_line_break_holder] --> header_banner.animate({opacity: 1}, function(){<!-- [et_pb_line_break_holder] -->var lasti;<!-- [et_pb_line_break_holder] --> if(i == 0){<!-- [et_pb_line_break_holder] -->lasti = 4;<!-- [et_pb_line_break_holder] -->}else{<!-- [et_pb_line_break_holder] -->lasti = i;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --> //change the background image<!-- [et_pb_line_break_holder] --> // header_banner.css("background-image","url("+banners[i]+")");<!-- [et_pb_line_break_holder] --> $("#co"+(i+1)).trigger("mouseover");<!-- [et_pb_line_break_holder] -->$("#co"+(lasti)).trigger("mouseout");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> //fade back in<!-- [et_pb_line_break_holder] --> header_banner.animate({opacity: 1}, 100);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> i++;<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --> }, 3000);<!-- [et_pb_line_break_holder] -->//CO1<!-- [et_pb_line_break_holder] -->$( "#co1" ).mouseover(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] --> $( "#background-changer" ).css( "background-image","url(" + bgImages[0] + ")");<!-- [et_pb_line_break_holder] -->$(this).children().find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/03/nakoaconstlogoinvhover.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->$( "#co1" ).mouseout(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] -->$(this).find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/03/nakoaconstlogoinv.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->//CO2<!-- [et_pb_line_break_holder] -->$( "#co2" ).mouseover(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] --> $( "#background-changer" ).css( "background-image","url(" + bgImages[1] + ")");<!-- [et_pb_line_break_holder] -->$(this).children().find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/01/nakoaguamlogoinvhover.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->$( "#co2" ).mouseout(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] -->$(this).find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/01/nakoaguamlogoinv.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->//CO3<!-- [et_pb_line_break_holder] -->$( "#co3" ).mouseover(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] --> $( "#background-changer" ).css( "background-image","url(" + bgImages[2] + ")");<!-- [et_pb_line_break_holder] -->$(this).children().find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/01/nakoaenergylogoinvhover.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->$( "#co3" ).mouseout(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] -->$(this).find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/01/nakoaenergylogoinv.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->//CO4<!-- [et_pb_line_break_holder] -->$( "#co4" ).mouseover(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] --> $( "#background-changer" ).css( "background-image","url(" + bgImages[3] + ")");<!-- [et_pb_line_break_holder] -->$(this).children().find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/01/nakoakalviologoinvhover.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->$( "#co4" ).mouseout(function() {<!-- [et_pb_line_break_holder] -->animate = !animate;<!-- [et_pb_line_break_holder] -->$(this).find('img').attr('src', 'https://nakoaco.com/wp-content/uploads/sites/15/2018/01/nakoakalviologoinv.png');<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] -->//]]><!-- [et_pb_line_break_holder] --></script>