jQuery(document).ready(function($){
	
	// Popular Cars Carousel
	var owlFindCars = $('#nearestDealer');
		owlFindCars.owlCarousel({
		margin: 25,
		loop: true,
		nav: true,
		navText : ["<i class='fa fa-chevron-left fa-lg'></i>","<i class='fa fa-chevron-right fa-lg'></i>"],
		dots: false,
		autoplay:true,
		autoplayTimeout:5000,
		responsive: {
			0: {
			items: 1
			},
			800: {
			items: 3
			},
			1200: {
			items: 4
			},
			1400: {
			items: 5
			}
		}
	});
	
	// Popular Brands Carousel
	var owlFindCars = $('#searchDealerByBrand');
		owlFindCars.owlCarousel({
		margin: 25,
		loop: true,
		nav: true,
		navText : ["<i class='fa fa-chevron-left fa-lg'></i>","<i class='fa fa-chevron-right fa-lg'></i>"],
		dots: false,
		autoplay:true,
		autoplayTimeout:2000,
		responsive: {
			0: {
			items: 3
			},
			400 : {
			items: 3
			},
			600 : {
			items: 3	
			},
			800: {
			items: 4
			},
			1200: {
			items: 5
			}
		}
	});
	
});

//$(window).on('load',function(){
//	$('#offerPopup').modal('show');
// });