// PDB (2010 modifications) - From 09 version to work with PayPal, WorldPay, Protx, Cardstream and Impress/WP variant
//Now collects & records order information from PayPal, WorldPay & Cardstream after order accepted (not easily possible for Sagepay)
// var basketLive = TRUE/FALSE acts as orders on/off switch to stop ordering for a charity when they or entire site is officially closed; Changed (APRIL 2010) from var cccs_testmode in 2009
//All variables "true/false to "TRUE/FALSE" (XL defaults)
//NB blank values of Payment provider variables are needed for the inactive providers
//Processes will not work in absence of variables
//Enable newsletter check box: TRUE / FALSE

//WorldPay

//var worldpayStatus = live / test; Changed (APRIL 2010) from worldpay_testmode = TRUE/FALSE in 2009
//If test the WP test server is used;  if live, the live server is used, once charity Oks with WP, they check installation, and agree live OK
//var worldpay_impress = TRUE/FALSE - This must always be defined, even if not a WP charity
//Email address for newsletter notification -  applies to Worldpay / Impress only
// PDB (FEB 2010)
// new variables to accommodate the sending of WP orders to multiple addresses
// if using WorldPay impress the charity doesn't receive any notification 
// so if customer opts in to newsletter we need an email address to send the notification to - hence newsletter_email1
//If charity does not want to offer newsletter code hides the newsletter opt in tick box

//Sagepay

//var sagepay_VendorName="";
//var sagepay_EncryptionPassword="";
//var sagepayStatus="test";
//dev/live/test/showpost
// PDB (APRIL 2010) Names changed from protx_EncryptionPassword etc
//Encryption password - assigned to charity by SP; testmode: values test/live/dev  ---- charities must successfully receive transaction in 'test' environment - SPwill then grant access to 'live'; dev = developing environment for us; order info sent to card enquiries email address

//Cardstream

//Cardstream variables: cardstream_ID; cardstream_Password; These two identify charity to CS; cardstream_email - the address to which order info is sent

<!--

var cardName = new Array();
var catNo = new Array();
var cardPrice = new Array();
var packSize = new Array();
var cardDimCms = new Array();
var cardDimIns = new Array();
var cardGreeting = new Array();
var sustain = new Array();
var cardNote = new Array();
var imageFile = new Array();
var thumbNailFile = new Array();
var foil = new Array();
var delCard = new Array();
var cdIndex = new Array();

//var basketLive="TRUE";
//var basketLive="FALSE";

//PayPal variables

var paypal_email1 = "";
var paypal_email2 = "";
var paypal_charityLogo = "";

//WorldPay variables

var worldpay_accId="THEHUMANERES";
var worldpay_instId="237156";
var returns="There are several circumstances in which we will happily refund or exchange your purchase. These are:<br />a) ...if you change your mind.<br />The unwanted product must be returned in an ‘as new’ condition with all packaging and accessories, within 14 days of purchase.<br />If  you are returning an item because you`ve simply changed your mind then the cost is entirely your responsibility. We recommend that you make  use of a parcel delivery company which will insure you for the value of  the goods that you are returning.<br />b) ...if the product is faulty or is damaged in transit.<br />We will either refund you or issue you with a credit note to the same value as your purchase as quickly as we can.<br />";
var wpEM1 = "info";
var wpEM2 = "humaneresearch.org.uk";
var contactTel = "0161 439 8041";
var worldpayStatus="live";
var notify_a_email1 = "info";
var notify_a_email2 = "humaneresearch.org.uk";
var notify_b_email1 = "mjbetts";
var notify_b_email2 = "tiscali.co.uk";
var notify_c_email1 = "";
var notify_c_email2 = "";

//WorldPay Impress variables. First must be defined, even if not a WP charity.

var worldpay_impress="FALSE";
var newsletter_email1 = "";
var newsletter_email2 = "";

//Sagepay; status: dev/live/test/showpost

