// <!- ScreenHeader Javascript source

/* 

This script, if placed after the first table row at the top of the page will 
display the annual theme and the screen title

     R Scott  1-Jun-2007
 */
 
// Define 'random' numbers
var seed = .5;
function srand() 
  {  today = new Date();    
     seed = Math.abs(Math.sin(today.getTime())); }  
function rand()
  {  seed = seed + .3;  
     if (seed > 1.0) seed = seed - 1.0;    
	 return seed; }  
function randbg()
  {  return Math.floor(rand() * 35.0); }
srand();

function ScreenHeader(HeaderText)
{
/* *** Start Table row   */
      		{ MsgTag = '<tr>'
			  MsgTag = MsgTag + '<td valign="top" width="140" height="2">'
			  MsgTag = MsgTag + '<p align="left">'
	    	  document.write(MsgTag); }

/* *** Start Annual Theme code
     The code below displays the annual theme logo, and displays the Rotary
     wheel when the mouse rolls over the annual theme logo  */
     	    var AnnTheme='images/annualtheme' + RTyyyy + '.gif'
      		{ MsgTag = '<a href="http://www.rotary.org/" '
/* 			  MsgTag = MsgTag + 'onmouseover="document.sub_theme.src='
			  MsgTag = MsgTag + "'" + 'images/wheelnet.gif' + "'" + '" '
			  MsgTag = MsgTag + 'onmouseout="document.sub_theme.src='
			  MsgTag = MsgTag + "'" + AnnTheme + "'" + '"'
 */
			  MsgTag = MsgTag + '>' 
			  MsgTag = MsgTag + '<img src="' + AnnTheme + '" '
			  MsgTag = MsgTag + 'height="150" alt="" border="0" name="sub_theme"></a>'
	    	  document.write(MsgTag); }
/* *** End Annual Theme code  */

      		{ MsgTag = '</p></td>'
	    	  document.write(MsgTag); }

/* *** Header   */
      		{ MsgTag = '<td valign="bottom" colspan="3" height="90"><center>'
			  MsgTag = MsgTag + '<h2 align="center"><b>'
			  MsgTag = MsgTag + '<p >'
			  MsgTag = MsgTag + HeaderText + '</b>'
			  MsgTag = MsgTag + '</h2></center></td></tr>'

	    	  document.write(MsgTag); }

/* *** Start Next Table row 
		This code is used to define the individual table cell sizes  */
      		{ MsgTag = '<tr>'
			  MsgTag = MsgTag + '<tr class=whiteondark>'
			  MsgTag = MsgTag + '<td valign="top" width="140" height="22" ></td>'
			  MsgTag = MsgTag + '<td valign="top" width="200"></td>'
			  MsgTag = MsgTag + '<td valign="top" width="200"></td>'
			  MsgTag = MsgTag + '<td valign="top" width="209"></td>'
			  MsgTag = MsgTag + '</tr>'
	    	  document.write(MsgTag); }
};


	//  End of ScreenHeader Javascript source ->

