text: /* JS Document */
  
  /******************************
  
  [Table of Contents]
  
  1. Vars and Inits
  2. Set Header
  3. Init Menu
  4. Init Date Picker
  5. Init Time Picker
  6. Init Google Map
  
  
  ******************************/
  
  $(document).ready(function()
  {
  	"use strict";
  
  	/* 
  
  	1. Vars and Inits
  
  	*/
  
  	var header = $('.header');
  	var hamburgerBar = $('.hamburger_bar');
  	var hamburger = $('.hamburger');
  	var map;
  
  	setHeader();
  
  	$(window).on('resize', function()
  	{
  		setHeader();
  
  		setTimeout(function()
  		{
  			$(window).trigger('resize.px.parallax');
  		}, 375);
  	});
  
  	$(document).on('scroll', function()
  	{
  		setHeader();
  	});
  
  	initDatePicker();
  	initTimePicker();
  	initMenu();
  	initGoogleMap();
  
  	/* 
  
  	2. Set Header
  
  	*/
  
  	function setHeader()
  	{
  		if($(window).scrollTop() > 91)
  		{
  			header.addClass('scrolled');
  			hamburgerBar.addClass('scrolled');
  		}
  		else
  		{
  			header.removeClass('scrolled');
  			hamburgerBar.removeClass('scrolled');
  		}
  	}
  
  	/* 
  
  	3. Init Menu
  
  	*/
  
  	function initMenu()
  	{
  		if($('.menu').length)
  		{
  			var menu = $('.menu');
  			hamburger.on('click', function()
  			{
  				hamburger.toggleClass('active');
  				menu.toggleClass('active');
  			});
  		}
  	}
  
  	/* 
  
  	4. Init Date Picker
  
  	*/
  
  	function initDatePicker()
  	{
  		var dp = $('#datepicker');
  		var date = new Date();
  		var dateM = date.getMonth() + 1;
  		var dateD = date.getDate();
  		var dateY = date.getFullYear();
  		var dateFinal = dateM + '/' + dateD + '/' + dateY;
  		dp.val(dateFinal);
  		dp.datepicker();
  	}
  
  	/* 
  
  	5. Init Time Picker
  
  	*/
  
  	function initTimePicker()
  	{
  		$('.timepicker').timepicker(
  		{
  		    interval: 60,
  		    minTime: '10',
  		    maxTime: '6:00pm',
  		    defaultTime: '11',
  		    startTime: '10:00',
  		    dynamic:  true,
  		    dropdown: true,
  		    scrollbar: true
  		});
  	}
  
  	/* 
  
  	6. Init Google Map
  
  	*/
  
  	function initGoogleMap()
  	{
  		var myLatlng = new google.maps.LatLng(34.063685,-118.272936);
      	var mapOptions = 
      	{
      		center: myLatlng,
  	       	zoom: 14,
  			mapTypeId: google.maps.MapTypeId.ROADMAP,
  			draggable: true,
  			scrollwheel: false,
  			zoomControl: true,
  			zoomControlOptions:
  			{
  				position: google.maps.ControlPosition.RIGHT_CENTER
  			},
  			mapTypeControl: false,
  			scaleControl: false,
  			streetViewControl: false,
  			rotateControl: false,
  			fullscreenControl: true,
  			styles:
  			[
  			  {
  			    "featureType": "road.highway",
  			    "elementType": "geometry.fill",
  			    "stylers": [
  			      {
  			        "color": "#ffeba1"
  			      }
  			    ]
  			  }
  			]
      	}
  
      	// Initialize a map with options
      	map = new google.maps.Map(document.getElementById('map'), mapOptions);
  
  		// Re-center map after window resize
  		google.maps.event.addDomListener(window, 'resize', function()
  		{
  			setTimeout(function()
  			{
  				google.maps.event.trigger(map, "resize");
  				map.setCenter(myLatlng);
  			}, 1400);
  		});
  	}
  
  });