/* This file is maintained manually, but certain parts of it (indicated by
   ‘perl:’ comments) are edited in-place by scripts. The one in the bsof
    folder is just a copy, and should not be modified. */

var CTOS_info = {
	state: 'ca',
	tax_rate: .0825,
	readable_tax_rate: '8.25%',
	discounts: {
		std: 40,
		hardbound: 30
	}
}

var otPrices = {
 US: 15,
 Can: 18,
 other: 30,
 digi: 10,
 digiplus: 5
};

if(this.document) var vv=document.location.search.indexOf('verbose')>=0;
var UPSsurcharge=7; //percentage

/*perl:begin abbreviations*/
var bab=new Array("A","BU","BW","BE","BH","ChE","CM","CP","CTS","CL","CSL","CSD","CR","CoE","CTO","CTO2","CO","CC","DL","DD","DY","DC","EA","ED","EJ","EM","EL","EvCTzzz0","EvCTzzz1","EvCTzzz2","EvCTzzz3","EvCTzzz4","EvCTzzz5","EH","FS","FO","FG","FD","FC","FE","FF","FW","FL","GLzzz0","GLzzz1","GO","HE","HG","HS","HH","I","IW","LC","LG","LH","MP","MC","ML","N","OPQ","OS","OW","OCR","OCOC","OA","OR","OCB","OCS","OCO","OI1","OI2","OTM","OP","OE","PE","PFJ","PM","PG","PS","PFT","PK","QU","QC","RE","RU","RA","RN","RW","SS","SM","SSS","SEG","SW","ScOC","SEO","ScT","ShT","SN","SHF","SC","SmOC","SB","SL","SER","STN","TO","TH","WP","WO","WC","Y","vFzzz0","vFzzz1","vFzzz2","vRzzz0","vRzzz1","vRzzz2","vAOOzzz0","vOKEzzz0","vHzzz0","vHzzz1","vHzzz2","vDzzz0","vDzzz1","vEzzz0","vEzzz1","vPzzz0","cal");
/*perl:end abbreviations*/

var bti=new Object(), bpr=new Object(), thck=new Object(),athck=new Object(), wght=new Object();
var bo=new Object(), toobig=new Object();preorderable={};dc={}
var thToWgh=3.578125/2.9375;
//"wght" is in lbs., rounded to the nearest 15th of an oz. (240th of a lb.).
//"thck" is in in., rounded to the nearest 32nd.

//bo.HS = 0;
//bo.BU = 0;

