
// wpgCarousel plugin definition
$.fn.wpgCarousel = function(options) {
	var defaults = {
		wrap: 'both',
		scroll: 1,
		auto: 4,
		vertical:1,
		initCallback: fnCreateTabs,
		itemVisibleInCallback: {
			onBeforeAnimation: syncTabs
		}
	};
	
	// Extend our default options with those provided.
	var opts = $.extend(defaults, options);
	
		/*create tabs*/
	function fnCreateTabs(carousel) {
	}
	
	/*synchronize tabs*/
	function syncTabs(carousel, li, idx, action) {
	}
	
	// Our plugin implementation code goes here.
	return this.each(function() {
		var $this = $(this);
		$this.addClass('wpg-carousel-skin-tabbed');
		/*init carousel*/
		$('.wpg-carousel-skin-tabbed').find('ul').jcarousel(opts);
		

	});
};

$(document).ready(function() {
	$('.media-overview-carousel').wpgCarousel({buttonPrevHTML:null, buttonNextHTML:null});
});
