/* $Id: schieramento.js,v 1.9 2009/03/30 20:34:02 Mario Exp $ */
/*
  www.clubkart.it - Copyright (c) 2002-2009 Mario Cimento - cimario@tiscali.it - http://creativecommons.org/licenses/by-nc-nd/2.5/it/
  Reverse engineering of this file is strictly prohibited. File protected by copyright law and provided under license.
  - Script per scrivere la tabella dello schieramento -
*/
var row=0,pos=0;if(typeof (SCH_pilota_w)!="number"){SCH_pilota_w=130}if(typeof (SCH_casco_w)!="number"){SCH_casco_w=130}document.write('<a name="schieramento"></a>');document.write('<div align="center" class="race_title_big">Schieramento di partenza');document.write('<br><font face="Verdana" color="#aa3333" size="4"><strong>');document.write(SCH_commento);document.write("</strong></font></div>");document.write('<br><div align="center"><table border="0" cellpadding="0" cellspacing="0" width="650">');num_piloti=SCH_Pilota.length;if(num_piloti%2){SCH_Pilota[num_piloti]="";SCH_Numero[num_piloti]=" ";SCH_Tempo[num_piloti]=" ";SCH_CascoImg[num_piloti]="";num_piloti++}for(pos=0;pos<num_piloti;pos++){row=Math.floor(pos/2)+1;if(!(pos%2)){document.write("<tr>");document.write(' <table align="center" class="table_out_gray2" width="680">');document.write("  <td>");document.write('   <table align="center" width="100%" border="0" cellspacing="0" cellpadding="2" class="table_in_gray1_600" style="table-layout:fixed;">')}document.write('      <td align="center" valign="center" width="80">');if(SCH_Pilota[pos].length>0){document.write('     <strong><font face="Verdana" size="10">'+(pos+1)+"</font></strong>")}else{document.write("      &nbsp;")}document.write("       </td>");document.write('      <td align="center" valign="center" width="'+SCH_casco_w+'">');if(SCH_CascoImg[pos].length>0){document.write('     <img src="'+SCH_CascoImg[pos]+'">')}document.write("      </td>");document.write('      <td align="center" valign="center" width="'+SCH_pilota_w+'">');document.write('       <font face="Tahoma" size="4">');document.write("         "+SCH_Numero[pos]+"<br>"+SCH_Pilota[pos]+"<br><br>"+SCH_Tempo[pos]);document.write("       </font>");document.write("      </td>");if(!(pos%2)){document.write('    <td bgcolor="#cccc44" align="center" valign="center" width="30">');document.write('     <font face="Comic Sans MS" size="3" color="#000000">fila<br>'+row+"</font>");document.write("    </td>")}if(pos%2){document.write("   </table>");document.write("  </td>");document.write(" </table>");document.write("</tr>")}}document.write("</table></div>");document.write('<div align="center">');if((typeof (SCH_commento_down)=="object")||(typeof (SCH_commento_down)=="string")){document.write('<br><font face="Verdana" color="#aa3333" size="2"><strong>');document.write(SCH_commento_down);document.write("</strong></font>")}document.write("</div>")
