if (typeof(byId) == "undefined") {
	window.byId = function(eltId) {
		return document.getElementById(eltId);
	}
}

var Training = {

	Show: function(ctrlId) {

		// var pnlId = ;
		$("#" + ctrlId + "_pnlTraining").modal();
		byId('simplemodal-container').style.height = 'auto';

	},


	ShowMedia: function(ctrlId, mediaPlayerCommand) {

		eval(mediaPlayerCommand);
		// $("#" + ctrlId + "_pnlMediaPlayer").modal();

		// Hack/bodge: In Opera, the html command-controls don't work at first. This does the trick.
		eval(mediaPlayerCommand);

	}

}
