
simpleCart.email = "";
simpleCart.currency = GBP;
simpleCart.cartHeaders = ["Name_noHeader" , "RRP_noHeader" , "Price_noHeader" , "Quantity_noHeader" , "Remove_noHeader" , "Total_noHeader" , "Months_noHeader" , "Instalment_noHeader" , "DepInsText_noHeader" , "Ex1Text_noHeader" , "Ex2Text_noHeader" , "Ex3Text_noHeader"];
simpleCart.checkoutTo = Custom;

var overrideprice = 0;
var overridepaychoice = 0;
var paychoicedetect = 0;

var noinstalmentrrp = 55;	/* ### Update RRP Here - Prevents instalments on courses at this value ### */

var depositstrike = 70;
var depositactual = 50;

function AddShopItem(slug) {

	var rrpgroup = 0;

	var rrp = 0;
	var price = 0;
	var months = 0;
	var instalment = 0;

	if (slug == 'abnormal-psychology') { rrpgroup = 4; name = 'Abnormal Psychology'; }
	if (slug == 'acupressureacupuncture-theno-needle-way') { rrpgroup = 8; name = 'Acupressure and Acupuncture (The &#8216;no-needle&#8217; way)'; }
	if (slug == 'alcohol-dependency-counselling') { rrpgroup = 6; name = 'Alcohol Dependency Counselling'; }
	if (slug == 'alexander-technique') { rrpgroup = 4; name = 'Alexander Technique'; }
	if (slug == 'allergies-testing-and-treatments') { rrpgroup = 8; name = 'Allergies: Testing and Treatments'; }
	if (slug == 'anatomy-physiology') { rrpgroup = 4; name = 'Anatomy & Physiology'; }
	if (slug == 'angel-magic') { rrpgroup = 4; name = 'Angel Magic'; }
	if (slug == 'advanced-angel-ritual') { rrpgroup = 2; name = 'Angel Ritual (Advanced)'; }
	if (slug == 'anger-aggression-management') { rrpgroup = 4; name = 'Anger & Aggression Management'; }
	if (slug == 'animal-anatomy-and-physiology') { rrpgroup = 6; name = 'Animal Anatomy and Physiology'; }
	if (slug == 'animal-assisted-therapy') { rrpgroup = 8; name = 'Animal Assisted Therapy'; }
	if (slug == 'anti-ageing') { rrpgroup = 4; name = 'Anti-Ageing'; }
	if (slug == 'aromatherapy') { rrpgroup = 8; name = 'Aromatherapy'; }
	if (slug == 'advanced-aromatherapy') { rrpgroup = 9; name = 'Aromatherapy (Advanced)'; }
	if (slug == 'aromatherapy-family-health') { rrpgroup = 4; name = 'Aromatherapy for Family Health'; }
	if (slug == 'making-your-own-aromatherapy-herbal-natural-products') { rrpgroup = 4; name = 'Aromatherapy & Herbal Natural Products (Making your own)'; }
	if (slug == 'aromatherapy-specialist-treatments') { rrpgroup = 4; name = 'Aromatherapy Specialist Treatments'; }
	if (slug == 'art-its-place-therapy') { rrpgroup = 4; name = 'Art - Its Place in Therapy'; }
	if (slug == 'arthritis-holistic-approach') { rrpgroup = 4; name = 'Arthritis - The Holistic Approach'; }
	if (slug == 'arts-crafts') { rrpgroup = 4; name = 'Arts & Crafts'; }
	if (slug == 'ashtanga-yoga') { rrpgroup = 6; name = 'Ashtanga Yoga'; }
	if (slug == 'assertiveness-skills') { rrpgroup = 4; name = 'Assertiveness Skills'; }
	if (slug == 'astral-projection') { rrpgroup = 4; name = 'Astral Projection'; }
	if (slug == 'astrology') { rrpgroup = 7; name = 'Astrology'; }
	if (slug == 'auriculotherapy') { rrpgroup = 8; name = 'Auriculotherapy'; }
	if (slug == 'bates-method') { rrpgroup = 4; name = 'Bates Method'; }
	if (slug == 'beauty-specialist') { rrpgroup = 8; name = 'Beauty Specialist'; }
	if (slug == 'beauty-therapist') { rrpgroup = 4; name = 'Beauty Therapist'; }
	if (slug == 'behavioural-therapy') { rrpgroup = 4; name = 'Behavioural Therapy'; }
	if (slug == 'bereavement-counselling') { rrpgroup = 4; name = 'Bereavement Counselling'; }
	if (slug == 'biochemic-medicine') { rrpgroup = 4; name = 'Biochemic Medicine'; }
	if (slug == 'advanced-biochemic-medicine') { rrpgroup = 4; name = 'Biochemic Medicine (Advanced)'; }
	if (slug == 'body-language') { rrpgroup = 4; name = 'Body Language'; }
	if (slug == 'buddhism') { rrpgroup = 4; name = 'Buddhism'; }
	if (slug == 'bullying-and-harassment-therapy-adult-years') { rrpgroup = 8; name = 'Bullying & Harassment Therapy - The Adult Years'; }
	if (slug == 'bullying-and-harassment-therapy-younger-years') { rrpgroup = 8; name = 'Bullying & Harassment Therapy - The Younger Years'; }
	if (slug == 'business-development') { rrpgroup = 4; name = 'Business Development'; }
	if (slug == 'cardio-care-therapist') { rrpgroup = 4; name = 'Cardio-Care Therapist'; }
	if (slug == 'character-analysis') { rrpgroup = 4; name = 'Character Analysis'; }
	if (slug == 'chi-kung') { rrpgroup = 8; name = 'Chi Kung'; }
	if (slug == 'child-development') { rrpgroup = 4; name = 'Child Development'; }
	if (slug == 'child-protection') { rrpgroup = 6; name = 'Child Protection'; }
	if (slug == 'child-psychology') { rrpgroup = 6; name = 'Child Psychology'; }
	if (slug == 'childcare-education') { rrpgroup = 6; name = 'Childcare & Education'; }
	if (slug == 'childrens-yoga') { rrpgroup = 8; name = 'Children&#8217;s Yoga'; }
	if (slug == 'advanced-chinese-massage-and-acupressure') { rrpgroup = 8; name = 'Chinese Massage and Acupressure (Advanced)'; }
	if (slug == 'basic-chinese-massage-and-acupressure') { rrpgroup = 7; name = 'Chinese Massage and Acupressure (Basic)'; }
	if (slug == 'clinical-audit') { rrpgroup = 4; name = 'Clinical Audit'; }
	if (slug == 'clinical-personal-fitness-trainer') { rrpgroup = 8; name = 'Clinical Personal Fitness Trainer'; }
	if (slug == 'clinical-sciences-basic') { rrpgroup = 7; name = 'Clinical Sciences (Basic)'; }
	if (slug == 'co-dependency-counselling') { rrpgroup = 4; name = 'Co-dependency Counselling'; }
	if (slug == 'cognitive-behavioural-therapy-cbt') { rrpgroup = 8; name = 'Cognitive Behavioural Therapy (CBT)'; }
	if (slug == 'cognitive-synesthic-therapy') { rrpgroup = 8; name = 'Cognitive Synesthic Therapy'; }
	if (slug == 'colour-therapy') { rrpgroup = 8; name = 'Colour Therapy'; }
	if (slug == 'advanced-colour-therapy') { rrpgroup = 8; name = 'Colour Therapy (Advanced)'; }
	if (slug == 'communication-skills') { rrpgroup = 4; name = 'Communication Skills'; }
	if (slug == 'compulsive-behavioural-disorders') { rrpgroup = 4; name = 'Compulsive Behavioural Disorders'; }
	if (slug == 'confidence-enhancement') { rrpgroup = 4; name = 'Confidence Enhancement'; }
	if (slug == 'corporate-stress-management') { rrpgroup = 4; name = 'Corporate Stress Management'; }
	if (slug == 'advanced-corporate-stress-management') { rrpgroup = 9; name = 'Corporate Stress Management (Advanced)'; }
	if (slug == 'advanced-counselling-skills') { rrpgroup = 4; name = 'Counselling Skills (Advanced)'; }
	if (slug == 'counselling-skills-basic') { rrpgroup = 4; name = 'Counselling Skills (Basic)'; }
	if (slug == 'couple-counselling') { rrpgroup = 4; name = 'Couple Counselling'; }
	if (slug == 'cpd-module-1-record-keeping') { rrpgroup = 1; name = 'CPD Module 1 - Record-Keeping'; }
	if (slug == 'cpd-module-2-your-practice') { rrpgroup = 1; name = 'CPD Module 2 - Your Practice'; }
	if (slug == 'cpd-module-3-health-and-safety-workplace') { rrpgroup = 1; name = 'CPD Module 3 - Health & Safety in the Workplace'; }
	if (slug == 'creating-angels') { rrpgroup = 3; name = 'Creating with Angels'; }
	if (slug == 'creative-visualisation') { rrpgroup = 4; name = 'Creative Visualisation'; }
	if (slug == 'creative-writing') { rrpgroup = 4; name = 'Creative Writing'; }
	if (slug == 'criminology') { rrpgroup = 6; name = 'Criminology'; }
	if (slug == 'advanced-criminology') { rrpgroup = 7; name = 'Criminology (Advanced)'; }
	if (slug == 'crystal-ball-scrying') { rrpgroup = 4; name = 'Crystal Ball Scrying'; }
	if (slug == 'crystal-healing') { rrpgroup = 7; name = 'Crystal Healing'; }
	if (slug == 'advanced-crystal-healing') { rrpgroup = 8; name = 'Crystal Healing (Advanced)'; }
	if (slug == 'crystal-magic') { rrpgroup = 4; name = 'Crystal Magic'; }
	if (slug == 'deaf-awareness-and-sign-language') { rrpgroup = 4; name = 'Deaf Awareness & Sign Language'; }
	if (slug == 'depression-management') { rrpgroup = 4; name = 'Depression Management'; }
	if (slug == 'developing-active-listening-skills') { rrpgroup = 4; name = 'Developing Active Listening Skills'; }
	if (slug == 'developmental-psychology') { rrpgroup = 4; name = 'Developmental Psychology'; }
	if (slug == 'dharma-practices') { rrpgroup = 8; name = 'Dharma Practices'; }
	if (slug == 'disability-issues') { rrpgroup = 6; name = 'Disability Issues'; }
	if (slug == 'dog-obedience-trainer') { rrpgroup = 8; name = 'Dog Obedience Trainer'; }
	if (slug == 'dragon-magic') { rrpgroup = 2; name = 'Dragon Magic'; }
	if (slug == 'drama-healing-therapy') { rrpgroup = 8; name = 'Drama Healing Therapy'; }
	if (slug == 'dream-analysis') { rrpgroup = 4; name = 'Dream Analysis'; }
	if (slug == 'earth-mysteries-divining-land') { rrpgroup = 6; name = 'Earth Mysteries - Divining the Land'; }
	if (slug == 'eating-disorders-family-unit') { rrpgroup = 4; name = 'Eating Disorders & the Family Unit'; }
	if (slug == 'eating-disorders-part-1') { rrpgroup = 7; name = 'Eating Disorders Part 1'; }
	if (slug == 'eating-disorders-part-2') { rrpgroup = 7; name = 'Eating Disorders Part 2'; }
	if (slug == 'ecology-introductory') { rrpgroup = 4; name = 'Ecology (Introductory)'; }
	if (slug == 'educational-psychology') { rrpgroup = 4; name = 'Educational Psychology'; }
	if (slug == 'effective-parenting-skills') { rrpgroup = 4; name = 'Effective Parenting Skills'; }
	if (slug == 'effective-public-speaking') { rrpgroup = 4; name = 'Effective Public Speaking'; }
	if (slug == 'egyptology') { rrpgroup = 4; name = 'Egyptology'; }
	if (slug == 'evolution-theory-and-controversy') { rrpgroup = 4; name = 'Evolution: Theory & Controversy'; }
	if (slug == 'family-therapy') { rrpgroup = 4; name = 'Family Therapy'; }
	if (slug == 'feng-shui') { rrpgroup = 8; name = 'Feng Shui'; }
	if (slug == 'advanced-feng-shui') { rrpgroup = 8; name = 'Feng Shui (Advanced)'; }
	if (slug == 'first-aid') { rrpgroup = 4; name = 'First Aid'; }
	if (slug == 'flower-essences') { rrpgroup = 4; name = 'Flower Essences'; }
	if (slug == 'advanced-flower-essences') { rrpgroup = 7; name = 'Flower Essences (Advanced)'; }
	if (slug == 'flower-psychometry') { rrpgroup = 4; name = 'Flower Psychometry'; }
	if (slug == 'foot-care-specialist') { rrpgroup = 12; name = 'Foot Care Specialist'; }
	if (slug == 'forensic-psychology-introductory') { rrpgroup = 4; name = 'Forensic Psychology'; }
	if (slug == 'freelance-journalism') { rrpgroup = 4; name = 'Freelance Journalism'; }
	if (slug == 'massage-gateways-change') { rrpgroup = 4; name = 'Gateways of Change Massage'; }
	if (slug == 'green-living') { rrpgroup = 4; name = 'Green Living'; }
	if (slug == 'gym-instructor') { rrpgroup = 8; name = 'Gym Instructor'; }
	if (slug == 'health-lifestyle-trainer') { rrpgroup = 8; name = 'Health & Lifestyle Trainer'; }
	if (slug == 'health-personal-development') { rrpgroup = 4; name = 'Health & Personal Development'; }
	if (slug == 'health-care') { rrpgroup = 4; name = 'Health Care'; }
	if (slug == 'health-care-communication') { rrpgroup = 4; name = 'Health Care (Communication)'; }
	if (slug == 'health-care-foundation') { rrpgroup = 4; name = 'Health Care (Foundation)'; }
	if (slug == 'health-care-managing-challenging-behaviour') { rrpgroup = 4; name = 'Health Care (Managing Challenging Behaviour)'; }
	if (slug == 'health-care-practical-care') { rrpgroup = 4; name = 'Health Care (Practical Care)'; }
	if (slug == 'health-care-primary-nursing') { rrpgroup = 4; name = 'Health Care (Primary Nursing)'; }
	if (slug == 'herbalism') { rrpgroup = 8; name = 'Herbalism'; }
	if (slug == 'advanced-herbalism') { rrpgroup = 8; name = 'Herbalism (Advanced)'; }
	if (slug == 'hivaids-holistic-counselling-care') { rrpgroup = 4; name = 'HIV/AIDS Holistic Counselling & Care'; }
	if (slug == 'holistic-animal-healing') { rrpgroup = 8; name = 'Holistic Animal Healing'; }
	if (slug == 'holistic-aromatherapy-facial-treatments') { rrpgroup = 4; name = 'Holistic Aromatherapy Facial Treatments'; }
	if (slug == 'holistic-diagnosis-skills') { rrpgroup = 8; name = 'Holistic Diagnosis Skills'; }
	if (slug == 'holistic-family-health-management') { rrpgroup = 4; name = 'Holistic Family Health Management'; }
	if (slug == 'holistic-fertility-therapy') { rrpgroup = 8; name = 'Holistic Fertility Therapy'; }
	if (slug == 'holistic-image-consultant') { rrpgroup = 8; name = 'Holistic Image Consultant'; }
	if (slug == 'holistic-sports-nutrition') { rrpgroup = 8; name = 'Holistic Sports Nutrition'; }
	if (slug == 'holistic-sunshine-therapies') { rrpgroup = 4; name = 'Holistic Sunshine Therapies'; }
	if (slug == 'homoeopathy') { rrpgroup = 8; name = 'Homoeopathy'; }
	if (slug == 'hopi-ear-candling') { rrpgroup = 4; name = 'Hopi Ear Candling'; }
	if (slug == 'horticultural-therapy') { rrpgroup = 4; name = 'Horticultural Therapy'; }
	if (slug == 'hot-stone-therapy') { rrpgroup = 7; name = 'Hot Stone Therapy'; }
	if (slug == 'hypnology') { rrpgroup = 8; name = 'Hypnology'; }
	if (slug == 'hypnotherapy-curative') { rrpgroup = 8; name = 'Hypnotherapy (Curative)'; }
	if (slug == 'hypnotherapy-professional') { rrpgroup = 11; name = 'Hypnotherapy (Professional)'; }
	if (slug == 'i-ching') { rrpgroup = 4; name = 'I Ching'; }
	if (slug == 'incense-and-magic-oils') { rrpgroup = 2; name = 'Incense and Magical Oils'; }
	if (slug == 'indian-head-massage') { rrpgroup = 4; name = 'Indian Head Massage'; }
	if (slug == 'interior-design') { rrpgroup = 4; name = 'Interior Design'; }
	if (slug == 'iridology') { rrpgroup = 8; name = 'Iridology'; }
	if (slug == 'journal-therapy') { rrpgroup = 4; name = 'Journal Therapy'; }
	if (slug == 'juicing-health') { rrpgroup = 4; name = 'Juicing for Health'; }
	if (slug == 'kinesiology') { rrpgroup = 8; name = 'Kinesiology'; }
	if (slug == 'life-coaching') { rrpgroup = 8; name = 'Life Coaching'; }
	if (slug == 'lifestyle-enhancement') { rrpgroup = 8; name = 'Lifestyle Enhancement'; }
	if (slug == 'living-foods-nutrition') { rrpgroup = 4; name = 'Living Foods Nutrition'; }
	if (slug == 'magical-herbalism') { rrpgroup = 4; name = 'Magical Herbalism'; }
	if (slug == 'advanced-magical-herbalism') { rrpgroup = 4; name = 'Magical Herbalism (Advanced)'; }
	if (slug == 'magnet-therapy') { rrpgroup = 8; name = 'Magnet Therapy'; }
	if (slug == 'make-artist') { rrpgroup = 2; name = 'Make-up Artist'; }
	if (slug == 'professional-make') { rrpgroup = 8; name = 'Make-up (Professional)'; }
	if (slug == 'man-myth-magic') { rrpgroup = 4; name = 'Man, Myth & Magic'; }
	if (slug == 'management-relationship-conflict') { rrpgroup = 4; name = 'Management Relationship & Conflict'; }
	if (slug == 'managing-stress-workplace') { rrpgroup = 11; name = 'Managing Stress in the Workplace'; }
	if (slug == 'manicure-and-pedicure') { rrpgroup = 6; name = 'Manicure & Pedicure'; }
	if (slug == 'massage') { rrpgroup = 8; name = 'Massage'; }
	if (slug == 'mediation') { rrpgroup = 4; name = 'Mediation'; }
	if (slug == 'advanced-meditation') { rrpgroup = 8; name = 'Meditation (Advanced)'; }
	if (slug == 'meditation-healing') { rrpgroup = 4; name = 'Meditation (Healing)'; }
	if (slug == 'meditation-teacher') { rrpgroup = 6; name = 'Meditation Teacher'; }
	if (slug == 'mental-health') { rrpgroup = 4; name = 'Mental Health'; }
	if (slug == 'meridian-psychotherapy') { rrpgroup = 8; name = 'Meridian Psychotherapy'; }
	if (slug == 'mid-section-trainer') { rrpgroup = 4; name = 'Mid-Section Trainer'; }
	if (slug == 'modern-philosophy') { rrpgroup = 4; name = 'Modern Philosophy'; }
	if (slug == 'music-therapy') { rrpgroup = 4; name = 'Music for Therapy'; }
	if (slug == 'nlp-life-skills-coaching') { rrpgroup = 8; name = 'NLP Life Skills Coaching'; }
	if (slug == 'nail-technician') { rrpgroup = 6; name = 'Nail Technician'; }
	if (slug == 'native-american-medicinal-botany') { rrpgroup = 5; name = 'Native American Medicinal Botany'; }
	if (slug == 'native-american-teachings') { rrpgroup = 4; name = 'Native American Teachings'; }
	if (slug == 'advanced-native-american-teachings') { rrpgroup = 4; name = 'Native American Teachings (Advanced)'; }
	if (slug == 'natural-health-practice-management') { rrpgroup = 4; name = 'Natural Health Practice Management'; }
	if (slug == 'naturopathy') { rrpgroup = 9; name = 'Naturopathy'; }
	if (slug == 'neuro-linguistic-programming') { rrpgroup = 8; name = 'Neuro Linguistic Programming (N.L.P.)'; }
	if (slug == 'non-surgical-foot-care-specialist') { rrpgroup = 10; name = 'Non-Surgical Foot Care Specialist'; }
	if (slug == 'numerology') { rrpgroup = 4; name = 'Numerology'; }
	if (slug == 'nutrition') { rrpgroup = 9; name = 'Nutrition'; }
	if (slug == 'nutrition-and-weight-consultancy') { rrpgroup = 8; name = 'Nutrition and Weight Consultancy'; }
	if (slug == 'nutritional-therapy') { rrpgroup = 8; name = 'Nutritional Therapy'; }
	if (slug == 'pain-management-therapy') { rrpgroup = 4; name = 'Pain Management'; }
	if (slug == 'palmistry') { rrpgroup = 4; name = 'Palmistry'; }
	if (slug == 'parapsychology') { rrpgroup = 6; name = 'Parapsychology'; }
	if (slug == 'pendulum-dowsing-and-radiesthesia') { rrpgroup = 6; name = 'Pendulum Dowsing and Radiesthesia'; }
	if (slug == 'personal-beauty-care') { rrpgroup = 4; name = 'Personal Beauty Care'; }
	if (slug == 'personal-fitness-trainer') { rrpgroup = 8; name = 'Personal Fitness Trainer'; }
	if (slug == 'advanced-personal-fitness-trainer') { rrpgroup = 4; name = 'Personal Fitness Trainer (Advanced)'; }
	if (slug == 'personality-assessment') { rrpgroup = 4; name = 'Personality Assessment'; }
	if (slug == 'pet-psychology') { rrpgroup = 8; name = 'Pet Psychology'; }
	if (slug == 'basic-philosophy') { rrpgroup = 4; name = 'Philosophy (Basic)'; }
	if (slug == 'photography') { rrpgroup = 4; name = 'Photography (Basic)'; }
	if (slug == 'physical-fitness') { rrpgroup = 7; name = 'Physical Fitness'; }
	if (slug == 'pilates') { rrpgroup = 6; name = 'Pilates'; }
	if (slug == 'positive-anxiety-management') { rrpgroup = 4; name = 'Positive Anxiety Management'; }
	if (slug == 'positive-thinking') { rrpgroup = 4; name = 'Positive Thinking'; }
	if (slug == 'post-traumatic-stress-disorder-management') { rrpgroup = 8; name = 'Post Traumatic Stress Disorder Management'; }
	if (slug == 'power-memory-development') { rrpgroup = 4; name = 'Power of Memory Development'; }
	if (slug == 'pre-and-post-natal-yoga-teacher') { rrpgroup = 6; name = 'Pre- and Post-Natal Yoga Teacher'; }
	if (slug == 'pregnancy-baby-massage') { rrpgroup = 4; name = 'Pregnancy & Baby Massage'; }
	if (slug == 'project-and-team-management') { rrpgroup = 4; name = 'Project & Team Management'; }
	if (slug == 'proofreading') { rrpgroup = 7; name = 'Proofreading'; }
	if (slug == 'psychic-development') { rrpgroup = 4; name = 'Psychic Development'; }
	if (slug == 'psycho-compatibility-therapy') { rrpgroup = 4; name = 'Psycho-Compatibility Therapy'; }
	if (slug == 'introductory-psychology') { rrpgroup = 4; name = 'Psychology (Introductory)'; }
	if (slug == 'psychology-and-treatment-alcoholism') { rrpgroup = 7; name = 'Psychology & Treatment of Alcoholism'; }
	if (slug == 'psychology-self') { rrpgroup = 4; name = 'Psychology of Self'; }
	if (slug == 'psychotechnics-mind-power') { rrpgroup = 4; name = 'Psychotechnics (Mind Power)'; }
	if (slug == 'psychotherapy') { rrpgroup = 8; name = 'Psychotherapy'; }
	if (slug == 'advanced-psychotherapy') { rrpgroup = 8; name = 'Psychotherapy (Advanced)'; }
	if (slug == 'pyramid-energy') { rrpgroup = 2; name = 'Pyramid Energy'; }
	if (slug == 'qabbalah-first-steps') { rrpgroup = 7; name = 'Qabbalah - The First Steps'; }
	if (slug == 'qabbalah-journey-continues') { rrpgroup = 7; name = 'Qabbalah - The Journey Continues'; }
	if (slug == 'rational-emotive-therapy') { rrpgroup = 4; name = 'Rational Emotive Therapy'; }
	if (slug == 'reality-therapy') { rrpgroup = 4; name = 'Reality Therapy'; }
	if (slug == 'reflexology') { rrpgroup = 8; name = 'Reflexology'; }
	if (slug == 'advanced-reflexology') { rrpgroup = 9; name = 'Reflexology (Advanced)'; }
	if (slug == 'reflexology-vibrational-medicine') { rrpgroup = 4; name = 'Reflexology Vibrational Medicine'; }
	if (slug == 'regression-hypno-analysis') { rrpgroup = 4; name = 'Regression & Hypno-Analysis'; }
	if (slug == 'reiki-1st-degree-theory') { rrpgroup = 4; name = 'Reiki 1st Degree Theory'; }
	if (slug == 'reiki-2nd-degree-theory') { rrpgroup = 4; name = 'Reiki 2nd Degree Theory'; }
	if (slug == 'reiki-3rd-degree-theory') { rrpgroup = 4; name = 'Reiki 3rd Degree Theory'; }
	if (slug == 'professional-relaxation-therapist') { rrpgroup = 7; name = 'Relaxation Therapist (Professional)'; }
	if (slug == 'runes') { rrpgroup = 4; name = 'Runes'; }
	if (slug == 'seated-upper-body-massage') { rrpgroup = 8; name = 'Seated Upper Body Massage'; }
	if (slug == 'selection-interview-techniques') { rrpgroup = 4; name = 'Selection Interview Techniques'; }
	if (slug == 'self-awareness') { rrpgroup = 4; name = 'Self Awareness'; }
	if (slug == 'self-determination') { rrpgroup = 4; name = 'Self Determination'; }
	if (slug == 'self-esteem') { rrpgroup = 4; name = 'Self Esteem'; }
	if (slug == 'self-hypnosis') { rrpgroup = 4; name = 'Self Hypnosis'; }
	if (slug == 'self-improvement') { rrpgroup = 4; name = 'Self Improvement'; }
	if (slug == 'self-concept-and-physical-disability-children') { rrpgroup = 5; name = 'Self-Concept and Physical Disability in Children'; }
	if (slug == 'shamanism') { rrpgroup = 4; name = 'Shamanism'; }
	if (slug == 'shiatsu') { rrpgroup = 8; name = 'Shiatsu'; }
	if (slug == 'professional-smoking-cessation-therapy') { rrpgroup = 8; name = 'Smoking Cessation Therapy (Professional)'; }
	if (slug == 'advanced-social-psychology') { rrpgroup = 4; name = 'Social Psychology (Advanced)'; }
	if (slug == 'further-social-psychology') { rrpgroup = 4; name = 'Social Psychology (Further)'; }
	if (slug == 'social-psychology-introduction') { rrpgroup = 4; name = 'Social Psychology (Introduction)'; }
	if (slug == 'sociology') { rrpgroup = 4; name = 'Sociology'; }
	if (slug == 'spa-therapy') { rrpgroup = 6; name = 'Spa Therapy'; }
	if (slug == 'specialist-beautician') { rrpgroup = 13; name = 'Specialist Beautician'; }
	if (slug == 'spiritual-coaching') { rrpgroup = 4; name = 'Spiritual Coaching'; }
	if (slug == 'spiritual-healing') { rrpgroup = 8; name = 'Spiritual Healing'; }
	if (slug == 'professional-spiritual-healing-part-1') { rrpgroup = 8; name = 'Spiritual Healing - Part 1 (Professional)'; }
	if (slug == 'professional-spiritual-healing-part-2') { rrpgroup = 8; name = 'Spiritual Healing - Part 2 (Professional)'; }
	if (slug == 'sports-electro-therapy') { rrpgroup = 8; name = 'Sports Electro-Therapy'; }
	if (slug == 'sports-injuries') { rrpgroup = 8; name = 'Sports Injuries'; }
	if (slug == 'sports-massage') { rrpgroup = 8; name = 'Sports Massage'; }
	if (slug == 'sports-nutrition') { rrpgroup = 8; name = 'Sports Nutrition'; }
	if (slug == 'sports-psychology') { rrpgroup = 6; name = 'Sports Psychology'; }
	if (slug == 'start-your-own-complementary-health-business') { rrpgroup = 4; name = 'Start Your Own Complementary Health Business'; }
	if (slug == 'stop-smoking-therapy-clinic') { rrpgroup = 8; name = 'Stop Smoking Therapy Clinic'; }
	if (slug == 'stress-counselling-workplace') { rrpgroup = 4; name = 'Stress Counselling in the Workplace'; }
	if (slug == 'advanced-stress-consultant') { rrpgroup = 11; name = 'Stress Consultant (Advanced)'; }
	if (slug == 'professional-stress-consultant') { rrpgroup = 8; name = 'Stress Consultant (Professional)'; }
	if (slug == 'successful-self-publishing') { rrpgroup = 4; name = 'Successful Self Publishing'; }
	if (slug == 'tai-chi-chuan') { rrpgroup = 8; name = 'Tai Chi Chuan'; }
	if (slug == 'tarot-and-cartomancy') { rrpgroup = 6; name = 'Tarot and Cartomancy'; }
	if (slug == 'teaching-english-foreign-language-tefl') { rrpgroup = 8; name = 'Teaching English as a Foreign Language (T.E.F.L)'; }
	if (slug == 'thai-massage') { rrpgroup = 6; name = 'Thai Massage'; }
	if (slug == 'tibetan-buddhist-meditation') { rrpgroup = 8; name = 'Tibetan Buddhist Meditation'; }
	if (slug == 'tibetan-medicine') { rrpgroup = 6; name = 'Tibetan Medicine'; }
	if (slug == 'time-priority-management') { rrpgroup = 4; name = 'Time & Priority Management'; }
	if (slug == 'applications-traditional-chinese-medicine') { rrpgroup = 4; name = 'Traditional Chinese Medicine (Applications of)'; }
	if (slug == 'ufology-mystery-ufos') { rrpgroup = 2; name = 'Ufology - The Mystery of UFOs'; }
	if (slug == 'understanding-managing-dyslexia') { rrpgroup = 8; name = 'Understanding & Managing Dyslexia'; }
	if (slug == 'understanding-drugs') { rrpgroup = 4; name = 'Understanding Drugs'; }
	if (slug == 'vegetarian-vegan-nutritional-therapy') { rrpgroup = 8; name = 'Vegetarian & Vegan Nutritional Therapy'; }
	if (slug == 'wicca') { rrpgroup = 4; name = 'Wicca'; }
	if (slug == 'advanced-wicca') { rrpgroup = 4; name = 'Wicca (Advanced)'; }
	if (slug == 'wild-foods') { rrpgroup = 2; name = 'Wild Foods'; }
	if (slug == 'working-chakras') { rrpgroup = 4; name = 'Working with Chakras'; }
	if (slug == 'world-religions') { rrpgroup = 4; name = 'World Religions'; }
	if (slug == 'writing-articles') { rrpgroup = 4; name = 'Writing Articles'; }
	if (slug == 'writing-features-health-beauty-and-fitness-magazines') { rrpgroup = 4; name = 'Writing Features for Health, Beauty and Fitness Magazines'; }
	if (slug == 'writing-tv-radio-and-film') { rrpgroup = 4; name = 'Writing for TV, Radio & Film'; }
	if (slug == 'writing-short-stories') { rrpgroup = 4; name = 'Writing Short Stories'; }
	if (slug == 'yoga-beginners') { rrpgroup = 5; name = 'Yoga Beginners'; }
	if (slug == 'yoga-class-instructor') { rrpgroup = 6; name = 'Yoga Class Instructor'; }
	if (slug == 'yoga-healthy-pregnancy') { rrpgroup = 4; name = 'Yoga for a Healthy Pregnancy'; }
	if (slug == 'yoga-intermediate-part-1') { rrpgroup = 5; name = 'Yoga Intermediate - Part 1'; }
	if (slug == 'yoga-intermediate-part-2') { rrpgroup = 5; name = 'Yoga Intermediate - Part 2'; }
	if (slug == 'yoga-teacher-hatha-yoga') { rrpgroup = 8; name = 'Yoga Teacher (Hatha Yoga)'; }
	if (slug == 'advanced-yoga-teacher-hatha-yoga') { rrpgroup = 8; name = 'Yoga Teacher (Hatha Yoga) (Advanced)'; }
	if (slug == 'yoga-therapy-level-1') { rrpgroup = 8; name = 'Yoga Therapy (Level 1)'; }
	if (slug == 'yoga-therapy-level-2') { rrpgroup = 8; name = 'Yoga Therapy (Level 2)'; }
	if (slug == 'yoga-therapy-level-3') { rrpgroup = 8; name = 'Yoga Therapy (Level 3)'; }
	if (slug == 'zen-meditation-modern-living') { rrpgroup = 6; name = 'Zen Meditation for Modern Living'; }

	/* ### Update RRP Here ### */

	if (rrpgroup == 1) { rrp = 55; price = 55; months = 0; instalment = price; }
	if (rrpgroup == 2) { rrp = 170; price = 150; months = 4; instalment = 25; }
	if (rrpgroup == 3) { rrp = 195; price = 175; months = 5; instalment = 25; }
	if (rrpgroup == 4) { rrp = 270; price = 250; months = 8; instalment = 25; }
	if (rrpgroup == 5) { rrp = 295; price = 275; months = 9; instalment = 25; }
	if (rrpgroup == 6) { rrp = 345; price = 325; months = 11; instalment = 25; }
	if (rrpgroup == 7) { rrp = 370; price = 350; months = 12; instalment = 25; }
	if (rrpgroup == 8) { rrp = 400; price = 380; months = 11; instalment = 30; }
	if (rrpgroup == 9) { rrp = 455; price = 435; months = 11; instalment = 35; }
	if (rrpgroup == 10) { rrp = 510; price = 490; months = 11; instalment = 40; }
	if (rrpgroup == 11) { rrp = 630; price = 610; months = 14; instalment = 40; }
	if (rrpgroup == 12) { rrp = 850; price = 830; months = 13; instalment = 60; }
	if (rrpgroup == 13) { rrp = 950; price = 930; months = 16; instalment = 55; }

	if (price == null || price == 0) {
		alert('Error Adding Shop Item - Code: '+rrpgroup+' '+rrp+' ('+slug+')');
		return false;
	}

	simpleCart.add( 'name='+name , 'rrp='+rrp , 'price='+price , 'months='+months , 'instalment='+instalment , 'quantity=1' );
}

