
//This is the green background color
var rpbcBGCOLOR = '#437051';

//Main Menu
var rpbcMENU = new Array();
rpbcMENU.push(new Array("Home","main.htm"));
rpbcMENU.push(new Array("Biography","bio.htm"));
rpbcMENU.push(new Array("Class Schedule","instructional.htm"));
rpbcMENU.push(new Array("Class Descriptions","classDesc.htm"));
rpbcMENU.push(new Array("Dear Parents","parents.htm"));
rpbcMENU.push(new Array("Fall Leagues","fallOutdoor.htm"));
rpbcMENU.push(new Array("Fees & Registration","fees.htm"));
//rpbcMENU.push(new Array("Medina Camp","medina_camp.htm"));
//rpbcMENU.push(new Array("Wadsworth Camp","wadsworth_camp.htm"));
rpbcMENU.push(new Array("Lessons","lessons.htm"));
rpbcMENU.push(new Array("Rental","rental.htm"));
rpbcMENU.push(new Array("Specials","specials.htm"));
rpbcMENU.push(new Array("Contact","contact.htm"));

//Favorite Links
var rpbcFAVORITE_LINKS = new Array();
rpbcFAVORITE_LINKS[0] = new Array("Robert Clemente's Official Site");
rpbcFAVORITE_LINKS[1] = new Array("Baseball Hall Of Fame");
rpbcFAVORITE_LINKS[2] = new Array("MLB Official Site");
rpbcFAVORITE_LINKS[3] = new Array("Cleveland Indians Official Site");

//MONDAY CLASSES
var oberlinMON_CLASSES = new Array();
var brunswickMON_CLASSES = new Array();
brunswickMON_CLASSES.push(new Array("Ages 11&up","5:30-6:25 pm","Hitting/Multi-skills"));
brunswickMON_CLASSES.push(new Array("Ages 11&up","6:30-7:25 pm","Pitching/Multi-skills"));
brunswickMON_CLASSES.push(new Array(" "," "," "));

//TUESDAY CLASSES
var brunswickTUES_CLASSES = new Array();
brunswickTUES_CLASSES.push(new Array("Ages 8-10","5:30-6:25 pm","Hitting/Multi-skills"));
brunswickTUES_CLASSES.push(new Array("Ages 8-10","6:30-7:25 pm","Pitching/Multi-skills"));
brunswickTUES_CLASSES.push(new Array(" "," "," "));

//WEDNESDAY CLASSES
//var brunswickWED_CLASSES = new Array();
//var oberlinWED_CLASSES = new Array();
//brunswickWED_CLASSES.push(new Array("Ages 14&up","5:30-6:25 pm","Adv-Hitting"));
//brunswickWED_CLASSES.push(new Array("Ages 14&up","6:30-7:25 pm","Adv-Pitching"));
//oberlinWED_CLASSES.push(new Array("Ages 14&up","5:30-6:25 pm","Adv-Hitting"));
//oberlinWED_CLASSES.push(new Array("Ages 14&up","6:30-7:25 pm","Adv-Pitching"));
//oberlinWED_CLASSES.push(new Array(" "," "," "));

//THURSDAY CLASSES
//var brunswickTHUR_CLASSES = new Array();
//brunswickTHUR_CLASSES.push(new Array("Ages 8-10<br>Ages 11&up","5:30-6:30 pm","Hitting<br>Multi-skills"));
//brunswickTHUR_CLASSES.push(new Array("Ages 14&up","6:35-7:35 pm","Advanced Hitting<br>for High School"));

//SATURDAY CLASSES
var brunswickSAT_CLASSES = new Array();
brunswickSAT_CLASSES.push(new Array("Ages 8-10<br>Ages 11&up","10:00-10:55&nbsp;am","Catching/Multi-skills"));
brunswickSAT_CLASSES.push(new Array("Ages 8-10<br>Ages 11&up","11:00-11:55&nbsp;am","Hitting/Multi-skills"));
brunswickSAT_CLASSES.push(new Array("Ages 8-10<br>Ages 11&up","12:00-12:55&nbsp;pm","Pitching/Multi-skills"));
//brunswickSAT_CLASSES.push(new Array("Ages 5-7","1:00-1:55&nbsp;pm","Beginners -- all aspects"));

