// 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="SANE";
var worldpay_instId="239521";
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.";
var wpEM1 = "pflitcroft";
var wpEM2 = "sane.org.uk";
var contactTel = "0207 422 5554";
var worldpayStatus="live";
var notify_a_email1 = "mjbetts";
var notify_a_email2 = "tiscali.co.uk";
var notify_b_email1 = "cape_abilitylimited";
var notify_b_email2 = "hotmail.com";
var notify_c_email1 = "LHurley";
var notify_c_email2 = "sane.org.uk";

//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 ="SANE";
var charityName = "SANE";
var charityNumber = "296572";
var charityWebSite = "www.sane.org.uk";
var tradingCompanyName = "SANE";
var tradingCompanyNumber = "2114937";
var charityAdd1 = "1st Floor ";
var charityAdd2 = "Cityside House";
var charityAdd3 = "40 Adler Street ";
var charityAdd4 = "London ";
var charityAdd5 = "";
var charityAdd6 = "E1 1EE";
var enquiriesTel = "Call Philip on 01736 33 33 12";
var lastDate = "14-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="FALSE";
var genNote = "<b>Offer: A free pack of cards with every order over £15</b>";
var genEnquiriesTel = "0207 422 5544";
var charityTextpara1 = "<br><span id=t25>SANE</span> is a national charity working to improve the quality of life of anyone affected by mental illness and ensure individual levels of treatment, care and compassion.";
var charityTextpara2 = "<span id=t25>SANE</span> provides a specialist and practical solution to the challenge of mental illness:<br><span id=t25>SERVICES</span>: Providing emotional support, care and information for people with mental health problems, their carers and families, through <span id=t25>SANE Services</span>:<br><span id=t34>SANEline;SANEmail & askTheSite; Discussion Board; Caller Care and Befriending</span><br><span id=t25>RESEARCH</span>: Investigating the causes, nature and impact of mental health problems through neuroscientific, psychological and social research.<br><span id=t25>CAMPAIGNING</span>: Raising awareness; combating stigma; educating and working to improve mental health services.";
var charityTextpara3 = "SANEline - 0845 767 8000 (Open 6pm-11pm every day of the year)<br>SANEmail - sanemail@sane.org.uk SANE Discussion Board - www.sane.org.uk/DB";
var charityLogo = "aLogoSANE.jpg";
var orient = "V";
var enqEM1 = "cape_abilitylimited";
var enqEM2 = "hotmail.com";
var genEM1 = "fundraising";
var genEM2 = "sane.org.uk";
var lstMn = "11";
var lstDay = "14";
var lstYear = "2010";
cardName[1]="Robin on Branch";
delCard[1]="";
catNo[1]="1";
foil[1]="";
cardPrice[1]="3.49";
packSize[1]="10";
cardDimCms[1]="12.5 x 12.5 cm";
cardDimIns[1]="4.9 x 4.9 in";
cardGreeting[1]="With Best Wishes for Christmas and the New Year";
sustain[1]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[1]="10 cards with envelopes<br>Outer border for this display only";
imageFile[1]="zRobinOnBranch.jpg";
thumbNailFile[1]="zRobinOnBranch2.jpg";
cdIndex[1]="1";
cardName[2]="This Should Fit";
delCard[2]="";
catNo[2]="2";
foil[2]="";
cardPrice[2]="3.49";
packSize[2]="10";
cardDimCms[2]="10 x 14.5 cm";
cardDimIns[2]="3.9 x 5.7 in";
cardGreeting[2]="With Best Wishes for Christmas and the New Year";
sustain[2]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[2]="10 cards with envelopes<br>Border for this display only";
imageFile[2]="zThisShouldFit.jpg";
thumbNailFile[2]="zThisShouldFit2.jpg";
cdIndex[2]="2";
cardName[3]="Three Kings";
delCard[3]="";
catNo[3]="3";
foil[3]="";
cardPrice[3]="4.25";
packSize[3]="10";
cardDimCms[3]="15 x 15 cm";
cardDimIns[3]="5.9 x 5.9 in";
cardGreeting[3]="With Best Wishes for Christmas and the New Year";
sustain[3]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[3]="10 cards with envelopes";
imageFile[3]="zThreeKings.jpg";
thumbNailFile[3]="zThreeKings2.jpg";
cdIndex[3]="3";
cardName[4]="Woman and Child";
delCard[4]="";
catNo[4]="4";
foil[4]="";
cardPrice[4]="3.49";
packSize[4]="10";
cardDimCms[4]="12.5 x 12.5 cm";
cardDimIns[4]="4.9 x 4.9 in";
cardGreeting[4]="With Best Wishes for Christmas and the New Year";
sustain[4]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[4]="10 cards with envelopes";
imageFile[4]="zWomanAndChild.jpg";
thumbNailFile[4]="zWomanAndChild2.jpg";
cdIndex[4]="4";
cardName[5]="Snowdrops";
delCard[5]="";
catNo[5]="5";
foil[5]="";
cardPrice[5]="3.49";
packSize[5]="10";
cardDimCms[5]="10 x 14.5 cm";
cardDimIns[5]="3.9 x 5.7 in";
cardGreeting[5]="Season's Greetings";
sustain[5]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[5]="10 cards with envelopes<br>Border for this display only";
imageFile[5]="zSnowdrops.jpg";
thumbNailFile[5]="zSnowdrops2.jpg";
cdIndex[5]="5";
cardName[6]="Forres";
delCard[6]="";
catNo[6]="6";
foil[6]="";
cardPrice[6]="3.49";
packSize[6]="10";
cardDimCms[6]="10 x 14.5 cm";
cardDimIns[6]="3.9 x 5.7 in";
cardGreeting[6]="Season's Greetings";
sustain[6]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[6]="10 cards with envelopes<br>Border for this display only";
imageFile[6]="zForres.jpg";
thumbNailFile[6]="zForres2.jpg";
cdIndex[6]="6";
cardName[7]="From All of Us";
delCard[7]="";
catNo[7]="7";
foil[7]="";
cardPrice[7]="3.25";
packSize[7]="10";
cardDimCms[7]="10.2 x 10.2 cm";
cardDimIns[7]="4.0 x 4.0 in";
cardGreeting[7]="Happy Christmas and Best Wishes for the New Year";
sustain[7]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[7]="10 cards with envelopes<br>Border for this display only";
imageFile[7]="zFromAllOfUs.jpg";
thumbNailFile[7]="zFromAllOfUs2.jpg";
cdIndex[7]="7";
cardName[8]="Across the Sky";
delCard[8]="";
catNo[8]="8";
foil[8]="";
cardPrice[8]="3.49";
packSize[8]="10";
cardDimCms[8]="12.5 x 12.5 cm";
cardDimIns[8]="4.9 x 4.9 in";
cardGreeting[8]="With Best Wishes for Christmas and the New Year";
sustain[8]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[8]="10 cards with envelopes";
imageFile[8]="zAcrossTheSky.jpg";
thumbNailFile[8]="zAcrossTheSky2.jpg";
cdIndex[8]="8";
cardName[9]="SANE Collection";
delCard[9]="";
catNo[9]="9";
foil[9]="";
cardPrice[9]="2.49";
packSize[9]="12";
cardDimCms[9]="Various";
cardDimCms[9]="Various";
cardGreeting[9]="Various";
sustain[9]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[9]="12 cards with envelopes<br>A selection of these cards, with some duplicates";
imageFile[9]="zSANECollection.jpg";
thumbNailFile[9]="zSANECollection2.jpg";
cdIndex[9]="9";
cardName[10]="Giftwrap and tags";
delCard[10]="";
catNo[10]="10";
foil[10]="";
cardPrice[10]="2.35";
packSize[10]="5";
cardDimCms[10]="70 x 50 cm";
cardDimIns[10]="27.6 x 19.7 in";
cardGreeting[10]="Not applicable";
sustain[10]="Printed on paper derived from well-managed forests and other controlled sources";
cardNote[10]="5 sheets with 5 matching tags";
imageFile[10]="zGiftwrapAndTags.jpg";
thumbNailFile[10]="zGiftwrapAndTags2.jpg";
cdIndex[10]="10";
cardName[11]="Notecards";
delCard[11]="";
catNo[11]="11";
foil[11]="";
cardPrice[11]="2.35";
packSize[11]="10";
cardDimCms[11]="14.5 x 10 cm";
cardDimIns[11]="5.7 x 3.9 in";
cardGreeting[11]="Blank";
sustain[11]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[11]="10 notecards with envelopes";
imageFile[11]="zNotecards.jpg";
thumbNailFile[11]="zNotecards2.jpg";
cdIndex[11]="11";
cardName[12]="Money Wallet";
delCard[12]="";
catNo[12]="12";
foil[12]="";
cardPrice[12]="1.25";
packSize[12]="1";
cardDimCms[12]="18 x 9.2 cm";
cardDimIns[12]="7.1 x 3.6 in";
cardGreeting[12]="Not applicable";
sustain[12]="Printed on board derived from well-managed forests and other controlled sources";
cardNote[12]="1 wallet with envelope";
imageFile[12]="zMoneyWallet.jpg";
thumbNailFile[12]="zMoneyWallet2.jpg";
cdIndex[12]="12";
var cardCt="12";
 
//-->
