$(function() {
	
	$("a.zoom").fancybox({
		//'zoomSpeedIn': 500,
		//'zoomSpeedOut': 500,
		'overlayOpacity': 0.8,
		'hideOnContentClick': false,
		'centerOnScroll': false,
		'imageScale': false
	});
	
//	$(function(){
//	// add drag and drop functionality to fancybox
//	$("#fancy_outer").easydrag();
//	});

	$('#coda-slider-1').codaSlider();
	$('#coda-slider-2').codaSlider();
	$('#coda-slider-3').codaSlider();
	$('#coda-slider-4').codaSlider();
	$('#coda-slider-5').codaSlider();
	$('#coda-slider-6').codaSlider();
	$('#coda-slider-7').codaSlider();
	$('#coda-slider-8').codaSlider();
	
	$("#formID").validationEngine({ 
		 ajaxSubmit: true, 
		 ajaxSubmitFile: "ajaxSubmit.php",  
		 ajaxSubmitMessage: "Thank you for your inquiry! I will contact you shortly.",
		 success :  false, 
		 failure : function() {} 
	});
	
});

	$(document).ready(function() {
		// Add the class 'button' just like in CSS with a dot in front of it
		if ($.browser.msie && $.browser.version < 7) return;

		
		$('.nab,.menu1,.menu2,.menu3,.menu4').append('<span class="hover"></span>').each(function () {
	  		var $span = $('> span.hover', this).css('opacity', 0);
	  		$(this).hover(function () {
	    		$span.stop().fadeTo(500, 1); //Change the number 500 to change the speed of the Fade In
	 		}, function () {
	   	$span.stop().fadeTo(500, 0); //Change the number 500 to change the speed of the Fade Out
	  		});
		});
	});