$(document).ready(function() {
	
	// VALIDATE NEWSLETTER+CONTACT FORM
	jQuery.validator.messages.required = "";
	jQuery.validator.messages.email = "";
	$("#contact-form").validate();
	$("#callback-form").validate();
	
	// NYRO MODAL POPUP
	$('.footerSlugThree').nyroModal();
	
});


/*$.fn.cycle.defaults.timeout = 6000;
	$(function() {
		// run the code in the markup!
		$('#s2').cycle({
		fx:     'fade',
		speed:  'slow',
		timeout: 0,
		next:   '#next2',
		prev:   '#prev2'
		
		
	});
	
		$(function() {
    $('#slideshow').cycle({ cleartype: 1, speed: 400, timeout: 0,
		next:   '#next2',
		prev:   '#prev2' });
});
		
		$('#s4').before('<div id="nav" class="nav">').cycle({
			fx:     'turnDown',
			speed:  'slow',
			timeout: 0,
			pager:  '#nav'
		});
	});

	function onBefore() {
		$('#output').html("Scrolling image:<br>" + this.src);
		//window.console.log(  $(this).parent().children().index(this) );
	}
	function onAfter() {
		$('#output').html("Scroll complete for:<br>" + this.src)
			.append('<h3>' + this.alt + '</h3>');
	}*/
