<!--
// JavaScript Document
// right hand side column of ads in a table

function rightColumn()
{
	// id for where column of ads goes
	var col = document.getElementById("rightAds")
	
	// create table, caption and tbody elements
	var tab1 = document.createElement("table")
	tab1.setAttribute("border","0")
	tab1.setAttribute("width","150px")
	tab1.setAttribute("className","adsTable")
	var cap1 = document.createElement("caption")
	var cap1Text = document.createTextNode("Adverts")
		cap1.appendChild(cap1Text)
	var tabBody = document.createElement("tbody")
	
	var noAds = noColAds
	// create cells - 1 column + as many rows as ads
	for (var j=0; j<noAds; j++)
	{
		// create row - j = no of row
		var row = document.createElement("tr")
		
		// create one td per row
		var cell = document.createElement("td")
//		cell.setAttribute("width","200px")//test width
		cell.setAttribute("height","66px")//test height
		cell.setAttribute("border","0")
		
		var cella = document.createElement("a")
		cella.setAttribute("href",advertRight[j][1])
		cella.setAttribute("title",advertRight[j][2])
		
		var cellimg = document.createElement("img")
		cellimg.setAttribute("src",advertRight[j][0])
		cellimg.setAttribute("border","0")
//		cellimg.setAttribute("width","150")
//		cellimg.setAttribute("height","45")

		// image is child of a
		cella.appendChild(cellimg)
		cell.appendChild(cella)
		
		row.appendChild(cell)
		
		
		// add the row to the bottom of the table body
		tabBody.appendChild(row)
		
	}
	
	// put the caption and tbody in the table
	tab1.appendChild(cap1)
	tab1.appendChild(tabBody)
	// append table into body
	col.appendChild(tab1)
	// set border attribute to 2 and width 100%
	tab1.setAttribute("border","2")
	tab1.setAttribute("width","100%")
	
}
-->	
	
