$(document).ready(function() {
						   
	// -------------------------------------------------------------------

		// Accordian (jQuery UI) - http://jqueryui.com/demos/accordion/
		
		$("#accordion").accordion({
			collapsible: true,
			cookie: {
				// store cookie for a day, without, it would be a session cookie
				expires: 1
			}	
		});
	
	// -------------------------------------------------------------------
	
		// Carousel (jCarousel) - http://sorgalla.com/projects/jcarousel/
	
		$(".jcarousel").jcarousel({
			animation: 500
			// scroll: 1,
		});
		
	// -------------------------------------------------------------------

		// Lightbox (Colorbox) - http://jacklmoore.com/colorbox/
		
		// Single Image
		$("a.cb_image[rel='colorbox'], a.image[rel='colorbox']").colorbox({photo: true, rel: "nofollow", onLoad: function() {
			$('#colorbox').removeClass();
			$('#colorbox').addClass('cb_image');	
		}});
		
		// Gallery
		$("a.cb_gallery[rel='colorbox']").colorbox({photo: true, onLoad: function() {
			$('#colorbox').removeClass();
			$('#colorbox').addClass('cb_gallery');	
		}});
		
		// Iframe
		$("a.cb_iframe[rel='colorbox']").colorbox({iframe: true, width:"90%", height:"90%", rel: "nofollow", onLoad: function() {
			$('#colorbox').removeClass();
			$('#colorbox').addClass('cb_iframe');
		}});
		
			// Iframe - Email a Friend
			$("a.cb_email_friend[rel='colorbox']").colorbox({iframe: true, width:"600", height:"440", rel: "nofollow", onLoad: function() {
				$('#colorbox').removeClass();
				$('#colorbox').addClass('cb_email_friend');
			}});
			
			// Iframe - Terms and Conditions
			$("a.cb_tc[rel='colorbox']").colorbox({iframe: true, width:"600", height:"440", rel: "nofollow", onLoad: function() {
				$('#colorbox').removeClass();
				$('#colorbox').addClass('cb_tc');
			}});
		
		// Iframe (Refresh Page on Close)
		$("a.cb_iframe_refresh_on_close[rel='colorbox']").colorbox({iframe: true, width:"80%", height:"80%", rel: "nofollow", onClosed: function() { location.reload(true);}, onLoad: function() {
			$('#colorbox').removeClass();
			$('#colorbox').addClass('cb_iframe_refresh_on_close');
		}});
		
			// Iframe - Add to Cart (Refresh Page on Close)
			$(".cb_add_to_cart[rel='colorbox']").colorbox({iframe: true, width:"600", height:"360", rel: "nofollow", onClosed: function() { location.reload(true);}, onLoad: function() {
				$('#colorbox').removeClass();
				$('#colorbox').addClass('cb_add_to_cart');
			}});		
		
		// Inline
		$("a.cb_inline[rel='colorbox']").colorbox({inline: true, innerWidth: 640, rel: "nofollow", onLoad: function() {
			$('#colorbox').removeClass();
			$('#colorbox').addClass('cb_inline');
		}});

		// YouTube
		$("a.cb_youtube[rel='colorbox']").colorbox({iframe: true, innerWidth: 425, innerHeight: 344, rel: "nofollow", onLoad: function() {
			$('#colorbox').removeClass();
			$('#colorbox').addClass('cb_youtube');
		}});
		
	// -------------------------------------------------------------------

		// Rotator - (http://jquery.malsup.com/cycle/)
		$('#rotator') 
		.after('<div id="nav_rotator">') 
		.cycle({ 
			fx:     'fade', 
			speed:  '1000', 
			timeout: '6000', 
			pager:  '#nav_rotator', 
			pause:   '1'
		});

	// -------------------------------------------------------------------

});
