function getScroll()
{
	var xScroll, yScroll;
	if (self.pageYOffset) {
	  yScroll = self.pageYOffset;
	  xScroll = self.pageXOffset;
	} else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
	  yScroll = document.documentElement.scrollTop;
	  xScroll = document.documentElement.scrollLeft;
	} else if (document.body) {// all other Explorers
	  yScroll = document.body.scrollTop;
	  xScroll = document.body.scrollLeft;	
	}
	return yScroll;
}

function getHeight()
{
	var windowHeight
	if (self.innerHeight) {	// all except Explorer
	  windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
	  windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
	  windowHeight = document.body.clientHeight;
	}	
	return windowHeight;
}

function showit(divid,content_holderid,url,param)
{
	var feedid=90;
	var fromtop=getScroll() + getHeight() -420;
	var containerid='#'+divid;
	var content_holder='#'+content_holderid;
	var containertable=containerid+" table";
	$(containerid).fadeIn(500);
	$(containerid).css('top', fromtop);
	$(containerid).css('left', (($(window).width() / 2)-47) - ($(containertable).width() / 2));
	$('#contentHere').load(url+"?"+param);
}
function hideit(divid,content_holderid)
{   
    var containerid='#'+divid;
	var content_holder='#'+content_holderid;
	$(containerid).fadeOut(200);
	$(content_holder).html("<b>Loading...</b>");
}
