// 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 = "xmas-cards";
var paypal_email2 = "fightforsight.org.uk";
var paypal_charityLogo = "https://static.e-junkie.com/sslpic/30295.2784b58b2e4bf6fb77461e8611cd5401.jpg";

//WorldPay variables

var worldpay_accId="";
var worldpay_instId="";
var returns="";
var wpEM1 = "";
var wpEM2 = "";
var contactTel = "";
var worldpayStatus="";
var notify_a_email1 = "";
var notify_a_email2 = "";
var notify_b_email1 = "";
var notify_b_email2 = "";
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 ="FSight";
var charityName = "Fight for Sight";
var charityNumber = "1111438";
var charityWebSite = "www.fightforsight.org.uk";
var tradingCompanyName = "";
var tradingCompanyNumber = "";
var charityAdd1 = "";
var charityAdd2 = "";
var charityAdd3 = "";
var charityAdd4 = "";
var charityAdd5 = "";
var charityAdd6 = "";
var enquiriesTel = "01736 33 33 12";
var lastDate = "13-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="TRUE";
var genNote = "";
var genEnquiriesTel = "020 7929 7755";
var charityTextpara1 = "<b>Every day 100 people in the UK start to lose their sight through eye disease or injury – that’s five people every hour.</b><br>For over 40 years Fight for Sight has been at the forefront of research into the prevention of blindness and treatment of eye disease in the UK.  Thanks to our supporters major medical advances have been made possible.   ";
var charityTextpara2 = "Fight for Sight’s current research programme of over £5 million focuses on preventing and treating age-related macular degeneration, diabetic retinopathy, glaucoma and cataract as well as causes of childhood blindness. ";
var charityTextpara3 = "This Christmas, help Fight for Sight to raise vital funds to continue funding leading edge eye research across the UK.<br>We've made considerable progress but there's still so much more to be done";
var charityLogo = "aLogoFSight.gif";
var orient = "V";
var enqEM1 = "cape_abilitylimited";
var enqEM2 = "hotmail.com";
var genEM1 = "info";
var genEM2 = "fightforsight.org.uk";
var lstMn = "11";
var lstDay = "13";
var lstYear = "2010";
cardName[1]="Skating Santa";
delCard[1]="";
catNo[1]="1";
foil[1]="";
cardPrice[1]="4.50";
packSize[1]="10";
cardDimCms[1]="17 x 12 cm";
cardDimIns[1]="6.7 x 4.7 in";
cardGreeting[1]="With best wishes for Christmas and the New Year";
sustain[1]="";
cardNote[1]="Border for this display only";
imageFile[1]="zSkatingSanta.jpg";
thumbNailFile[1]="zSkatingSanta2.jpg";
cdIndex[1]="1";
cardName[2]="Twilight Trees";
delCard[2]="";
catNo[2]="3";
foil[2]="";
cardPrice[2]="4.25";
packSize[2]="10";
cardDimCms[2]="16.8 x 11.3 cm";
cardDimIns[2]="6.6 x 4.4 in";
cardGreeting[2]="Season's Greetings";
sustain[2]="";
cardNote[2]="Double sided card, dimensions folded, folds at line<br>Borders for this display only";
imageFile[2]="zTwilightTrees.jpg";
thumbNailFile[2]="zTwilightTrees2.jpg";
cdIndex[2]="2";
cardName[3]="Winter Flowers";
delCard[3]="";
catNo[3]="5";
foil[3]="";
cardPrice[3]="4.25";
packSize[3]="10";
cardDimCms[3]="12.8 x 12.8 cm";
cardDimIns[3]="5.0 x 5.0 in";
cardGreeting[3]="Season's Greetings";
sustain[3]="";
cardNote[3]="Border for this display only";
imageFile[3]="zWinterFlowers.jpg";
thumbNailFile[3]="zWinterFlowers2.jpg";
cdIndex[3]="3";
cardName[4]="The Adoration";
delCard[4]="";
catNo[4]="7";
foil[4]="";
cardPrice[4]="4.25";
packSize[4]="10";
cardDimCms[4]="16.8 x 11.3 cm";
cardDimIns[4]="6.6 x 4.4 in";
cardGreeting[4]="With best wishes for Christmas and the New Year";
sustain[4]="";
cardNote[4]="";
imageFile[4]="zTheAdoration.jpg";
thumbNailFile[4]="zTheAdoration2.jpg";
cdIndex[4]="4";
cardName[5]="Madonna of the Fir Tree";
delCard[5]="";
catNo[5]="10";
foil[5]="";
cardPrice[5]="4.25";
packSize[5]="10";
cardDimCms[5]="12.8 x 12.8 cm";
cardDimIns[5]="5.0 x 5.0 in";
cardGreeting[5]="With best wishes for Christmas and the New Year";
sustain[5]="";
cardNote[5]="";
imageFile[5]="zMadonnaOfTheFirTree.jpg";
thumbNailFile[5]="zMadonnaOfTheFirTree2.jpg";
cdIndex[5]="5";
cardName[6]="Fun in Trafalgar Square";
delCard[6]="";
catNo[6]="11";
foil[6]="";
cardPrice[6]="6.50";
packSize[6]="10";
cardDimCms[6]="21 x 15.6 cm";
cardDimIns[6]="8.3 x 6.1 in";
cardGreeting[6]="Season's Greetings";
sustain[6]="";
cardNote[6]="Outer border for this display only";
imageFile[6]="zFunInTrafalgar.jpg";
thumbNailFile[6]="zFunInTrafalgar2.jpg";
cdIndex[6]="6";
cardName[7]="Birth";
delCard[7]="";
catNo[7]="12";
foil[7]="";
cardPrice[7]="4.25";
packSize[7]="10";
cardDimCms[7]="11.9 x 11.3 cm";
cardDimIns[7]="4.7 x 4.4 in";
cardGreeting[7]="With best wishes for Christmas and the New Year";
sustain[7]="";
cardNote[7]="Outer border for this display only";
imageFile[7]="zBirth.jpg";
thumbNailFile[7]="zBirth2.jpg";
cdIndex[7]="7";
cardName[8]="Madonna and Child";
delCard[8]="";
catNo[8]="13";
foil[8]="";
cardPrice[8]="4.50";
packSize[8]="10";
cardDimCms[8]="12 x 17 cm";
cardDimIns[8]="4.7 x 6.7 in";
cardGreeting[8]="With best wishes for Christmas and the New Year";
sustain[8]="";
cardNote[8]="";
imageFile[8]="zMadonnaAndChild.jpg";
thumbNailFile[8]="zMadonnaAndChild2.jpg";
cdIndex[8]="8";
cardName[9]="City Choir";
delCard[9]="";
catNo[9]="16";
foil[9]="";
cardPrice[9]="4.50";
packSize[9]="10";
cardDimCms[9]="12 x 17 cm";
cardDimIns[9]="4.7 x 6.7 in";
cardGreeting[9]="With best wishes for Christmas and the New Year";
sustain[9]="";
cardNote[9]="Border for this display only";
imageFile[9]="zCityChoir.jpg";
thumbNailFile[9]="zCityChoir2.jpg";
cdIndex[9]="9";
cardName[10]="London Mist";
delCard[10]="";
catNo[10]="22";
foil[10]="";
cardPrice[10]="4.25";
packSize[10]="10";
cardDimCms[10]="16.8 x 11.3 cm";
cardDimIns[10]="6.6 x 4.4 in";
cardGreeting[10]="With best wishes for Christmas and the New Year";
sustain[10]="";
cardNote[10]="Border for this display only";
imageFile[10]="zLondonMist.jpg";
thumbNailFile[10]="zLondonMist2.jpg";
cdIndex[10]="10";
cardName[11]="London Sights";
delCard[11]="";
catNo[11]="23";
foil[11]="";
cardPrice[11]="5.25";
packSize[11]="10";
cardDimCms[11]="8.5 x 12.5 cm";
cardDimIns[11]="3.3 x 4.9 in";
cardGreeting[11]="Season's Greetings";
sustain[11]="";
cardNote[11]="Concertina card, dimensions folded";
imageFile[11]="zLondonSights.jpg";
thumbNailFile[11]="zLondonSights2.jpg";
cdIndex[11]="11";
cardName[12]="The Adoration Burne-Jones";
delCard[12]="";
catNo[12]="24";
foil[12]="";
cardPrice[12]="4.25";
packSize[12]="10";
cardDimCms[12]="16.8 x 11.3 cm";
cardDimIns[12]="6.6 x 4.4 in";
cardGreeting[12]="With best wishes for Christmas and the New Year";
sustain[12]="";
cardNote[12]="";
imageFile[12]="zTheAdorationBurne-Jones.jpg";
thumbNailFile[12]="zTheAdorationBurne-Jones2.jpg";
cdIndex[12]="12";
cardName[13]="London Vista (Flat)";
delCard[13]="";
catNo[13]="";
foil[13]="";
cardPrice[13]="4.25";
packSize[13]="10";
cardDimCms[13]="16.8 x 11.3 cm";
cardDimIns[13]="6.6 x 4.4 in";
cardGreeting[13]="Season's Greetings";
sustain[13]="";
cardNote[13]="Double sided card, dimensions folded, folds at line<br>Borders for this display only";
imageFile[13]="zLondonVistaFlat.jpg";
thumbNailFile[13]="zLondonVistaFlat2.jpg";
cdIndex[13]="13";
cardName[14]="Christmas Flambé";
delCard[14]="";
catNo[14]="6";
foil[14]="";
cardPrice[14]="3.99";
packSize[14]="8";
cardDimCms[14]="14 x 14 cm";
cardDimIns[14]="5.5 x 5.5 in";
cardGreeting[14]="With best wishes for Christmas and the New Year";
sustain[14]="";
cardNote[14]="";
imageFile[14]="zChristmasFlambe.jpg";
thumbNailFile[14]="zChristmasFlambe2.jpg";
cdIndex[14]="14";
cardName[15]="Harmony";
delCard[15]="";
catNo[15]="15";
foil[15]="";
cardPrice[15]="3.99";
packSize[15]="8";
cardDimCms[15]="12.8 x 12.8 cm";
cardDimIns[15]="5.0 x 5.0 in";
cardGreeting[15]="With best wishes for Christmas and the New Year";
sustain[15]="";
cardNote[15]="";
imageFile[15]="zHarmony.jpg";
thumbNailFile[15]="zHarmony2.jpg";
cdIndex[15]="15";
cardName[16]="Christmas in the City";
delCard[16]="";
catNo[16]="21";
foil[16]="";
cardPrice[16]="3.99";
packSize[16]="8";
cardDimCms[16]="14.7 x 10.5 cm";
cardDimIns[16]="5.8 x 4.1 in";
cardGreeting[16]="With best wishes for Christmas and the New Year";
sustain[16]="";
cardNote[16]="";
imageFile[16]="zChristmasInTheCity.jpg";
thumbNailFile[16]="zChristmasInTheCity2.jpg";
cdIndex[16]="16";
cardName[17]="Angel Musicians";
delCard[17]="";
catNo[17]="18";
foil[17]="";
cardPrice[17]="3.99";
packSize[17]="8";
cardDimCms[17]="11.3 x 11.9 cm";
cardDimIns[17]="4.4 x 4.7 in";
cardGreeting[17]="Season's Greetings";
sustain[17]="";
cardNote[17]="";
imageFile[17]="zAngelMusicians.jpg";
thumbNailFile[17]="zAngelMusicians2.jpg";
cdIndex[17]="17";
cardName[18]="London Vista (Concertina)";
delCard[18]="";
catNo[18]="9005";
foil[18]="";
cardPrice[18]="5.99";
packSize[18]="8";
cardDimCms[18]="8.5 x 12.5 cm";
cardDimIns[18]="3.3 x 4.9 in";
cardGreeting[18]="Season's Greetings";
sustain[18]="";
cardNote[18]="Dimensions folded";
imageFile[18]="zLondonVistaConcert.jpg";
thumbNailFile[18]="zLondonVistaConcert2.jpg";
cdIndex[18]="18";
cardName[19]="Christmas Joy on Parliament Hill";
delCard[19]="";
catNo[19]="9";
foil[19]="";
cardPrice[19]="3.99";
packSize[19]="8";
cardDimCms[19]="16.8 x 11.3 cm";
cardDimIns[19]="6.6 x 4.4 in";
cardGreeting[19]="Season's Greetings";
sustain[19]="";
cardNote[19]="Border for this display only";
imageFile[19]="zChristmasJoyOnParliamentHill.jpg";
thumbNailFile[19]="zChristmasJoyOnParliamentHill2.jpg";
cdIndex[19]="19";
cardName[20]="St Paul&#96s Millennium Bridge";
delCard[20]="";
catNo[20]="4";
foil[20]="";
cardPrice[20]="3.99";
packSize[20]="8";
cardDimCms[20]="16.8 x 11.3 cm";
cardDimIns[20]="6.6 x 4.4 in";
cardGreeting[20]="Season's Greetings";
sustain[20]="";
cardNote[20]="Border for this display only";
imageFile[20]="zStPaulsMillenniumBridge.jpg";
thumbNailFile[20]="zStPaulsMillenniumBridge2.jpg";
cdIndex[20]="20";
cardName[21]="Adoring Angels";
delCard[21]="";
catNo[21]="9008";
foil[21]="";
cardPrice[21]="3.99";
packSize[21]="8";
cardDimCms[21]="14 x 14 cm";
cardDimIns[21]="5.5 x 5.5 in";
cardGreeting[21]="With best wishes for Christmas and the New Year";
sustain[21]="";
cardNote[21]="";
imageFile[21]="zAdoringAngels.jpg";
thumbNailFile[21]="zAdoringAngels2.jpg";
cdIndex[21]="21";
cardName[22]="Fruits of the Season";
delCard[22]="";
catNo[22]="14";
foil[22]="";
cardPrice[22]="3.99";
packSize[22]="8";
cardDimCms[22]="11.7 x 11.7 cm";
cardDimIns[22]="4.6 x 4.6 in";
cardGreeting[22]="With best wishes for Christmas and the New Year";
sustain[22]="";
cardNote[22]="Border for this display only";
imageFile[22]="zFruitsOfTheSeason.jpg";
thumbNailFile[22]="zFruitsOfTheSeason2.jpg";
cdIndex[22]="22";
cardName[23]="St Paul&#96s";
delCard[23]="";
catNo[23]="2";
foil[23]="";
cardPrice[23]="3.99";
packSize[23]="8";
cardDimCms[23]="16 x 16 cm";
cardDimIns[23]="6.3 x 6.3 in";
cardGreeting[23]="Season's Greetings";
sustain[23]="";
cardNote[23]="";
imageFile[23]="zStPauls.jpg";
thumbNailFile[23]="zStPauls2.jpg";
cdIndex[23]="23";
cardName[24]="Skating at Somerset House";
delCard[24]="";
catNo[24]="8";
foil[24]="";
cardPrice[24]="3.99";
packSize[24]="8";
cardDimCms[24]="17 x 12 cm";
cardDimIns[24]="6.7 x 4.7 in";
cardGreeting[24]="With best wishes for Christmas and the New Year";
sustain[24]="";
cardNote[24]="";
imageFile[24]="zSkatingAtSomersetHouse.jpg";
thumbNailFile[24]="zSkatingAtSomersetHouse2.jpg";
cdIndex[24]="24";
cardName[25]="White Christmas";
delCard[25]="";
catNo[25]="9012";
foil[25]="";
cardPrice[25]="3.99";
packSize[25]="8";
cardDimCms[25]="16.8 x 11.3 cm";
cardDimIns[25]="6.6 x 4.4 in";
cardGreeting[25]="Season's Greetings";
sustain[25]="";
cardNote[25]="Border for this display only";
imageFile[25]="zWhiteChristmas.jpg";
thumbNailFile[25]="zWhiteChristmas2.jpg";
cdIndex[25]="25";
cardName[26]="A Merry Christmas";
delCard[26]="";
catNo[26]="9013";
foil[26]="";
cardPrice[26]="3.99";
packSize[26]="8";
cardDimCms[26]="12.8 x 12.8 cm";
cardDimIns[26]="5.0 x 5.0 in";
cardGreeting[26]="With best wishes for Christmas and the New Year";
sustain[26]="";
cardNote[26]="";
imageFile[26]="zAMerryChristmas.jpg";
thumbNailFile[26]="zAMerryChristmas2.jpg";
cdIndex[26]="26";
cardName[27]="Mother and Child";
delCard[27]="";
catNo[27]="17";
foil[27]="";
cardPrice[27]="3.49";
packSize[27]="8";
cardDimCms[27]="9.4 x 12.7 cm";
cardDimIns[27]="3.7 x 5.0 in";
cardGreeting[27]="With best wishes for Christmas and the New Year";
sustain[27]="";
cardNote[27]="";
imageFile[27]="zMotherAndChild.jpg";
thumbNailFile[27]="zMotherAndChild2.jpg";
cdIndex[27]="27";
cardName[28]="Bumper Pack";
delCard[28]="";
catNo[28]="20";
foil[28]="";
cardPrice[28]="3.99";
packSize[28]="24";
cardDimCms[28]="";
cardDimIns[28]="";
cardGreeting[28]="";
sustain[28]="";
cardNote[28]="Pack of assorted cards - designs may differ";
imageFile[28]="zBumperPack.jpg";
thumbNailFile[28]="zBumperPack2.jpg";
cdIndex[28]="28";
var cardCt="28";
 
//-->
