buttonWidth		=	8;
buttonHeight		=	2;
buttonColor		=	"darkblue";
buttonTextColor		=	"white";

reverseButtonColor		=	"#566FA7";
reverseButtonTextColor	=	"black";

/*
Code which forces the web browser to an new URL location.
*/
function goToURL(which)
   {
   var URL = URL_HOME_PAGE;

   if (which == INT_HOME_PAGE )		URL = URL_HOME_PAGE;
   if (which == INT_CLEVELAND_PAGE )	URL = URL_CLEVELAND_PAGE;
   if (which == INT_LINKS_PAGE )	URL = URL_LINKS_PAGE;
   if (which == INT_CONTACT_PAGE )	URL = URL_CONTACT_PAGE;

   if (which == INT_DONALD2_PAGE )	URL = URL_DONALD2_PAGE;
   if (which == INT_KATHRYN_PAGE )	URL = URL_KATHRYN_PAGE;
   if (which == INT_DONALD3_PAGE )	URL = URL_DONALD3_PAGE;
   if (which == INT_EMILY_PAGE )	URL = URL_EMILY_PAGE;
   if (which == INT_KATELYN_PAGE )	URL = URL_KATELYN_PAGE;

   if (which == INT_ALBUM_PAGE )	URL = URL_ALBUM_PAGE;

   if (which == INT_HALLOWEEN_PAGE )	URL = URL_HALLOWEEN_PAGE;
   if (which == INT_XMAS_PAGE )		URL = URL_XMAS_PAGE;
   if (which == INT_EASTER_PAGE )	URL = URL_EASTER_PAGE;
   if (which == INT_HOLIDAY_PAGE )	URL = URL_HOLIDAY_PAGE;

   if (which == INT_ARCHIVES_PAGE )	URL = URL_ARCHIVES_PAGE;
   if (which == INT_CAKE_PAGE )		URL = URL_CAKE_PAGE;
   if (which == INT_CHESS_PAGE )	URL = URL_CHESS_PAGE;
   if (which == INT_RUSH_PAGE )		URL = URL_RUSH_PAGE;
   if (which == INT_KANGAROOS_PAGE )	URL = URL_KANGAROOS_PAGE;
   if (which == INT_SUGARDADDY_PAGE )	URL = URL_SUGARDADDY_PAGE;

   if (which == INT_QUOTE_PAGE )	URL = URL_QUOTE_PAGE;


   window.location.href = URL;
   }



/*
Code which will return the "text" which will be printed on each button.
*/
function getLabelText( which )
   {
   var theValue = which;

   if (which  == INT_HOME_PAGE ) 	theValue = TXT_HOME_PAGE;
   if (which  == INT_CLEVELAND_PAGE ) 	theValue = TXT_CLEVELAND_PAGE;
   if (which  == INT_LINKS_PAGE ) 	theValue = TXT_LINKS_PAGE;
   if (which  == INT_CONTACT_PAGE ) 	theValue = TXT_CONTACT_PAGE;

   if (which  == INT_DONALD2_PAGE ) 	theValue = TXT_DONALD2_PAGE;
   if (which  == INT_KATHRYN_PAGE ) 	theValue = TXT_KATHRYN_PAGE;
   if (which  == INT_DONALD3_PAGE ) 	theValue = TXT_DONALD3_PAGE;
   if (which  == INT_EMILY_PAGE ) 	theValue = TXT_EMILY_PAGE;
   if (which  == INT_KATELYN_PAGE ) 	theValue = TXT_KATELYN_PAGE;

   if (which  == INT_ALBUM_PAGE ) 	theValue = TXT_ALBUM_PAGE;

   if (which  == INT_HALLOWEEN_PAGE ) 	theValue = TXT_HALLOWEEN_PAGE;
   if (which  == INT_XMAS_PAGE ) 	theValue = TXT_XMAS_PAGE;
   if (which  == INT_EASTER_PAGE ) 	theValue = TXT_EASTER_PAGE;
   if (which  == INT_HOLIDAY_PAGE )	theValue = TXT_HOLIDAY_PAGE;

   if (which  == INT_ARCHIVES_PAGE ) 	theValue = TXT_ARCHIVES_PAGE;
   if (which  == INT_CAKE_PAGE ) 	theValue = TXT_CAKE_PAGE;
   if (which  == INT_RUSH_PAGE ) 	theValue = TXT_RUSH_PAGE;
   if (which  == INT_CHESS_PAGE ) 	theValue = TXT_CHESS_PAGE;
   if (which  == INT_KANGAROOS_PAGE ) 	theValue = TXT_KANGAROOS_PAGE;
   if (which  == INT_SUGARDADDY_PAGE ) 	theValue = TXT_SUGARDADDY_PAGE;

   if (which  == INT_QUOTE_PAGE ) 	theValue = TXT_QUOTE_PAGE;


   return theValue;
   }


