// JavaScript Library for Novel Selection Functions



/* The following function loads the ISBN information for

   And Don't Forget to Rescue the Other Princess on the

   home page. */

   

function otherISBN() {



	document.getElementById('isbnInfoCent').innerHTML='<p class="isbn">' +

	'Hardcover &#8226; $25.95 &#8226;' + '<br />' +

	'ISBN-13: 978-1-59414-744-9 &#8226;' + '<br />' +

	'ISBN-10: 1-59414-744-2 &#8226;' + '<br />' +

	'251 pages &#8226; Five Star Gale Cengage Learning' + '</p>';



}



/* The following function displays the "Princess" book cover, ISBN information

   and "Buy This Book" button on the "Read Novel Chapters" page group. */



function Princess() {



	document.novel.src="../images/novels/princess_frontpage.jpg";

	

	document.getElementById('isbnInfoCent').innerHTML='<p class="isbn">' +

	'Hardcover &#8226; 242 pages &#8226; $25.95' + '<br />' +

	'ISBN: 1-59414-385-4 &#8226; ' + 

	'Five Star Publishing,' + '<br />' + 'an imprint of Thomson Gale.';

	

	document.getElementById('bookBuy').innerHTML=

	'<input type="button"' + 'value="Buy this Book"' +

	'onclick="princessInfo();" />';



}



/* The following function displays the "Other Princess" book cover, ISBN information

   and "Buy This Book" button on the "Read Novel Chapters" page group. */



function otherPrincess() {



	document.novel.src= "../images/novels/other_princess_cover.jpg";

	

	document.getElementById('isbnInfoCent').innerHTML='<p class="isbn">' +

	'Hardcover &#8226; $25.95 &#8226;' + '<br />' +

	'ISBN-13: 978-1-59414-744-9 &#8226;' + '<br />' +

	'ISBN-10: 1-59414-744-2' + '<br />' +

	'251 pages &#8226; Five Star Gale Cengage Learning' + '</p>';

	

	document.getElementById('bookBuy').innerHTML=

	'<input type="button"' + 'value="Buy this Book"' + 

	'onclick="otherInfo();" />';



}



function otherInfo() {



otherBook=window.open("otherprincess_buy.html", "otherBook",

          "width=600, height=460, menubar=no",

          "titlebar=no, toolbar=no",

          "top=100, left=450");



}



function princessInfo() {



princessBook=window.open("princess_buy.html", "princessBook",

             "width=600, height =525, menubar=no",

             "titlebar=no, toolbar=no",

             "top=100, left=450");



}



function bookInfo() {

	

	otherBook=window.open("novels/otherprincess_buy.html", "otherBook",

						  "width=600, height=460, menubar=no",

						  "titlebar=no, toolbar=no",

						  "top=100, left=450");	

	

}