function showImage(id) {
	//$(id).style.display='block';
	if ( Element.cumulativeOffset($(id).parentNode)[1]+Element.getHeight($(id))>document.viewport.getHeight() && Element.cumulativeOffset($(id).parentNode)[1]+Element.getHeight($(id).parentNode)>Element.getHeight($(id)) ) {
		$(id).style.bottom = "0px"
		$(id).style.top = null;
	} else {
		$(id).style.bottom = null;
		$(id).style.top = "0px";
	}
	$(id).style.zIndex = 100;
	$(id).style.display='block';
}

function hideImage(id) {
	$(id).style.display='none';
}
