
var head, body;

(function ($, window, document, undefined) {

	if (typeof $ === 'undefined') {
		//  jQuery isn't available - abort!
		return;
	}

	//	--	Instantiate just ONE jQuery object, use this to find other elements
	//		rather than creating a new jQuery object for each selector
	$.root = new $.prototype.init(document);

	//	--	Make Rocket Go Now
	$.root.ready(function () {

		//	--	Define head and body elements
		head = $.root.find('head');
		body = $.root.find('body');

		//	--	Add "js" class to body for styling
		body.addClass('js');

		//	--	Invoke plugins, yo -> body.find('#element').functionName();

        body.find('#client_slider').jcarousel({
            auto: 3,
            scroll: 3,
            visible: 3,
            wrap: 'circular'
        });

        body.find('a.lightbox').click(function() {

			var videoID = $(this).attr('rel');

			$.fn.colorbox({
				href:"/incs/ajax/video.php?id="+videoID,
				innerWidth: 580,
				innerHeight: 345,
				opacity: .6,
				open: true,
				iframe: false
			});
			return false;
		});


	});





	//	--	Custom Plugins
	(function () {


	}());
	//	--	Custom Plugins DONE, yeah?

}(jQuery, this, this.document));
//	--	Good.. Can you say it faster?

