function include(url) { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = url; document.getElementsByTagName('head')[0].appendChild(e); } function convertVersionString(versionString) { function times(what, count) { return count < 1 ? '' : new Array(count + 1).join(what); } var v = versionString.replace(/_.*|\./g, ''); v = parseInt(v + times('0', 4-v.length)); return versionString.indexOf('_') > -1 ? v-1 : v; } var Cookie = { set: function(c_name, value, exdays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = c_name + "=" + c_value; }, get: function(c_name) { var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x==c_name) { return unescape(y); } } } }; var ua = navigator.userAgent.toLowerCase(); var isIE = /msie/.test(ua) && !/opera/.test(ua); var uaVer = (ua.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]; var isQuirks = isIE && (convertVersionString(uaVer) < convertVersionString("8.0")); if (isQuirks && (Cookie.get("IEWarning") != null)) { var IE6Warn = {}; include('/scripts/ie6warn/lang/fr.js'); include('/scripts/ie6warn/buildie6warn.js'); }