addLoadEvent(function () {
	propertyLisAsLinks();
});

function propertyLisAsLinks() {
	var propertyList = $('properties_propertyList');
	var properties = propertyList.getElementsByTagName('li');

	for (var i = 0; i < properties.length; i++) {

		// When the project <li> is clicked, visit the project page.
		properties[i].onclick = function () {
			window.location = this.getElementsByTagName('a')[0].getAttribute('href');
		};

		// When the project <li> is hovered upon, add 'hover' class.
		properties[i].onmouseover = function () {
			addClass(this, 'hover');
		};

		// When the project <li> is moused off of, remove 'hover' class.
		properties[i].onmouseout = function () {
			removeClass(this, 'hover');
		};
	}
}
