window.onload = function() {
	setTimeout(function() {
		new Image().src = '../assets/images/newNavLogo.png';
		new Image().src = '../assets/images/hero.jpg';
		new Image().src = '../assets/images/mobile/hero.jpg';
		new Image().src = '../assets/images/casestudyLinkNYC1-80.jpg';
		new Image().src = '../assets/images/casestudyKountable1-80.jpg';
		new Image().src = '../assets/images/casestudyLinkNYC2-80.jpg';
		new Image().src = '../assets/images/casestudyKountable2-80.jpg';
		new Image().src = '../assets/images/casestudyLinkNYC1-80.jpg';
		new Image().src = '../assets/images/bubbles.png';
		new Image().src = '../assets/images/sslHambuger.svg';
		new Image().src = '../assets/images/clientCurlmart.png';

		new Image().src = '../assets/images/clientSbdigital.png';
		new Image().src = '../assets/images/clientFlywheel.png';
		new Image().src = '../assets/images/iconsTechAssesmentsStrategy.png';
		new Image().src = '../assets/images/iconsCustomSoftwareDev.png';
		new Image().src = '../assets/images/iconsRapidPrototyping.png';
		new Image().src = '../assets/images/iconsCustomCloudArch.png';
		new Image().src = '../assets/images/iconsMobileSoftware.png';
		new Image().src = '../assets/images/iconsEcommerceSolutions.png';
		new Image().src = '../assets/images/ourProcess.png';
		new Image().src = '../assets/images/jeff_headshot.jpg';
		new Image().src = '../assets/images/ivan_headshot.jpg';
		new Image().src = '../assets/images/matthew_headshot.jpg';
		new Image().src = '../assets/images/teamJose160.jpg';

	}, 1000);
}

$(function() {

	// Get the form.
	var form = $('#cSectionForm');

	// Get the messages div.
	var formMessages = $('#form-messages');

	// Set up an event listener for the contact form.
	$(form).submit(function(e) {
		// Stop the browser from submitting the form.
		e.preventDefault();

		// Serialize the form data.
		var formData = $(form).serialize();

		// Submit the form using AJAX.
		$.ajax({
			type: 'POST',
			url: $(form).attr('action'),
			data: formData
		})
		.done(function(response) {
			console.log('done');
			// Make sure that the formMessages div has the 'success' class.
			$(formMessages).removeClass('error');
			$(formMessages).addClass('success');

			// Set the message text.
			//$(formMessages).text(response);
			$('#formFields').hide();
			$('#messageSend').show();
			// Clear the form.
			$('#name').val('');
			$('#email').val('');
			$('#message').val('');
			$('#subject').val('');
			$('#phone').val('');


		})
		.fail(function(data) {
			console.log('fail');
			// Make sure that the formMessages div has the 'error' class.
			$(formMessages).removeClass('success');
			$(formMessages).addClass('error');

			// Set the message text.
			if (data.responseText !== '') {
				$(formMessages).text(data.responseText);
			} else {
				$(formMessages).text('Oops! An error occured and your message could not be sent.');
			}
		});

	});

});


$(document).ready(function (){


	$(".scroll").click(function (e) {
		$("a").removeClass('currentLink');
		e.preventDefault();
		ref= $(this).attr("href");
		if ($(window).width() < 425){
			scroll = parseInt( $(ref).offset().top) -75;
		}
		else {
			scroll = parseInt( $(ref).offset().top) -99;
		}
		$(this).css({overflow:'hidden'});
		$(this).addClass('currentLink');
		console.log('this: ', $(this));
		$('html, body').animate({
			scrollTop: parseInt(scroll)
		}, 1000);
			$(this).css({overflow:'scroll'});
	});

});

@@ -60,34 +60,32 @@
  Image().src = '
-..
 /assets/images/n
@@ -113,34 +113,32 @@
  Image().src = '
-..
 /assets/images/h
@@ -160,34 +160,32 @@
  Image().src = '
-..
 /assets/images/m
@@ -214,34 +214,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -277,34 +277,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -342,34 +342,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -405,34 +405,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -470,34 +470,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -533,34 +533,32 @@
  Image().src = '
-..
 /assets/images/b
@@ -583,34 +583,32 @@
  Image().src = '
-..
 /assets/images/s
@@ -637,34 +637,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -695,34 +695,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -753,34 +753,32 @@
  Image().src = '
-..
 /assets/images/c
@@ -810,34 +810,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -880,34 +880,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -945,34 +945,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -1009,34 +1009,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -1072,34 +1072,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -1134,34 +1134,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -1200,34 +1200,32 @@
  Image().src = '
-..
 /assets/images/o
@@ -1253,34 +1253,32 @@
  Image().src = '
-..
 /assets/images/j
@@ -1309,34 +1309,32 @@
  Image().src = '
-..
 /assets/images/i
@@ -1365,34 +1365,32 @@
  Image().src = '
-..
 /assets/images/m
@@ -1436,10 +1436,8 @@
  = '
-..
 /ass

Fix images preload javascript error