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(document).ready(function() {
								
	$("a[href='http://www.warhorsemartialarts.com/signupform.php']").colorbox({width:"500", height:"80%", iframe:true});
								
    jQuery('#mycarousel').jcarousel({
        auto: 15,
		scroll: 1,
		visible: 1,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
	jQuery("a[title='Sign Up']").colorbox();
	
	
	
});

function myjavascriptf() {
			var url = 'index.php?action=home'; 
			window.location.href = url;
			
	$("#cover").css("display","none");
	$("#flashid").css("display","none");
	$("#content").css("display","block");
	$("#footer").css("display","block");
	$("#column-left").css("display","block");
	$("#column-mid").css("display","block");
} 

$("#home").click(function(event){
event.preventDefault(); //stop default browser behaviour
myjavascriptf();
});