// 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="SOSCHILDRENS";
var worldpay_instId="236663";
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 = "alistair";
var wpEM2 = "soschildren.org";
var contactTel = "01223 365589";
var worldpayStatus="live";
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="TRUE";
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 ="SOSCV";
var charityName = "SOS Children";
var charityNumber = "";
var charityWebSite = "www.soschildren.org";
var tradingCompanyName = "SOS Children";
var tradingCompanyNumber = "";
var charityAdd1 = "St Andrew's House";
var charityAdd2 = "59 St Andrew's Street";
var charityAdd3 = "Cambridge";
var charityAdd4 = "";
var charityAdd5 = "";
var charityAdd6 = "CB2 3BZ";
var enquiriesTel = "01227 811613 (orders)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;01227 811619 (enquiries)";
var lastDate = "12-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="FALSE";
var genNote = "";
var genEnquiriesTel = "01223 365589";
var charityTextpara1 = "SOS Children's Villages provides a family for life for children who have lost their parents through conflict, famine, disease and poverty. Over 78,000 orphaned or abandoned children are cared for by SOS mums in clusters of family homes in more than 500 of our unique children's villages, in 124 countries around the world.";
var charityTextpara2 = "A further million benefit from SOS Children's outreach support which includes education, vocational training, medical care and community development programmes. SOS Children also provides emergency relief in situations of crisis and disaster, and continues to support families in earthquake and tsunami-affected countries.";
var charityTextpara3 = "If you would like to find out about Child Sponsorship with SOS Children, please visit our website.  If you sponsor a child with us, you will be helping orphaned or abandoned children to grow up in a family with a mother, brothers and sisters, and a home of their own. You will also be helping us to help other orphaned, abandoned and vulnerable children and their families in the local communities. For £20 a month you can help children who have nothing and no-one, by sponsoring a child or a village.";
var charityLogo = "aLogoSOSChildren.jpg";
var orient = "H";
var enqEM1 = "sos";
var enqEM2 = "impresspublishing.co.uk";
var genEM1 = "info";
var genEM2 = "soschildren.org";
var lstMn = "11";
var lstDay = "12";
var lstYear = "2010";
cardName[1]="Christmas Stockings";
delCard[1]="";
catNo[1]="1";
foil[1]="";
cardPrice[1]="3.95";
packSize[1]="10";
cardDimCms[1]="12.6 x 12.6 cm";
cardDimIns[1]="5.0 x 5.0 in";
cardGreeting[1]="Season's Greetings";
sustain[1]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[1]="";
imageFile[1]="zChristmasStockings.jpg";
thumbNailFile[1]="zChristmasStockings2.jpg";
cdIndex[1]="1";
cardName[2]="Bethlehem";
delCard[2]="";
catNo[2]="2";
foil[2]="";
cardPrice[2]="3.95";
packSize[2]="10";
cardDimCms[2]="12.6 x 12.6 cm";
cardDimIns[2]="5.0 x 5.0 in";
cardGreeting[2]="Season's Greetings";
sustain[2]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[2]="";
imageFile[2]="zBethlehem.jpg";
thumbNailFile[2]="zBethlehem2.jpg";
cdIndex[2]="2";
cardName[3]="Madonna and Child";
delCard[3]="";
catNo[3]="3";
foil[3]="";
cardPrice[3]="3.95";
packSize[3]="10";
cardDimCms[3]="8.6 x 19.5 cm";
cardDimIns[3]="3.4 x 7.7 in";
cardGreeting[3]="Season's Greetings";
sustain[3]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[3]="";
imageFile[3]="zMadonnaAndChild.jpg";
thumbNailFile[3]="zMadonnaAndChild2.jpg";
cdIndex[3]="3";
cardName[4]="Round the Christmas Tree";
delCard[4]="";
catNo[4]="4";
foil[4]="";
cardPrice[4]="3.95";
packSize[4]="10";
cardDimCms[4]="10 x 15.2 cm";
cardDimIns[4]="3.9 x 6.0 in";
cardGreeting[4]="Season's Greetings";
sustain[4]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[4]="Border for this display only";
imageFile[4]="zRoundTheChristmasTree.jpg";
thumbNailFile[4]="zRoundTheChristmasTree2.jpg";
cdIndex[4]="4";
cardName[5]="Candles";
delCard[5]="";
catNo[5]="5";
foil[5]="";
cardPrice[5]="3.95";
packSize[5]="10";
cardDimCms[5]="12.6 x 12.6 cm";
cardDimIns[5]="5.0 x 5.0 in";
cardGreeting[5]="Season's Greetings";
sustain[5]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[5]="";
imageFile[5]="zCandles.jpg";
thumbNailFile[5]="zCandles2.jpg";
cdIndex[5]="5";
cardName[6]="Berries";
delCard[6]="";
catNo[6]="6";
foil[6]="";
cardPrice[6]="3.95";
packSize[6]="10";
cardDimCms[6]="12.6 x 12.6 cm";
cardDimIns[6]="5.0 x 5.0 in";
cardGreeting[6]="Season's Greetings";
sustain[6]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[6]="Border for this display only";
imageFile[6]="zBerries.jpg";
thumbNailFile[6]="zBerries2.jpg";
cdIndex[6]="6";
cardName[7]="Season&#96s Greetings";
delCard[7]="";
catNo[7]="7";
foil[7]="";
cardPrice[7]="3.95";
packSize[7]="10";
cardDimCms[7]="19.5 x 8.6 cm";
cardDimIns[7]="7.7 x 3.4 in";
cardGreeting[7]="Season's Greetings";
sustain[7]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[7]="Border for this display only";
imageFile[7]="zSeasonsGreetings.jpg";
thumbNailFile[7]="zSeasonsGreetings2.jpg";
cdIndex[7]="7";
cardName[8]="Robin";
delCard[8]="";
catNo[8]="8";
foil[8]="";
cardPrice[8]="3.95";
packSize[8]="10";
cardDimCms[8]="12.6 x 12.6 cm";
cardDimIns[8]="5.0 x 5.0 in";
cardGreeting[8]="Season's Greetings";
sustain[8]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[8]="Border for this display only";
imageFile[8]="zRobin.jpg";
thumbNailFile[8]="zRobin2.jpg";
cdIndex[8]="8";
cardName[9]="Peace on Earth";
delCard[9]="";
catNo[9]="9";
foil[9]="";
cardPrice[9]="3.95";
packSize[9]="10";
cardDimCms[9]="12.6 x 12.6 cm";
cardDimIns[9]="5.0 x 5.0 in";
cardGreeting[9]="Season's Greetings";
sustain[9]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[9]="";
imageFile[9]="zPeaceOnEarth.jpg";
thumbNailFile[9]="zPeaceOnEarth2.jpg";
cdIndex[9]="9";
cardName[10]="Holy Family";
delCard[10]="";
catNo[10]="10";
foil[10]="";
cardPrice[10]="3.95";
packSize[10]="10";
cardDimCms[10]="12.6 x 12.6 cm";
cardDimIns[10]="5.0 x 5.0 in";
cardGreeting[10]="Season's Greetings";
sustain[10]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[10]="";
imageFile[10]="zHolyFamily.jpg";
thumbNailFile[10]="zHolyFamily2.jpg";
cdIndex[10]="10";
cardName[11]="Snow Friends";
delCard[11]="";
catNo[11]="11";
foil[11]="";
cardPrice[11]="2.95";
packSize[11]="9 (3 of each of 3 designs)";
cardDimCms[11]="8.6 x 9.7 cm";
cardDimIns[11]="3.4 x 3.8 in";
cardGreeting[11]="Season's Greetings";
sustain[11]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[11]="3 of each of 3 designs<br>Borders for this display only";
imageFile[11]="zSnowFriends.jpg";
thumbNailFile[11]="zSnowFriends2.jpg";
cdIndex[11]="11";
cardName[12]="Special Offer - 3 packs for 2";
delCard[12]="";
catNo[12]="12";
foil[12]="";
cardPrice[12]="6.95";
packSize[12]="Various";
cardDimCms[12]="Various";
cardDimCms[12]="Various";
cardGreeting[12]="Various";
sustain[12]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[12]="Number can vary - mostly 8/10 per pack; may be any three designs from selection at left";
imageFile[12]="zSpecialOffer-3PacksFor2.jpg";
thumbNailFile[12]="zSpecialOffer-3PacksFor22.jpg";
cdIndex[12]="12";
cardName[13]="Crackers";
delCard[13]="";
catNo[13]="13";
foil[13]="";
cardPrice[13]="11.00";
packSize[13]="12";
cardDimCms[13]="30 cm";
cardDimIns[13]="11.8 in";
cardGreeting[13]="";
sustain[13]="";
cardNote[13]="";
imageFile[13]="zCrackers.jpg";
thumbNailFile[13]="zCrackers2.jpg";
cdIndex[13]="13";
cardName[14]="Gift Wrap";
delCard[14]="";
catNo[14]="14";
foil[14]="";
cardPrice[14]="3.00";
packSize[14]="6";
cardDimCms[14]="50 x 70 cm";
cardDimIns[14]="19.7 x 27.6 in";
cardGreeting[14]="N/A";
sustain[14]="N/A";
cardNote[14]="6 sheets & 6 tags (2 each of 3 designs)";
imageFile[14]="zGiftWrap.jpg";
thumbNailFile[14]="zGiftWrap2.jpg";
cdIndex[14]="14";
cardName[15]="Gift bags";
delCard[15]="";
catNo[15]="15";
foil[15]="";
cardPrice[15]="2.45";
packSize[15]="4";
cardDimCms[15]="Various";
cardDimCms[15]="Various";
cardGreeting[15]="";
sustain[15]="";
cardNote[15]="";
imageFile[15]="zGiftBags.jpg";
thumbNailFile[15]="zGiftBags2.jpg";
cdIndex[15]="15";
cardName[16]="Napkins";
delCard[16]="";
catNo[16]="16";
foil[16]="";
cardPrice[16]="3.25";
packSize[16]="20";
cardDimCms[16]="33 x 33 cm";
cardDimIns[16]="13.0 x 13.0 in";
cardGreeting[16]="";
sustain[16]="";
cardNote[16]="";
imageFile[16]="zNapkins.jpg";
thumbNailFile[16]="zNapkins2.jpg";
cdIndex[16]="16";
cardName[17]="Advent Calendar";
delCard[17]="";
catNo[17]="17";
foil[17]="";
cardPrice[17]="3.75";
packSize[17]="1";
cardDimCms[17]="34.5 x 24 cm";
cardDimIns[17]="13.6 x 9.4 in";
cardGreeting[17]="";
sustain[17]="";
cardNote[17]="Red envelope included";
imageFile[17]="zAdventCalendar.jpg";
thumbNailFile[17]="zAdventCalendar2.jpg";
cdIndex[17]="17";
cardName[18]="Advent Candle";
delCard[18]="";
catNo[18]="18";
foil[18]="";
cardPrice[18]="2.85";
packSize[18]="1";
cardDimCms[18]="2.25 x 30 cm";
cardDimIns[18]="0.9 x 11.8 in";
cardGreeting[18]="";
sustain[18]="";
cardNote[18]="Holder not included";
imageFile[18]="zAdventCandle.jpg";
thumbNailFile[18]="zAdventCandle2.jpg";
cdIndex[18]="18";
cardName[19]="Alternative Gift - school fees and expenses";
delCard[19]="";
catNo[19]="19";
foil[19]="";
cardPrice[19]="7.00";
packSize[19]="1 card";
cardDimCms[19]="10 x 15.2 cm";
cardDimIns[19]="3.9 x 6.0 in";
cardGreeting[19]="The card for you to send will give details of how this gift will support the SOS Children's Village, Basse";
sustain[19]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[19]="A donation of £7 could provide a child's fees and school materials for a month<br><br><span id=t16>You may order on-line, but system will automatically add postage; to avoid this, order by phone on 01227 811613</span>";
imageFile[19]="zSchoolFees.jpg";
thumbNailFile[19]="zSchoolFees2.jpg";
cdIndex[19]="19";
cardName[20]="Alternative Gift - transport to school";
delCard[20]="";
catNo[20]="20";
foil[20]="";
cardPrice[20]="15.00";
packSize[20]="1 card";
cardDimCms[20]="10 x 15.2 cm";
cardDimIns[20]="3.9 x 6.0 in";
cardGreeting[20]="The card for you to send will give details of how this gift will support the SOS Children's Village, Basse";
sustain[20]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[20]="A donation of £15 could provide a month's transport to the SOS School for a child living in the local community<br><br><span id=t16>You may order on-line, but system will automatically add postage; to avoid this, order by phone on 01227 811613</span>";
imageFile[20]="zTransport.jpg";
thumbNailFile[20]="zTransport2.jpg";
cdIndex[20]="20";
cardName[21]="Alternative Gift - food and clean water";
delCard[21]="";
catNo[21]="21";
foil[21]="";
cardPrice[21]="25.00";
packSize[21]="1 card";
cardDimCms[21]="10 x 15.2 cm";
cardDimIns[21]="3.9 x 6.0 in";
cardGreeting[21]="The card for you to send will give details of how this gift will support the SOS Children's Village, Basse";
sustain[21]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[21]="A donation of £25 could provide food and clean water for a month for a child living in the SOS Village<br><br><span id=t16>You may order on-line, but system will automatically add postage; to avoid this, order by phone on 01227 811613</span>";
imageFile[21]="zCleanWater.jpg";
thumbNailFile[21]="zCleanWater2.jpg";
cdIndex[21]="21";
cardName[22]="Alternative Gift - medical costs";
delCard[22]="";
catNo[22]="22";
foil[22]="";
cardPrice[22]="75.00";
packSize[22]="1 card";
cardDimCms[22]="10 x 15.2 cm";
cardDimIns[22]="3.9 x 6.0 in";
cardGreeting[22]="The card for you to send will give details of how this gift will support the SOS Children's Village, Basse";
sustain[22]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[22]="A donation of £75 could cover medical costs for all the children and staff living at the SOS Village for ten days<br><br><span id=t16>You may order on-line, but system will automatically add postage; to avoid this, order by phone on 01227 811613</span>";
imageFile[22]="zMedical.jpg";
thumbNailFile[22]="zMedical2.jpg";
cdIndex[22]="22";
var cardCt="22";
 
//-->
