function displayRSSpopup() {
	var arrayPageSize = getPageSize();

	if ( !document.getElementById("rssContainer") ) {
		var rssContainer = document.createElement("DIV");
		rssContainer.id = "rssContainer";
		rssContainer.style.width="100%";
		rssContainer.style.height=arrayPageSize[1] + "px";
		rssContainer.style.position="absolute";
		rssContainer.style.top="0px";
		rssContainer.style.left="0px";
		document.body.appendChild(rssContainer);
	}

	var rssDiv = document.createElement("DIV");
	rssDiv.id = "rssDiv";
	rssDiv.style.width="100%";
	rssDiv.style.height=arrayPageSize[1] + "px";
	rssDiv.style.position="absolute";
	rssDiv.style.background="#000";
	rssDiv.style.zIndex="100";
	rssDiv.style.opacity="0.7";
	rssDiv.style.filter="alpha(opacity=70)";
	rssDiv.style.top="0px";
	rssDiv.style.left="0px";
	rssDiv.onclick = function() { document.getElementById('rssContainer').parentNode.removeChild( document.getElementById('rssContainer') ) };
	document.getElementById("rssContainer").appendChild(rssDiv);

	var rssPopup = document.createElement("DIV");
	rssPopup.id = "rssPopup";
	rssPopup.style.width="375px";
	rssPopup.style.backgroundColor="#fdfebc";
	rssPopup.style.border="5px #DFD461 solid";
	rssPopup.style.color="#2b281c";
	rssPopup.style.zIndex="9999";
	rssPopup.style.font="italic 15px 'Palatino Linotype', 'Times New Roman', serif";
	rssPopup.style.margin="0 auto";
	rssPopup.style.padding="12px 16px 22px 16px";
	rssPopup.style.position="relative";
	rssPopup.style.top="200px";
	rssPopup.innerHTML = "<a href='http://www.leliathomas.com/feeds/all'>All</a><br /><a href='http://www.leliathomas.com/feeds/blog'>Blog</a><br /><a href='http://www.leliathomas.com/feeds/blog-comments'>Blog Comments</a><br /><a href='http://www.leliathomas.com/feeds/community'>Community</a><br /><a href='http://www.leliathomas.com/feeds/portfolio'>Portfolio</a><br /><a href='http://www.leliathomas.com/feeds/portfolio-comments'>Portfolio Comments</a><br /><a href='http://www.leliathomas.com/feeds/remixes'>Remixes</a><br><br><a href='#' style='font-size: 12px; position: absolute; right: 8px; color:#927200;' onclick=\"document.getElementById('rssContainer').parentNode.removeChild( document.getElementById('rssContainer') ); return false;\">Close this popup</a>"
	document.getElementById("rssContainer").appendChild(rssPopup);

	var rssContainer = document.getElementById("rssContainer");
}
	
function getPageSize() {
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}