function setDivLinks()
{
	// if we've got a DOM-compliant browser
	if (document.getElementById)
	{
		var thisDiv;
		var searchRegex = /divLink/i;
		// get all divs
		divs = document.getElementsByTagName('div');
	
		for(var i=0; i < divs.length; i++)
		{
			thisDiv = divs[i];
			// if the div is of the class "divLink"
			if (-1 != thisDiv.className.search(searchRegex))
			{
				thisDiv.onmouseover = function() {
					this.className='divLinkHover';
				};
				thisDiv.onmouseout = function() {
					this.className='divLink';
				};
				// get the first anchor within the div
				// Note: must be a fully qualified URL!
				anchors = thisDiv.getElementsByTagName('a');
				if (anchors.length > 0)
				{
					var hrefString = anchors[0].href;
					this.onclick = function() { document.location.href = hrefString ;};
				}
			}
		}
	}
}