/* 	Custom Javascript for Project 						*/
/*											*/
/* 	The include function is available here to attach libraries .	*/
/* 	Example:									*/
/* 	include('js/widget.js'); 							*/	



/* JQuery Example */

/*
$(document).ready(function() {
	
	//JQuery Magic Goes Here
	
});
*/


/* Traditional JavaScript Example */
/* 
function myFunctionHere(){

}

*/

/*
$(document).ready(function() {
	
	$('#header-bg').cycle()
	
});
*/

	$(document).ready(function(){
		// Rewrite hrefs and actions if Javascript is enabled
		$('form.jscheck').attr('action','https://meadowcreature.foxycart.com/cart');
		$('a.jscheck').click(function(){
			setTimeout('fc_tb_remove()', 1500);
		}).each(function(){
			// Replace only the important part of the href, not the entire thing
			// Replace the "javascript-is-required.php" with the piece of the href that you want to replace
			var href = $(this).attr('href');
			var href_cart = href.replace('javascript-is-required.php','broadfork-options.php');
			$(this).attr('href',href_cart);
		});
	});

