﻿// JScript File

var dentistryProcedures = [];
dentistryProcedures[0] = 'accelerated-orthodontics';
dentistryProcedures[1] = 'conventional-teeth-whitening';
dentistryProcedures[2] = 'cosmetic-dentistry';
dentistryProcedures[3] = 'crown-bridge-work';
dentistryProcedures[4] = 'dental-braces';
dentistryProcedures[5] = 'dental-fillings';
dentistryProcedures[6] = 'dental-implants';
dentistryProcedures[7] = 'dentures';
dentistryProcedures[8] = 'direct-bonding-anterior';
dentistryProcedures[9] = 'direct-bonding-posterior';
dentistryProcedures[10] = 'full-mouth-rehabs';
dentistryProcedures[11] = 'gum-contouring';
dentistryProcedures[12] = 'inlays-onlays';
dentistryProcedures[13] = 'invisalign';
dentistryProcedures[14] = 'laser-teeth-whitening';
dentistryProcedures[15] = 'orthodontics';
dentistryProcedures[16] = 'partial-denture';
dentistryProcedures[17] = 'removable-prosthodontics';
dentistryProcedures[18] = 'root-canal';
dentistryProcedures[19] = 'teeth-whitening';
dentistryProcedures[20] = 'tooth-contouring-reshaping';
dentistryProcedures[21] = 'tooth-implant-restoration';
dentistryProcedures[22] = 'tooth-restoration';
dentistryProcedures[23] = 'veneers';

var skinProcedures = [];
skinProcedures[0] = 'accent-laser-treatment';
skinProcedures[1] = 'birthmark-blemish-treatments';
skinProcedures[2] = 'body-shaping-cellulite-reduction';
skinProcedures[3] = 'botox';
skinProcedures[4] = 'chemical-peel';
skinProcedures[5] = 'collagen-treatment';
skinProcedures[6] = 'cosmoplast-cosmoderm';
skinProcedures[7] = 'dermabrasion';
skinProcedures[8] = 'dermal-fillers';
skinProcedures[9] = 'dysport';
skinProcedures[10] = 'endermologie';
skinProcedures[11] = 'endovenous-laser-varicose-veins';
skinProcedures[12] = 'facial-exfoliation-skin-care';
skinProcedures[13] = 'fat-injections';
skinProcedures[14] = 'fractional-resurfacing-photothermolysis';
skinProcedures[15] = 'fraxel-laser-treatment';
skinProcedures[16] = 'hyaluronic-acid-treatment';
skinProcedures[17] = 'injectables';
skinProcedures[18] = 'injections';
skinProcedures[19] = 'intense-pulsed-light-hair-removal';
skinProcedures[20] = 'juvederm';
skinProcedures[21] = 'laceration-repair';
skinProcedures[22] = 'laser-resurfacing';
skinProcedures[23] = 'laser-skin-tightening';
skinProcedures[24] = 'laser-treatments-spider-veins';
skinProcedures[25] = 'lipodissolve-injections';
skinProcedures[26] = 'mesotherapy-treatment';
skinProcedures[27] = 'microdermabrasion';
skinProcedures[28] = 'micropigmentation';
skinProcedures[29] = 'non-invasive';
skinProcedures[30] = 'polymethyl-methacrylate-microspheres-pmma-artefill';
skinProcedures[31] = 'radiesse';
skinProcedures[32] = 'radio-frequency-skin-resurfacing';
skinProcedures[33] = 'refirme-body-tightening';
skinProcedures[34] = 'refirme-skin-resurfacing';
skinProcedures[35] = 'restylane-perlane';
skinProcedures[36] = 'scar-revision-repair';
skinProcedures[37] = 'sclerotherapy-spider-veins';
skinProcedures[38] = 'sculptra';
skinProcedures[39] = 'skin-resurfacing';
skinProcedures[40] = 'soft-tissue-augmentation-fillers-radiesse';
skinProcedures[41] = 'sun-damage-treatments';
skinProcedures[42] = 'tattoo-removal';
skinProcedures[43] = 'thermage-body';
skinProcedures[44] = 'thermage-skin-tightening';
skinProcedures[45] = 'titan-skin-tightening';
skinProcedures[46] = 'vein-removal';
skinProcedures[47] = 'velashape';
skinProcedures[48] = 'velasmooth';
skinProcedures[49] = 'vibraderm';
skinProcedures[50] = 'zerona';
skinProcedures[51] = 'zyderm-zyplast';

function SelectVerticalbyProcedure(url)
{
  for(var i = 0; i < dentistryProcedures.length; i++)
  {
    if(url.search(dentistryProcedures[i]) != -1)
    {
      return "dentistry";
    }
  }
  for(var i = 0; i < skinProcedures.length; i++)
  {
    if(url.search(skinProcedures[i]) != -1)
    {
      return "skin-rejuvenation";
    }
  }
}
