// remap jQuery to $
(function($){
	
	// Copyright script - found in the plugins.js file
	// To use, replace the '#copyright' id with the
	// id of the element that holds your copyright date
	$('#date').copyright();
	
	// Email defuscator - found in the plugins.js file
	$('.email').defuscate();
	
	$('.highlight a').click(function() {
	   var elementClicked = $(this).attr("href");
	   var destination = $(elementClicked).offset().top;
	   $("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination-20}, 500 );
	   var href= $(this).attr("href");
	   $(href).animate({ backgroundColor: "#FFC"}, 1000).delay(2000).animate ({ backgroundColor: "#FFF"}, 1000);
	   return false;
	});	
	$('a.inpage').click(function() {
	   var elementClicked = $(this).attr("href");
	   var destination = $(elementClicked).offset().top;
	   $("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination-20}, 500 );
	   return false; 
	});
	
	$("#form, #form1").height($(document).height());
	
	// User defined functions go here
	
})(this.jQuery);