//DAYS
var brunswickCLASSES = new Array();
var oberlinCLASSES = new Array();
brunswickCLASSES.push(new Array("Monday","Time","Class","Dates","Starts March 2 and ends Arpil 6, 2009","",brunswickMON_CLASSES));
brunswickCLASSES.push(new Array("Tuesday","Time","Class","Dates","Starts March 3 and ends Arpil 7, 2009","",brunswickTUES_CLASSES));
brunswickCLASSES.push(new Array("Saturday","Time","Class","Dates","Starts February 28 and ends April 4, 2009","",brunswickSAT_CLASSES));
//brunswickCLASSES.push(new Array("Wednesday","Time","Class","Dates","Starts October 29 and ends February 18, 2009","NO CLASSES Nov. 26, Dec. 24, Dec. 31, 2008",brunswickWED_CLASSES));
//brunswickCLASSES.push(new Array("Thursday","Time","Class","Dates","Starts November 1 and ends February 21, 2008","NO CLASSES Nov. 22, Dec. 27, 2007",brunswickTHUR_CLASSES));
//oberlinCLASSES.push(new Array("Monday","Time","Class","Dates","Starts March 19 and ends May 7, 2007","",oberlinMON_CLASSES));
//oberlinCLASSES.push(new Array("Wednesday","Time","Class","Dates","Starts November 7 and ends January 30, 2008","NO CLASSES Nov. 21, Dec. 26, 2007 and Jan. 2, 2008",oberlinWED_CLASSES));



//***********************************
//DO NOT EDIT CODE BELOW
//***********************************




function createMenu() {
	var i, t;
	for(i=0;i<rpbcMENU.length;i++) {
		t = (25 * i) + 25;		
		document.write("<DIV class='Menu' onmouseover='highlight(this)' onmouseout='if (this != rpbcCurrentMenuItem) deHighlight(this)' onclick='selectMenuItem(this);parent.rpbcMAIN.location=\"" + rpbcMENU[i][1] + "\"'>" + rpbcMENU[i][0] + "</div>");
	}

	document.close();
}

function highlight(i){
	i.style.color=rpbcBGCOLOR;
	i.style.backgroundColor='silver';
}
function deHighlight(i){
	i.style.backgroundColor=rpbcBGCOLOR;
	i.style.color='white';
}

var rpbcCurrentMenuItem;
function selectMenuItem(i) {
	if (rpbcCurrentMenuItem != null) deHighlight(rpbcCurrentMenuItem);
	highlight(i);
	rpbcCurrentMenuItem = i;
	
}

function createClasses(classes) {
	var i,j,htmlString;
	for(i=0;i<classes.length;i++) {
		htmlString="<TABLE WIDTH='100%'>";
		htmlString+="<TR>";
		htmlString+="<TD CLASS='Reverse' WIDTH='100px'>";
		htmlString+="<P CLASS='TableTitle'>&nbsp;" + classes[i][0] + "</P>";
		htmlString+="</TD>";
		htmlString+="<TD CLASS='Reverse' WIDTH='120px'>";
		htmlString+="<P CLASS='TableTitle'>&nbsp;" + classes[i][1] + "</P>";
		htmlString+="</TD>";
		htmlString+="<TD CLASS='Reverse' WIDTH='140px'>";
		htmlString+="<P CLASS='TableTitle'>&nbsp;" + classes[i][2] + "</P>";
		htmlString+="</TD>";
		htmlString+="<TD CLASS='Reverse'>";
		htmlString+="<P CLASS='TableTitle'>&nbsp;" + classes[i][3] + "</P>";
		htmlString+="</TD>";
		htmlString+="</TR>";
		htmlString+="<TR>";
		htmlString+="<TD COLSPAN=3>";

		for(j=0;j<classes[i][6].length;j++) {
		var currentDay = classes[i][6][j];
		htmlString+="<TABLE WIDTH='100%'>";
		htmlString+="<TR>";
		htmlString+="<TD WIDTH='100px'>";
		htmlString+="<P>" + currentDay[0] + "</P>";
		htmlString+="</TD>";
		htmlString+="<TD WIDTH='120px'>";
		htmlString+="<P>" + currentDay[1] + "</P>";
		htmlString+="</TD>";
		htmlString+="<TD>";
		htmlString+="<P>" + currentDay[2] + "</P>";
		htmlString+="</TD>";
		htmlString+="</TR>";
		htmlString+="</TABLE>";
		}

		htmlString+="</TD>";
		htmlString+="<TD STYLE='vertical-align:top'>";
		htmlString+="<P>" + classes[i][4] + "</P>";
		htmlString+="<P CLASS='NoClass'>" + classes[i][5] + "</P>";
		htmlString+="</TD>";
		htmlString+="</TR>";
		htmlString+="</TABLE>";

		document.write(htmlString);

	}
	document.close();
}

var isIE = navigator.userAgent.toLowerCase().indexOf("msie") != -1;

function img(url) {
	if (isIE) {
		document.write("<img src=\"spacer.png\" style=\"filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + url +"', sizingMethod=image);\" />");
	}
	else {
		document.write("<img src=\"" + url +"\" />");
	}
}

function body(url) {
	if (isIE) {
		document.write("<body bgcolor=\"transparent\">");
	}
	else {
		document.write("<body>");
	}
}

