/*
#rtslib.inc /rtslib/DOM.js
#rtslib.inc /rtslib/player.js
#rtslib.inc /rtslib/audio.js
#rtslib.inc /rtslib/lightbox.js
#rtslib.inc /rtslib/scrollers.js
*/

function log(s) {
	var l = $('#debug .content');
	if (l.length > 0) {
		l.html(l.html() + s + '<br>');
		l.parent().scrollTop(l.height());
	}
	if (this.console && typeof console.info != 'undefined')
		console.info(s);
}

if (typeof RTS != 'object')
	RTS = {};

RTS.init = function(s) {
	var me = this;
	if (typeof s != 'string')
		return;

	if (s.indexOf('/') != -1)
		s = s.substring(s.lastIndexOf('/')+1, s.length);
	if (s.indexOf('.') != -1)
		s = s.substring(0, s.lastIndexOf('.'));

	o = RTS[s];
	if (typeof o == 'undefined')
		return;
	if (typeof o.init == 'function')
		o.init();
	else if (typeof o == 'function')
		o();
    
    // CMS-8301 - Activer cache par défaut 
    $.ajaxSetup({
        cache: true
    });
};


