function bldBlock(blockType, extraValue1)
{
var border_height = '1px';
var border_width = '780px';


switch  (blockType)
{
 case "announcement":
                        border_height = '240px';
						boardMsg = extraValue1;												
                        break;
 case "second block":
                        border_height = '70px';        
                        break;
 case "contact block":
                        border_height = '100px';        
                        break;
case "results block":
                        border_height = '320px';
                        break;
case "district Teams Block":
                        border_height = '120px';
                        break;
case "district Schedule Block":		
                        border_height = '70px';
                        break;										              
case "bomb squad block":
                        border_height = '480px';
                        border_width = '140px';
                        break;    
case "play Off Schedule Block":		
                        border_height = '150px';
                        break;		
																				              
default:
                border_height = '100px';                 
                break;
}                         
document.write(" <table width='100%'  cellpadding='0'  bgcolor='#FFFFF0'  border='0'  cellspacing='0'  valign='top'  align='center' >");
document.write("     <tr>");
if (blockType == "bomb squad block")
{
document.write("         <td><img src=' Images/topLeftcorner.gif'  height=' 15px'  width=' 15px' ></td>");
}
else
{
document.write("         <td><img src=' Images/topLeftBorder_wc.jpg'  height=' 15px'  width=' 15px' ></td>");
}
document.write("         <td><img src=' Images/topBorder.jpg'  height=' 15px'  width='" + border_width + "' ></td>");
document.write("         <td><img src=' Images/topRightBorder_wc.jpg'  height=' 15px'  width=' 15px' ></td>");
document.write("     </tr>");
document.write("     <tr>");
document.write("          <td><img src=' Images/leftBorder.jpg'  height='" + border_height + "'  width=' 15px' ></td>");
document.write("          <td>");

switch  (blockType)
{
 case "announcement":
                        announcementContent(boardMsg);
												break;
 case "second block":
                        secondBlockContent();   
                        break;
 case "contact block":
                        contactBlock();
                        break;
 case "results block":
                        resultsBlock();
                        break;
case "bomb squad block":
                        bldBombSquadTicker();
                        break;  
case "district Teams Block":
                        districtTeamsBlock();
						break;
case "district Schedule Block":
                        districtScheduleBlock();
                        break;  												                                                                                                                        
case "play Off Schedule Block":
                        playOffScheduleBlock();
                        break;  												                                                                                                                        
 default:
                document.write(blockType);                                      
                break;
}                                
document.write("            </td>");
document.write("            <td><img src=' Images/rightBorder.jpg'  height='" + border_height + "'  width=' 15px' ></td>");
document.write("        </tr>");
document.write("        <tr>");
if (blockType == "bomb squad block")
{
document.write("             <td><img src=' Images/bottLeftcorner.gif'  height=' 15px'  width=' 15px' ></td>");
}
else
{
document.write("             <td><img src=' Images/bottomLeftBorder_wc.jpg'  height=' 15px'  width=' 15px' ></td>");
}
document.write("             <td><img src=' Images/bottomBorder.jpg'  height=' 15px'  width=' " + border_width + "' ></td>");
document.write("             <td><img src=' Images/bottomRightBorder_wc.jpg'  height=' 15px'  width=' 15px' ></td>");
document.write("        </tr>");
document.write(" </table>");
}

