function start() 
{
	// get the reference for the body
	var divv = document.getElementById("adsGoHere");

	// creates a <table> element and a <tbody> element
	var tbl     = document.createElement("table");
	var capTion = document.createElement('caption');
	var captionText=document.createTextNode('Adverts')
	var spaN=document.createElement('span')
	spaN.style.fontSize='small'
	spaN.style.color='#ffff00'
	var spanText=document.createTextNode(' -  help me keep the website going - please click via this site ')
	spaN.appendChild(spanText)
	capTion.appendChild(captionText)
	capTion.appendChild(spaN)
	var tblBody = document.createElement("tbody");

	// creating all cells
	for (var j = 0; j < norows; j++) 
	{
		// creates a table row (j= no rows)
		var row = document.createElement("tr");

		for (var i = 0; i < 5; i++) 
		{
			// Create a <td> element and a text node, make the text
			// node the contents of the <td>, and put the <td> at
			// the end of the table row (i=no columns)
			var cell = document.createElement("td");
			cell.setAttribute('width','20%')
			
			
			//wording for table cell
			var cellText = document.createTextNode(advert[5*j+i][0]);
			//href for link
			var cella=document.createElement("a");
			cella.setAttribute('href',advert[5*j+i][1]);
			
			cella.setAttribute('title','opens in new window');
			cella.appendChild(cellText)
			
			var cellimg=document.createElement('img');
			cellimg.setAttribute('src',advert[5*j+i][2]);
			cellimg.setAttribute('width','1');
			cellimg.setAttribute('height','1');
			cellimg.setAttribute('border',0);
			
			
			cell.appendChild(cella);
			cell.appendChild(cellimg);
			row.appendChild(cell);
		}

		// add the row to the end of the table body
		tblBody.appendChild(row);
	}
	// put the <tbody> in the <table>
	tbl.appendChild(capTion)
	tbl.appendChild(tblBody);
	// appends <table> into <body>
	divv.appendChild(tbl);
	// sets the border attribute of tbl to 2;
	tbl.setAttribute("border", "2");
	tbl.setAttribute('width','100%')
}

