/*
 * EM TOboclic MObiclic
 * em_tomo.js
 *
 * Audric Leroy
 *
 */

$(document).ready(function () {

	// POUR L'AFFICHAGE COMPLETs
	$('#emtomoModal a.tomo').click(function (e) {
		e.preventDefault();
		// Récupération de id rubrique et de l'id module
		var tableau=this.id.split('##');

		//prod
		//$.modal('<iframe src="http://milan-ressources.com/multimedia/MODULES2/'+tableau[0]+'/index.php?modulePlay='+tableau[1]+'" id="iframeTest" name="iframeTest" height="630" width="830" scrolling="no" frameborder="0" style="border:0" />');
		//tok
		$.modal('<iframe src="http://milan-ressources.com/multimedia/MODULES2/'+tableau[0]+'/index.php?modulePlay='+tableau[1]+'&module='+tableau[0]+'&num_abo='+tableau[2]+'" id="iframeTest" name="iframeTest" height="630" width="830" scrolling="no" frameborder="0" style="border:0" />');

	});
	
	// POUR LE BOUTON
	$('#boutonPlay button').click(function (e) {
		e.preventDefault();
		// Récupération de id rubrique et de l'id module
		var tableau=this.id.split('##');
		//$.modal('<iframe src="http://milan-ressources.com/multimedia/MODULES2/'+tableau[0]+'/index.php?modulePlay='+tableau[1]+'" id="iframeTest" name="iframeTest" height="630" width="830" scrolling="no" frameborder="0" style="border:0" />');
		
		$.modal('<iframe src="http://milan-ressources.com/multimedia/MODULES2/'+tableau[0]+'/index.php?modulePlay='+tableau[1]+'&module='+tableau[0]+'&num_abo='+tableau[2]+'" id="iframeTest" name="iframeTest" height="630" width="830" scrolling="no" frameborder="0" style="border:0" />');
	});
});
