
$(window).load(function() {
	$("div#container2,div#email").slideView();

	$(".next").click(function() {
		jQuery(this).parents('.stripViewer').get(0).moveRight();
		return false;
	});
	$(".prev").click(function() {
		jQuery(this).parents('.stripViewer').get(0).moveLeft();
		return false;
	});
	$('.emailReset').click(function() {
		$('#emailForm :input').val('');
		$('#emailThanks').fadeOut("fast",function() {
			$('#emailForm').fadeIn("slow");
			$(this).parents('.stripViewer').get(0).moveLeft();
		});
		return false;
	});

	$('#emailForm').ajaxForm(function() {
		$('#emailForm').fadeOut("fast",function() {
			$('#emailThanks').fadeIn("slow");
		});
	});
	$('#demoForm').ajaxForm(function() {
		$('#demoFormContainer').fadeOut("fast",function() {
			$('#demoFormThanks').fadeIn("slow");
		});
	});
	$("#demo_submit").click(function(){
		$(":text").attr("disabled", "true");		
	});
});


