/* 
* --__(JTube Player)__--
*
*
* VERSION: 1.0 LAST UPDATE: 06.12.2011
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
* 
* Create by Tommy Thierry 
*/
(function($) {
	
	// Global Var
	var undefined;	
	var settings;
	
	
	
	//Method 
	var methods = {
		init : function( options ) 
		{
			settings = $.extend( 
				{
      				'width_video':		600,
      				'height_video':		380,
					'video_list':		null,
					'error_flash':		'You need   \
										<a href="http://get.adobe.com/flashplayer/" target="_blank"> \
										<b>Flash player 8+</b></a> \
										<br />and JavaScript enabled to view this video.',
					'auto_play':		false
    			}, options);
		}
	};

  
    $.fn.jtube_player = function(method) 
	{	
		if ( methods[method] ) 
		{
			return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
		} 
		else if ( typeof method === 'object' || ! method ) 
		{
			return methods.init.apply( this, arguments );
		} 
		else {
			$.error( 'Method ' +  method + ' does not exist on Jtube_player' );
		} 		
	};
})(jQuery);

