function SignupSuccessful(data)
{
	// if there is no data sent back from the ajax call, that means that 
	// everything was successful.
	if(data == '')
	{
		$("#signup").html("<h4>Thank you for signing up. You will begin receiving usefull business resources and information from BOSS shortly.</h4>");
	}
}

$(function() {
	
	$(".BOSS-video").colorbox({iframe:true, innerWidth:425, innerHeight:344});

	$("#btnSignupSubmit").bind("click", function(){
											this.style.display="none";
											//$("#txtSignupRegistering").get(0).style.display="block";
											$("#signup").html("You are now registered to receieve special offers and updates from BOSS!");
											//$.post("/ajax/offerSignup", $($("#frmSignup").get(0)).serializeArray(), SignupSuccessful);
											return false;
										});
	
	function mycarousel_initCallback(carousel)
	{
	    // Disable autoscrolling if the user clicks the prev or next button.
	    carousel.buttonNext.bind('click', function() {
	        carousel.startAuto(0);
	    });

	    carousel.buttonPrev.bind('click', function() {
	        carousel.startAuto(0);
	    });

	    // Pause autoscrolling if the user moves with the cursor over the clip.
	    carousel.clip.hover(function() {
	        carousel.stopAuto();
	    }, function() {
	        carousel.startAuto();
	    });
	};
	
	jQuery('#mycarousel').jcarousel({
		auto: 3,
		size: 8,
		scroll: 1,
        wrap: 'circular',
        initCallback: mycarousel_initCallback
    });

	$('#quotes').innerfade({ 
		animationtype: 'fade', 
		speed: 750, 
		timeout: 5000, 
		type: 'sequence', 
		containerheight: '140px' 
	});
});

