
<script type="text/javascript">
    jQuery(document).ready(function() {

        /* ============ Sidemenu Scroll ================*/
        $('.sidemenu-inner').enscroll({
            showOnHover: false,
            verticalTrackClass: 'track3',
            verticalHandleClass: 'handle3'
        });

        /* ============ Team Carousel ================*/
        $('.team-carousel').owlCarousel({
            autoplay:true,
            autoplayTimeout:2500,
            smartSpeed:2000,
            autoplayHoverPause:true,
            loop:true,
            dots:true,
            nav:false,
            margin:10,
            mouseDrag:true,
            items:4,
            responsive:{
                1200:{items:4},
                992:{items:3},
                600:{items:2},
                0:{items:1}
            }
        });


        /* ============ Testimonials Carousel ================*/
        $('.testimonials-carousel').owlCarousel({
            autoplay:false,
            autoplayTimeout:2500,
            smartSpeed:2000,
            autoplayHoverPause:true,
            loop:false,
            dots:false,
            nav:true,
            margin:0,
            mouseDrag:true,
            items:1,
            autoHeight:true,
            singleItem:true
        });


        /* ============ Blog Carousel ================*/
        $('.blog-carousel').owlCarousel({
            autoplay:false,
            autoplayTimeout:2500,
            smartSpeed:2000,
            autoplayHoverPause:true,
            loop:false,
            dots:false,
            nav:false,
            margin:0,
            mouseDrag:false,
            items:1,
            singleItem:true,
            URLHashListner:true,
            animateIn:"fadeInLeft",
            animateOut:"fadeOutRight"
        });


        /* ============ Sponsors Carousel ================*/
        $('.sponsors-carousel').owlCarousel({
            autoplay:true,
            autoplayTimeout:2500,
            smartSpeed:2000,
            autoplayHoverPause:true,
            loop:true,
            dots:true,
            nav:false,
            margin:30,
            mouseDrag:true,
            items:6,
            responsive:{
                1200:{items:6},
                992:{items:4},
                600:{items:3},
                0:{items:2}
            }
        });

        /* ============ Sponsors about Carousel ================*/
        $('.sponsors-about-carousel').owlCarousel({
            autoplay:true,
            autoplayTimeout:2500,
            smartSpeed:2000,
            autoplayHoverPause:true,
            loop:true,
            dots:true,
            nav:false,
            margin:30,
            mouseDrag:true,
            items:1
            //responsive:{
            //    1200:{items:6},
            //    992:{items:4},
            //    600:{items:3},
            //    0:{items:2}
            //}
        });


        /*================== Map =====================*/
        function initialize() {
            var lat = $('#mapLat').text();
            var lng = $('#mapLng').text();

            var myLatlng = new google.maps.LatLng(lat, lng);
            var mapOptions = {
                zoom: 16,
                disableDefaultUI: true,
                scrollwheel:false,
                center: myLatlng
            };
            var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);

            var image = '/wp-content/themes/Seoul/images/marker.png';
            var myLatLng = new google.maps.LatLng(lat, lng);
            var beachMarker = new google.maps.Marker({
                position: myLatLng,
                map: map,
                icon: image
            });

        }
        google.maps.event.addDomListener(window, 'load', initialize);



        //fast hack
        $('.wpcf7-form-control-wrap input').unwrap();
        $('.wpcf7-form-control-wrap textarea').unwrap();

    });
</script>


<script defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBF7r8pfir1EWwkhZ86JZJjnrFMgOxLy_I"
        type="text/javascript"></script>

<?php wp_footer(); ?>
</body>
</html>
