// current gigs display for ronnieron.com
// include page
var strOut;
var intDat;
var intPer;
var intVen;
var intURL;
var intTim;
var intCounter;

intDat = 0;
intPer = 1;
intVen = 2;
intURL = 3;
intTim = 4;
intCounter = 0;
arGigs = new Array();

for (i=0; i<arPerformances.length; i++) {
	arGigs[intCounter] = new Array();
	k=i
	arGigs[intCounter][intDat] = arPerformances[k];
	arGigs[intCounter][intPer] = arPerformances[k+1];
	arGigs[intCounter][intVen] = arPerformances[k+2];
	arGigs[intCounter][intURL] = arPerformances[k+3];
	arGigs[intCounter][intTim] = arPerformances[k+4];
	i=i+4
	intCounter++
}
z=intCounter-1
// y is the max num of headlines to display
y=maxheadlines
if (y>z){y=z}

strOut = "<table border=\"0\" cellpadding=\"2\" cellspacing=\"1\">";
//strOut += "<tr><td align=\"center\"><br>";
//strOut += "<font face=\"Arial\" size=\"-2\">UPDATED - " + currDate + "</font></td></tr>";

strOut += "<tr><td align=\"left\" width=\"100%\"><font face=\"Arial\" size=\"-1\"> <ul>";

for (i=1; i<y; i++) {
  
  //Set up bulleted list and style
  strOut += "<li> <p style=\"line-height: 150%\" style=\"margin-left: 10\"><font face=\"Fixedsys\" color=\"#FFCC00\">"; 
  //date first with a space after it
  strOut += arGigs[i][intDat] + "&nbsp";
  //Performance next same font
  strOut += arGigs[i][intPer] + "&nbsp";
  //Venue Next as a link
  strOut += "<a href=\"" + prefix + arGigs[i][intURL] + "\"  target=\"_blank\">" + arGigs[i][intVen] + "</a>&nbsp";
  //Lastly the time
  strOut += arGigs[i][intTim] + " &nbsp";
  //end the font and the bullet
  strOut += "</font>";
}

strOut += "</ul>";
strOut += "<br>";
//strOut += "<p style=\"margin-left: 10\"> <font face=\"Arial\" size=\"-2\">UPDATED " + currDate + " - ";
//strOut += cwFeatureIntro;
//strOut += "<a href=\"" + cwFeatureLink + "\"  target=\"_blank\">"+ cwFeatureText + "</a></font>";
//strOut += "</ul>"
//strOut += "<p align=\"left\" style=\"margin-left: 50\"> <a href=\%22http:/www.collisionweek.com\%22 style=\"color: #6868A0\" target=\"_blank\">  More News and Features...</a>"; 


strOut += "</font></td></tr></table>";


document.write(strOut);