var pTxt="view printable format&nbsp;&nbsp;"
var printTxt="print&nbsp;&nbsp;"
var tTxt="change text size&nbsp;&nbsp;"
var textSize = null

function initialisePage() {
	if(parent.textSize) textSize = parent.textSize
	else textSize=10
	ptSize=textSize+"pt"
	document.getElementById("storyBody").style.fontSize=ptSize
}
function addStory(info) {

	webString = '&nbsp;<a href="http://'+WebAddress+'" target="_blank">'+WebTitle+'</a>'
	emailString = '<a href="mailto:'+AuthorEmail+'"><img src="../../images/bioemail.gif" border="0" alt="email the author" align="middle"></a>'
	document.getElementById("storyIcon").src="../"+info[6]+".jpg"
	addText("storyTitle","&nbsp;"+Title+"&nbsp;")
	addText("storyAuthor",Author)
	addText("storyIntroBio",Bio)
	//addText("storyIntroComment",Comment)
	addText("storyAuthorLink",webString)
	addText("storyBioEmail",emailString)
	addText("storyBody",Story)
		if(Genre=="Book Review") Author = "xxxIdeomancer"
		if(Genre=="Film Review") Author = "xxxIdeomancer"
		if(Genre=="Classic") Author = "xxxIdeomancer"
		if(Genre=="Featured Author") Author = "xxxIdeomancer"
	strCopyright="Copyright &copy; "+Date.substring(Date.indexOf("2"),Date.length)+",&nbsp;"+Author.substring(3,Author.length)
	if(document.getElementById("storyCopyright") == null) return
	else addText("storyCopyright",strCopyright)
}
function addText(id,value) {
	//if(document.getElementById(id).innerHTML=="")
	document.getElementById(id).innerHTML=value
}
function openIntro() {
	document.getElementById("storyIntroDropdown").style.visibility="visible"
}
function closeIntro() {
	document.getElementById("storyIntroDropdown").style.visibility="hidden"
}
function changeText() {
	if(textSize==14) textSize=8
	else textSize=textSize+2
	if(parent.textSize) parent.textSize = textSize
	ptSize=textSize+"pt"
	document.getElementById("storyBody").style.fontSize=ptSize
}
function printFormat(path) {
	var intH = (screen.height/100)*85
	var intW = (intH*2)/2.5
	var intL = (screen.width - intW)/2
	var intT = (screen.height - intH)/10
	var strFeatures = "resizable=yes,toolbar=no,statusbar=no,scrollbars=yes,menubar=no,height="+intH+",width="+intW+",left="+intL+",top="+intT
	var splits = path.split(".htm")
	path = "../"+splits[0]+"gs.htm"
	window.open(path,"Print",strFeatures);
	window.focus
}
function changeBarHeader(genre,id) {
	if(parent.frames.frmHeader) {
			 parent.frames.frmHeader.changeHeader(genre,id)
		}
}
