function getCookie(Name) {
   var search = Name + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search) 
      if (offset != -1) { // if cookie exists 
         offset += search.length 
         // set index of beginning of value
         end = document.cookie.indexOf(";", offset) 
         // set index of end of cookie value
         if (end == -1) 
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      } 
   }
}

var Flash = getCookie("FlashIntro")

	if(Flash == "pass")
	{
	var flashv="seen"
	}
	else
	{
	flashv=escape("not seen")
	}
var begin='<img src="http://www.w10.ca/compteur/compteur.pl'
var end=' width=1 height=1>'
var cmd='?refer='+escape(document.referrer)
cmd += "&appversion="+escape(navigator.appVersion)

var urlinit = document.URL;
var fpos = urlinit.indexOf("/",0)+2;
var lt = urlinit.length;
var url = urlinit.substring(fpos,lt);

cmd += "&url="+url;
cmd += "&flash_intro="+flashv
cmd +="&appname="+escape(navigator.appName)
cmd +="&username="+escape(username)
cmd +="&aff_cmpt="+escape(affiche_compteur)
cmd +="&srn_width="+escape(screen.width)
cmd +="&color_depth="+escape(screen.colorDepth)

document.write(begin+cmd+'"'+end)

if(affiche_logo == "oui")
{
  document.write('<a href="http://stats.webplaza.ca" target="_blank"><img src="http://www.w10.ca/compteur/logo_s.gif" border="0"></a><br>')
}
if(affiche_compteur == "oui")
{
  for (i=8;i>0;--i)
  {
    document.write("<img src='http://www.w10.ca/compteur/"+escape(username)+"/chiffres/"+i+".gif' name='ch_wpc"+i+"'>");
  }
}
document.write('<br>')

								 
     
