$(document).ready(function() {
	if ($('div.seenOn').length) {
		$("div.seenOn").smoothDivScroll({
			autoScroll:'always',
			autoScrollDirection:'endlessloop'
		});
	}

	$('input[name=fields_email]').each(function() {
		$(this).val('Insert Email Address').attr('color', $(this).css('color'));
	}).focus(function() {
		if (($(this).val() == 'Insert Email Address') || ($(this).val() == 'Invalid Email Address'))
		{
			$(this).val('').css({
				color:$(this).attr('color'),
				fontWeight:'normal'
			});
		}
	}).blur(function() {
		if (!$(this).val()) //if (!$(this).val().match(/.*?\@.*?\..*/))
		{
			$(this).val('Insert Email Address').css({
				color:$(this).attr('color'),
				fontWeight:'normal'
			});
		}
	}).parents('form').submit(function() {
		if (!$(this).find('input[name=fields_email]').val().match(/.*?\@.*?\..*/))
		{
			$(this).find('input[name=fields_email]').blur().val('Invalid Email Address').animate({
				color:'#ff0000',
				fontWeight:'bold'
			}, 250, 'linear', function() {
				$(this).animate({
					color:'#800000'
				}, 250, 'linear', function() {
					$(this).animate({
						color:'#ff0000'
					}, 250, 'linear');
				});
			});
			return false;
		}
	});
});