function announcementContent()
{
document.write("              <table  width='100%' cellpadding= 0' bgcolor='#FFFFF0' border='0' cellspacing='0' valign='top' align='center'>");
document.write("                    <tr>");
document.write("                    <td align='center'>");
document.write("                    <table width='100%' cellpadding= 0' bgcolor='#FFFFF0' border='0' cellspacing='0' valign='top' align='center'>");
//document.write("                    	<tr><td><img src='Images/spacer.gif' height='15px' width='15px'></td></tr>");
//document.write("                    	<tr>");
//document.write("                    		<td align='center'>");
//document.write("                  			<font face='Arial' size='3'>The <b>draft schedules</b> have been set.  The draft will be held at the Agawam Jr. High School gym.  <br>Please check for your assigned time.</font>");
//document.write("                    	</td>");
//document.write("                    	<tr>");
//document.write("                    		<td align='center'>")
//document.write("                    		<a href='http://www.agawamlittleleague.com/schedules/2008_A_AA_draft_schedule.asp' target='_top' >");
//document.write("                  			<font face='Arial' size='3'>Minor A & AA</font>");
//document.write("                    	</td>");
//document.write("                    	<tr>");
//document.write("                    		<td align='center'>");
//document.write("                    		<b><a href='http://www.agawamlittleleague.com/schedules/2008_Major_AAA_draft_schedule.asp' target='_top' >");
//document.write("                  			<font face='Arial' size='3'>Majors & AAA</font>");
//document.write("                  		</td>");
//document.write("                  		</tr>");
document.write("                    	<tr><td><img src='Images/spacer.gif' height='15px' width='15px'></td></tr>");
document.write("                    	<tr>");
document.write("                    		<td align='center'>")
document.write(														boardMsg);
document.write("                  			</td>");
document.write("                  		</tr>");

document.write("                  	</table>");
document.write("                   <br><font face='Arial' size='3'>Customizable team pages are now online.  Email ");
getContacts("Ronny Carleton");
document.write(" or ");
getContacts("Mark Paleologopoulos");
document.write("  if you'd like to add content to your team's page.</b>");
document.write("                                  </p>");
document.write("                    <p align='center'>");
document.write("                   If you'd like to write a column for our 'Future Sports Writers' feature,  Email ");
getContacts("Ronny Carleton");
document.write(" or  ");
getContacts("Mark Paleologopoulos");
document.write("  </font>");
document.write("                                  </p>");

document.write("                             </td>");
document.write("                     </tr>");
document.write("               </table>");
}

 
function secondBlockContent()
{
document.write("<table align='center'  width='100%' >");
document.write("     <tr>");
document.write("          <td>");
document.write("                <p align='CENTER' >");
document.write("                 <a href='handouts/Agawam%20LL%20Shop%20Day.pdf' target='_blank' >");
document.write("                 <font face='Arial' size='4'> Agawam Little League Day At Dick's Sporting Goods</font></a>");
document.write("          </td>");

/*document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='2007Sponsors.htm' target='_top' >");
document.write("                <font face='Arial' size='4'><b>Sponsors</b></font></a>");
document.write("                <font size='2' color='BLACK'><br>Here they are! Please take the time</font>");
document.write("                <font size='2' color='BLACK'><br>to visit our generous 2008 sponsors</font></p>");
document.write("          </td>");
document.write("          <td>");
document.write("                <p align='CENTER' >");
document.write("                 <a href='sponsors/2004Patrons.htm' target='_top' >");
document.write("                 <font face='Arial' size='4'><b>Patrons</b></font></a>");
document.write("                 <font size='2' color='BLACK'><br>The Board would also like to thank these fine");
document.write("                 <br>patrons for their generous donations</font></p>");
document.write("          </td>");
document.write("          <td>");
document.write("                <p align='center'>");
document.write("               <a href='2006MasterTeams.htm' target='_top' >");
document.write("                <font face='Arial' size=' 4'><b>Rosters</b></font></a>");
document.write("                <font size='2' color='BLACK'><br>2006 Rosters");
document.write("                <br>for all leagues and teams</font></p>");
document.write("          </td>");
*/
document.write("      </tr>");
document.write("</table>");
}               

function contactBlock()
{
document.write("<p align='CENTER'>");
document.write("<br>");
document.write("<font face='Arial' size='3'>Email me if you would like to be in charge of your team's individual website.</font>");
document.write("<br>");
getContacts("Ronny Carleton");
document.write("<p align='CENTER'>");
document.write("<a href='board/BODMessage.htm' target='_top'>");
document.write("<font face='Arial' size='4'><b>A message from the Board of Directors</b></font></a>");
document.write("</p>");
}

