$(document).ready(function(){
var height=$(document).height();
var imageHeight=$('img').height();
var tableHeight=$('#abc').height();

$('img').css({"position":"relative", "top":height/2-imageHeight/2})
$('#abc').css({"position":"relative", "top":height/2-imageHeight/2})
})