function m_hover(el){
	el.className = el.className + ' hover_menu';
}
function m_unhover(el){
	var pos = el.className.indexOf("hover_menu");
	if(pos == -1)
		return;
	el.className = el.className.substring(0, pos) + el.className.substring(pos + 11);
}

function popupi_img(img_url, width, height){
	var pos_x = (screen.width - width) / 2;
	var pos_y = (screen.height - height) / 2;
	window.open('/view.php?f=' + img_url, '', 'width=' + width + ', height=' + height + ', scrollbars=0, menubar=0, status=1, toolbar=0, left=' + pos_x + ', screenX=' + pos_x + ', top=' + pos_y + ', screenY=' + pos_y);
	return false;
}
function normalize_listic(id){
	var list = document.getElementById(id);
	if(!list)
		return;
	var i, max_height = 0;
	for(i = list.firstChild; i; i = i.nextSibling){
		if(i.offsetHeight > max_height)
			max_height = i.offsetHeight;
	}
	for(i = list.firstChild; i; i = i.nextSibling){
		if(i.firstChild && i.firstChild.lastChild && max_height > i.offsetHeight)
			i.firstChild.lastChild.style.marginTop = (max_height - parseInt(i.offsetHeight)) + "px";
	}
}
function MrWonkaBar(id){
	var el = document.getElementById(id);
	if(el){
		var lambda = '@';
		var str = 'info' + lambda + 'toyv' + "illa";
		str += '.' + "com.au";
		el.href = "mai" + "lto:" + str;
		el.innerHTML = str;
	}
}