var sagepay_VendorName="";
var sagepay_EncryptionPassword="";
var sagepayStatus="";

//Cardstream variables

var cardstream_ID="";
var cardstream_Password="";
var cardstream_email1 = "";
var cardstream_email2 = "";

var basketLive="TRUE";
var folder ="HumaneRT";
var charityName = "The Humane Research Trust";
var charityNumber = "267779";
var charityWebSite = "www.humaneresearch.org.uk";
var tradingCompanyName = "The Humane Research Trust";
var tradingCompanyNumber = "";
var charityAdd1 = "Brook House";
var charityAdd2 = "29 Bramhall Lane South";
var charityAdd3 = "Bramhall";
var charityAdd4 = "Stockport";
var charityAdd5 = "Cheshire";
var charityAdd6 = "SK7 2DN";
var enquiriesTel = "0161 439 8041";
var lastDate = "17-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="TRUE";
var genNote = "";
var genEnquiriesTel = "0161 439 8041";
var charityTextpara1 = "The Humane Research Trust is a registered charity encouraging and supporting new medical research which does not include the use of animals, with the objectives of advancing the diagnosis and treatment of disease in humans.";
var charityTextpara2 = "The Trust encourages scientists to develop innovative alternatives to the use of animals and so eliminate the suffering of animals which occurs in medical research and testing; in this and other ways The Trust also fulfils an important role in educating the next generation of researchers. In particular The Trust supports research involving donated human tissue which it believes fulfils the best ethical and scientific justifications for investigations into human conditions.";
var charityTextpara3 = "The Trust focuses upon HUMAN MODELS FOR HUMAN DISEASES which is to the PERMANENT BENEFIT OF BOTH PEOPLE AND ANIMALS.";
var charityLogo = "aLogoHumaneRT.gif";
var orient = "V";
var enqEM1 = "info";
var enqEM2 = "humaneresearch.org.uk";
var genEM1 = "info";
var genEM2 = "humaneresearch.org.uk";
var lstMn = "11";
var lstDay = "17";
var lstYear = "2010";
cardName[1]="And A Parsnip";
delCard[1]="";
catNo[1]="1";
foil[1]="";
cardPrice[1]="3.80";
packSize[1]="10";
cardDimCms[1]="15 x 10 cm";
cardDimIns[1]="5.9 x 3.9 in";
cardGreeting[1]="With best wishes for Christmas and the New Year";
sustain[1]="FSC certified materials";
cardNote[1]="Border for this display only";
imageFile[1]="zAndAParsnip.jpg";
thumbNailFile[1]="zAndAParsnip2.jpg";
cdIndex[1]="1";
cardName[2]="Christmas Robin";
delCard[2]="";
catNo[2]="2";
foil[2]="";
cardPrice[2]="3.80";
packSize[2]="10";
cardDimCms[2]="15 x 15 cm";
cardDimIns[2]="5.9 x 5.9 in";
cardGreeting[2]="With best wishes for Christmas and the New Year";
sustain[2]="FSC certified materials";
cardNote[2]="Matt board";
imageFile[2]="zChristmasRobin.jpg";
thumbNailFile[2]="zChristmasRobin2.jpg";
cdIndex[2]="2";
cardName[3]="Thumbs Up&#33";
delCard[3]="";
catNo[3]="3";
foil[3]="";
cardPrice[3]="3.80";
packSize[3]="10";
cardDimCms[3]="16 x 16 cm";
cardDimIns[3]="6.3 x 6.3 in";
cardGreeting[3]="With best wishes for Christmas and the New Year";
sustain[3]="FSC certified materials";
cardNote[3]="Border for this display only";
imageFile[3]="zThumbsUp.jpg";
thumbNailFile[3]="zThumbsUp2.jpg";
cdIndex[3]="3";
cardName[4]="Christmas Companions";
delCard[4]="";
catNo[4]="4";
foil[4]="";
cardPrice[4]="3.80";
packSize[4]="10";
cardDimCms[4]="12.6 x 12.6 cm";
cardDimIns[4]="5.0 x 5.0 in";
cardGreeting[4]="With best wishes for Christmas and the New Year";
sustain[4]="FSC certified materials";
cardNote[4]="Border for this display only";
imageFile[4]="zChristmasCompanions.jpg";
thumbNailFile[4]="zChristmasCompanions2.jpg";
cdIndex[4]="4";
cardName[5]="Animals Round the Crib";
delCard[5]="";
catNo[5]="5";
foil[5]="";
cardPrice[5]="3.80";
packSize[5]="10";
cardDimCms[5]="14 x 14 cm";
cardDimIns[5]="5.5 x 5.5 in";
cardGreeting[5]="With best wishes for Christmas and the New Year";
sustain[5]="FSC certified materials";
cardNote[5]="";
imageFile[5]="zAnimalsRoundTheCrib.jpg";
thumbNailFile[5]="zAnimalsRoundTheCrib2.jpg";
cdIndex[5]="5";
cardName[6]="Fun In The Snow";
delCard[6]="";
catNo[6]="6";
foil[6]="";
cardPrice[6]="3.80";
packSize[6]="10";
cardDimCms[6]="17 x 12 cm";
cardDimIns[6]="6.7 x 4.7 in";
cardGreeting[6]="";
sustain[6]="FSC certified materials";
cardNote[6]="Border for this display only";
imageFile[6]="zFunInTheSnow.jpg";
thumbNailFile[6]="zFunInTheSnow2.jpg";
cdIndex[6]="6";
cardName[7]="Next Year&#96s Tree";
delCard[7]="";
catNo[7]="7";
foil[7]="";
cardPrice[7]="3.80";
packSize[7]="10";
cardDimCms[7]="17 x 12 cm";
cardDimIns[7]="6.7 x 4.7 in";
cardGreeting[7]="With best wishes for Christmas and the New Year";
sustain[7]="FSC certified materials";
cardNote[7]="Border for this display only";
imageFile[7]="zNextYearsTree.jpg";
thumbNailFile[7]="zNextYearsTree2.jpg";
cdIndex[7]="7";
cardName[8]="2011 Cat Quotations Calendar";
delCard[8]="";
catNo[8]="8";
foil[8]="";
cardPrice[8]="4.50";
packSize[8]="1";
cardDimCms[8]="42 x 15 cm";
cardDimIns[8]="16.5 x 5.9 in";
cardGreeting[8]="";
sustain[8]="";
cardNote[8]="Twelve colour photographs <br>Border for this display only";
imageFile[8]="z2011CatQuotationsCalendar.jpg";
thumbNailFile[8]="z2011CatQuotationsCalendar2.jpg";
cdIndex[8]="8";
cardName[9]="2011 Cat Diary";
delCard[9]="";
catNo[9]="9";
foil[9]="";
cardPrice[9]="1.60";
packSize[9]="1";
cardDimCms[9]="";
cardDimIns[9]="";
cardGreeting[9]="";
sustain[9]="";
cardNote[9]="Week per page<br>Border for this display only";
imageFile[9]="z2011CatDiary.jpg";
thumbNailFile[9]="z2011CatDiary2.jpg";
cdIndex[9]="9";
cardName[10]="2011 Dog Diary";
delCard[10]="";
catNo[10]="10";
foil[10]="";
cardPrice[10]="1.60";
packSize[10]="1";
cardDimCms[10]="";
cardDimIns[10]="";
cardGreeting[10]="";
sustain[10]="";
cardNote[10]="Week per page<br>Border for this display only";
imageFile[10]="z2011DogDiary.jpg";
thumbNailFile[10]="z2011DogDiary2.jpg";
cdIndex[10]="10";
cardName[11]="Money Card";
delCard[11]="";
catNo[11]="11";
foil[11]="";
cardPrice[11]="1.00";
packSize[11]="1";
cardDimCms[11]="";
cardDimIns[11]="";
cardGreeting[11]="";
sustain[11]="";
cardNote[11]="Combines a Christmas card with money wallet<br>Border for this display only";
imageFile[11]="zMoneyCard.jpg";
thumbNailFile[11]="zMoneyCard2.jpg";
cdIndex[11]="11";
cardName[12]="Let It Snow Tea Towel";
delCard[12]="";
catNo[12]="12";
foil[12]="";
cardPrice[12]="3.99";
packSize[12]="1";
cardDimCms[12]="";
cardDimIns[12]="";
cardGreeting[12]="";
sustain[12]="";
cardNote[12]="Cotton Waffle Tea Towel";
imageFile[12]="zLetItSnowTeaTowel.jpg";
thumbNailFile[12]="zLetItSnowTeaTowel2.jpg";
cdIndex[12]="12";
cardName[13]="Christmas Gift Wrap";
delCard[13]="";
catNo[13]="13";
foil[13]="";
cardPrice[13]="2.25";
packSize[13]="6";
cardDimCms[13]="";
cardDimIns[13]="";
cardGreeting[13]="";
sustain[13]="";
cardNote[13]="6 Sheets of wrap with 12 matching tags<br>Design may vary";
imageFile[13]="zChristmasGiftWrap.jpg";
thumbNailFile[13]="zChristmasGiftWrap2.jpg";
cdIndex[13]="13";
cardName[14]="Dot to Dot Book";
delCard[14]="";
catNo[14]="14";
foil[14]="";
cardPrice[14]="1.99";
packSize[14]="1";
cardDimCms[14]="";
cardDimIns[14]="";
cardGreeting[14]="";
sustain[14]="";
cardNote[14]="24 fun dot to dot pictures to complete and colour";
imageFile[14]="zDotToDotBook.jpg";
thumbNailFile[14]="zDotToDotBook2.jpg";
cdIndex[14]="14";
cardName[15]="Animal Magic Painting Book";
delCard[15]="";
catNo[15]="15";
foil[15]="";
cardPrice[15]="1.99";
packSize[15]="1";
cardDimCms[15]="";
cardDimIns[15]="";
cardGreeting[15]="";
sustain[15]="";
cardNote[15]="24 pictures to brush with water to make colours appear";
imageFile[15]="zAnimalMagicPaintingBook.jpg";
thumbNailFile[15]="zAnimalMagicPaintingBook2.jpg";
cdIndex[15]="15";
cardName[16]="Sticker Colouring Book";
delCard[16]="";
catNo[16]="16";
foil[16]="";
cardPrice[16]="2.99";
packSize[16]="";
cardDimCms[16]="";
cardDimIns[16]="";
cardGreeting[16]="";
sustain[16]="";
cardNote[16]="24 fun pictures to colour plus a sticker to find for each page";
imageFile[16]="zStickerColouringBook.jpg";
thumbNailFile[16]="zStickerColouringBook2.jpg";
cdIndex[16]="16";
cardName[17]="Cat Sandwich Tray";
delCard[17]="";
catNo[17]="17";
foil[17]="";
cardPrice[17]="3.00";
packSize[17]="1";
cardDimCms[17]="38 x 16 cm";
cardDimIns[17]="15.0 x 6.3 in";
cardGreeting[17]="";
sustain[17]="";
cardNote[17]="";
imageFile[17]="zCatSandwichTray.jpg";
thumbNailFile[17]="zCatSandwichTray2.jpg";
cdIndex[17]="17";
cardName[18]="Embroidered Ben & Jerry Cotton Hand Towel";
delCard[18]="";
catNo[18]="18";
foil[18]="";
cardPrice[18]="3.00";
packSize[18]="1";
cardDimCms[18]="48 x 60 cm";
cardDimIns[18]="18.9 x 23.6 in";
cardGreeting[18]="";
sustain[18]="";
cardNote[18]="";
imageFile[18]="zEmbroideredBen&JerryCottonHandTowel.jpg";
thumbNailFile[18]="zEmbroideredBen&JerryCottonHandTowel2.jpg";
cdIndex[18]="18";
cardName[19]="Embroidered Fred & Ginger Cotton Hand Towel";
delCard[19]="";
catNo[19]="19";
foil[19]="";
cardPrice[19]="3.00";
packSize[19]="1";
cardDimCms[19]="48 x 60 cm";
cardDimIns[19]="18.9 x 23.6 in";
cardGreeting[19]="";
sustain[19]="";
cardNote[19]="";
imageFile[19]="zEmbroideredFred&GingerCottonHandTowel.jpg";
thumbNailFile[19]="zEmbroideredFred&GingerCottonHandTowel2.jpg";
cdIndex[19]="19";
cardName[20]="Silver Plated Cat Salt & Pepper Pot Set";
delCard[20]="";
catNo[20]="20";
foil[20]="";
cardPrice[20]="3.00";
packSize[20]="Salt and Pepper pot";
cardDimCms[20]="";
cardDimIns[20]="";
cardGreeting[20]="";
sustain[20]="";
cardNote[20]="";
imageFile[20]="zSilverPlatedCatSalt&PepperPotSet.jpg";
thumbNailFile[20]="zSilverPlatedCatSalt&PepperPotSet2.jpg";
cdIndex[20]="20";
cardName[21]="Silver Plated Cat Napkin Ring Set";
delCard[21]="";
catNo[21]="21";
foil[21]="";
cardPrice[21]="3.00";
packSize[21]="Set of 6 napkin rings in a basket";
cardDimCms[21]="";
cardDimIns[21]="";
cardGreeting[21]="";
sustain[21]="";
cardNote[21]="";
imageFile[21]="zSilverPlatedCatNapkinRingSet.jpg";
thumbNailFile[21]="zSilverPlatedCatNapkinRingSet2.jpg";
cdIndex[21]="21";
cardName[22]="Ulster Weavers Linen Cat Tea Towel";
delCard[22]="";
catNo[22]="22";
foil[22]="";
cardPrice[22]="3.99";
packSize[22]="1";
cardDimCms[22]="62.5 x 36.5 cm";
cardDimIns[22]="24.6 x 14.4 in";
cardGreeting[22]="";
sustain[22]="";
cardNote[22]="";
imageFile[22]="zUlsterWeaversLinenCatTeaTowel.jpg";
thumbNailFile[22]="zUlsterWeaversLinenCatTeaTowel2.jpg";
cdIndex[22]="22";
cardName[23]="Kitten Notecards";
delCard[23]="";
catNo[23]="23";
foil[23]="";
cardPrice[23]="1.50";
packSize[23]="8 notecards & envelopes ";
cardDimCms[23]="14 x 9.3 cm";
cardDimIns[23]="5.5 x 3.7 in";
cardGreeting[23]="";
sustain[23]="";
cardNote[23]="4 each of two designs";
imageFile[23]="zKittenNotecards.jpg";
thumbNailFile[23]="zKittenNotecards2.jpg";
cdIndex[23]="23";
cardName[24]="Kitten Magnetic Notepad";
delCard[24]="";
catNo[24]="24";
foil[24]="";
cardPrice[24]="1.50";
packSize[24]="1";
cardDimCms[24]="9 x 18.5 cm";
cardDimIns[24]="3.5 x 7.3 in";
cardGreeting[24]="";
sustain[24]="";
cardNote[24]="";
imageFile[24]="zKittenMagneticNotepad.jpg";
thumbNailFile[24]="zKittenMagneticNotepad2.jpg";
cdIndex[24]="24";
cardName[25]="Poppies Greeting Card";
delCard[25]="";
catNo[25]="25";
foil[25]="";
cardPrice[25]="2.75";
packSize[25]="10";
cardDimCms[25]="12.5 x 12.5 cm";
cardDimIns[25]="4.9 x 4.9 in";
cardGreeting[25]="";
sustain[25]="";
cardNote[25]="Blank inside for your own message";
imageFile[25]="zPoppiesGreetingCard.jpg";
thumbNailFile[25]="zPoppiesGreetingCard2.jpg";
cdIndex[25]="25";
cardName[26]="THRT Butterfly Pen";
delCard[26]="";
catNo[26]="26";
foil[26]="";
cardPrice[26]="1.00";
packSize[26]="1";
cardDimCms[26]="";
cardDimIns[26]="";
cardGreeting[26]="";
sustain[26]="";
cardNote[26]="Contains Blue Ink";
imageFile[26]="zTHRTButterflyPen.jpg";
thumbNailFile[26]="zTHRTButterflyPen2.jpg";
cdIndex[26]="26";
cardName[27]="Tranquility Candle";
delCard[27]="";
catNo[27]="27";
foil[27]="";
cardPrice[27]="4.50";
packSize[27]="1";
cardDimCms[27]="7.5 x 7.5 cm";
cardDimIns[27]="3.0 x 3.0 in";
cardGreeting[27]="";
sustain[27]="";
cardNote[27]="100% vegetable plant wax candle";
imageFile[27]="zTranquilityCandle.jpg";
thumbNailFile[27]="zTranquilityCandle2.jpg";
cdIndex[27]="27";
cardName[28]="Recycled Shopping Bag";
delCard[28]="";
catNo[28]="28";
foil[28]="";
cardPrice[28]="1.00";
packSize[28]="1";
cardDimCms[28]="";
cardDimIns[28]="";
cardGreeting[28]="";
sustain[28]="Made from recycled cotton";
cardNote[28]="";
imageFile[28]="zRecycledShoppingBag.jpg";
thumbNailFile[28]="zRecycledShoppingBag2.jpg";
cdIndex[28]="28";
cardName[29]="Cat Treat Tin";
delCard[29]="";
catNo[29]="29";
foil[29]="";
cardPrice[29]="2.00";
packSize[29]="1";
cardDimCms[29]="";
cardDimIns[29]="";
cardGreeting[29]="";
sustain[29]="";
cardNote[29]="Stainless steel treat tin";
imageFile[29]="zCatTreatTin.jpg";
thumbNailFile[29]="zCatTreatTin2.jpg";
cdIndex[29]="29";
cardName[30]="Dog Treat Tin";
delCard[30]="";
catNo[30]="30";
foil[30]="";
cardPrice[30]="2.00";
packSize[30]="1";
cardDimCms[30]="";
cardDimIns[30]="";
cardGreeting[30]="";
sustain[30]="";
cardNote[30]="Stainless steel treat tin";
imageFile[30]="zDogTreatTin.jpg";
thumbNailFile[30]="zDogTreatTin2.jpg";
cdIndex[30]="30";
cardName[31]="Castle Puzzle";
delCard[31]="";
catNo[31]="31";
foil[31]="";
cardPrice[31]="4.50";
packSize[31]="1";
cardDimCms[31]="Finished size 45 x 65 cm";
cardDimIns[31]="Finished size 17.7 x 25.6 in";
cardGreeting[31]="";
sustain[31]="";
cardNote[31]="Shaped 80 piece jigsaw puzzle age 6 + years";
imageFile[31]="zCastlePuzzle.jpg";
thumbNailFile[31]="zCastlePuzzle2.jpg";
cdIndex[31]="31";
cardName[32]="Wooden Sheep Pom Pom Pencil Box";
delCard[32]="";
catNo[32]="32";
foil[32]="";
cardPrice[32]="1.50";
packSize[32]="1";
cardDimCms[32]="";
cardDimIns[32]="";
cardGreeting[32]="";
sustain[32]="";
cardNote[32]="";
imageFile[32]="zWoodenSheepPomPomPencilBox.jpg";
thumbNailFile[32]="zWoodenSheepPomPomPencilBox2.jpg";
cdIndex[32]="32";
var cardCt="32";
 
//-->