function CheckItems() {
	if (simpleCart.quantity == 0) {
		alert('Please use the Course Finder to add a course into your Enrolment Choice.\n\nThen, please press Proceed.')
	} else {
		location = 'https://www.bsygroup.co.uk/enrol-delivery-payment.asp';
	}
}

function UpdateDelivery() {
	if (document.getElementById('DeliveryOption').elements[0].checked) {
		simpleCart.shippingQuantityRate = 0.00;
		simpleCart.update();
		document.getElementById('PaymentOption').elements[0].checked=false;
		document.getElementById('PaymentOption').elements[1].checked=false;
		document.getElementById('PaymentOption').elements[1].disabled=false;
	}

	if (document.getElementById('DeliveryOption').elements[1].checked) {
		simpleCart.shippingQuantityRate = 15.00;
		overrideprice = 0;
		simpleCart.update();
		document.getElementById('PaymentOption').elements[0].checked=false;
		document.getElementById('PaymentOption').elements[1].checked=false;
		document.getElementById('PaymentOption').elements[1].disabled=true;
		document.getElementById("PayNote").style.display = 'none';
		document.getElementById("OneSumNote").style.display = '';
		document.getElementById("InstalmentNote").style.display = 'none';
	}

	if (document.getElementById('DeliveryOption').elements[2].checked) {
		simpleCart.shippingQuantityRate = 25.00;
		overrideprice = 0;
		simpleCart.update();
		document.getElementById('PaymentOption').elements[0].checked=false;
		document.getElementById('PaymentOption').elements[1].checked=false;
		document.getElementById('PaymentOption').elements[1].disabled=true;
		document.getElementById("PayNote").style.display = 'none';
		document.getElementById("OneSumNote").style.display = '';
		document.getElementById("InstalmentNote").style.display = 'none';
	}

	UpdateSelectText();
}

