

function addresstable(a)	//snag, slope prop table width
{
	var s = "";
	var numberoflines = eval( "addressline" + a +"[0]" );

	s += '<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0>';

	for ( n = 1; n <= ( numberoflines - 1 ); n++ )
	{
		s += '<TR>';
		for ( i = 1; i <= ( n - 1 ); i++ )	//COLSPAN=0  == 1
			s += '<TD BGCOLOR="#FFFFFF">&nbsp;</TD>';
		s += '<TD COLSPAN=';
		s += numberoflines + 1 - n;
		s += ' BGCOLOR="#FFFFFF">';
		s += '<FONT FACE="Verdana, Arial, Helvetica, sans-serif">';
		s += '<FONT SIZE=4 color="#FF0000">';
		s += eval( "addressline" + a + "[" + n + "]" );
		s += '</FONT></FONT>';
		s += '</TD>';
		s += '</TR>';
	}

	s += '<TR><!--columns defined here, 4 x 10%, 60% for 5 lines-->';
	for ( n = 1; n <= numberoflines - 1; n++ )
		s += '<TD WIDTH="5%" BGCOLOR="#FFFFFF">&nbsp;</TD>';
	s += '<TD WIDTH="';
	s += 100 - ( 5 * ( numberoflines - 1) );
	s += '%" BGCOLOR="#FFFFFF">';
	s += '<FONT FACE="Verdana, Arial, Helvetica, sans-serif" size=4 color="#FF0000">';
	s += eval( "addressline" + a + "[numberoflines]" );
	s += '</FONT></TD>';
	s += '</TR>';

	s += '</TABLE>';
	document.write(s);
}

function toprighttable(caption)
{
	var s = "";

	s += '<TABLE cellpadding=5 cellspacing=0 border=0>';

	s += '<tr>';
	s += '<td valign="top">';
	s += '<img src="pillogo3.gif" alt="pillogo3.gif" width=155 height=106>';	//207 141
	s += '</td>';
	s += '</tr>';

	s += '<tr>';
	s += '<td>';
	s += '<FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE=6 COLOR="#DD0000">';
	s += 'Cambridge Pilates</FONT>';
	//s += '<BR>&nbsp;';
	s += '</td>';
	s += '</tr>';

	s += '<tr>';
	s += '<td valign="bottom">';
	s += '<FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE=4 COLOR="#CC0000">';
	//s += 'Change your Body and your Life with PILATES</FONT>';
	if (caption != null)	// == ()
	{
		s += caption; 
	}
	else
	{
		s += '<center>SETTING STANDARDS IN PILATES</center>'; 
	}
	s += '</FONT></td>';
	s += '</tr>';

	s += '</TABLE>';
	
	return s;
}

/////////////////////// start for NNnavcol 020207

//var navfontcolourlight = "#FFFFFF";	//lighter when mouseover = A:hover = BODY
var navfontcolourdark = "#FFFFFF";	//normal, after mouseout = A:active = A:link = BODY = Click for
var fontcolourgreyedout = "#CCCCCC";	//greyed out, != navbackcolourlight
//var navbackcolourlight = "#FFFFCC";	//lighter when mouseover
var navbackcolourdark = "#EE0000";	//CC0000

var numberoflinks = 102;
caption = new Array(numberoflinks);
span = new Array(numberoflinks);
link = new Array(numberoflinks);

/*
	caption[40]="RECENT";
	span[40]=" Click to see details and pictures of our recent Special Events ";
	link[40]="caaevent.htm";		// no page has number = 40
	caption[41]="Events";
	span[41]=" Click to see details and pictures of our recent Special Events ";
	link[41]="caaevent.htm";		// page number = 41
*/

caption[0]=" ";	//first must be " " or wrong font, colour in NN4, don't know why
span[0]=" ";
link[0]=" ";

caption[10]="Introductory Workshops<br>Regular weekly classes";
span[10]=" Dates, Venues, Times ";
link[10]="pilweek.htm";

caption[30]="Cambridge Pilates";
span[30]=" Cambridge Pilates ";
link[30]="pilstudio.htm";

//caption[10]="Regular weekly classes";
//span[10]=" Dates, Venues, Times ";
//link[10]="pilweek.htm";

