localcopy=false;
if(location.href.indexOf('file://')==0)localcopy=true;
//
var nowdate = new Date();                                
var basedate = new Date("January 1, 2000");
var todaysdate = new Date("January 1, 2000");
basedate.setFullYear(nowdate.getFullYear());
bikeprod=108799200.0;
bikespersec=bikeprod/(3600*24*365);
anewbike=1/bikespersec*1000; 
bikesyr = string(Math.round((nowdate.getTime() - basedate.getTime())/1000*bikespersec))+' bicycles have been produced worldwide this year plus ';
function init(){
counter="0";
count();
}
function string(number) {
        var tempnum;

        tempnum= Math.round(number)+" ";
        tempnum= tempnum.substring(0,tempnum.length-1);

        if (tempnum.length >3) {
        tempnum = tempnum.substring(0,tempnum.length-3) + "," + tempnum.substring(tempnum.length-3, 99);
        }
        if (tempnum.length >7) {
        tempnum = tempnum.substring(0,tempnum.length-7) + "," + tempnum.substring(tempnum.length-7, 99);
        }
        if (tempnum.length >11) {
        tempnum = tempnum.substring(0,tempnum.length-11) + "," + tempnum.substring(tempnum.length-11, 99);
        }
        return tempnum;
}
function count(){
counter++
document.forms.probicycle.count.value = bikesyr+counter+' more since you loaded this page.' ;
setTimeout("count()",anewbike)
}
daWin=null;
function popdaWin(x){
if(daWin&&(!daWin.closed)){daWin.focus();daWin.location.href=x}else{daWin=window.open(x,'_daWin','menubar=0,location=0,toolbar=0,personalbar=0,status=0,scrollbars=1,resizable=yes,screenX=50,screenY=10,left=50,top=10,width=400,height=300')
}}