function resultsBlock()
{
document.write(" <table align='center' width='100%'>");
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'><b>CONGRATULATIONS TO OUR 2008 DIVISION CHAMPS</b></font></td>");
document.write("   </tr>");
document.write("   <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='http://www.agawamlittleleague.com/team.asp?team=153' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Junior McKenna Orthodontics Rangers</b></font></a>");
document.write("          </td>");
document.write("    </tr>");
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'>&nbsp;</font></td>");
document.write("   </tr>");
document.write("   <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='http://www.agawamlittleleague.com/team.asp?team=14' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Major Valenti's Restaurant Red Sox</b></font></a>");
document.write("          </td>");
document.write("    </tr>");
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'>&nbsp;</font></td>");
document.write("   </tr>");
document.write("   <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='http://www.agawamlittleleague.com/team.asp?team=109' target='_top' >");
document.write("                <font face='Arial' size='2'><b>AAA King's All Star Photo Service Blue Thunder</b></font></a>");
document.write("          </td>");
document.write("    </tr>");
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'>&nbsp;</font></td>");
document.write("   </tr>");
document.write("   <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='http://www.agawamlittleleague.com/team.asp?team=101' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Minor AA Copperline Eatery & Catering YANKEES</b></font></a>");
document.write("          </td>");
document.write("    </tr>");
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'>&nbsp;</font></td>");
document.write("   </tr>");

document.write("   <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='http://www.agawamlittleleague.com/team.asp?team=141' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Minor A Frigo's Gourmet Foods CUBS</b></font></a>");
document.write("          </td>");
document.write("    </tr>");

document.write("</table>");
}

function districtTeamsBlock()
{
document.write("<table width='100%' cellpadding= 0' bgcolor='#FFFFF0' border='0' cellspacing='0' valign='top' align='center'>");
/*document.write("                    	<tr>");
document.write("                    		<td align='center'>")
document.write("                    		<a href='http://www.agawamlittleleague.com/Jimmy_Fund_Schedule-Revised.xls' target='_top' >");
document.write("                  			<font face='Arial' size='5'><b>Jimmy Fund Schedule - Revised 7/24</b></a></font>");
document.write("                  			</td>");
document.write("                  		</tr>");
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'>&nbsp;</font></td>");
document.write("   </tr>");
document.write("                    	<tr>");
document.write("                    		<td align='center'>")
document.write("                    		<a href='http://www.agawamlittleleague.com/Jimmy Fund08 RulesRoster.doc' target='_top' >");
document.write("                  			<font face='Arial' size='5'><b>Jimmy Fund Rules and Roster form</b></a></font>");
document.write("                  			</td>");
document.write("                  		</tr>");
*/
document.write("   <tr>");
document.write("     <td align='CENTER'><font face='Arial' size='4'>&nbsp;</font></td>");
document.write("   </tr>");
document.write("</table>");
document.write("<table align='center'  width='100%' >");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <font face='Arial' size='4'><b>2008 Agawam Little League District Teams</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='districtTeams/2008JuniorAllStars.htm' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Junior District Team</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='districtTeams/200811_12AllStars.htm' target='_top' >");
document.write("                <font face='Arial' size='2'><b>11-12 District Team</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='districtTeams/200810_11AllStars.htm' target='_top' >");
document.write("                <font face='Arial' size='2'><b>10-11 District Team</b></font></a>");
document.write("          </td>");
document.write("      </tr>");

document.write("</table>");
}

