

/**
 * Closure oo0 !_! 0oo
 */
(function() {
	var window = this,
			document = window.document,
			write = 'write';

	if (!window.ev_pub) {
		// ----- Smart Ad Server
		// master flag
		var sas_master_flg = 1,
				// timestamp
				sas_ts = Math.round(Math.random() * 10000000000);

		// ----- constitution du package 'pub'
		window.ev_pub = {
			sas: {
				load: function(sas_pageid, sas_formatid, sas_target) {
					var sas_master;
					if (sas_master_flg === 1) {
						sas_master_flg = 0;
						sas_master = 'M';
					}
					else {
						sas_master = 'S';
					}
					document[write]('<SCR' + 'IPT ID="sasScript' + sas_formatid + '" SRC="http://www.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_ts + '/' + window.escape(sas_target || '') + '?"><\/SCR' + 'IPT>');
				}
			}
		};

		// Compatibilité
		window.SmartAdServer = window.ev_pub.sas.load;
	}
}());

