var aTopText=new Array();
var aTopLink=new Array();
var aLeftText=new Array();
var aLeftLink=new Array();
var aLeft1Text=new Array();
var aLeft1Link=new Array();
var aLeft2Text=new Array();
var aLeft2Link=new Array();
var aLeft5Text=new Array();
var aLeft5Link=new Array();
var aLeft6Text=new Array();
var aLeft6Link=new Array();
var aTopText=new Array();
var aTopLink=new Array();
var aTop2Text=new Array();
var aTop2Link=new Array();
var aBottomText=new Array();
var aBottomLink=new Array();

// arrays for Top2 navigation
aTop2Text[0]="Home";						aTop2Link[0]="index.htm";
aTop2Text[1]="About Us";					aTop2Link[1]="about_01.htm";
aTop2Text[2]="News";						aTop2Link[2]="news_01.htm";
aTop2Text[3]="Contact Us";					aTop2Link[3]="contact_01.htm";

// arrays for left navigation
aLeftText[0]="Home";						aLeftLink[0]="index.htm";
aLeftText[1]="Gallery of Artwork and Furniture";		aLeftLink[1]="furniture_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="110" cellSpacing="0" cellPadding="0" width="650" bgColor="#888EAA" border="0">'
	strTop+='<tr><td height="110" width=650><img src="images/odyssey_top_01.jpg"></td></tr>'	
	strTop+='</table>'
	document.write(strTop);
}

function writeTop2Navigation(){
	strNav='';

	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	
	strTopClass='toplink'
	strLocation=""+document.location
	strLocation=strLocation.split("/")
	intArrayLength=strLocation.length
	
	strCurrentPage=strLocation[intArrayLength-1]

	if(!(strCurrentPage) || strCurrentPage==''){
		strCurrentPage="index.htm"
	}
	
	for(i=0;i<aTop2Text.length;i++){
		
		if((strCurrentPage)==aTop2Link[i]){
			strTopClass='toplink2'
		}else{
			strTopClass='toplink'		
		}
		
		strNav+='<a class="'+strTopClass+'" href="'+aTop2Link[i]+'">'+aTop2Text[i]+'</a>'+ strSpaces
	}

	strTop2= '<table valign=center align=center height="15" cellSpacing="0" cellPadding="0" width="650" border="0" background="images/header_02.jpg">'
	strTop2+='<td class="toplink" valign="center" align="right">'+strNav+'</td></tr>'
	strTop2+='</table>'
	document.write(strTop2);
}

function writeLeftNavigation(){
	strNav='';

	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	
	strLeftClass='toplink'
	strLocation=""+document.location
	strLocation=strLocation.split("/")
	intArrayLength=strLocation.length
	
	strCurrentPage=strLocation[intArrayLength-1]

	if(!(strCurrentPage) || strCurrentPage==''){
		strCurrentPage="index.htm"
	}
	
	for(i=0;i<aLeftText.length;i++){
		
		if((strCurrentPage)==aLeftLink[i]){
			strLeftClass='toplink2'
		}else{
			strLeftClass='toplink'		
		}
		
		strNav+='<a class="'+strLeftClass+'" href="'+aLeftLink[i]+'">'+aLeftText[i]+'</a><br>'
	}

	strLeft= '<table cellSpacing="1" cellPadding="5" width="175" border="0" bgcolor=#b69927 background=".jpg"><tr>'
	strLeft+='<td class="toplink" align="left" bgcolor=#ccb763 background=".jpg"><font color="ffffff">Odyssey Site Menu:</a></td></tr><tr>'
	strLeft+='<td class="toplink" align="left" bgcolor=#fef2c4 background=".jpg">'+strNav+'</td></tr>'
	strLeft+='</table>'
	document.write(strLeft);
}

function writeLeft2Navigation(){
	strNav='';

	strSpaces='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	
	strLeftClass='Leftlink'
	strLocation=""+document.location
	strLocation=strLocation.split("/")
	intArrayLength=strLocation.length
	
	strCurrentPage=strLocation[intArrayLength-1]

	if(!(strCurrentPage) || strCurrentPage==''){
		strCurrentPage="index.htm"
	}
	
	for(i=0;i<aLeft2Text.length;i++){
		
		if((strCurrentPage)==aLeftLink[i]){
			strLeftClass='Leftlink2'
		}else{
			strLeftClass='Leftlink'		
		}
		
		strNav+='<a class="'+strLeftClass+'" href="'+aLeft2Link[i]+'">'+aLeft2Text[i]+'</a><br>'
	}

	strLeft2= '<table cellSpacing="1" cellPadding="5" width="175" border="0" bgcolor=#60667F background=".jpg"><tr>'
	strLeft2+='<td class="toplink" align="left" bgcolor=#8b93b3 background=".jpg"><font color="ffffff">Contact Odyssey:</a></td></tr><tr>'
	strLeft2+='<td class="toplink" valign="center" align="left" bgcolor=#F0F3FF><b>Odyssey Fine Arts Ltd</b><br>24 Holbein Place<br>London<br>SW1W 8NL<br><br>t: +44 (0)20 7730 9942<br>f: +44 (0)20 7259 9941<br>e: <a class="toplink" href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#111;&#100;&#121;&#115;&#115;&#101;&#121;&#102;&#105;&#110;&#101;&#97;&#114;&#116;&#115;&#64;&#97;&#111;&#108;&#46;&#99;&#111;&#109;&#63;&#115;&#117;&#98;&#106;&#101;&#99;&#116;&#61;&#119;&#101;&#98;&#115;&#105;&#116;&#101;&#32;&#101;&#110;&#113;&#117;&#105;&#114;&#121;&#38;&#98;&#111;&#100;&#121;&#61;&#37;&#48;&#65;">&#111;&#100;&#121;&#115;&#115;&#101;&#121;&#102;&#105;&#110;&#101;&#97;&#114;&#116;&#115;&#64;&#97;&#111;&#108;&#46;&#99;&#111;&#109;</a></td></tr>'
	strLeft2+='</table>'
	document.write(strLeft2);
}

function getToday(){
	today = new Date();
	return weekdays[today.getDay()]+", "+months[today.getMonth()]+" "+today.getDate()+" "+today.getFullYear();
}

function writeBottomNavigation(){

 document.write('<table width=650 border=0 cellpadding=0 cellspacing=0>');
 document.write('<tr><td valign=center align=left width=210 height=90><a target="_new" href="http://www.lapada.co.uk"><img src="images/lapada_01.jpg" border=0 height=90 width=210></a></td>');
 document.write('<td valign=bottom width=440 height=90 background="images/bottom_left_01.jpg">&nbsp;</td></tr>');
 document.write('</table>'); 
 document.write('<table width=650 border=0 cellpadding=0 cellspacing=0><tr>');
 document.write('<td class="boxtext1" align=center>&copy; 2007 ODYSSEY FINE ARTS LTD (unless otherwise stated).<br />');
 document.write('This website has been built to work best with Microsofts Internet Explorer 7 and above. Whilst every effort has been made to check browser compatibility, We can take no responsibility for an individuals PC or Mac browser settings.<br />');
 document.write('website by <a class="boxtext1" target="_new" href="http://www.3bweb.com/?utm_source=ODYSSEY&amp;utm_medium=link&amp;utm_campaign=credits">3B Web Design</a></td></tr>');
 document.write('</table>');
}