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]="CONTACT US";					aTop2Link[1]="contact_01.htm";
aTop2Text[2]="30 DAY FREE TRIAL!";				aTop2Link[2]="offer_01.htm";
aTop2Text[3]="NEWS";						aTop2Link[3]="news_01.htm";


// arrays for left navigation
aLeftText[0]="HOME";					aLeftLink[0]="index.htm";
aLeftText[1]="PRODUCT";					aLeftLink[1]="product_01.htm";
aLeftText[2]="ULTRASONICS";				aLeftLink[2]="ultrasonics_01.htm";
aLeftText[3]="TACKY GRIP";				aLeftLink[3]="why_01.htm";
aLeftText[4]="PRICE";					aLeftLink[4]="price_01.htm";
aLeftText[5]="CONTACT US";				aLeftLink[5]="contact_01.htm";
aLeftText[6]="TERMS & CONDITIONS";			aLeftLink[6]="tcs_01.htm";

var weekdays=new Array("SUN","MON","TUE","WED","THUR","FRI","SAT")
var months=new Array("JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEPT","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="80" cellSpacing="0" cellPadding="0" width="650" bgColor="#ffffff" border="0">'
	strTop+='<td height="80" width=650><img src="images/top_banner_01.jpg" border=0 width=650 height=80></td></tr>'	
	strTop+='</table>'
	document.write(strTop);
}

function writeTop2Navigation(){
	strNav='';

	strSpaces='&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+=strSpaces + '<a class="'+strTopClass+'" href="'+aTop2Link[i]+'">'+aTop2Text[i]+'</a>'+ strSpaces
	}

	strTop2= '<table valign=center align=center height="20" cellSpacing="0" cellPadding="0" width="650" border="0" background="images/top_banner_02.jpg">'
	strTop2+='<td class="toplink" valign="center" align="left">'+strNav+'</td></tr>'
	strTop2+='</table>'
	document.write(strTop2);
}

function writeLeftNavigation(){
	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<aLeftText.length;i++){
		
		if((strCurrentPage)==aLeftLink[i]){
			strLeftClass='Leftlink2'
		}else{
			strLeftClass='Leftlink'		
		}
		
		strNav+='<a class="'+strLeftClass+'" href="'+aLeftLink[i]+'">'+aLeftText[i]+'</a><br>'
	}

	strLeft= '<table cellSpacing="1" cellPadding="0" width="155" border="0" bgcolor=#60667F background=".jpg"><tr><td valign=center align=left>'
	strLeft+='<table cellSpacing="0" cellPadding="5" width="153" border="0" bgcolor=#F4FEEF background=".jpg"><tr>'
	strLeft+='<td align="left" bgcolor=#DDF3FF background=".jpg">'+strNav+'</td></tr>'
	strLeft+='</table>'
	strLeft+='</td></tr></table>'
	strLeft+='<img src="images/grooves_01.gif">'
	strLeft+='<table width=155 cellpadding=1 cellspacing=0 bgcolor=#60667F><tr><td><table width=153 cellpadding=0 cellspacing=5 align=left bgcolor=#DDF3FF><tr><td class="Leftlink">'
	strLeft+='<a class="Leftlink" target="_new" href="downloads/order_form_01.pdf">download the<br>order form >></a>'
	strLeft+='</td></tr></table></td></tr></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="0" width="180" border="0" bgcolor=#9D6745 background=".jpg"><tr><td valign=center align=left>'
	strLeft2+='<table cellSpacing="0" cellPadding="5" width="178" border="0" bgcolor=#FEF3EC background=".jpg"><tr>'
	strLeft2+='<tr><td class="boxtext" valign="center" align="left" bgcolor=#FEF3EC><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="mailto:odysseyfinearts@aol.com">odysseyfinearts@aol.com</a></td></tr>'
	strLeft2+='</table>'
	strLeft2+='</td></tr></table>'
	document.write(strLeft2);
}

function writeLeft3Navigation(){
	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>'
	}

	strLeft3= '<table cellSpacing="0" cellPadding="0" width="175" border="0" background=".jpg">'
	strLeft3+='<tr><td class="toplink" valign="center" align="left" background=".jpg"><center><img src="images/logo_01.gif"></td></tr>'
	strLeft3+='</table>'
	document.write(strLeft3);
}

function writeLeft4Navigation(){
	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>'
	}

	strLeft4= '<table cellSpacing="0" cellPadding="0" width="175" border="0" bgcolor=#ffffff background=".jpg">'
	strLeft4+='<tr><td class="toplink" valign="center" align="left" bgcolor=#ffffff><center><img src="images/cs_image_01.jpg"></td></tr>'
	strLeft4+='</table>'
	document.write(strLeft4);
}

function getToday(){
	today = new Date();
	return weekdays[today.getDay()]+", "+months[today.getMonth()]+" "+today.getDate()+" "+today.getFullYear();
}

function writeBottomNavigation(){

 document.write('<table valign=top align=center width=650 height=90 border=0 cellpadding=0 cellspacing=0 bgColor="#2C6A35"');
 document.write('<tr><td class="toplink" valign=center align=center><img src="images/main_back_02.jpg""></td></tr>');
 document.write('</table>');
 
 }
 
 function writeBottom2Navigation(){
 
  document.write('<span class="toplink"><font color=#ffffff><b>Caddy-San Ltd</b>, Derwick House, 26 Breakfield, Ullswater Business Park, Coulsdon, Surrey, CR5 2HS<br>tel: 0845 1170361, fax: 0845 1170362, email: <a href="mailto:info@caddysan.com"><font color=#ffffff>info@caddysan.com</a><br>website and logo by <a target="_new" href="http://www.3bweb.com"><font color=#ffffff>3B Web Design</a>');
  
 }