var aLeftText=new Array();
var aLeftLink=new Array();
var aLeft2Text=new Array();
var aLeft2Link=new Array();
var aTopText=new Array();
var aTopLink=new Array();
var aBottomText=new Array();
var aBottomLink=new Array();

// arrays for left navigation
aLeftText[0]="Britain I";		aLeftLink[0]="britain_01.htm";
aLeftText[1]="Britain II";		aLeftLink[1]="britain_02.htm";
aLeftText[2]="Britain & Ireland";	aLeftLink[2]="britain_03.htm";
aLeftText[3]="Europe & Beyond";		aLeftLink[3]="europe_01.htm";

// arrays for left2 navigation
aLeft2Text[0]="Commissions & Portraits";	aLeft2Link[0]="comport_01.htm";
aLeft2Text[1]="Drawings";			aLeft2Link[1]="oxford_01.htm";
aLeft2Text[2]="Greetings Cards";		aLeft2Link[2]="greetings_cards_01.htm";

// arrays for top navigation
aTopText[0]="Gallery";		aTopLink[0]="http://nickbremer.thirdb.com/gallery/"
aTopText[1]="Greeting Cards";	aTopLink[1]="http://www.nickbremer.com/greetings_cards_01.htm"
aTopText[2]="News";		aTopLink[2]="http://www.nickbremer.com/news_01.htm"
aTopText[3]="Profile";		aTopLink[3]="http://www.nickbremer.com/profile_01.htm"
aTopText[4]="Contact";		aTopLink[4]="http://www.nickbremer.com/contact_01.htm"
aTopText[5]="Home";		aTopLink[5]="http://www.nickbremer.com/index.htm"

// arrays for bottom navigation
aBottomText[0]="profile";		aBottomLink[2]="profile_01.htm"
aBottomText[2]="home";			aBottomLink[0]="index.htm"
aBottomText[1]="contact";		aBottomLink[1]="contact_01.htm"


var weekdays=new Array("sun","mon","tue","wed","thu","fri","sat")
var months=new Array("jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec")


function writeTopNavigation(){
	strNav='';
	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	for(i=0;i<aTopText.length;i++){
		strNav+='<a class="toplink" href="'+aTopLink[i]+'">'+aTopText[i]+'</a>'+ strSpaces
	}

	strTop= '<table align=center height="118" cellSpacing="0" cellPadding="5" width="760" bgColor="#124A78"  background="http://www.nickbremer.com/images/top_bar_01.gif" border="0">'
	strTop+='<tr><td  class="toplink" valign="bottom" align="right">'+strNav+getToday()+'</td></tr>'
	strTop+='</table>'
	document.write(strTop);
}

function writeLeftNavigation(){
	strNav='';
	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	for(i=0;i<aLeftText.length;i++){
		strNav+='<a class="Leftnav" href="'+aLeftLink[i]+'">'+aLeftText[i]+'</a><br>'
	}
	strNav2='';
	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	for(i=0;i<aLeft2Text.length;i++){
		strNav2+='<a class="Leftnav" href="'+aLeft2Link[i]+'">'+aLeft2Text[i]+'</a><br>'
	}

	strLeft= '<table align=center cellSpacing="0" cellPadding="0" width="150" bgColor="#385E5E" border=0>'
	strLeft+='<tr><td bgcolor=#000000 height=150 class="Leftlink" valign="center" align="center"><a href="http://www.sachanewley.com/index.htm"><img src="http://www.sachanewley.com/images/pots_02.jpg" border=0></a></td></tr>'
	strLeft+='<tr><td bgcolor=#000000 height=75 class="Leftlink" valign="center" align="center"><a target="_new" href="http://www.sachanewley.com/blessed_curse_01.htm"><img src="http://www.sachanewley.com/images/paintings_menu_01.gif" border=0></a></td></tr>'
	strLeft+='<tr><td bgcolor=#454545 height=75 class="Leftlink" valign="center" align="center"><a href="http://www.sachanewley.com/portraits_01.htm"><img src="http://www.sachanewley.com/images/portraits_menu_01.gif" border=0></a></td></tr>'
	strLeft+='<tr><td><table width=150 height=75 cellpadding=0 cellspacing=0 border=0></tr><td bgcolor=#385E5E height=75 width=75 class="Leftlink" valign="center" align="center"><a href="http://www.sachanewley.com/about_01.htm"><img src="http://www.sachanewley.com/images/biog_menu_01.gif" border=0></a></td><td bgcolor=#5B8181 height=75 width=75 class="Leftlink" valign="center" align="center"><a href="http://www.sachanewley.com/bibliography_01.htm"><img src="http://www.thirdb.com/sachanewley/images/bib_menu_01.gif" border=0></a></td></tr></table></td></tr>'
	strLeft+='<tr><td><table width=150 height=75 cellpadding=0 cellspacing=0 border=0></tr><td bgcolor=#709696 height=75 width=75 class="Leftlink" valign="center" align="center"><a href="http://www.sachanewley.com/contacts_01.htm"><img src="http://www.sachanewley.com/images/contacts_menu_01.gif" border=0></a></td><td bgcolor=#385E5E height=75 width=75 class="Leftlink" valign="center" align="center"><a href="http://www.sachanewley.com/portfolio_01.htm"><img src="http://www.thirdb.com/sachanewley/images/folio_menu_01.gif" border=0></a></td></tr></table></td></tr>'
	strLeft+='</table>'
	document.write(strLeft);
}

function getToday(){
	today = new Date();
	return weekdays[today.getDay()]+", "+months[today.getMonth()]+" "+today.getDate()+" "+today.getFullYear();
}

function writeBottomNavigation(){
	strNav='';
	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	for(i=0;i<aBottomText.length;i++){
		strNav+='<a class="toplink" href="'+aTopLink[i]+'">'+aTopText[i]+'</a>'+ strSpaces
	}

	strBottom= '<center><table width=100% align=center cellSpacing="0" cellPadding="5"  border="0">'
	strBottom+='<tr><td class="toplink" valign="top" align="center"><a class="toplink" href="http://www.sachanewley.com/contacts_01.htm">Contacts</a>&nbsp;|&nbsp;<a class="toplink" href="http://www.sachanewley.com/index.htm">Home</a><br>&copy; 2009 Sacha Newley</td></tr>'
	strBottom+='</table>'
	document.write(strBottom);
}

