function Is() {
    var agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns   = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2  = (this.ns && (this.major == 2));
    this.ns3  = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4  = (this.ns && (this.major >= 4));
    this.ns6  = (!document.all && document.getElementById);
    this.ie   = (agent.indexOf('msie') != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.ie5  = (document.all && document.getElementById);
    this.op3  = (agent.indexOf('opera') != -1);
   }

function affiche(nombre){
	nombrestring ="<font size='+1'>";
	var j=0;
	var i=0;
	while (nombre > 1)	 { 
	   nombrestring = (Math.round(nombre-0.5) % 10) + nombrestring;
	   nombre= nombre / 10;
	   j++;
	   if (nombre > 1 && j==3) { 
		  nombrestring = " " + nombrestring; 
		  j=0;
		  }
	   i++;
	   }
	nombrestring +="</font>";
	eval(doc + "'wpop'" + txt + "nombrestring"); 
   }

function compute(){ 
  var now = new Date();                                
  var newyears = new Date("January 1, 2000");
  var todaysdate = new Date("January 1, 2000");
  var may4 = new Date("May 4, 1999");
  var currentPop;
  var BirthsInYear;

  newyears.setFullYear(now.getFullYear());
  secsSince = Math.round(now.getTime() - newyears.getTime())/1000;
  secsSincePop = Math.round(now.getTime() - may4.getTime())/1000;
          
  todaysdate.setMonth(now.getMonth());
  todaysdate.setDate(now.getDate());
  todaysdate.setFullYear(now.getFullYear());
  secsToday = (now.getTime()-todaysdate.getTime())/1000;
 // population
  current_population = secsSincePop * 2.69 + 5965370016;                          
  affiche(current_population);
 // recall 
  timerID =setTimeout("compute()",10000);
  }
   
var is = new Is();
//--------------------------------------------------------------------------------------//
// Variables pour la compatibilité Cross-Browser                                        //                                                             //
//--------------------------------------------------------------------------------------// 
if(is.ns6 || is.ie5) {
    doc = 'document.getElementById(';
    sty = ').style.color=';	
    styb = ').style.backgroundColor=';
	txt = ').innerHTML=';
 } else if(is.ns4) {
    doc = 'window.document.';
    sty = 'style.color=';	
    styb = 'style.backgroundColor=';
	txt = ').innerHTML=';
} else if(is.ie4) {
    doc = 'document.all[';
	sty = ']style.color=';
    styb = ']style.backgroundColor=';
	txt = ').innerHTML=';	
} else {
    alert('Attention, votre Browser est trop ancien pour profiter pleinement de ce site \n Allez vite chez www.microsoft.com ou www.netscape.com chercher quelque chose de plus récent...\nDans les deux cas, tout est gratuit');
}  