function districtScheduleBlock()
{
document.write("<table align='center'  width='100%' >");
/*document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <font face='Arial' size='4'><b>District Schedule for our Agawam Teams</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
*/
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='DistrictTeams/2009 District Schedules.asp' target='_top' >");
document.write("                <font face='Arial' size='4'><b>District Schedule for our Agawam Teams</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("</table>");
}

function playOffScheduleBlock()
{
document.write("<table align='center'  width='100%' >");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <font face='Arial' size='4'><b>Playoff Schedules</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
/*document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='playoffSchedules/Juniors Playoffs.pdf' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Junior Playoff Schedule</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
*/
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='playoffSchedules/Majors Playoffs.pdf' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Major Playoff Schedule</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='playoffSchedules/AAA Playoffs.pdf' target='_top' >");
document.write("                <font face='Arial' size='2'><b>AAA Playoff Schedule</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='playoffSchedules/Minors AA Playoffs.pdf' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Minor AA Playoff Schedule</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("     <tr>");
document.write("         <td>");
document.write("                <p align='CENTER'>");
document.write("                <a href='playoffSchedules/Minor A Playoffs.pdf' target='_top' >");
document.write("                <font face='Arial' size='2'><b>Minor A Playoff Schedule</b></font></a>");
document.write("          </td>");
document.write("      </tr>");
document.write("</table>");
}

function bldBombSquadTicker()
{
document.write(" <table width='110px'>");
document.write("   <tr height='20px' align='CENTER' valign='top'>");
document.write("     <td>");
document.write("     <font size='2' color='#ff9900'>");
document.write("         <b>Bomb Squad</b>");
document.write("     </font>");
document.write("     </td>");
document.write("   </tr>");
document.write("   <tr height='440px'  align='CENTER' valign='top'>");
document.write("     <td>");
bldBombSquad();
document.write("     </td>");
document.write("   </tr>");
document.write("</table>");
}

/*document.write("                  <br><b>2006 League Champions</b><br>");
document.write("                    Read their stories</b>");
document.write("                    <table align='center' cellpadding='3' border='0'>");
document.write("                    <tr><td colspan='5'><b>Juniors</b></td><td><a href='news/2006JuniorChamps.htm' target='_top' >");
document.write("                    					Darker Image A's</a></td></tr>");
document.write("                    <tr><td colspan='5'><b>Majors</b></td><td><a href='news/2006MajorChamps.htm' target='_top' >");
document.write("                                        Heat Doctor Pirates</a></td></tr>");
document.write("                    <tr><td colspan='5'><b>AAA</b></td><td>Uncle Bob's Storage A's</td></tr>");
document.write("                    </table>");
document.write("                    <font size='3' color='red'><b><a href='http://www.agawamlittleleague.com/LLAllStars.htm' target='_top'>2006 All Star Selections</b></a></font>");
document.write("                    <br><p align='center'>");

document.write("                    <tr>");
document.write("                    <td align='center'>");
document.write("                    <table width='100%' cellpadding= 0' bgcolor='#FFFFF0' border='0' cellspacing='0' valign='top' align='center'>");
document.write("                    	<tr>");
document.write("                    		<td align='center'>")
document.write("                  			<font face='Arial' size='4' color='red'><b><a href='handouts/SalesBrochure.htm' target='_blank' >Tee Shirt Sales</a></font><br><font face='Arial' size='3' color='red'>Agawam Little League is having another Tee Shirt fundraiser this year.<br>Our own line of Agawam Little League gear is now available for order.<br>Please fill out one, two, three or more order forms and return to your coaches<br>or mail them in to our PO Box 778.<br>The <a href='handouts/SalesBrochure.htm' target='_blank' >order form</a> should be printed landscape.</font><br><br>");
document.write("                  			</td>");
document.write("                  		</tr>");

document.write("                    	<tr>");
document.write("                    		<td align='center'>")
document.write("                  			<font face='Arial' size='4'><b>Vote for Agawam</b></font><br>");
document.write("                  			<font face='Arial' size='3'>WEEI 850 Sports Radio and NorthEast Eagle electrical distributors are giving away a complete sports<br>lighting system to 1 lucky town.  Go to the following web site and click on<br><b>Vote for your town</b>, find Agawam, and vote for Kirk Parker Field.  For every 850 votes,<br>we will receive 1 entry into the grand prize drawing.<br><a href='http://www.newfridaynightlights.com' target='_blank'<font face='Arial' size='3'><b>www.newfridaynightlights.com</a></b></font>");
document.write("                  			</td>");
document.write("                  		</tr>");
document.write("                    	<tr><td><img src='Images/spacer.gif' height='15px' width='15px'></td></tr>");
*/