function clickArea(tagName, className) {
	var els = document.getElementsByTagName(tagName);
	for (var i = 0; i < els.length; i++) if (els[i].className.indexOf(className)>=0) {
		els[i].onmouseover=function() {this.className+=" soopahover"}
		els[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" soopahover\\b"), "")}
		els[i].onclick = function () {location.href = this.getElementsByTagName("a")[0].href}
   }
}

window.onload = function() {
   clickArea("div", "soopalink");
}

		//onclick=\"ajax_do('../includes/update_link_clicks.php?filename=$f');\" 
		url = document.location.href;
		xend = url.lastIndexOf("/") + 1;
		var base_url = url.substring(0, xend);
		function ajax_do (url) {
				// Does URL begin with http?
				if (url.substring(0, 4) != 'http') {
						url = base_url + url;
				}
		
				var jsel = document.createElement('SCRIPT');
				jsel.type = 'text/javascript';
				jsel.src = url;
				document.body.appendChild (jsel);
		}
	
		function SaveLink(href)
		{
			ajax_do('http://www.monw.org/includes/update_link_clicks.php?filename=' + href);
		}
