$(document).ready(function(){
		$.localScroll({
	 	hash:true,
		easing:'easeInOutExpo'
		});
		
		// handle nav selection
		function selectNav() {
		  $(this)
		    .parents('ul:first')
		      .find('a')
		        .removeClass('selected')
		      .end()
		    .end()
		    .addClass('selected');
		}
		$('ul.navigation').find('a').click(selectNav);
		
		// go find the navigation link that has this target and select the nav
		function trigger(data) {
		  var el = $('ul.navigation,').find('a[href$="' + data.id + '"]').get(0);
		  selectNav.call(el);
		}
		
		if (window.location.hash) {
		  trigger({ id : window.location.hash.substr(1) });
		} else {
		  $('ul.navigation a:first').click();
		}
		// JS For clearing input values
		//$("input#s_1").attr("value", "Your Name");
  		//$("input#s_1").toggleVal();
		//$("input#s_2").attr("value", "Your Email");
  		//$("input#s_2").toggleVal();
		//$("textarea#s_3").attr("value", "Your Message");
  		//$("textarea#s_3").toggleVal();
		$("#contact-cform").validate({
			rules: {
				s_1: "required",
				s_2: {
					required: true,
					email: true
				},
				s_3: "required"
			},
			messages: {
				s_1: "Oops! Forgot your name?",
				s_2: "We need your email address! How else would we get back to you?",
				s_3: "Looks like you've got nothing to say? Go on! Tell us how much we can do for you."
			}
		});
	});//end document.ready