
// Évite que l'utilisation de document.write après le chargement du DOM efface la page
document._write || (function() {
	var jqed = false
	,action = function(ctnt) {
		try { document._write(ctnt);}
		catch(e) {}
	};
	document._write = document.write;
	document.write = function(content) {
		if(typeof jQuery == 'function' && !jqed) {
			jqed = true;
			jQuery(window).load(function() {
				action = function(ctnt) {
					document.body.innerHTML+= ctnt;
				};
			});
		}
		action(content);
	};
})();

var OAS_AD = function(pos) {
	var reg = new RegExp(pos+'(,|$)');
	if(typeof OAS_RICH == 'function' &&
	  typeof OAS_listpos == 'string' &&
	  reg.test(OAS_listpos)) {
		try {
			OAS_RICH(pos);
		} catch(e) {}
		OAS_listpos = OAS_listpos.replace(reg, '');
	}
};

window.OAS_url || (
typeof OAS_sitepage == 'string' &&
typeof OAS_listpos == 'string' &&
(function() {
	window.OAS_url ='http://pub.ftv-publicite.fr/RealMedia/ads/'
		+'adstream_mjx.ads/'
		+ OAS_sitepage
		+'/1'
		+ (Math.random()+'').substring(2, 11)
		+'@'
		+ OAS_listpos;

	document.write('<script type="text/javascript" src="' + OAS_url + '"><\/script>');
})());