// 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="WPCOM101975";
var worldpay_instId="235954";
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 = "sfisher";
var wpEM2 = "shipwreckedmariners.org.uk";
var contactTel = "01243 789329";
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 ="ShipMariners";
var charityName = "Shipwrecked Mariners' Society";
var charityNumber = "212034";
var charityWebSite = "www.shipwreckedmariners.org.uk";
var tradingCompanyName = "Shipwrecked Mariners' Society";
var tradingCompanyNumber = "";
var charityAdd1 = "1, North Pallant";
var charityAdd2 = "Chichester";
var charityAdd3 = "West Sussex";
var charityAdd4 = "";
var charityAdd5 = "";
var charityAdd6 = "PO19 1TL";
var enquiriesTel = "01227 811633 (orders)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;01227 811634 (enquiries)";
var lastDate = "12-Dec-10";
var overprinting = "yes";
var lastOverDate = "04-Dec-10";
var overprintNote = "Personal overprinting is available on ALL Christmas Cards except bargain packs & correspondence cards<br>Enquire on 01227 811 633";
var newsletter="FALSE";
var genNote = "";
var genEnquiriesTel = "01243 789329";
var charityTextpara1 = "We are a registered charity whose object is to relieve distress amongst the seafaring community by making grants to merchant seafarers and fishermen, their widows and dependants in cases of need.";
var charityTextpara2 = "The Society was founded in 1839 and originally assistance was given to those shipwrecked and to the widows and orphans of those lost at sea. Today however, while the Society still provides help in the event of shipwreck, its main function is to pay grants to retired seafarers and their widows suffering hardship and loss. ";
var charityTextpara3 = "In the past year £1.6M was distributed, which has made a real difference to the lives of over 2,000 seafarers and their families.";
var charityLogo = "aLogoShipMariners.jpg";
var orient = "V";
var enqEM1 = "ianr";
var enqEM2 = "impresspublishing.co.uk";
var genEM1 = "general";
var genEM2 = "shipwreckedmariners.org.uk";
var lstMn = "11";
var lstDay = "12";
var lstYear = "2010";
cardName[1]="Cutty Sark Running Up-Channel";
delCard[1]="";
catNo[1]="1";
foil[1]="";
cardPrice[1]="3.95";
packSize[1]="10";
cardDimCms[1]="17.2 x 12.6 cm";
cardDimIns[1]="6.8 x 5.0 in";
cardGreeting[1]="With Best Wishes for Christmas and the New Year";
sustain[1]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[1]="by William H Bishop; Courtesy of www.bishopmarineart.com";
imageFile[1]="zCuttySarkRunningUp-Channel.jpg";
thumbNailFile[1]="zCuttySarkRunningUp-Channel2.jpg";
cdIndex[1]="1";
cardName[2]="Tower Bridge";
delCard[2]="";
catNo[2]="2";
foil[2]="";
cardPrice[2]="3.95";
packSize[2]="10";
cardDimCms[2]="17.2 x 12.6 cm";
cardDimIns[2]="6.8 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]="by Albert Smith; Courtesy of DDFA";
imageFile[2]="zTowerBridge.jpg";
thumbNailFile[2]="zTowerBridge2.jpg";
cdIndex[2]="2";
cardName[3]="Madonna & Child With Angels";
delCard[3]="";
catNo[3]="3";
foil[3]="";
cardPrice[3]="3.95";
packSize[3]="10";
cardDimCms[3]="17.2 x 12.6 cm";
cardDimIns[3]="6.8 x 5.0 in";
cardGreeting[3]="With Best Wishes for Christmas and the New Year";
sustain[3]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[3]="c 1467 by Bartolomeo Caporali (1420 - c 1505); courtesy of The Bridgeman Art Library";
imageFile[3]="zMadonna&ChildWithAngels.jpg";
thumbNailFile[3]="zMadonna&ChildWithAngels2.jpg";
cdIndex[3]="3";
cardName[4]="Christmas Harbour";
delCard[4]="";
catNo[4]="4";
foil[4]="";
cardPrice[4]="3.95";
packSize[4]="10";
cardDimCms[4]="17.2 x 12.6 cm";
cardDimIns[4]="6.8 x 5.0 in";
cardGreeting[4]="With Best Wishes for Christmas and the New Year";
sustain[4]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[4]="by Cathy Squire; courtesy of Image Source";
imageFile[4]="zChristmasHarbour.jpg";
thumbNailFile[4]="zChristmasHarbour2.jpg";
cdIndex[4]="4";
cardName[5]="Winter`s Mantle - Horse Guards Whitehall c 1890";
delCard[5]="";
catNo[5]="5";
foil[5]="";
cardPrice[5]="3.95";
packSize[5]="10";
cardDimCms[5]="17.2 x 12.6 cm";
cardDimIns[5]="6.8 x 5.0 in";
cardGreeting[5]="With Best Wishes for Christmas and the New Year";
sustain[5]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[5]="by John Sutton; courtesy of The Bridgeman Art Library";
imageFile[5]="zWintersMantle-HorseGuardsWhitehall.jpg";
thumbNailFile[5]="zWintersMantle-HorseGuardsWhitehall2.jpg";
cdIndex[5]="5";
cardName[6]="Following the Star";
delCard[6]="";
catNo[6]="6";
foil[6]="";
cardPrice[6]="3.70";
packSize[6]="10";
cardDimCms[6]="15.2 x 10 cm";
cardDimIns[6]="6.0 x 3.9 in";
cardGreeting[6]="With Best Wishes for Christmas and the New Year";
sustain[6]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[6]="by Sue Waddicor; courtesy of Portfolio Select";
imageFile[6]="zFollowingTheStar.jpg";
thumbNailFile[6]="zFollowingTheStar2.jpg";
cdIndex[6]="6";
cardName[7]="A Christmas Arrangement";
delCard[7]="";
catNo[7]="7";
foil[7]="";
cardPrice[7]="3.85";
packSize[7]="10";
cardDimCms[7]="12.6 x 12.6 cm";
cardDimIns[7]="5.0 x 5.0 in";
cardGreeting[7]="With Best Wishes for Christmas and the New Year";
sustain[7]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[7]="by Albert Williams; courtesy of The Bridgeman Art Library";
imageFile[7]="zAChristmasArrangement.jpg";
thumbNailFile[7]="zAChristmasArrangement2.jpg";
cdIndex[7]="7";
cardName[8]="Fresco";
delCard[8]="";
catNo[8]="8";
foil[8]="";
cardPrice[8]="3.85";
packSize[8]="10";
cardDimCms[8]="12.6 x 12.6 cm";
cardDimIns[8]="5.0 x 5.0 in";
cardGreeting[8]="With Best Wishes for Christmas and the New Year";
sustain[8]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[8]="by Pinturicchio (1454 - 1513); courtesy of Scala Archives";
imageFile[8]="zFresco.jpg";
thumbNailFile[8]="zFresco2.jpg";
cdIndex[8]="8";
cardName[9]="Queen Victoria on the Royal Yacht Spithead";
delCard[9]="";
catNo[9]="9";
foil[9]="";
cardPrice[9]="3.95";
packSize[9]="10";
cardDimCms[9]="17.2 x 12.6 cm";
cardDimIns[9]="6.8 x 5.0 in";
cardGreeting[9]="With Best Wishes for Christmas and the New Year";
sustain[9]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[9]="by William Joy; courtesy of Eaglecrown";
imageFile[9]="zQueenVictoriaOnTheRoyalYachtSpithead.jpg";
thumbNailFile[9]="zQueenVictoriaOnTheRoyalYachtSpithead2.jpg";
cdIndex[9]="9";
cardName[10]="Skaters on the Lake in St James` Park";
delCard[10]="";
catNo[10]="10";
foil[10]="";
cardPrice[10]="3.95";
packSize[10]="10";
cardDimCms[10]="12.6 x 17.2 cm";
cardDimIns[10]="5.0 x 6.8 in";
cardGreeting[10]="With Best Wishes for Christmas and the New Year";
sustain[10]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[10]="by John Sutton; courtesy of The Bridgeman Art Library";
imageFile[10]="zSkatersOnTheLakeInStJamessPark.jpg";
thumbNailFile[10]="zSkatersOnTheLakeInStJamessPark2.jpg";
cdIndex[10]="10";
cardName[11]="Harbour Robin";
delCard[11]="";
catNo[11]="11";
foil[11]="";
cardPrice[11]="3.70";
packSize[11]="10";
cardDimCms[11]="10 x 15.2 cm";
cardDimIns[11]="3.9 x 6.0 in";
cardGreeting[11]="With Best Wishes for Christmas and the New Year";
sustain[11]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[11]="by Claire Comerford; courtesy of Image Source<br>Border for this display only";
imageFile[11]="zHarbourRobin.jpg";
thumbNailFile[11]="zHarbourRobin2.jpg";
cdIndex[11]="11";
cardName[12]="A Ketch and Other Shipping off the Coast";
delCard[12]="";
catNo[12]="12";
foil[12]="";
cardPrice[12]="3.70";
packSize[12]="10";
cardDimCms[12]="15.2 x 10 cm";
cardDimIns[12]="6.0 x 3.9 in";
cardGreeting[12]="With Best Wishes for Christmas and the New Year";
sustain[12]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[12]="by James Edwin Meadows; courtesy of The Bridgeman Art Library";
imageFile[12]="zAKetchAndOtherShippingOffTheCoast.jpg";
thumbNailFile[12]="zAKetchAndOtherShippingOffTheCoast2.jpg";
cdIndex[12]="12";
cardName[13]="Christmas Bargain Pack";
delCard[13]="";
catNo[13]="22";
foil[13]="";
cardPrice[13]="3.50";
packSize[13]="20";
cardDimCms[13]="Various";
cardDimCms[13]="Various";
cardGreeting[13]="Some may be blank inside for your personal message";
sustain[13]="Materials used in the manufacture of cards and envelopes supplied from sustainable forests";
cardNote[13]="20 assorted cards (includes envelopes)";
imageFile[13]="zChristmasBargainPack.jpg";
thumbNailFile[13]="zChristmasBargainPack2.jpg";
cdIndex[13]="13";
cardName[14]="Setting Sail";
delCard[14]="";
catNo[14]="13";
foil[14]="";
cardPrice[14]="3.70";
packSize[14]="10";
cardDimCms[14]="10 x 15.2 cm";
cardDimIns[14]="3.9 x 6.0 in";
cardGreeting[14]="Correspondence Cards - Blank for Your Message";
sustain[14]="Materials used in the manufacture of cards and envelopes are supplied from sustainable forests";
cardNote[14]="by Lee-Hankey Williams (1869-1952); courtesy of the Bridgeman Art Library";
imageFile[14]="zSettingSail.jpg";
thumbNailFile[14]="zSettingSail2.jpg";
cdIndex[14]="14";
cardName[15]="Children Playing by the Seashore";
delCard[15]="";
catNo[15]="14";
foil[15]="";
cardPrice[15]="3.70";
packSize[15]="10";
cardDimCms[15]="10 x 15.2 cm";
cardDimIns[15]="3.9 x 6.0 in";
cardGreeting[15]="Correspondence Cards - Blank for Your Message";
sustain[15]="Blank for your message";
cardNote[15]="by Dorothea Sharp (1874 -1955); courtesy of Bridgeman Art Library";
imageFile[15]="zChildrenPlayingByTheSeashore.jpg";
thumbNailFile[15]="zChildrenPlayingByTheSeashore2.jpg";
cdIndex[15]="15";
cardName[16]="St Ives Windbreaks";
delCard[16]="";
catNo[16]="15";
foil[16]="";
cardPrice[16]="3.85";
packSize[16]="10";
cardDimCms[16]="12.6 x 12.6 cm";
cardDimIns[16]="5.0 x 5.0 in";
cardGreeting[16]="Correspondence Cards - Blank for Your Message";
sustain[16]="Materials used in the manufacture of cards and envelopes supplied from sustainable forests";
cardNote[16]="by Anuk Nauman, Courtesy of Felix Rosensteil`s Widow & Son Ltd. London<br>Correspondence cards - blank for your personal message<br>Border for this display only";
imageFile[16]="zStIvesWindbreaks.jpg";
thumbNailFile[16]="zStIvesWindbreaks2.jpg";
cdIndex[16]="16";
cardName[17]="Summer Light";
delCard[17]="";
catNo[17]="14";
foil[17]="";
cardPrice[17]="3.70";
packSize[17]="10";
cardDimCms[17]="15.2 x 10 cm";
cardDimIns[17]="6.0 x 3.9 in";
cardGreeting[17]="Correspondence Cards - Blank for Your Message";
sustain[17]="Materials used in the manufacture of cards and envelopes supplied from sustainable forests";
cardNote[17]="by Alec McDonald, Courtesy of Advocate Art<br>Correspondence cards - blank for your personal message<br>Border for this display only";
imageFile[17]="zSummerLight.jpg";
thumbNailFile[17]="zSummerLight2.jpg";
cdIndex[17]="17";
cardName[18]="Maritime Scenes - Birthday cards";
delCard[18]="";
catNo[18]="17";
foil[18]="";
cardPrice[18]="6.95";
packSize[18]="8";
cardDimCms[18]="17.2 x 12.6 cm";
cardDimIns[18]="6.8 x 5.0 in";
cardGreeting[18]="Happy Birthday";
sustain[18]="Materials used in the manufacture of cards and envelopes supplied from sustainable forests";
cardNote[18]="by Thomas Bush Hardy RBA (1842 - 1897), a Master Painter of Marine and Coastal Watercolours, Courtesy of the Authors www.tbhardy.com<br>2 cards of each design<br>Outer borders for this display only";
imageFile[18]="zMaritimeScenesBirthdayCards.jpg";
thumbNailFile[18]="zMaritimeScenesBirthdayCards2.jpg";
cdIndex[18]="18";
cardName[19]="Beside the Seaside Tea Towel";
delCard[19]="";
catNo[19]="18a";
foil[19]="";
cardPrice[19]="5.99";
packSize[19]="1";
cardDimCms[19]="47 x 75 cm";
cardDimIns[19]="18.5 x 29.5 in";
cardGreeting[19]="";
sustain[19]="";
cardNote[19]="Quality 100% Irish Linen";
imageFile[19]="zTeaTowel.jpg";
thumbNailFile[19]="zTeaTowel2.jpg";
cdIndex[19]="19";
cardName[20]="Summer Season Tea Towel";
delCard[20]="";
catNo[20]="18b";
foil[20]="";
cardPrice[20]="5.99";
packSize[20]="1";
cardDimCms[20]="47 x 75 cm";
cardDimIns[20]="18.5 x 29.5 in";
cardGreeting[20]="";
sustain[20]="";
cardNote[20]="Quality 100% Irish Linen";
imageFile[20]="zTeaTowel.jpg";
thumbNailFile[20]="zTeaTowel2.jpg";
cdIndex[20]="20";
cardName[21]="Heroism at Sea (E-book)";
delCard[21]="";
catNo[21]="19";
foil[21]="";
cardPrice[21]="9.95";
packSize[21]="1";
cardDimCms[21]="";
cardDimIns[21]="";
cardGreeting[21]="";
sustain[21]="";
cardNote[21]="A unique and detailed history of the Awards for Skill and Gallantry presented by<br>the Society since 1851. This E-book gives a fascinating insight into British maritime<br>history and the selfless acts of bravery of so many. Of special interest to anyone<br>with an interest in maritime history and love of the sea. Published on CD.";
imageFile[21]="zHeroismAtSea.jpg";
thumbNailFile[21]="zHeroismAtSea2.jpg";
cdIndex[21]="21";
cardName[22]="Nautical Heritage Calendar";
delCard[22]="";
catNo[22]="20";
foil[22]="";
cardPrice[22]="7.95";
packSize[22]="1";
cardDimCms[22]="17.5 x 32 cm";
cardDimIns[22]="6.9 x 12.6 in";
cardGreeting[22]="";
sustain[22]="";
cardNote[22]="Produced in association with the British Mercantile Marine Memorial Collection, it depicts on twelve picture postcards, unique scenes of merchant and fishing steamships, accompanied by descriptive narratives giving the history and context of each vessel.<br><br>Price includes envelope";
imageFile[22]="zNauticalHeritageCalendar.jpg";
thumbNailFile[22]="zNauticalHeritageCalendar2.jpg";
cdIndex[22]="22";
cardName[23]="Sunset and Evening Star Vol 2";
delCard[23]="";
catNo[23]="21";
foil[23]="";
cardPrice[23]="4.50";
packSize[23]="1";
cardDimCms[23]="";
cardDimIns[23]="";
cardGreeting[23]="";
sustain[23]="";
cardNote[23]="We are pleased to present a second volume of poems, thoughts and<br>quotations to comfort and inspire, kindly submitted by friends of the Society.";
imageFile[23]="zSunsetAndEveningStar.jpg";
thumbNailFile[23]="zSunsetAndEveningStar2.jpg";
cdIndex[23]="23";
var cardCt="23";
 
//-->
