(function($){
	
$.widget("hereu.pCarouselHome", $.hereu.pCarousel, {
	options:{},
	element: null,

	_resizeCarousel: function(){
		$.hereu.pCarousel.prototype._resizeCarousel.apply(this);
		
		if(this.scrollable.attr("scrollWidth") <= this.element.width())
			$(".pc-leftBtn,.pc-rightBtn", this.element).hide(0)
		else
			$(".pc-leftBtn,.pc-rightBtn", this.element).show(0)
	},

	_beforeCreate: function(){},
	_afterCreate: function(){},
	
	_createElement: function(origElm){
		
	},

	_placeElms: function(){
		var me = this;
		$(".ph-element", this.element).each(function(){
			$(this).appendTo( me.carousel );
		});
	}

});

$.widget("hereu.carouselList", $.hereu.pCarousel, {
	options:{},
	element: null,

	resize: function(){},

	_beforeCreate: function(){},
	_afterCreate: function(){},
	
	_createElement: function(origElm){
		
	},
	
	_placeElms: function(){
		var me = this;
		$(".Nota", this.element).each(function(){
			$(this).appendTo( me.carousel );
		});
	},
	
	_onCreateRightBtn: function(elm){return elm.text(">");},
	_onCreateLeftBtn: function(elm){return elm.text("<");;}
});

}(jQuery));