/*perl:start data*/
bti.A='The Amazing Resurrection from Death of a Former Drug&nbsp;Addict';
bpr.A='1.95';
thck.A=0.03125;
wght.A=0.0375;
bti.BU='The Balamand&nbsp;Union';
bpr.BU='2.95';
thck.BU=0.0625;
wght.BU=0.08333333333333333;
bti.BW='Beyond&nbsp;Wealth';
bpr.BW='8.95';
thck.BW=0.296875;
wght.BW=0.328125;
bti.BE='Biological Evolutionism';
bpr.BE='5.95';
thck.BE=0.09375;
wght.BE=0.1;
bti.BH='A Brief History of the Russian Orthodox&nbsp;Church';
bpr.BH='2.95';
thck.BH=0.078125;
wght.BH=0.08125;
bti.ChE='Christian&nbsp;Education';
bpr.ChE='5.95';
thck.ChE=0.046875;
wght.ChE=0.1125;
bti.CM='Christological Methods and Their Influence on Alexandrian and Antiochian Eucharistic&nbsp;Theology';
bpr.CM='5.95';
thck.CM=0.09375;
wght.CM=0.1125;
bti.CP='The Church of Patristic&nbsp;Tradition';
bpr.CP='6.95';
thck.CP=0.203125;
wght.CP=0.21875;
bti.CTS='The Church, Tradition, Scripture, Truth, and Christian&nbsp;Life';
bpr.CTS='6.95';
thck.CTS=0.203125;
wght.CTS=0.21875;
bti.CL='The C&#x0153;nobitic Life as an Image of the Life of the Holy&nbsp;Trinity';
bpr.CL='1.95';
thck.CL=0.0546875;
wght.CL=0.05823863636;
bti.CSL='A Comparative Synopsis of the Lives of Saint John Chrysostomos and Saint Gregory&nbsp;Palamas';
bpr.CSL='3.95';
thck.CSL=0.09375;
wght.CSL=0.08333333333333333;
bti.CSD='The Concealment of Sins During Confession is a Deadly&nbsp;Sin';
bpr.CSD='1.95';
thck.CSD=0.03125;
wght.CSD=0.03333333333333333;
bti.CR='Concerning the Relics of Saint Nicholas, Archbishop&nbsp;of&nbsp;Myra';
bpr.CR='4.95';
thck.CR=0.09375;
wght.CR=0.09166666666666666;
bti.CoE='Constantine the Ethnomartyr';
bpr.CoE='4.95';
thck.CoE=0.09375;
wght.CoE=0.1;
bti.CTO='Contemporary Traditionalist Orthodox&nbsp;Thought';
bpr.CTO='8.95';
thck.CTO=0.3125;
wght.CTO=0.36;
bti.CTO2='Contemporary Traditionalist Orthodox Thought: A Second&nbsp;Volume';
bpr.CTO2='8.95';
thck.CTO2=0.3125;
wght.CTO2=0.36;
bti.CO='The Contribution of the Orthodox Ecumenists to the Interfaith Venture and Their Responsibility&nbsp;for&nbsp;It';
bpr.CO='4.95';
thck.CO=0.172251002673797;
wght.CO=0.22;
athck.CO=0.21875;
bti.CC='The Counsels of a Contemporary&nbsp;Amma';
bpr.CC='4.95';
thck.CC=0.105;
wght.CC=0.11875;
bti.DL='Delight in the Law&nbsp;of&nbsp;God';
bpr.DL='10.95';
thck.DL=.375;
wght.DL=0.44533377;
bti.DD='The Dog Delusion and Other&nbsp;Essays';
bpr.DD='11.95';
thck.DD=.875;
wght.DD=0.5070632;
bti.DY='Do You Have&nbsp;a&nbsp;Ticket?';
bpr.DY='6.95';
thck.DY=0.15625;
wght.DY=0.19;
bti.DC='The Dramatic Crisis in the Ecumenical Movement and the Awakening of Orthodox <span style="white-space: nowrap">Anti-Ecumenism</span>';
bpr.DC='4.95';
thck.DC=0.338350183823529;
wght.DC=0.416;
athck.DC=0.4296875;
bti.EA='Ecumenism: A Movement for Union or a Syncretistic&nbsp;Heresy?';
bpr.EA='4.95';
thck.EA=0.14764371657754;
wght.EA=0.18;
athck.EA=0.1875;
bti.ED='The Egyptian Desert in the Irish&nbsp;Bogs';
bpr.ED='7.95';
thck.ED=0.21875;
wght.ED=0.26;
bti.EJ='Elder Jonah&nbsp;of&nbsp;Kiev';
bpr.EJ='6.95';
thck.EJ=0.2;
wght.EJ=0.2;
bti.EM='Eldress Myrtidiotissa';
bpr.EM='7.95';
thck.EM=0.2625;
wght.EM=0.31;
bti.EL='The Epistle Lectionary';
bpr.EL='24.95';
thck.EL=1.171875;
wght.EL=1.4123076923076923;
bti.EvCTzzz0='The Evergetinos (four-volume hardbound&nbsp;set)';
bpr.EvCTzzz0='240.00';
thck.EvCTzzz0=8.053977272727273;
wght.EvCTzzz0=10;
athck.EvCTzzz0=6;
toobig.EvCTzzz0=true;
dc.EvCTzzz0='hardbound';
bti.EvCTzzz1='The Evergetinos (four-volume paperbound&nbsp;set)';
bpr.EvCTzzz1='120.00';
thck.EvCTzzz1=6.040482954545455;
wght.EvCTzzz1=9;
athck.EvCTzzz1=4.5;
toobig.EvCTzzz1=true;
dc.EvCTzzz1='std';
bti.EvCTzzz2='The Evergetinos, Book I (paperbound)';
bpr.EvCTzzz2='32.95';
thck.EvCTzzz2=1.342329545454545;
wght.EvCTzzz2=2.25;
athck.EvCTzzz2=1;
toobig.EvCTzzz2=true;
dc.EvCTzzz2='std';
bti.EvCTzzz3='The Evergetinos, Book II (paperbound)';
bpr.EvCTzzz3='32.95';
thck.EvCTzzz3=1.426225142045454;
wght.EvCTzzz3=2.25;
athck.EvCTzzz3=1.0625;
toobig.EvCTzzz3=true;
dc.EvCTzzz3='std';
bti.EvCTzzz4='The Evergetinos, Book III (paperbound)';
bpr.EvCTzzz4='32.95';
thck.EvCTzzz4=1.594016335227272;
wght.EvCTzzz4=2.25;
athck.EvCTzzz4=1.1875;
toobig.EvCTzzz4=true;
dc.EvCTzzz4='std';
bti.EvCTzzz5='The Evergetinos, Book IV (paperbound)';
bpr.EvCTzzz5='32.95';
thck.EvCTzzz5=1.677911931818181;
wght.EvCTzzz5=2.25;
athck.EvCTzzz5=1.25;
toobig.EvCTzzz5=true;
dc.EvCTzzz5='std';
bti.EH='Exposition of the Holy Gospel According to Saint&nbsp;Luke';
bpr.EH='19.95';
thck.EH=1.09375;
wght.EH=1.3708333333333333;
bti.FS='Fasting and&nbsp;Science';
bpr.FS='4.95';
thck.FS=0.09375;
wght.FS=0.09449404761904762;
bti.FO='Fasting in the Orthodox&nbsp;Church';
bpr.FO='8.95';
thck.FO=0.28125;
wght.FO=0.31666666667;
bti.FG='Father Georges Florovsky on&nbsp;Ecumenism';
bpr.FG='4.95';
thck.FG=0.05625;
wght.FG=0.0625;
bti.FD='Flowers from the&nbsp;Desert';
bpr.FD='8.95';
thck.FD=0.28125;
wght.FD=0.3235294117647059;
bti.FC='Fools for&nbsp;Christ';
bpr.FC='4.95';
thck.FC=0.125;
wght.FC=0.1375;
bti.FE='Four Essays on Orthodox Liturgical&nbsp;Issues';
bpr.FE='6.95';
thck.FE=0.28125;
wght.FE=0.30802919708029197;
bti.FF='Four Festal&nbsp;Icons';
bpr.FF='4.95';
thck.FF=0.09375;
wght.FF=0.0875;
bti.FW='Further Words on&nbsp;Obedience';
bpr.FW='4.95';
thck.FW=0.0625;
wght.FW=0.08333333333333333;
bti.FL='The Future Life According to Orthodox&nbsp;Teaching';
bpr.FL='8.95';
thck.FL=0.25;
wght.FL=0.288;
bti.GLzzz0='The Gospel Lectionary (Paperbound)';
bpr.GLzzz0='34.95';
thck.GLzzz0=1.68449197860962566844;
wght.GLzzz0=2.1625;
athck.GLzzz0=1.125;
toobig.GLzzz0=true;
dc.GLzzz0='std';
bti.GLzzz1='The Gospel Lectionary (Hardbound)';
bpr.GLzzz1='59.95';
thck.GLzzz1=2.24598930481;
wght.GLzzz1=2.625625;
athck.GLzzz1=1.5;
toobig.GLzzz1=true;
dc.GLzzz1='hardbound';
bti.GO='A Guide to Orthodox&nbsp;Life';
bpr.GO='8.95';
thck.GO=0.34375;
wght.GO=0.406;
bti.HE='The Heresy of Ecumenism and the Patristic Stand of the&nbsp;Orthodox';
bpr.HE='4.95';
thck.HE=0.153795538101604;
wght.HE=0.19;
athck.HE=0.1953125;
bti.HG='Hiding&nbsp;Genocide';
bpr.HG='2.95';
thck.HG=0.0625;
wght.HG=0.08088235294117647;
bti.HS='Homilies on the Book of the Prophet&nbsp;Ezekiel';
bpr.HS='22.95';
thck.HS=1.2648;
wght.HS=1.45;
bti.HH='Hunger for&nbsp;Holiness';
bpr.HH='4.95';
thck.HH=0.09375;
wght.HH=0.09479166666666666;
bti.I='The Immoderate and Self-Absorbed Anti-Old Calendarist Zeal of the Innovative New Calendarists';
bpr.I='4.95';
thck.I=0.1484375;
wght.I=0.16964285714;
bti.IW='Inner-Worldly Monasticism';
bpr.IW='5.95';
thck.IW=.1875;
wght.IW=.20833333333333333;
bti.LC='The Life and Conduct of Saint John the Wonderworker';
bpr.LC='5.95';
thck.LC=0.125;
wght.LC=0.1299342105263158;
bti.LG='Lantern&nbsp;of&nbsp;Grace';
bpr.LG='15.00';
thck.LG=0.51181102;
wght.LG=0.934375;
toobig.LG=true;
dc.LG='hardbound';
bti.LH='The Life of the Holy Hierarch and Confessor Glicherie of&nbsp;Romania';
bpr.LH='5.95';
thck.LH=0.1875;
wght.LH=0.21;
bti.MP='Made Perfect&nbsp;in&nbsp;Faith';
bpr.MP='17.95';
thck.MP=0.9375;
wght.MP=1.0625;
bti.MC='A Manual for C&#x0153;nobitic&nbsp;Monastics';
bpr.MC='4.95';
thck.MC=0.625;
wght.MC=0.07916666666666666;
bti.ML='The Monastic&nbsp;Life';
bpr.ML='6.95';
thck.ML=0.19375;
wght.ML=0.186;
bti.N='The Non-Chalcedonian&nbsp;Heretics';
bpr.N='5.95';
thck.N=0.125;
wght.N=0.15277777778;
bti.OPQ='The Œcumenical Patriarchate and the Question of Greek-Turkish Relations Through the&nbsp;Centuries';
bpr.OPQ='8.95';
thck.OPQ=0.302083333333333;
wght.OPQ=0.33602123;
bti.OS='The Œcumenical Synods of the Orthodox&nbsp;Church';
bpr.OS='11.95';
thck.OS=0.5;
wght.OS=0.63;
bti.OW='Of Whom the World Was Not&nbsp;Worthy';
bpr.OW='11.95';
thck.OW=.5;
wght.OW=0.62280589;
bti.OCR='The Old Calendarists and the Rise of Religious Conservatism&nbsp;in&nbsp;Greece';
bpr.OCR='4.95';
thck.OCR=0.125;
wght.OCR=0.15;
bti.OCOC='The Old Calendar Orthodox Church&nbsp;of&nbsp;Greece';
bpr.OCOC='7.95';
thck.OCOC=0.25;
wght.OCOC=0.28439632;
bti.OA='On&nbsp;Abraham';
bpr.OA='8.95';
thck.OA=0.28125;
wght.OA=0.32;
bti.OR='Orthodox and Roman Catholic Relations from the Fourth Crusade to the Hesychastic Controversy';
bpr.OR='13.95';
thck.OR=0.625;
wght.OR=0.74;
bti.OCB='The Orthodox Christian and the Boundaries of Contemporary Medical Technology';
bpr.OCB='3.95';
thck.OCB=0.09375;
wght.OCB=0.09166666666666666;
bti.OCS='Orthodox Christianity and the Spirit of Contemporary&nbsp;Ecumenism';
bpr.OCS='6.95';
thck.OCS=0.25;
wght.OCS=0.28;
bti.OCO='<i>The Orthodox Church</i> and <i>The Orthodox Way</i>&nbsp;Reviewed';
bpr.OCO='8.95';
thck.OCO=0.28125;
wght.OCO=0.31;
bti.OI1='Orthodox Insights,Volume I: A Collection of Short Questions and Answers on Liturgical Practice and Orthodox&nbsp;Worship';
bpr.OI1='7.95';
thck.OI1=0.251953125;
wght.OI1=0.28625;
bti.OI2='Orthodox Insights,Volume II: A Collection of Short Questions and Answers on Orthodox Theological Pastoral, and Ecclesiastical&nbsp;Concerns';
bpr.OI2='8.95';
thck.OI2=0.29296875;
wght.OI2=0.38125;
bti.OTM='Orthodox Tradition and&nbsp;Modernism';
bpr.OTM='4.95';
thck.OTM=0.103125;
wght.OTM=0.12083333333333333;
bti.OP='Orthodoxy and Psychology';
bpr.OP='10.95';
thck.OP=0.34375;
wght.OP=0.42098765432;
bti.OE='Orthodoxy and the Ecumenical&nbsp;Movement';
bpr.OE='4.95';
thck.OE=0.211622660427808;
wght.OE=0.256;
athck.OE=0.26875;
bti.PE='The Panheresy of&nbsp;Ecumenism';
bpr.PE='4.95';
thck.PE=0.09375;
wght.PE=0.1;
bti.PFJ='The Paschal Fire in&nbsp;Jerusalem';
bpr.PFJ='11.95';
thck.PFJ=0.5;
wght.PFJ=0.6;
bti.PM='Paths and Means to&nbsp;Holiness';
bpr.PM='5.95';
thck.PM=0.1875;
wght.PM=0.2;
bti.PG='Patriarch Gregory <span class=sc>V</span> the Ethnomartyr';
bpr.PG='4.95';
thck.PG=0.09375;
wght.PG=0.12109375;
bti.PS='Pitirim&nbsp;Sorokin';
bpr.PS='3.95';
thck.PS=0.09375;
wght.PS=0.11397058823529412;
bti.PFT='Protestant Fundamentalistic&nbsp;Thought';
bpr.PFT='4.95';
thck.PFT=0.09375;
wght.PFT=0.11666666666666667;
bti.PK='The&nbsp;Psalter';
bpr.PK='47.95';
thck.PK=1.32085561;
wght.PK=1.5625;
athck.PK=1.0;
toobig.PK=true;
dc.PK='hardbound';
bti.QU='The Question&nbsp;of&nbsp;Union';
bpr.QU='5.95';
thck.QU=0.171875;
wght.QU=0.19375;
bti.QC='Quickened with&nbsp;Christ';
bpr.QC='17.95';
thck.QC=0.78125;
wght.QC=1.0125;
bti.RE='Resistance or Exclusion?';
bpr.RE='7.95';
thck.RE=0.34375;
wght.RE=0.41;
bti.RU='Resisting Unto&nbsp;Blood';
bpr.RU='12.95';
thck.RU=0.703125;
wght.RU=0.8653846153846154;
bti.RA='The Road to&nbsp;Apostasy';
bpr.RA='5.95';
thck.RA=0.125;
wght.RA=0.1375;
bti.RN='Romanian Nationalism During the Reign of King&nbsp;Mihai&nbsp;I';
bpr.RN='4.95';
thck.RN=0.1875;
wght.RN=0.212;
bti.RW='The Roman West and the Byzantine&nbsp;East';
bpr.RW='8.95';
thck.RW=0.1875;
wght.RW=0.212;
bti.SS='Sacred&nbsp;Space';
bpr.SS='7.95';
thck.SS=0.375;
wght.SS=0.43;
bti.SM='Saint Mark of&nbsp;Ephesus';
bpr.SM='2.95';
thck.SM=0.0546875;
wght.SM=0.05797101449;
bti.SSS='Saint Seraphim&nbsp;of&nbsp;Sofia';
bpr.SSS='14.95';
thck.SSS=.5967;
wght.SSS=.68;
bti.SEG='Saints of England&#x2019;s Golden&nbsp;Age';
bpr.SEG='13.95';
thck.SEG=0.5625;
wght.SEG=0.69;
bti.SW='&#x201c;Schism&#x201d; or &#x201c;Walling-Off&#x201d;?';
bpr.SW='1.95';
thck.SW=0.0625;
wght.SW=0.058333333333333334;
bti.ScOC='Science and Orthodox Christianity';
bpr.ScOC='4.95';
thck.ScOC=0.03125;
wght.ScOC=0.084375;
bti.SEO='A Scientific Examination of the Orthodox Church&nbsp;Calendar';
bpr.SEO='10.95';
thck.SEO=0.40625;
wght.SEO=0.49;
bti.ScT='Scripture and&nbsp;Tradition';
bpr.ScT='8.95';
thck.ScT=0.27;
wght.ScT=0.2702127659574468;
bti.ShT='The Shroud&nbsp;of&nbsp;Turin';
bpr.ShT='4.95';
thck.ShT=0.0625;
wght.ShT=0.078125;
bti.SN='The Significance of the New Martyrs in the Life of the Orthodox&nbsp;Church';
bpr.SN='4.95';
thck.SN=0.0625;
wght.SN=0.08333333333333333;
bti.SHF='“Signs of Human Feeling and Attitude”';
bpr.SHF='4.95';
thck.SHF=0.1875;
wght.SHF=0.212;
bti.SC='Small Compline with the Salutations to the <i>Theotokos</i>';
bpr.SC='4.95';
thck.SC=.0859375;
wght.SC=.10416666667;
bti.SmOC='Smoking and the Orthodox&nbsp;Christian';
bpr.SmOC='4.95';
thck.SmOC=0.078125;
wght.SmOC=0.09375;
bti.SB='Spiritual&nbsp;Beauty';
bpr.SB='4.95';
thck.SB=0.0625;
wght.SB=0.07317073170731707;
bti.SL='Spiritual&nbsp;Life';
bpr.SL='3.95';
thck.SL=0.0625;
wght.SL=0.0625;
bti.SER='A Study of the Ecclesiology of Resistance';
bpr.SER='4.95';
thck.SER=0.21875;
wght.SER=0.25416666666666665;
bti.STN='The Synaxis of the Three New Great&nbsp;Hierarchs';
bpr.STN='6.95';
thck.STN=0.1796875;
wght.STN=0.203947368421053;
bti.TO='Themes in Orthodox Patristic Psychology: Humility, Obedience, Repentance,&nbsp;and&nbsp;Love';
bpr.TO='22.95';
thck.TO=1;
wght.TO=1;
bti.TH='Two Homilies on Great Friday and&nbsp;Pascha';
bpr.TH='3.95';
thck.TH=0.0625;
wght.TH=0.075;
bti.WP='Wealth and Poverty in the Teachings of the Church&nbsp;Fathers';
bpr.WP='11.95';
thck.WP=0.361607142857143;
wght.WP=0.44;
bti.WO='Words on&nbsp;Obedience';
bpr.WO='4.95';
thck.WO=0.0625;
wght.WO=0.09449404761904762;
bti.WC='The World Council of Churches and the Interfaith&nbsp;Movement';
bpr.WC='4.95';
thck.WC=0.14764371657754;
wght.WC=0.17;
athck.WC=0.1875;
bti.Y='Young Children in the Orthodox&nbsp;Church';
bpr.Y='5.95';
thck.Y=0.090277777777778;
wght.Y=0.1;
bti.vFzzz0='<script><!--\ndocument.write(needs_mono ? \'Από τον Οικουμενισμό στο πανθρησκειακό όραμα της «Νέας Εποχής» και ευθύνη των ορθοδόξων\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Ἀπὸ τὸν Οἰκουμενισμὸ στὸ πανθρησκειακὸ ὅραμα τῆς «Νέας Ἐποχῆς» καὶ εὐθύνη τῶν ὀρθοδόξων<\\/span>\');\n//--></script>';
bpr.vFzzz0='15.00';
thck.vFzzz0=0.6824448529411765;
wght.vFzzz0=0.46875;
athck.vFzzz0=1.03125;
bti.vFzzz1='From Ecumenism to the “New Age” Vision of a World Religion and the Responsibility of the&nbsp;Orthodox';
bpr.vFzzz1='15.00';
thck.vFzzz1=0.6824448529411765;
wght.vFzzz1=0.46875;
athck.vFzzz1=1.03125;
bti.vFzzz2='От Экуменизма к Мечте о Всемирной Религии «Нового Века» и Ответственность Православных';
bpr.vFzzz2='15.00';
thck.vFzzz2=0.6824448529411765;
wght.vFzzz2=0.46875;
athck.vFzzz2=1.03125;
bti.vRzzz0='<script><!--\ndocument.write(needs_mono ? \'Ο ρόλος του Βατικανού στην σύγχρονη Διαθρησκειακή Κίνησι και η μεγάλη πτώσις των ορθοδόξων Οικουμενιστών\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Ὁ ρόλος τοῦ Βατικανοῦ στὴν σύγχρονη Διαθρησκειακὴ Κίνησι καὶ ἡ μεγάλη πτῶσις τῶν ὀρθοδόξων Οἰκουμενιστῶν<\\/span>\');\n//--></script>';
bpr.vRzzz0='15.00';
thck.vRzzz0=0.6824448529411765;
wght.vRzzz0=0.46875;
athck.vRzzz0=1.03125;
bti.vRzzz1='The Rôle of the Vatican in the Contemporary Interreligious Movement and the Great Fall of the Orthodox Ecumenists';
bpr.vRzzz1='15.00';
thck.vRzzz1=0.6824448529411765;
wght.vRzzz1=0.46875;
athck.vRzzz1=1.03125;
bti.vRzzz2='Роль Ватикана в современном межрелигиозном движении и великое падение православных экуменистов';
bpr.vRzzz2='15.00';
thck.vRzzz2=0.6824448529411765;
wght.vRzzz2=0.46875;
athck.vRzzz2=1.03125;
bti.vAOOzzz0='<script><!--\ndocument.write(needs_mono ? \'Η αίρεσις του Οικουμενισμού και τα «όρια» της Εκκλησίας. Η διάβρωσις της Ορθοδόξου Εκκλησιολογίας στην Οικουμενική και Διαθρησκειακή Κίνησι\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Ἡ αἵρεσις τοῦ Οἰκουμενισμοῦ καὶ τὰ «ὅρια» τῆς Ἐκκλησίας. Ἡ διάβρωσις τῆς Ὀρθοδόξου Ἐκκλησιολογίας στὴν Οἰκουμενικὴ καὶ Διαθρησκειακὴ Κίνησι<\\/span>\');\n//--></script>';
bpr.vAOOzzz0='15.00';
thck.vAOOzzz0=0.6824448529411765;
wght.vAOOzzz0=0.46875;
athck.vAOOzzz0=1.03125;
bti.vOKEzzz0='<script><!--\ndocument.write(needs_mono ? \'Οικουμενισμός: Κίνησις γιά την ένωσι η συγκρητιστική αίρεσις;\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Οἰκουμενισμός: Κίνησις γιὰ τὴν ἔνωσι ἢ συγκρητιστικὴ αἵρεσις;<\\/span>\');\n//--></script>';
bpr.vOKEzzz0='15.00';
thck.vOKEzzz0=0.6824448529411765;
wght.vOKEzzz0=0.46875;
athck.vOKEzzz0=1.03125;
bti.vHzzz0='<script><!--\ndocument.write(needs_mono ? \'Η αίρεσις του Οικουμενισμού και η Πατερική στάσις των Ορθοδόξων\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Ἡ αἵρεσις τοῦ Οἰκουμενισμοῦ καὶ ἡ Πατερικὴ στάσις τῶν Ὀρθοδόξων<\\/span>\');\n//--></script>';
bpr.vHzzz0='15.00';
thck.vHzzz0=0.6824448529411765;
wght.vHzzz0=0.46875;
athck.vHzzz0=1.03125;
bti.vHzzz1='The Heresy of Ecumenism and the Patristic Stand of the Orthodox (videocassette)';
bpr.vHzzz1='15.00';
thck.vHzzz1=0.6824448529411765;
wght.vHzzz1=0.46875;
athck.vHzzz1=1.03125;
bti.vHzzz2='Ересь экуменизма и святоотеческая позиція православныхъ';
bpr.vHzzz2='15.00';
thck.vHzzz2=0.6824448529411765;
wght.vHzzz2=0.46875;
athck.vHzzz2=1.03125;
bti.vDzzz0='<script><!--\ndocument.write(needs_mono ? \'Η δραματική κρίσις της Οικουμενικής Κινήσεως και η αφύπνισις του Ορθοδόξου Αντι-οικουμενισμού\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Ἡ δραματικὴ κρίσις τῆς Οἰκουμενικῆς Κινήσεως καὶ ἡ ἀφύπνισις τοῦ Ὀρθοδόξου Ἀντι-οικουμενισμοῦ<\\/span>\');\n//--></script>';
bpr.vDzzz0='15.00';
thck.vDzzz0=0.6824448529411765;
wght.vDzzz0=0.46875;
athck.vDzzz0=1.03125;
bti.vDzzz1='The Dramatic Crisis in the Ecumenical Movement and the Awakening of Orthodox Anti-Ecumenism (videocassette)';
bpr.vDzzz1='15.00';
thck.vDzzz1=0.6824448529411765;
wght.vDzzz1=0.46875;
athck.vDzzz1=1.03125;
bti.vEzzz0='<script><!--\ndocument.write(needs_mono ? \'Οικουμενική Κίνησις και Ορθόδοξος Αντι-οικουμενισμός. Η κρίσιμος αντιπαράθεσις ενός αιώνος\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>Οἰκουμενικὴ Κίνησις καὶ Ὀρθόδοξος Ἀντι-οικουμενισμός. Ἡ κρίσιμος ἀντιπαράθεσις ἑνὸς αἰῶνος<\\/span>\');\n//--></script>';
bpr.vEzzz0='15.00';
thck.vEzzz0=0.6824448529411765;
wght.vEzzz0=0.46875;
athck.vEzzz0=1.03125;
bti.vEzzz1='The Ecumenical Movement and Orthodox Anti-Ecumenism: A Century of Critical Confrontation';
bpr.vEzzz1='15.00';
thck.vEzzz1=0.6824448529411765;
wght.vEzzz1=0.46875;
athck.vEzzz1=1.03125;
bti.vPzzz0='<script><!--\ndocument.write(needs_mono ? \'«Το Πνεύμα της Ασσίζης». Η Αίρεσις του Οικουμενισμού και ο Παποκεντρικός Συγκρητισμός\' : \'<span\' + (isWindows ? \' style="font-family: Tahoma"\': \'\') + \'>«Τὸ Πνεῦμα τῆς Ἀσσίζης». Ἡ Αἵρεσις τοῦ Οἰκουμενισμοῦ καὶ ὁ Παποκεντρικὸς Συγκρητισμὸς<\\/span>\');\n//--></script>';
bpr.vPzzz0='15.00';
thck.vPzzz0=0.6824448529411765;
wght.vPzzz0=0.46875;
athck.vPzzz0=1.03125;
bti.cal='2010 Church&nbsp;Calendar';
bpr.cal='8.00';
thck.cal=0.18324908088;
wght.cal=.2243758;
athck.cal=0.171875;
toobig.cal=true;
/*perl:end data*/

