jQuery(document).ready(function($) {

/* Cycle */
	$('#slideshow').cycle({timeout:6000});

/* PaRSS For Homepage/Side Blog Feed */
/*	$("#rss").PaRSS(
		"url",	// rss feed url (required)
		2,		// number of items (optional)
		"M jS g:i a",	// date format (optional)
		"shortblogs"         // display format (optional)
	);*/

/* PaRSS For Blog */
	$("#BlogPage").PaRSS(
		"http://customresourcesfundraising.mybigcommerce.com/rss.php?action=newblogs&type=rss",	// rss feed url (required)
		10,		// number of items (optional)
		"M jS g:i a",	// date format (optional)
		"bcblog"         // display format (optional)
	);

/*  */
	$('#GreatSellPanel ul').bxSlider({
		displaySlideQty: 4,
		moveSlideQty: 4             
        });
		
/* bxSlider Featured Products */
/*	$('#HomeFeaturedSlider').bxSlider({
		displaySlideQty: 4,
		moveSlideQty: 4             
        });*/
		
/* bxSlider New Products */
/*	$('#HomeNewSlider').bxSlider({
		displaySlideQty: 4,
		moveSlideQty: 4             
        });*/
		
		
/* Misc */
	$('.page .Content, .category .Content, .product .Content, .account .Content').before("<div id='Frog'></div>");

	// General form cleanup
	$('.ContactButton').addClass('button');
	
	// Add CurvyBox to Create Account //
	$('.createaccount .Textbox, .createaccount select, .createaccount .JSHidden, #EditAccountForm .Textbox, #ShippingAddressForm .Textbox, #ShippingAddressForm select').addClass('CurvyBox');
	
	// Add CurvyBox to Product Page //
	$('#qty_, #text_qty_, .productAttributeFluidWidth, .fileInput label input, .dateselector select, .productOptionViewSelect select, .productOptionViewRectangle ul li label, .productAttributeConfigurableEntryNumbersOnlyText input').addClass('CurvyBox');
	
	// Add CurvyBox to Contact Form //
	$('#ContactForm .Textbox, #ContactForm textarea').addClass('CurvyBox');
		
	// Checkout Overhaul //
	$('.checkout #CreateAccountButton, .checkout #LoginButton, .checkout .billingButton').addClass('button');

// Enable to hide thumbnail on products with only one image */
	var ProductThumbs = $('.ProductTinyImageList ul li').size();
		if (ProductThumbs <= 1) {
			$('.ProductTinyImageList').hide();
		};
});
