var ieai_ieversion=0;
var ieai_alertfor;
if (! ieai_alertfor) ieai_alertfor=7;
var ieai_text;
var ieai_showie8_val=false;
if (window.ieai_showie8) ieai_showie8_val=window.ieai_showie8;

function ieai_getLang() {
  if (window.ieai_lang) return ieai_lang;
  return navigator.browserLanguage+"";
}
function ieai_getCloseWindow() {
  if (window.ieai_textClose) return ieai_textClose;
  if (ieai_getLang().indexOf('fr')==0) return "Fermer cette fen&ecirc;tre";
  return "Close this window";
}
function ieai_getKnowMore() {
  if (window.ieai_textLink) return ieai_textLink;
  if (ieai_getLang().indexOf('fr')==0) return "En savoir plus";
  return "Learn more about this";
}
function ieai_getTitle(iever) {
  if (window.ieai_textTitle) return ieai_textTitle;
  if (ieai_getLang().indexOf('fr')==0) return "Vous utilisez Microsoft Internet Explorer " + iever;
  return "You are using Microsoft Internet Explorer "+iever;
}
function ieai_getMain() {
  if (window.ieai_textMain) return ieai_textMain;
  if (ieai_getLang().indexOf('fr')==0) return "Ce navigateur internet ne se conforme pas aux standards du web. Il est tr&egrave;s difficile &agrave; programmer et limite s&eacute;v&egrave;rement ce qu'un programmeur peut faire avec une page web. En cons&eacute;quence, ce site peut fonctionner de fa&ccedil;on d&eacute;grad&eacute;e, et pourra sembler bizarre ou cass&eacute;. Ce qui est cass&eacute; c'est le navigateur que vous utilisez! Nous manquons de plus en plus de temps, de patience et de motivation pour supporter ce produit lourd et pesant.";
  return "This web browser is not standards compliant. It is a pain to write a website for and severely limits what a programmer can do with a web page. As a result, this website will work in a degraded fashion, and some part may appear odd or even broken. The broken part is the browser you are using! We are lacking patience, time and motivation  in supporting such a cumbersome product.";
}

function ieai_getRecommend(){
  if (window.ieai_textRecommend) return ieai_textRecommend;
  if (ieai_getLang().indexOf('fr')==0) return "Pour le b&eacute;n&eacute;fice de tous, vous pouvez am&eacute;liorer <i>votre</i> exp&eacute;rience en t&eacute;l&eacute;chargeant un des navigateurs ci-dessous. Ils sont tous gratuits.";
  return "For the benefit of all, <i>you</i> can get a better experience by upgrading to one of the web browsers below. They are free!";
}

function ieai_check() {
  var s = navigator.userAgent;
  if ((pos=s.indexOf("MSIE 6.0"))>-1) ieai_ieversion = 6;
  else
  if ((pos=s.indexOf("MSIE 5."))>-1) ieai_ieversion = 5;
  else
  if ((pos=s.indexOf("MSIE 4"))>-1) ieai_ieversion = 4;
  else
  if ((pos=s.indexOf("MSIE 7"))>-1 && s.indexOf("Trident/4.0")<0) ieai_ieversion = 7;
  else
  if ((pos=s.indexOf("MSIE 8"))>-1 || s.indexOf("Trident/4.0")>-1) ieai_ieversion = 8;
  if (ieai_ieversion>0 && ieai_ieversion <= ieai_alertfor) {
    if (document.cookie && document.cookie.indexOf("ieai=done")>-1) return;
    if (window.ieai_show) window.ieai_show();
    var expdate = new Date();
    expdate.setDate(expdate.getDate()+100);
    document.cookie = 'ieai=done; expires='+expdate.toGMTString()+'; path=/';
	  var html = "";
    var width = "550";
    if (ieai_showie8_val) width = "660";
    html += "<div style=\"width:"+width+"px;background-color:black;filter:alpha(opacity=33);position:absolute;top:120px;left:120px;z-index:10000\" id=\"ieai_warning_shadow\"></div>";
	  html += "<div style=\"z-index:10001;width:"+width+"px;background-color:white;position:absolute;top:100px;left:100px;border:5px solid #2c98e6\" id=\"ieai_warning\">";
	  html += "<table style=\"width:100%\"><tr><td style=\"vertical-align:middle\">";
    html += "<img style=\"width:100px;height:100px\" src=\"http://ieai.pieroxy.net/ie-100.png\"><td style=\"font-family:Arial, Sans-Serif;font-size:14px;padding:5px;color:black\"><div style=\"text-align:center;\"><b style=\"color:black\">"+ieai_getTitle(ieai_ieversion)+"</b></div><br>"+ieai_getMain()+"<br><br>"+ieai_getRecommend()+"</table>";
	  html += "<table style=\"width:100%;border-top:5px solid #2c98e6;\"><tr>";
    html += "<td style=\"text-align:center;vertical-align:bottom\"><a style=\"color:#008\" href=\"http://www.google.com/chrome\"><img style=\"border-width:0;width:100px;height:100px\" src=\"http://ieai.pieroxy.net/chrome-100.png\"><br>Google Chrome</a>";
    html += "<td style=\"text-align:center;vertical-align:bottom\"><a style=\"color:#008\" href=\"http://www.mozilla.com/firefox/\"><img  style=\"border-width:0;width:100px;height:100px\" src=\"http://ieai.pieroxy.net/firefox-100.png\"><br>Mozilla Firefox</a>";
    if (ieai_showie8_val) html += "<td style=\"text-align:center;vertical-align:bottom\"><a style=\"color:#008\" href=\"http://www.microsoft.com/windows/Internet-explorer/default.aspx\"><img  style=\"border-width:0;width:100px;height:100px\" src=\"http://ieai.pieroxy.net/ie8-100.png\"><br>Microsoft IE8</a>";
    html += "<td style=\"text-align:center;vertical-align:bottom\"><a style=\"color:#008\" href=\"http://www.opera.com/download/\"><img  style=\"border-width:0;width:100px;height:88px\" src=\"http://ieai.pieroxy.net/opera-100.png\"><br>Opera</a>";
    html += "<td style=\"text-align:center;vertical-align:bottom\"><a style=\"color:#008\" href=\"http://www.apple.com/safari/\"><img  style=\"border-width:0;width:100px;height:111px\" src=\"http://ieai.pieroxy.net/safari-100.png\"><br>Apple Safari</a>";
    html += "</tr></table>";
	  html += "<div style=\"border-top:5px solid #2c98e6;text-align:center;padding:20px\"><a style=\"color:#008\" href=\"#\" onClick=\"document.getElementById('ieai_warning').style.display='none';document.getElementById('ieai_warning_shadow').style.display='none';if (window.ieai_hide) window.ieai_hide();return false;\">"+ieai_getCloseWindow()+"</a><br><br><a style=\"color:#008\" href=\"http://ieai.pieroxy.net/\" target=\"_blank\">"+ieai_getKnowMore()+"</a></div>";
	  html += "</div>";
    document.write(html);
		try {
		  document.getElementById('ieai_warning_shadow').style.height=document.getElementById('ieai_warning').clientHeight+"px";
		} catch (e) {}
	}
}

ieai_check();