/*
Code which will return what the button looks like (size and color).
*/

function getStyle( which )
   {
   var tempButtonColor 	= buttonColor;
   var tempButtonTextColor	= buttonTextColor;

   if ( INT_WHICH_PAGE == which )
      {
         tempButtonColor 	= reverseButtonColor;
         tempButtonTextColor	= reverseButtonTextColor;
      }


   var theValue = '';
   theValue = theValue + ' " ';
   theValue = theValue + ' width:' 		+ buttonWidth + 'em';
   theValue = theValue + ';';
   theValue = theValue + ' height:' 		+ buttonHeight + 'em';
   theValue = theValue + ';';
   theValue = theValue + ' background:' 	+ tempButtonColor;
   theValue = theValue + ';';
   theValue = theValue + ' color:' 		+ tempButtonTextColor;
   //theValue = theValue + ';';
   //theValue = theValue + ' font-family:monospace;';
   theValue = theValue + ' " ';
   return theValue;
   }


/*
Code which says what will will happen with a button is clicked. In this case,
it will call a function "goToURL".
*/
function getOnClick( which )
   {
   var theValue = '';
   theValue = theValue + ' " ';
   if ( INT_WHICH_PAGE != which )
      {
      theValue = theValue + ' goToURL( ' ;
      theValue = theValue + which;
      theValue = theValue + ' ) ';
      }
   theValue = theValue + ' " ';
   return theValue;
   }

/*
Code which will format the text label of button so that it can be displayed on the button.
*/
function getLabel( which )
   {
   var theValue = '';
   theValue = theValue + ' " ';
   theValue = theValue + getLabelText(which);
   theValue = theValue + ' " ';
   return theValue;
   }


/*
Draws a button on the screen.
*/
function drawButton( which)
   {
   document.write('<td>');
   document.write('<input type="button" style=' + getStyle(which) + ' value=' + getLabel(which) + 'onClick=' + getOnClick( which ) + ' />' );
   document.write('</td>');
   }


function mainButtonRow()
   {
   document.write('<tr>');
   	drawButton( INT_HOME_PAGE );
   	drawButton( INT_CONTACT_PAGE );
   	drawButton( INT_LINKS_PAGE );
   	drawButton( INT_QUOTE_PAGE );
   document.write('</tr>');

   document.write('<tr>');
   	drawButton( INT_DONALD2_PAGE );
   	drawButton( INT_KATHRYN_PAGE );
   	drawButton( INT_ALBUM_PAGE );
   	drawButton( INT_ARCHIVES_PAGE );
   document.write('</tr>');

   document.write('<tr>');
   	drawButton( INT_DONALD3_PAGE );
   	drawButton( INT_EMILY_PAGE );
   	drawButton( INT_KATELYN_PAGE );
   	drawButton( INT_HOLIDAY_PAGE );
   document.write('</tr>');

   }




if ( JAVA_OK )
{
document.write('<hr />');
document.write('<table align="center">');
   mainButtonRow();
document.write('</table>');
}