function UpdatePayOpt() {
	if (!document.getElementById('PaymentOption').elements[0].checked && !document.getElementById('PaymentOption').elements[1].checked) {
		overrideprice = 0;
		overridepaychoice = 0;
		simpleCart.update();

		var e = getElementsByClassName("itemDepInsText");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}

		document.getElementById("PayNote").style.display = 'none';
		document.getElementById("OneSumNote").style.display = 'none';
		document.getElementById("InstalmentNote").style.display = 'none';
		document.getElementById("ShowBasketTotal").style.display = 'none';
	}

	if (document.getElementById('PaymentOption').elements[0].checked) {
		overrideprice = 0;
		overridepaychoice = 1;
		simpleCart.update();

		var e = getElementsByClassName("itemDepInsText");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}

		ClearExText();

		if (pageview > 1 && paychoicedetect == 1) {
			document.getElementById("PayNote").style.display = 'none';
			document.getElementById("OneSumNote").style.display = '';
			document.getElementById("InstalmentNote").style.display = 'none';
			document.getElementById("ShowBasketTotal").style.display = '';
		}
	}

	if (document.getElementById('PaymentOption').elements[1].checked) {
		overrideprice = 1;
		overridepaychoice = 1;
		simpleCart.update();

		ClearExText();

		if (pageview > 1 && paychoicedetect == 1) {
			document.getElementById("PayNote").style.display = 'none';
			document.getElementById("OneSumNote").style.display = 'none';
			document.getElementById("InstalmentNote").style.display = '';
			document.getElementById("ShowBasketTotal").style.display = '';
		}
	}

	UpdateSelectText();
}

