// Passed variables
// iActiveCat - Current Category
//var baseURL = "http://www.cheerleading.net/";
var baseURL = "";
var iWidth = 175;	// Width of the Menu Block
var sColor = "#88CCFF";	// Color of Menu Block
var sFontColor = "#000000";	// Color of text in Menu Block
var sBackColor = "#FFFFFF";	// Background Color of page
var sSelBackColor = "#EEEEEE";	// Background Color for selection
var pixelColor = '<td width=1 height=1 bgcolor=' + sColor + '></td>';	// Pixel with Menu Block color
var pixelBack = '<td width=1 height=1 bgcolor=' + sBackColor + '></td>';	// Pixel with Page Background color
var iCWidth = 10;	// Radius of corner
var cat = new Array();
	cat[0]=" ";
	cat[1]="College";
	cat[2]="Cheerleaders & Coaches";
//	cat[2]="Cheerleaders";
//	cat[3]="Coaches";
	cat[4]="High School and Earlier";
	cat[5]="Independent";
	cat[6]="International (Outside USA)";
	cat[7]="Associations / Companies";
	cat[8]="Professional";
	cat[9]="Suppliers";
	cat[10]="Resources";
	cat[11]="Links";
//	cat[12]="E-Mail Only";
//	cat[13]="Pop Warner";
//	cat[14]="Tryouts";
	cat[15]="Fundraising Ideas";
//	cat[16]="Competitions";
	cat[17]="Upcoming Events";
	cat[18]="Cheer Gyms";
	cat[20]="Home";
var catURL = new Array();
	catURL[0]=" ";
	catURL[1]="cheerweb-coll.html";
	catURL[2]="cheerweb-chrldr.html";
//	catURL[3]="";
	catURL[4]="cheerweb-hs.html";
	catURL[5]="cheerweb-ind.html";
	catURL[6]="cheerweb-intl.html";
	catURL[7]="cheerweb-assoc.html";
	catURL[8]="cheerweb-pro.html";
	catURL[9]="cheerweb-sup.html";
	catURL[10]="cheerweb-res.html";
	catURL[11]="cheerweb-links.html";
//	catURL[12]="cheerweb-email.html";
//	catURL[13]="";
//	catURL[14]="";
	catURL[15]="cheerweb-fundraising.html";
//	catURL[16]="cheerweb-competitions.html";
	catURL[17]="cheerweb-events.html";
	catURL[18]="cheerweb-gyms.html";
	catURL[20]="index2.html";

document.write('<table cellpadding=0 cellspacing=0 border=0>');
for (var i = 1; i <= 20; i++){
	if (cat[i]!=null) {
		// Add a spacer above each line
		document.write('<tr><td height=4 width=');
		document.write(iWidth+4);
		document.write(' bgcolor='+sColor+' colspan=3></td></tr>');
		if (i == iActiveCat) {
			document.write('<tr>');
			document.write('<td width=4 bgcolor='+sSelBackColor+'></td>');
			document.write('<td width='+iWidth+' bgcolor='+sSelBackColor+' colspan=2>');
			document.write('<font color='+sFontColor+'>'+cat[i]+'</font></td></tr>');
			}
		else {
			document.write('<tr>');
			document.write('<td width=4 bgcolor=' + sColor + '></td>');
			document.write('<td width='+iWidth+' bgcolor=' + sColor + ' colspan=2>');
			document.write('<A HREF='+baseURL+catURL[i]+'><font color='+sFontColor+'>'+cat[i]+'</font></A></td></tr>');
		}
	}
}
// Corner with Radius = iCWidth
document.write('<tr>');
document.write('<td width=4 height='+iCWidth+' bgcolor=' + sColor + '></td>');
document.write('<td width=');
document.write(iWidth-iCWidth);
document.write(' height='+iCWidth+' bgcolor=' + sColor + '></td>');
document.write('<td width='+iCWidth+' height='+iCWidth+'>');
document.write('<table cellpadding=0 cellspacing=0 border=0>');
for (var y = 1; y <= iCWidth; y++) {
	iX = Math.round(Math.sqrt(Math.pow(iCWidth,2) - Math.pow(y,2)));
	document.write('<tr>');
	for (var iCol = 0; iCol < iX; iCol++) {
		document.write(pixelColor);
	}
	for (var iCol = iX; iCol < iCWidth; iCol++) {
		document.write(pixelBack);
	}
	document.write('</tr>');
}
document.write('</table>');
document.write('</td>');
document.write('</tr>');
// End corner
document.write('</table>');
