function ShowMedia(id)
{
	var width=400;
	var height=300;
	var scroll="no";
	var left=0;
	var top=0;
	if(width > screen.width-10 || height > screen.height-28) scroll = "yes";
	if(height < screen.height-28) top = Math.floor((screen.height - height)/2-14);
	if(width < screen.width-10) left = Math.floor((screen.width - width)/2-5);
	
	window.open('/media/'+id+'/', 'media_'+id, 'width='+width+', height='+height+', toolbar=0, location=0, directories=0, menubar=0, scrollbars='+scroll+', resizable=0, status=0, fullscreen=0, left='+left+', top='+top);
}
