onload =function() {
	//Clear the results div
	document.getElementById('results').innerHTML ='';
	
	//Get the links I've listed into an array
	var links =document.getElementById('links').getElementsByTagName('a');
	
        var toout = [ "yahoo.com" , "google.com", "youtube.com" , "youtube.co.uk" , "live.com" , "msn.com" , "myspace.com" , "facebook.com" , "blogger.com" , "orkut.com" , "microsoft.com" , "google.co.in" , "ebay.com" , "hi5.com" , "aol.com" , "google.co.uk" , "photobucket.com" , "amazon.com" , "imdb.com" , "imageshack.us"]
	//An array for storing the sites I've visited
	var visited =new Array();
	
	//Identify the pages the user has been to, putting them in the 'visited' array
	for(i =0; i<links.length; i++) if(links[i].offsetLeft==1) visited.push(toout[i]); 
	
	//Reveals the results on page - bit of a hack. Could potentially be replaced with an AJAX function to
	//send data to the server without the user's knowledge
	for(i =0; i<visited.length; i++)
		document.getElementById('results').innerHTML += visited[i] + '<br />';
}
