BooeepMediaListings = {
	
	// setup object params
	params: {
		mediaType:		'video',
		mediaUrl:		'http://media.booeep.com',
		maxFavShown:	3,
		container:		'#videos_gallery'
	},

	init: function( params )
	{
		var me = this;
	
		// extend params with user-defined params
		if ( params ) {
			$.extend( me.params, params );
		}
		
		// loop through items and add event handlers
		$(me.params.container).find('.listing_item')
			.each( function() {
				var item = $(this);
				
				// setup the share icon
				item.find('.share').click( function() {
					FavoritesWidget.shareItem( item[0] );
					return false; // to counter the href
				} );
				
				// setup the add icon
				item.find('.add').click( function() {
						FavoritesWidget.addToFavorites( item[0] );
						return false; // to counter the href
					return false;
				} );
			} );
	}
};
