function isValidEmailAddress(emailAddress) {
var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return pattern.test(emailAddress);}

$(document).ready(function() {	

	$('#menu ul li a').tipsy({gravity: 'n'});	
	
	$('#outer-wrap img#spangle').hide().fadeIn(50000);
	
	var s = $("form input#email");
	var stxt = 'Enter email address...';
	s.val(stxt);
	s.focus(function() { if(s.val() == stxt) { s.val(""); } });

	
	$('#bottom-scroller').jcarousel({auto: 5, wrap: "both", animation: 3000});
	
	$('#lower').jcarousel({auto: 3, wrap: "both", animation: 1250});
	
	$("a#offer, .nb").fancybox({overlayShow: true, overlayOpacity: 0.77, enableEscapeButton: true, overlayColor: '#000',titleShow:true  }); 

	$('img.folio-img, #footer-icons-wrap a img').hover(function() {
		$(this).stop().animate({ opacity: 0.8 }, 500);
	}, function() {
		$(this).stop().animate({ opacity: 1.0 }, 500);
	});
	
	

	

});