function play(id_tune)
{
	//alert("player.php5?id_tune="+ id_tune);


	//window.open("player.php5?id_tune="+ id_tune , "Interaction player", "status=0,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=0,height=320,width=300");
	//window.open('player.php5?id_tune='+ id_tune , "'Interaction player'", "'status=0,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=0,height=320,width=300'" );	
	var urlPopup = 'player.php?id_track='+ id_tune;
	var titrePopup = 'Namaste';
	var attribsPopup = 'status=0,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=0,height=320,width=300';
	//alert (urlPopup + ", " + titrePopup + ", " + attribsPopup);
	
	window.open(urlPopup, titrePopup, attribsPopup);	
}

function FlashMovie(src, movie, width, height, version, quality, scale, salign, menu, bgcolor, flashvars)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0' width='" +width+ "' height='" +height+ "' id='" +movie+ "'>");
	document.write("<param name='movie' value='" +src+ "' />");
	document.write("<param name='FlashVars' value='" +flashvars+ "'>");
	document.write("<param name='quality' value='" +quality+ "' />");
	document.write("<param name='scale' value='" +scale+ "' />");
	document.write("<param name='salign' value='" +salign+ "' />");
	document.write("<param name='menu' value='" +menu+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='" +src+ "' swLiveConnect='true' menu='" +menu+ "' FlashVars='" +flashvars+ "' quality='" +quality+ "' scale='" +scale+ "' salign='" +salign+ "' bgcolor='" +bgcolor+ "' wmode='transparent' width='" +width+ "' height='" +height+ "' name='" +movie+ "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}



window.addEvent('domready', function() {
	// You can skip the following two lines of code. We need them to make sure demos
	// are runnable on MooTools demos web page.
	if (!window.demo_path) window.demo_path = '';
	var demo_path = window.demo_path;
	// --
	$('myForm').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('log_res').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
	});
});