var oldContent = "";

function showStoryOnPage(content) {
	try{
	var contentTd = document.getElementById("content");
	oldContent = contentTd.innerHTML;
	contentTd.innerHTML = content;
	}catch(e){
	}
	window.frames["story"].updateContent(content);
}

function showStory(indexId) {
	window.frames["story"].location.replace("/story/"+indexId);
}

function hideStory() {
	var contentTd = document.getElementById("content");
	contentTd.innerHTML = oldContent;
}