function cb() {
 this.userAgent  = navigator.userAgent.toLowerCase();
 this.appVersion = navigator.appVersion.toLowerCase();
 this.isNAV = (this.userAgent.indexOf("mozilla") != -1 && this.userAgent.indexOf("compatible") == -1) ? 1 : 0;
 this.isIE  = (this.userAgent.indexOf("msie") != -1) ? 1 : 0;
 this.isOPERA7 = (this.userAgent.indexOf("opera 7") != -1 || this.userAgent.indexOf("opera/7") != -1) ? 1 : 0;
 if (this.isOPERA7) {
  this.isNAV = 1;
  this.isIE  = 0;
 }
 this.isOPERA  = (this.userAgent.indexOf("opera") != -1 && !this.isOPERA7) ? 1 : 0;
 this.isDOM    = (document.getElementById) ? 1 : 0;
 this.isDOMNAV = (this.isDOM && this.isNAV) ? 1 : 0;
 this.isDOMIE  = (this.isDOM && this.isIE) ? 1 : 0;
 this.isNAV4 = (this.isNAV && !this.isDOM && document.layers) ? 1 : 0;
 this.isIE4  = (this.isIE && !this.isDOM && document.all) ? 1 : 0;
 this.isIE5  = (this.appVersion.indexOf("msie 5") != -1) ? 1 : 0;
 this.isIE6  = ((this.appVersion.indexOf("msie 6") != -1 || this.appVersion.indexOf("msie 7") != -1) && !this.isOPERA7) ? 1 : 0;
 this.isMAC    = (this.appVersion.indexOf("mac") != -1) ? 1 : 0;
 this.isMACIE4 = (this.isMAC && this.appVersion.indexOf("msie 4") != -1) ? 1 : 0;
 this.isMACIE5 = (this.isMAC && this.isIE5) ? 1 : 0;
 this.isMAC4   = (this.isMAC && (this.isNAV4 || this.isIE4)) ? 1 : 0;
 this.isMINIE5 = (this.isIE5 || this.isIE6) ? 1 : 0;
}

var oCB = new cb();

if (oCB.isMINIE5) {
 var strVML = '';
 strVML += '<XML:NAMESPACE PREFIX="ho"/>';
 strVML += '<?import namespace="ho" implementation="http://www.asp-php.net/espace/aurelien/VML/aVMLHorloge/aVMLHorloge.htc" />';
 strVML += '<ho:aVMLHorloge id="oHO1"';
 strVML += ' Background-Size="150"';
 strVML += ' Background-Margins="10"';
 strVML += ' Background-Shadow="True"';
 strVML += ' Background-Shadow-Color="#808080"';
 strVML += ' Background-Shadow-Offset="2"';
 strVML += ' Background-Type="roundrect"';
 strVML += ' Background-ArcSize="10"';
 strVML += ' Background-Border-Color="#9094C9"';
 strVML += ' Background-Border-Weight="1"';
 strVML += ' Background-Fill-Type="gradient"';
 strVML += ' Background-Color="white"';
 strVML += ' Background-Color2="#9094C9"';
 strVML += ' Background-Gradient-Focus="50"';
 strVML += ' Clock-Fill-Type="frame"';
 if (typeof(strVMLRedac) != 'undefined') {
  if (strVMLRedac != '') {
   strVML += ' Clock-Frame-Src="' + strVMLRedac + '"';
  } else {
   strVML += ' Clock-Frame-Src="' + strVMLPath + 'redaction.jpg"';
  }
 } else {
  strVML += ' Clock-Frame-Src="' + strVMLPath + 'redaction.jpg"';
 }
 strVML += ' Clock-Border-Color="white"';
 strVML += ' Clock-Border-Weight="2"';
 strVML += ' Clock-Hours-Color="white"';
 strVML += ' Clock-Hours-Weight="2"';
 strVML += ' Clock-Minutes-Color="white"';
 strVML += ' Clock-Minutes-Weight="1"';
 strVML += ' Clock-OnlyDisplayQuarters="false"';
 strVML += ' Hand-Hours-Weight="2"';
 strVML += ' Hand-Hours-Color="white"';
 strVML += ' Hand-Hours-EndArrow-Type="block"';
 strVML += ' Hand-Minutes-Weight="2"';
 strVML += ' Hand-Minutes-Color="white"';
 strVML += ' Hand-Minutes-EndArrow-Type="block"';
 strVML += ' Hand-Seconds-Weight="1"';
 strVML += ' Hand-Seconds-Color="silver"';
 strVML += ' Hand-Seconds-EndArrow-Type="none"';
 strVML += ' Date-Display="False"';
 strVML += ' Date-Font-Color="#FFCC66"';
 strVML += ' Time-Display="True"';
 strVML += ' Time-Font-Family="Verdana"';
 strVML += ' Time-Font-Size="10"';
 strVML += ' Time-Font-Bold="True"';
 strVML += ' Time-Font-Italic="False"';
 strVML += ' Time-Font-Color="#8455A6"';
 strVML += '>';
 strVML += '</ho:aVMLHorloge>';
 strVML += '<A class=a href="http://www.asp-php.net/tutorial/vml/">VML vous offre l\'heure ;)</A>';
 document.write(strVML);
}