function ClearExText() {
		var e = getElementsByClassName("itemName");

		for(var i=1;i<e.length;i++) {
			e[i].style.display = 'inline';
			e[i].style.width = 'auto';
		}

		var e = getElementsByClassName("itemRRP");

		for(var i=0;i<e.length;i++) {
			e[i].style.marginTop = '0px';
		}

		var e = getElementsByClassName("itemPrice");

		for(var i=0;i<e.length;i++) {
			e[i].style.marginTop = '0px';
		}

		var e = getElementsByClassName("itemQuantity");

		for(var i=0;i<e.length;i++) {
			e[i].style.marginTop = '0px';
		}

		var e = getElementsByClassName("itemEx1Text");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}

		var e = getElementsByClassName("itemEx2Text");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}

		var e = getElementsByClassName("itemEx3Text");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}
}

function UpdateSelectText() {
	if (pageview == 1) {
		var e = getElementsByClassName("ShowDeliverySelect");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = '';
		}

		var e = getElementsByClassName("ShowPayOptSelect");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}
	}
	if (pageview == 2) {
		var e = getElementsByClassName("ShowDeliverySelect");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = 'none';
		}

		var e = getElementsByClassName("ShowPayOptSelect");

		for(var i=0;i<e.length;i++) {
			e[i].style.display = '';
		}
	}
}

