// JavaScript Document
	function testVisited(sites, handler) {
	function visited(link) {
		var color;
		if (document.defaultView && document.defaultView.getComputedStyle) {
			color = document.defaultView.getComputedStyle(link, '').color;
		} 
			else if (link.currentStyle) {
			color = link.currentStyle.color;
		}
		return /0/.test(color);
	}
	var head = document.getElementsByTagName('head')[0];
	var body = document.getElementsByTagName('body')[0];
	var id = 'zomaareenID';
	var goodSel = '#' + id + ' a';
	var badSel  = '#' + id + ' a:visited';
	var good = 'color: #FFF !important;';
	var bad  = 'color: #000 !important;';

	var style = document.createElement('style');
	head.appendChild(style);
	var stylesheet = document.styleSheets[document.styleSheets.length - 1];

	if (stylesheet.insertRule) {
		stylesheet.insertRule(goodSel + ' {' + good + '}', 0);
		stylesheet.insertRule(badSel  + ' {' + bad  + '}', 0);
	} else if (stylesheet.addRule) {
		stylesheet.addRule(goodSel, good);
		stylesheet.addRule(badSel,  bad);
	}

	var div = document.createElement('div');
	div.id = id;
	div.setAttribute('style', 'width: 0px; height: 0px;');
	body.appendChild(div);

	for (var index = 0; index < sites.length; index++) {
		var a = document.createElement('a');
		a.href = sites[index];
		div.appendChild(a);
		sites[index] = {url: sites[index], visited: visited(a)};
	}
	head.removeChild(style);
	body.removeChild(div);	
	handler(sites);		
}
