function show(url, w, h, s, n) {
	if (!n) n = '_blank';
	attr = 'width=' + w + ',height=' + h + ',location=0,menubar=0,resizable=0,scrollbars=' + s + ',status=0,titlebar=0,toolbar=0,hotkeys=0'
	if (parseInt(navigator.appVersion) >= 4) {
		x = (screen.width - w) / 2
		y = (screen.height - h) / 2
		if(x < 0) x = 0
		if(y < 0) y = 0
		attr += ',xposition=' + x + ',left=' + x + ',yposition=' + y + ',top=' + y
	}
	window.open(url, n, attr)
}

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();

