window.addEvent('load', function() {
	/**
	 * We take the first input with this class we can find ...
	 */
	var input = $('demo-filedata');
 
	/**
	 * Simple and easy
	 *
	 * swf: the path to the swf
	 * container: the object is embedded in this container (default: document.body)
	 *
	 * NOTE: container is only used for the first uploader u create, all others depend
	 * on the same swf in that container, so the container option for the other uploaders
	 * will be ignored.
	 *
	 */
	var upload = new FancyUpload(input, {
		swf:  'jsClass/Swiff.Uploader.swf',
		queueList: 'demo-queue'
	});
 
	/**
	 * We create the clear-queue link on-demand, since we don't know if the user has flash/javascript.
	 *
	 * You can also create the complete xhtml structure thats needed for the queue here, to be sure
	 * that its only in the document when the user has flash enabled.
	 */
	$('demo-status').adopt(new Element('a', {
		'href': '#',
		'events': {
			'click': (function(e) {
				e.stop();
				upload.clearList(false);
			}).bindWithEvent()
		}
	}).setHTML('Limpar Completos'));
	
	
 
});


