//version 3-26-2008 1:27 pm
var FOOTER_HEIGHT = 46;
var HEADER_HEIGHT = 31;
function openWin(isbn, buyURL, serviceURL)
{
var bookText = BookViewerText("single", isbn, null, null, null, null, buyURL, serviceURL);
var varString = "height=700,width=610,resizable=1,status=0";
var OpenWindow=window.open("", "_blank", varString);
OpenWindow.document.write("");
OpenWindow.document.write("
Insight Book Preview");
OpenWindow.document.write("");
OpenWindow.document.write("");
OpenWindow.document.write(bookText);
OpenWindow.document.write("");
OpenWindow.document.write("");
OpenWindow.document.write("");
}
function InsightBookReader(mode, isbn, title, author, startingPage, configUrl, buyUrl, serviceUrl, extraSwfArgs){
flashInst = getFlashVersion();
if(flashInst >= 9){
var myOutput = BookViewerText(mode, isbn, title, author, startingPage, configUrl, buyUrl, serviceUrl, extraSwfArgs);
document.write(myOutput);
}else{
document.write('');
if(mode != "audio") {
document.write('

');
}
document.write('To browse and search this book, please upgrade to the latest version of the free
Adobe Flash Player.
')
}
}
function BookViewerText(mode, isbn, title, author, startingPage, configUrl, buyUrl, serviceUrl, extraSwfArgs)
{
var isbnString = (isbn)?"&ISBN=" + isbn : "";
var titleString = (title)?"&title=" + title : "";
var authorString = (author)?"&author=" + author : "";
var modeString = (mode)?"&mode=" + mode: "";
var startPageString = (startingPage)?"&StartingPage=" + startingPage: "";
var configUrlString = (configUrl)?"&configurationUrl=" + configUrl : "";
var buyUrlString = (buyUrl)?"&buyUrl=" + buyUrl: "";
var serviceUrlString = (serviceUrl)?"&serviceUrl="+serviceUrl: "";
var flashVarParams = isbnString + titleString + authorString + modeString + startPageString + configUrlString + buyUrlString + serviceUrlString;
var width = 0;
var height = 0;
if(mode=="preview"){
height = 335;
width = 195;
var swfLocation = "http://insight.randomhouse.com/widget/InsightV2.swf";
}
else if(mode=="audio"){ // added by djn
height = 60; // added by djn
width = 195; // added by djn
var swfLocation = "http://insight.randomhouse.com/widget/InsightAudio.swf"; // added by djn
} // added by djn
else if(mode=="audiopreview"){ // added by djn
height = 335; // added by djn
width = 195; // added by djn
var swfLocation = "http://insight.randomhouse.com/widget/InsightAudio.swf"; // added by djn
} // added by djn
else{ //mode is single
width = 610;
height = 700;
var swfLocation = "http://insight.randomhouse.com/widget/InsightV2.swf"; // added by djn
}
flashVarParams+="&width="+width;
flashVarParams+="&height="+height;
var myString = "";
myString +=("");
return myString;
}
/********************************** Mustard Lab's detect flash methods start here *************************************/
b = navigator.userAgent.toLowerCase();
if ( (b.indexOf('msie') != -1) && (b.indexOf('win') != -1) && (b.indexOf('opera') == -1) ) {
document.writeln('