function init()
{
	var lock = false;
	var box = null;

	wst.get('#disco a').on('click', function(evt){
		evt.preventDefault();
		
		if(!lock)
		{
			lock = true;
			var index = this.href.match(/\d\.\d+$/)[0];
			var e = wst.get(this);
			var txt = e.text();
			e.append('<span> - Acessando arquivo. Aguarde...</span>');

			wst.ajax.post('/scripts/server/ajax/song.php', 'i100=b326b5062b2f0e69046810717534cb09&index=' + index, {
				onLoad : function(req){
					if(req.success)
					{
						if(box == null)
						{
							App.overlay.e = wst.get('#overlay');
							box = App.box('', 300);
						}
						
						var song = wst.get('song', this.responseXML);
						box.E[0].innerHTML = '<h2>' + song.attr('title') + ' <a href="" title="Fechar">[ FECHAR ]</a></h2><div>' + song.text().replace(/\n/gm, '<br />') + '</div>';
						box.lookup('div').css({
							'overflow' : 'auto',
							'height' : '400px',
							'width' : '96%',
							'margin-top' : '10px'
						});
						box.lookup('a').on('click', function(evt){
							evt.preventDefault();
							App.overlay.enable(true);
							App.overlay.hide();
							lock = false;
						});

						App.overlay.enable(false);
						App.overlay.show();
					}
					else
					{
						lock = false;
						wst.ajax.parseResponse(req);
					}

					e.content(txt);
				}
			});
		}
	});
}
