function hoverFix() {
	var el = document.getElementById('gallerylist').getElementsByTagName('DIV');
	for (var i = 0; i < el.length; i++) {
		if (el[i].className == 'gitem') {
			el[i].onmouseover = function() {
				this.className += " hoverfix";
			}
			el[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp(" hoverfix\\b"), "");
			}
		}
	}
}

if (document.getElementById('gallerylist')) hoverFix();

