//FG2

//
//-- form -----------------------------------------------------------//
// validate - FG1 //
function ValidateEvents() {
	var status = false;		
	var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
	if (document.myform.email.value.search(emailRegEx) == -1) {
		alert("Please enter a valid email address.");
	} else {
		alert("Thank you! Your email has been added.");
		status = true;
	}
	return status;
}
//-- contentswitch -----------------------------------------------------------//
// switch - FG2 //
function FG2_switch_content_to(target){
	$('#signup').stop(true, true).animate({opacity: 0.0}, 500, function(){	$('#signup').css({ display: "none"});	});
	$('#video').stop(true, true).animate({opacity: 0.0}, 500, function(){	$('#video').css({ display: "none"});	});
	$('#shops').stop(true, true).animate({opacity: 0.0}, 500, function(){	$('#shops').css({ display: "none"});	});
	$('#credits').stop(true, true).animate({opacity: 0.0}, 500, function(){	$('#credits').css({ display: "none"});	});
	$('#contact').stop(true, true).animate({opacity: 0.0}, 500, function(){	$('#contact').css({ display: "none"});	});
	
	setTimeout(function(){
	    $(target).css({ display: "block"});
		$(target).stop(true, true).animate({opacity: 1.0}, 500);
	}, 600);
}
