$(document).ready(function(){

//	---------------------------------------------------		
//	add shadows to buttons
//	---------------------------------------------------		
	$('a.button').each(function()
	{
		var currHtml 	= $(this).html();
		//	
		var code		= '';
		//	
		var spanArrow 	= '<span class="arrow">&nbsp;</span>';	
		code += spanArrow;
		//
		var spanShadow 	= '<span class="link-shadow">&nbsp;</span>';	
		code += spanShadow;
		//	
		$(this).html(currHtml + code);
	});
//	---------------------------------------------------		
//	animate form borders
//	---------------------------------------------------		
	$('.content input, .content textarea, .content select').focus(function() {
	  $(this).toggleClass("activeField");
	});

	$('.content input, .content textarea, .content select').blur(function() {
	  $(this).toggleClass("activeField");
	});
//	---------------------------------------------------		
//	form checking
//	---------------------------------------------------		
	//	check fields for errors
	$('form .checkNotEmpty').blur(function() 
	{
		if (isNotEmpty($(this).val(), $(this).attr('rel'), $(this).attr('id'))){}
	});
	$('form .checkIsEmail').blur(function() 
	{
		if (isEmail($(this).val(), $(this).attr('rel'), $(this).attr('id'))){}
	});
//	$('form .makeMeADatePicker').blur(function() 
//	{
//		if (isNotEqualTo($(this).val(), 'Select...', $(this).attr('rel'), $(this).attr('id'))){}
//	});
	$('form .checkNot0').blur(function() 
	{
		if (isNotEqualTo($(this).val(), '0', $(this).attr('rel'), $(this).attr('id'))){}
	});
//	---------------------------------------------------		
//	---------------------------------------------------		
//	slideshow for featured events
//	---------------------------------------------------		
	$('.banner-image').cycle(
	{
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		delay: 1000,
		timeout: 8000
	});
//	---------------------------------------------------		
});

