jQuery(document).ready(function($){	

	// Scroll to top link
	$('a[href="#top"]').click(function(){
		$('body,html').animate({
			scrollTop: 0
		}, 500);
		return false;
	});	

	// Clear inputs when focussed
	$('input.autoclear').focus(function(){
		var originalText = $(this).val();
		$(this).val('');
		$(this).removeClass('autoclear');
		$(this).blur(function(){
			if ($(this).val()==''){
				$(this).val(originalText);
				$(this).addClass('autoclear');
			}
		});
	});

	// Run Matt Kersley's jQuery Responsive menu plugin (see plugins.js)
	if ($.fn.mobileMenu) {
		$('ol#id').mobileMenu({
			switchWidth: 768,                   // width (in px to switch at)
			topOptionText: 'Choose a page',     // first option text
			indentString: '&nbsp;&nbsp;&nbsp;'  // string for indenting nested items
		});
	}

	// Run Mathias Bynens jQuery placeholder plugin (see plugins.js)
	if ($.fn.placeholder) {
		$('input, textarea').placeholder();		
	}
	
	
});