caption[50]="Pilates Holidays in Tuscany";
span[50]=" A relaxing summer week's holiday in Italy ";
link[50]="piltuscany2003.htm";

caption[70]="Body Control Pilates&#174 Association";
span[70]=" Explanation on the National Website ";
link[70]="http://www.bodycontrol.co.uk/";

caption[100]="Home Page";
span[100]=" Home Page ";
link[100]="pilhome.htm";

function navcoltable(pagenumber)
{
	var s = "";

	s += '<!--LH page table-->';
	s += '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="100%" HEIGHT="100%">';

	s += '<!--top nav column-->';
	s += '<TR>';
	s += '<TD VALIGN="top" BGCOLOR="' + navbackcolourdark + '">';

	s += '<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=0 WIDTH="100%" ALIGN="center">';
	s += '<TR>';
	s += '<TD colspan=2 BGCOLOR="' + navbackcolourdark + '" ALIGN="left">';	//no space before #
	s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" SIZE=2 COLOR="' + navfontcolourdark + '">';
	s += '<B>Click for...</B>';
	s += '</TD>';
	s += '</TR>';
	
	//s += '<TR>';
	//s += '<TD BGCOLOR="' + navbackcolourdark + '" >';	//no space before #
	//s += '&nbsp;';
	//s += '</TD>';
	//s += '</TR>';	
	
	for (var n=0; n <= numberoflinks; n++)	//n = argument index
	{
		if ( caption[n] )			//not nothing
		{
			s += '<TR>';
			if (n%10 == 0)	//any branch name
			{
				if (n  > 0)	//to ignore [0] dummy line
				{
					//s += '<td valign="top"><img src="pillogo3.gif"  width=41 height=28 alt="pillogo3.gif"></td>';
					s += '<td valign="top"><img src="pillogo3.gif" width=52 height=35 alt="pillogo3.gif"></td>';	//<!--207 141-->
				}
				if (Math.floor(n/10) != Math.floor(pagenumber/10) )	//not this branch name or activity, clickable
				{
					s += '<SPAN TITLE=" ' + span[n] + ' " >';
					s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="left" ';
					////s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="right" ';
					//s += 'onmouseover="mOvr(this, navbackcolourlight);" ';
					//s += 'onmouseout="mOut(this, navbackcolourdark);" ';
					s += '>';
					s += '<A HREF=" ' + link[n] + ' " >';
					s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" STYLE="text-decoration:none" SIZE=2 COLOR="' + navfontcolourdark + '"><B>';
					//s += '><B>';
				}
				else	//this branch, greyed
				{
					s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="left" >';
					////s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="right" >';
					s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" STYLE="text-decoration:none" SIZE=2 COLOR="' + fontcolourgreyedout + '"><B>';
				}
				s += caption[n];	//branch name
				s += '</B></FONT>';
				if (n != pagenumber)	//not this branch, clickable
				{
					s += '</A>';
				}
			}
			if ( (Math.floor(n/10) == Math.floor(pagenumber/10) ) && (n%10 != 0) )	//this branch, any activity, not branch name
			{
				if (pagenumber != n) 	//not this activity, not a branch name, clickable
				{
					s += '<SPAN TITLE=" ' + span[n] + ' " >';
					s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="right" ';
					//s += 'onmouseover="mOvr(this, navbackcolourlight);" ';
					//s += 'onmouseout="mOut(this, navbackcolourdark);" ';
					s += '>';
					s += '<A HREF=" ' + link[n] + ' " >';
					s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" STYLE="text-decoration:none" SIZE=2 COLOR="' + navfontcolourdark + '"><B>';
				}
				if (pagenumber == n)	//this activity, not branch name, greyed
				{
					s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="right">';	//no space before #
					s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" STYLE="text-decoration:none" SIZE=1 COLOR="' + fontcolourgreyedout + '"><B>';
				}
				s += caption[n];
				s += '</B></FONT>';
				if (pagenumber != n)	//not this activity, not branch name, clickable
				{
					s += '</A>';
				}
			}
			s += '</TD>';
			s += '</SPAN>';
			s += '</TR>';
		}
		if (pagenumber == 65)
		{
			n = 70;
		}
	}
	s += '</TABLE>';

	s += '</TD>';
	s += '</TR>';
	s += '<!--top nav column-->';

/*
	s += '<!--quote-->';
	s += '<TR>';
	s += '<TD VALIGN="center"><!--FFFF00--><!--DD00EEpurple-->';

	s += '<CENTER>';
	s += '<FONT COLOR="' + navbackcolourdark + '" SIZE=1 FACE="Verdana, Arial, Helvetica, sans-serif"><B>';
	s += '<BR><BR>';
	//s += quote();

	s += '</B></FONT>';
	s += '<BR><BR><BR>';
	s += '</CENTER>';

	s += '</TD>';
	s += '</TR>';
	s += '<!--quote-->';

	s += '<!--bottom nav column-->';
	s += '<TR>';
	s += '<TD VALIGN="bottom">';

	s += '<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0 WIDTH="100%">';
	
	s += '<TR>';
	s += '<SPAN TITLE=" back to Top of Page ">';
	s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="center" ';
	//s += 'onmouseover="mOvr(this, navbackcolourlight);" ';
	//s += 'onmouseout="mOut(this, navbackcolourdark);" ';
	s += '>';
	s += '<A HREF="#top">';
	s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" STYLE="text-decoration:none" SIZE=2><B>';
	s += '<B>Page TOP</B></FONT>';
	s += '</TD>';
	s += '</A></SPAN>';
	s += '</TR>';	
	
	s += '<TR>';
	s += '<SPAN TITLE="';
	s += span[100];
	s += '">';
	s += '<TD BGCOLOR="' + navbackcolourdark + '" ALIGN="center" ';
	//s += 'onmouseover="mOvr(this, navbackcolourlight);" ';
	//s += 'onmouseout="mOut(this, navbackcolourdark);" ';
	s += '>';
	s += '<A HREF="';
	s += link[100];
	s += '">';
	s += '<FONT face="Verdana, Arial, Helvetica, sans-serif" STYLE="text-decoration:none" SIZE=2><B>';
	s += '<B>';
	s += caption[100];
	s += '</B>';
	s += '</FONT></A>';
	s += '</TD>';
	s += '</SPAN>';
	s += '</TR>';
	
	s += '</TABLE>';

	s += '</TD>';
	s += '</TR>';
	s += '<!--bottom nav column-->';
*/
	s += '</TABLE>';
	s += '<!--LH page table-->';
	
	document.write(s);	
}