// Add the ‘(back-ordered)’ notice to the ends of the titles that need it
0,function(){
	for(var i in bo)i in preorderable||(
		bti[i]+=
		  ' <span style="white-space:nowrap">(back-ordered)</span>'
	)
}()

function pF(num) {
	num=parseFloat(num);
	if (typeof(isNaN)=='function') if (isNaN(num)) num=0;
	return num;
}
function pI(num) {
	num=parseInt(num,10);
	if (typeof(isNaN)=='function') if (isNaN(num)) num=0;
	return num;
}
function pIb(num) {
	num=parseInt(num,10);
	if (typeof(isNaN)=='function') if (isNaN(num)) num='';
	if(num==0)num='';
	return num;
}
function readBiscuit(cookieName) {
	var cookindex=document.cookie.indexOf(cookieName+'=');
	if (cookindex==-1) return '';
	else {
		var cookbegin=cookindex+cookieName.length+1;
		var colindex=document.cookie.indexOf(';',cookindex);
		if (colindex==-1) colindex=document.cookie.length;
		return document.cookie.substr(cookbegin, colindex-cookbegin)
	}
}
function extractVar(varName,source,separator) {

  // Set the default separator.
	if(!separator)separator='&';

  // Search for the variable name preceded by a space.
	var varindex=source.indexOf(' '+varName+'=');

  // If it couldn't be found, look for the variable name preceded by the separator.
	if(varindex==-1) {  varindex=source.indexOf(separator+varName+'=')}
  
  // If it still couldn't be found,--
  if (varindex<0&&source.substring(0,varName.length+1)!=varName+'=')  return '';
	else { varindex++;
		var varbegin=varindex+varName.length+1;
		var sepindex=source.indexOf(separator,varindex);
		if (sepindex==-1) sepindex=source.length;
		return source.substr(varbegin, sepindex-varbegin)
	}
}
function Curr(str) {
	str = (Math.round(pF(str) * 100)).toString();
	while (str.length < 3) {
		str='0' + str;
	}
	return str.substring(0,str.length-2) + "." + str.substring(str.length-2,str.length);
}
function VBTrim(str) {
while (str.substring(0,1)==" ") { str=str.substring(1,str.length); }
while (str.substring(str.length-1,str.length)==" ") { str=str.substring(0,str.length-1);}
return str;
}
trim=VBTrim

