/*
 * flowplayer.playlist 3.0.6. Flowplayer JavaScript plugin.
 * 
 * This file is part of Flowplayer, http://flowplayer.org
 *
 * Author: Tero Piirainen, <info@flowplayer.org>
 * Copyright (c) 2008 Flowplayer Ltd
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * SEE: http://www.opensource.org/licenses
 * 
 * Date: 2009-02-16 06:51:28 -0500 (Mon, 16 Feb 2009)
 * Revision: 1454 
 */

$(function() {
	
	// setup player without "internal" playlists
	$f("player", "/swf/flowplayer-3.2.2.swf", {
		clip: { baseUrl: 'http://files.ichiigai.net', autoBuffering: false, autoPlay: false },
		 play: { opacity: 0 },
		canvas: { 
          backgroundGradient: 'none', 
          backgroundColor: '#ffffff;', 
        },
		 plugins: { 
          audio: { url: '/swf/flowplayer.audio-3.2.0.swf'},
          controls: { url: '/swf/flowplayer.controls-3.2.1.swf', 
      backgroundGradient: 'none',
      progressColor: '#000000',
      volumeSliderColor: '#ffffff',
      volumeColor: '#000000',
      durationColor: '#e8e8e8',
      progressGradient: 'medium',
      buttonColor: '#000000',
      tooltipTextColor: '#333',
      backgroundColor: 'rgba(255, 255, 255, 1)',
      sliderColor: '#bdbdbd',
      bufferColor: '#828282',
      volumeSliderGradient: 'none',
      time:false,
      fullscreen:false,
      autoHide:{"enabled":false},
      borderRadius: '0px',
      buttonOverColor: '#000000',
      bufferGradient: 'none',
      tooltipColor: '#ffffff',
      sliderGradient: 'none',
      height: 20,
      opacity: 1.0



 }, 
          }
		
	// use playlist plugin. again loop is true
	}).playlist("#myplaylist", {loop:true, autoBuffering: false});
	
	
	
});

/* adds new entry into playlist */
function newEntry() {
	
	// uses normal jQuery append method. no additional coding
	$("#myplaylist").append(
		'<a href="KimAronson-TwentySeconds73213.flv">' +
			'Dynamically added playlist entry' +
		'</a>'
	);		
}

/* standard jQuery method to remove last entry from the playlist */
function removeEntry() {
	$("#myplaylist a.first").remove();		
}