/////////////////////// end for NNnavcol 020207



function navcoltablestring3()
{
	var s = "";
	s += "<TABLE width='100%' cellpadding=10 cellspacing=0 border=0>";

	s += "<TR>";
	s += "<TD valign='top' bgcolor='#009900'>";
	s += "<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE=3 COLOR='#FFFFFF'>";
	s += "<B>Click for ...</B></FONT>";
	s += "</TD>";
	s += "</tr>";

	s += "<TR>";
	s += "<TD valign='top' bgcolor='#009900'>";
	s += "<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE=3 COLOR='#FFFFFF'>";
	s += "<B>Regular weekly classes";
	s += "<BR>Introductory Workshops</B></FONT>";
	s += "</TD>";
	s += "</tr>";

	s += "<tr>";
	s += "<TD valign='top' bgcolor='#009900'>";
	s += "<A HREF='http://www.bodycontrol.co.uk/'>";
	s += "<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE=3 COLOR='#FFFFFF'>";
	s += "<B>Body control Pilates</B></FONT></A>";
	s += "<A HREF='http://www.bodycontrol.co.uk/'>";
	s += "<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE=3 COLOR='#FFFFFF'>";
	s += "<B><BR>What is it ?</B></FONT></A>";
	s += "</TD>";
	s += "</tr>";

	s += "<tr>";
	s += "<TD valign='top' bgcolor='#00CC00'>";
	s += "<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE=3 COLOR='#FFFFFF'>";
	s += "<B>Pilates Holidays in Tuscany</B></FONT>";
	s += "</TD>";
	s += "</tr>";

	s += "<tr>";
	s += "<TD valign='top' bgcolor='#009900'>";
	s += "<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE=3 COLOR='#FFFFFF'>";
	s += "<B>Cambridge Pilates Studio";
	s += "<BR>Home Page</B></FONT>";
	s += "</TD>";
	s += "</TR>";

	s += "</TABLE>";

	return s;
}

function return777()
{
	var s = "";

	s = "777";
	return s;
}


