<?php
	/**
		* The template for displaying the footer
		*
		* Contains the closing of the #content div and all content after
		*
	*/
?>
</div>
</div><!-- .site-content -->

<footer id="colophon" class="site-footer" role="contentinfo">
	<div class="container clear">
		
		
		<?php if ( is_active_sidebar( 'sidebar-4' )  ) : ?>
		<div class="footerbar widget-area clear">
			<?php dynamic_sidebar( 'sidebar-4' ); ?>
		</div><!-- .sidebar .widget-area -->
		<?php endif; ?>
		
		<div class="footer-info clear">
			<?php if ( has_nav_menu( 'social' ) ) : ?>
			<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
				<?php
					wp_nav_menu( array(
					'theme_location' => 'social',
					'menu_class'     => 'social-links-menu',
					'depth'          => 1,
					'link_before'    => '<span class="screen-reader-text">',
					'link_after'     => '</span>',
					) );
				?>
			</nav><!-- .social-navigation -->
			<?php endif; ?>
			
			<div class="site-info">
				<?php
					/**
						* Fires before the twentysixteen footer text for footer customization.
						*
						* @since Twenty Sixteen 1.0
					*/
					do_action( 'twentysixteen_credits' );
				?>
				<span class="site-title">Copyright &copy; 2016 newmodelwreckers.com.au</span>
			</div><!-- .site-info -->
		</div>
	</div>
</footer><!-- .site-footer -->
</div><!-- .site-inner -->
</div><!-- .site -->

<script>
	jQuery(function($){
		var url = window.location.href; 
		$(".menu-search a").each(function() {
			// checks if its the same on the address bar
			if(url == (this.href)) { 
				$(this).closest("li").addClass("active");
			}
		});
	});
	
	jQuery( document ).ready(function($){		
		$('.automotive-sliders').slick({
			infinite: true,
			dots: true,
			variableWidth: true,
			adaptiveHeight: true,
			centerMode: true,
			slidesToShow: 1,
			slidesToScroll: 1,
			arrows: true,
			prevArrow: '<div class="prev-arrow"><i class="fa fa-angle-left" aria-hidden="true"></i></div>',
			nextArrow: '<div class="next-arrow"><i class="fa fa-angle-right" aria-hidden="true"></i></div>',
		});
	});
	
	jQuery( document ).ready(function($){		
		$( ".view-more-link" ).click(function(event) {
			event.preventDefault();
			
			$(this).toggleClass( function(event) { 
				
				$('.view-content-link').slideToggle('slow');
				
				if ($(this).hasClass('show')){
					$(this).html('Click to View All Models');					
					}else{
					$(this).html('Click To Hide Models');
				}
				
				return 'show';
				
			});
		});
	});
	
	/* jQuery( document ).ready(function($){
		var slider = $(".sideshow ul");
		slider.responsiveSlides({
		auto: true,
		pager: true,
		speed: 2000,
		timeout: 15000,
		maxwidth: "auto",
		after: function(){
		},
		}); 
	});*/
</script>
<script type="text/javascript">var rl_siteid = "cfb18e6a-fd35-4b53-8647-67939099b34a";</script><script type="text/javascript" src="//cdn.rlets.com/capture_static/mms/mms.js" async="async"></script>
<?php wp_footer(); ?>
</body>
</html>
