function writeSpace(num)
{
for(i=0;i<num;i++)
    document.write("&nbsp;");
}
function writeTopMenu(root,title)
{

document.write("<a href=\""+root+"index.html\" class=\"main\">Home</a>&nbsp;&nbsp;");
document.write("&nbsp;&nbsp;<a href=\""+root+"stories.html\" class=\"main\">Stories</a>&nbsp;&nbsp;");
document.write("&nbsp;&nbsp;<a href=\""+root+"meetings.html\" class=\"main\">Meetings</a>&nbsp;&nbsp;");
document.write("&nbsp;&nbsp;<a href=\""+root+"shapes.html\" class=\"main_new\">Shapes & Colors</a><sup>NEW</sup>&nbsp;&nbsp;");

}
function writeHomeSub()
{
document.write("<br />&nbsp;<a href=\"about.html\">About</a><br />");
document.write("&nbsp;<a href=\"links.html\">Links</a>");
}
function writeStoriesSub(root,title)
{
  document.write("<br />");
  writeSpace(17);
  if(title=="Human")
    document.write("HUMAN&nbsp;NATURE<br />");
  else
    document.write("<a href=\""+root+"human/human_0.html\">Human Nature</a><br />");
  writeSpace(17);
  if(title=="Pass")
    document.write("PASSAGE...<br/>");
  else
    document.write("<a href=\""+root+"passing/pass_0.html\">Passage...</a><br />");
  writeSpace(17);
  if(title=="Life")
    document.write("IMMITATION&nbsp;OF&nbsp;LIFE<br/>");
  else
  document.write("<a href=\""+root+"imitation/life_0.html\">Imitation of Life</a><br />");
}
function writeShpSub(root,title)
{
document.write("<br />");
writeSpace(64);
if(title=="Circles")
    document.write("CIRCLES<sup>NEW</sup><br />");
else
    document.write("<a href=\""+root+"circles/c_01.html\" class='new'>Circles</a><sup>NEW</sup><br />");
writeSpace(64);
if(title=="White")
    document.write("WHITE<sup>NEW</sup><br />");
else
    document.write("<a href=\""+root+"white/c_01.html\" class='new'>White</a><sup>NEW</sup><br />");
writeSpace(64);
if(title=="Lines")
    document.write("LINES<sup>NEW</sup><br />");
else
    document.write("<a href=\""+root+"lines/c_01.html\" class='new'>Lines</a><sup>NEW</sup><br />");
writeSpace(64);
if(title=="Water")
    document.write("WATER<sup>NEW</sup><br />");
else
    document.write("<a href=\""+root+"water/c_01.html\" class='new'>Water</a><sup>NEW</sup><br />");

}


function writeMeetingsSub(root, title)
{
document.write("<br />");
writeSpace(39);
if(title=="Moods")
    document.write("MOODS<br />");
else
    document.write("<a href=\""+root+"casual/c_01.html\">Moods</a><br />");
writeSpace(39);
if(title=="Encounters")
    document.write("ENCOUNTERS<br />");
else
    document.write("<a href=\""+root+"meetings/m_01.html\">Encounters</a><br />");
writeSpace(39);
if(title=="Commom")
    document.write("ABOUT COMMON THINGS<br />");
else
    document.write("<a href=\""+root+"common/c_01.html\">About Common Things</a><br />");
writeSpace(39);
if(title=="Repeat")
    document.write("REPETITIONS<br />");
else
    document.write("<a href=\""+root+"repetitions/c_01.html\">Repetitions</a><br />");
writeSpace(39);
if(title=="City")
    document.write("CITYSCAPE<sup>NEW</sup><br />");
else
    document.write("<a href=\""+root+"city/c_01.html\" class='new'>Cityscape</a><sup>NEW</sup><br />");
}

function writeForward(last, title, page)
{
	second  = '../pics/arrows/next.gif';
	first = '../pics/arrows/next_r.gif';
	if(!last)
	{
        document.write('<script language="JavaScript">SecondImage00="'+first+'";</script>');
        document.write('<a href="'+page+'" target="_self" onMouseOver="{OrigImage00=img00.src; img00.src=SecondImage00} " onMouseOut="img00.src=OrigImage00;">');
        document.write('<img alt="'+title+'" name="img00" src="'+second+'"');
        document.write('onLoad="TempImage00=new Image(0,0); TempImage00.src=SecondImage00"></a>');
	}
	else
	{
		first  = '../pics/arrows/next_gray.gif';
		document.write('<IMG SRC="'+first+'" WIDTH="14" HEIGHT="14" ALT="">');
	}
}
function writeBackward(last, title, page)
{
	second  = '../pics/arrows/back.gif';
	first = '../pics/arrows/back_r.gif';
	if(!last)
	{
        document.write('<script language="JavaScript">SecondImage11="'+first+'";</script>');
        document.write('<a href="'+page+'" target="_self" onMouseOver="{OrigImage11=img11.src; img11.src=SecondImage11}" onMouseOut="img11.src=OrigImage11;">');
        document.write('<img alt="'+title+'" name="img11" src="'+second+'"');
        document.write('onLoad="TempImage11=new Image(0,0); TempImage11.src=SecondImage11"></a>');
	}
	else
	{
		first  = '../pics/arrows/back_gray.gif';
		document.write('<IMG SRC="'+first+'" WIDTH="14" HEIGHT="14" ALT="">');
	}
}
