//** Added by : require
if(window.attachEvent){
	window.attachEvent('onload', function(){
		var imgRelativePath = 'images/';
		var messages = {
			'fr': '<b>Attention</b>, votre navigateur n\'est pas &agrave; jour. Pour plus de s&eacute;curit&eacute; et de confort, nous vous conseillons d\'installer <a style="color: blue; text-decoration: underline;" href="http://www.microsoft.com/france/windows/downloads/ie/getitnow.mspx" target="_blank">Internet Explorer 7 ou 8</a> ou <a style="color: blue; text-decoration: underline;" href="http://www.mozilla-europe.org/fr/firefox/" target="_blank">Firefox 3</a>.',
			'default': '<b>Attention</b>, votre navigateur n\'est pas à jour. Pour plus de s&eacute;curit&eacute; et de confort, nous vous conseillons d\'installer <a style="color: blue; text-decoration: underline;" href="http://www.microsoft.com/france/windows/downloads/ie/getitnow.mspx" target="_blank">Internet Explorer 7 ou 8</a> ou <a style="color: blue; text-decoration: underline;" href="http://www.mozilla-europe.org/fr/firefox/" target="_blank">Firefox 3</a>.'
		};

		var language = navigator.userLanguage;
		if(!language){language = navigator.systemLanguage;}
		var text = messages[language];
		if(!text){text = messages['default'];}

		var regExp = / MSIE ([0-9])\./
		var res = regExp.exec(navigator.appVersion);

		var MSIEVersionNumber = parseInt(res[1]);

		if(MSIEVersionNumber < 7){
			var root = document.createElement('DIV');
			root.style.borderBottom = '1px rgb(113, 111, 100) solid';
			root.style.background = 'rgb(255, 255, 225)';
			root.style.zIndex = '1000';
			root.style.width = document.body.parentNode.clientWidth + 'px';
			root.style.fontSize = '11px';
			root.style.fontFamily = 'Tahoma';
			root.style.textAlign = 'left';
			root.style.paddingLeft = '3px';
			root.style.paddingRight = '3px';

			/*
			root.style.position = 'absolute';
			root.style.top   = '0';
			root.style.left  = '0';
			*/

			root.innerHTML = '<div style="border-bottom: 1px rgb(157, 157, 161) solid;"><img style="float: right; cursor: pointer;" onclick="this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);" src="' + imgRelativePath + 'cross.gif" alt="" /><img src="' + imgRelativePath + 'icon.jpg" alt="" style="vertical-align: middle;"/>' + text + '</div>';

			document.body.insertBefore(root, document.body.firstChild);

			window.ie6banner = root;

			window.attachEvent('onresize', function(){
				window.ie6banner.style.width = document.body.parentNode.clientWidth + 'px';
			});
		}
	});

}
