<!--// 
// local ads in a div

function divLocalAds()
{
	// id for where ad goes
	var divAd = document.getElementById('localAds')
	
	// create a random number between 0 and how many ads in list (may already be randomised)
	//var j=Math.floor(Math.random()*5); 
	
	// create element <a href
	var cella = document.createElement("a")
	cella.setAttribute("href",advertRandom[0][1])
	cella.setAttribute("alt",advertRandom[0][2])
	cella.setAttribute("title",advertRandom[0][2])
		
	var cellimg = document.createElement("img")
	cellimg.setAttribute("src",advertRandom[0][0])
	cellimg.setAttribute("border","0")
	cellimg.setAttribute("width",advertRandom[0][3])
	cellimg.setAttribute("height",advertRandom[0][4])

	// image is child of <a>
	cella.appendChild(cellimg)

	// append <a> into div
	divAd.appendChild(cella)
	
}
-->	
	