function roundUp(numberToRoundUp){return Math.ceil(numberToRoundUp);
/*
numberToRoundUp=pF(numberToRoundUp);
return numberToRoundUp-(((numberToRoundUp%1)-1)%1);*/
}

/*
y = -0.0000000366374953763096x6 + 0.00000507388209774898x5 - 0.000259420430447909x4 + 0.00599945932889875x3 - 0.061675327245941x2 + 0.350191060109227x + 0.17137919269071
*/

function pPoly(th){ //standard polynomial
	with(Math){
	var rv =		-(.0000000366374953763096*pow(th,6))
		+(.00000507388209774898*pow(th,5))
	-(.000259420430447909*pow(th,4))
		+(.00599945932889875*pow(th,3))
		-(.061675327245941*th*th)
		+(.350191060109227*th)
		+.17137919269071;}
	return rv;
}
function pPolyV(th){ //for videos only
	with(Math){
	var rv =-(.0015*th*th)
		+(.1382*th);}
	return rv;
}

/*y = -0.0000000226247840433974x6 + 0.00000332714251941916x5 - 0.000187232623695187x4 + 0.00506946935121905x3 - 0.0684299444647065x2 + 0.53265456540549x + 0.0297106891091302*/

function pPolyH(th){ //for 'Homilies'
	with(Math){
	var rv =-(.0000000226247840433974*pow(th,6))
		+(.00000332714251941916*pow(th,5))
	-(.000187232623695187*pow(th,4))
		+(.00506946935121905*pow(th,3))
	-(.0684299444647065*th*th)
		+(.53265456540549*th)
  - .0297106891091302;}
	return rv;
}
function rl(){
	return String.fromCharCode(parseInt(Math.random()*26)+'A'.charCodeAt(0));
}
function fUA(){
	var dh= (escape(navigator.userAgent))+'_'+navigator.platform;
	dh=dh.replace(/%\S\S/g,'').replace(/Mozilla\//gi,'').replace(/\./g,'').
		replace(/Windows/gi,'W').replace(/Win/gi,'W').replace(/Macintosh/gi,'M').replace(/Mac OS/gi,'M'
		).replace(/Mac/gi,'M').replace(/DOS/gi,'D').replace(/Unix/gi,'U').replace(/linux/gi,'L').
		replace(/MSIE/gi,'IE').replace(/compatible/gi,'PC').toUpperCase();
	for(var i=dh.length-1,mji='';i+1;i--){
		mji+=dh.charAt(i);
	}
	return mji;
}

/* shipInfo returns an array of objects, each of which has the following
 * properties:
 *	weight: total weight of all packages
 *	type:   type of mailpiece according to USPS ('letter', 'flat',
 *	       'flatenv', 'flatbox', or 'parcel')
 *	packag: type of package
 *		'env'     = 6(1/2) x 9(1/2) envelope,
 *		'padded'  = padded envelope
 *		'brown'   = brown U-Line box
 *		'box'     = any box
 *		'flatenv' = flat-rate envelope
 *		'flatbox' = flat-rate box
 *	handling: handling charges
 *      boxes:    number of boxes
 */
function shipInfo(wghT,thick,athick,toobigthickness,foreign){
	var ret = [{ boxes : 1 }];
	if(athick <= .6875 /*maximum book thickness for flat-rate envelopes*/) {
		// then flat-rate envs are a possibility
		ret[1] = {
			'weight':    wghT + 5/16,
			'type':     'flatenv',
			'packag':  'flatenv',
			'handling': .55,
			'boxes':     1
		};
	}
	else if(athick <= 6 /*maximum book thickness for flat-rate boxes*/) {
		ret[ret.length] = {
			'weight':    wghT + .5, // just an estimate!!!
			'type':     'flatbox',
			'packag':  'flatbox',
			'handling': .85,
			'boxes':     1
		};
	}

	if (athick <= 1.18 /*maximum book thickness for padded envelopes*/) {
		ret[0].handling = .55; //handling+env
		ret[0].boxes = 1;
		if(athick<=.14){
			ret[0].weight = wghT+.5/16;
			ret[0].packag = 'env';
			ret[0].type = athick + .021 > .25 ? 'flat' : 'letter';
			// .021 is the thickness of a 6x9
		}
		else
			ret[0].weight = wghT+3.5/16,
			ret[0].packag = 'padded',
			ret[0].type = athick + .57 > .75 ? 'parcel' : 'flat';
			// .57 is the thickness of a padded 
			//  env + packing materials
	}
	else {
		ret[0].handling=.85; //handling+box
		if (athick<3.75 && !toobigthickness) { //brown box
			ret[0].weight = wghT+9.25/16;
			ret[0].type   = 'parcel';
			ret[0].packag = 'brown';
		}
		else if (toobigthickness && ((athick-toobigthickness)/2+toobigthickness)<1.5)
		{ // - homilies in brown box
			ret[0].weight = wghT+12/16;
			ret[0].type   = 'parcel';
			ret[0].packag = 'brown';
		}
		else { with(ret[0]) {
			boxes=roundUp(wghT/60);
			var boxes2 = roundUp(thick/46); //46 is the maximum that the polynomial can handle
			if (boxes2>boxes)boxes=boxes2;
			ret[0].type =  'parcel';
			ret[0].weight = wghT+pPoly(thick/boxes)*boxes;
			ret[0].packag = 'box';
/* javascript:alert(pPoly(10.8125)+13.016807692307693) should be above 15 lbs. (2004)
javascript:alert(pPoly(37.624763257575765)+43.05573262858) needs to be above 48 lbs. (Nov. 2005) (not listed below because wght > 14 takes care of it)
javascript:alert(pPoly(10.973875)+13.214847103511794) needs to be above 15 lbs. (Aug 2005) (not listed below)
*/
			if (weight > 14) weight*=1.039;
			handling=.25+(.6*(foreign&&weight/boxes>40?2:1)*boxes); //extra box charge
		}}
	}
	return ret;
}

function copyfit(text){
	if(text.length<=10 || ! (text.indexOf(' ')))
		return "<nobr>" + text + "</nobr>";
	//This function assumed that the text contains no pipes.
	var currentIndex=text.lastIndexOf(' ');
	if(currentIndex)text=text.substring(0,currentIndex)+'|'+text.
		substring(currentIndex+1);
	while(true){
		currentIndex=text.lastIndexOf(' ');
		/*Because of the zero-basedness of  JavaScript,  the 
			length of a  string  minus  the  index  of  a
			certain character is one more than the length
			of the remainder of the string  after  that
			character. This is why I have used "11"
			instead of "10." */

		/* If the number of characters after the last space is
			greater than or equal to 10: */
		if(text.length-currentIndex>=11) {
			/*Insert the <nobr> tags around the last few
				words: */
			text=text.substring(0,currentIndex+1)+'<nobr>'
				+text.substring(currentIndex+1)+
				'</nobr>';
			//Exit the loop:
			break;
		}
		else {
			text=text.substring(0,currentIndex)+'|'+text.
				substring(currentIndex+1);
		}
	}
	/* Replace the pipes with spaces. (I could use 
		
		text.replace(/\|/g, ' ');

		but for compatibility reasons I would rather not use
		regular expressions. */
	for(currentIndex=text.indexOf('|');currentIndex>=0;
		currentIndex=text.indexOf('|')) {
		text=text.substring(0,currentIndex)+' '+text.substring
			(currentIndex+1);
	}
	return text;
}

