$(document).ready(function()
{
   $('a[rel="orthopaedic"]').qtip(
   {
      content: {
         title: {
            text: 'Orthopaedic Surgery',
            button: 'Close'
         },
         text: '<p>Orthopaedic Surgery is provided at Omni through third party insurers including Workers Compensation Board and others.  Often surgery can be expedited through third party disability insurance programs.  Most insurance providers will assist you by covering an expedited orthopaedic surgery.</p><ul><li>Please speak to your insurance provider to approve having your surgical procedure performed at the Omni Surgical Centre.</li><li>Omni does not provide user pay orthopaedic surgery services.</li><li>For orthopaedic patient education <a href="http://www.orthogate.org/patient-education/" target="_blank">click here</a></li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });

   $('a[rel="plastic"]').qtip(
   {
      content: {
         title: {
            text: 'Plastic Surgery',
            button: 'Close'
         },
         text: '<ul><li>Plastic Surgery procedures are provided at Omni on a fee for service basis.</li><li>Omni Surgery Centre offers a variety of surgical procedures : face and neck lift, breast augmentation (implants), breast lift, tummy tuck, liposuction among others. To book your consultation with a plastic surgeon contact us at 306-545-8181.</li>		<li>For Plastic Surgery patient education <a href="http://www.plasticsurgery.ca/content.aspx?catID=743" target="_blank">click here</a></li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   
      $('a[rel="lapband"]').qtip(
   {
      content: {
         title: {
            text: 'LAP-BAND&reg;',
            button: 'Close'
         },
         text: '<ul><li>Adjustable Gastric Banding LAP-BAND&reg; procedures are provided at Omni on a fee for service basis.</li><li>Omni Surgery Centre offers a comprehensive multi-disciplinary weight loss program which includes LAP-BAND&reg; Surgery.</li><li>To learn more about the LAP-BAND&reg; Solution <a href="http://www.omnilapband.ca/" target="_blank">click here</a>.</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
      $('a[rel="anaesthesiology"]').qtip(
   {
      content: {
         title: {
            text: 'Anaesthesiology',
            button: 'Close'
         },
         text: '<ul><li>General Anesthesia</li><li>Intra-venous</li><li>Inhalation</li><li>Nerve blocks - pain control</li><li>Peripheral nerve block</li><li>Regional</li><li>Spinal</li><li>Steroid injection</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   // Create the modal backdrop on document load so all modal tooltips can use it
   $('<div id="qtip-blanket">')
      .css({
         position: 'absolute',
         top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
         left: 0,
         height: $(document).height(), // Span the full document height...
         width: '100%', // ...and full width

         opacity: 0.7, // Make it slightly transparent
         backgroundColor: '#230F08',
         zIndex: 5000  // Make sure the zIndex is below 6000 to keep it below tooltips!
      })
      .appendTo(document.body) // Append to the document body
      .hide(); // Hide it initially
	  
	  
	      $('a[rel="dentistry"]').qtip(
   {
      content: {
         title: {
            text: 'Dentistry',
            button: 'Close'
         },
         text: '<ul><li>Dentistry services are offered at Omni on a referral basis. Please speak directly with your dentist to discuss this option.</li><li>To learn about dental procedures <a href="http://www.cda-adc.ca/en/oral_health/procedures/index.asp" target="_blank">click here</a></li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
   // Create the modal backdrop on document load so all modal tooltips can use it
   $('<div id="qtip-blanket">')
      .css({
         position: 'absolute',
         top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
         left: 0,
         height: $(document).height(), // Span the full document height...
         width: '100%', // ...and full width
         opacity: 0.7, // Make it slightly transparent
         backgroundColor: '#230F08',
         zIndex: 5000  // Make sure the zIndex is below 6000 to keep it below tooltips!
      })
      .appendTo(document.body) // Append to the document body
      .hide(); // Hide it initially

    $('a[rel="dentistry2"]').qtip(
   {
      content: {
         title: {
            text: 'Dentistry',
            button: 'Close'
         },
         text: '<ul><li>General (carries, repair, crown)</li><li>Minor oral surgery</li><li>Multiple root</li><li>Restorative dentistry</li><li>Root resection</li><li>Single root</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });

    $('a[rel="maxillo"]').qtip(
   {
      content: {
         title: {
            text: 'Oral & Maxillofacial Surgery',
            button: 'Close'
         },
         text: '<ul><li>Extraction, transplantation, re-implantation</li><li>Sinus surgery</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
    $('a[rel="otolary"]').qtip(
   {
      content: {
         title: {
            text: 'Otolaryngology Head & Neck Surgery',
            button: 'Close'
         },
         text: '<ul><li>Minor facial fractures repair</li><li>Reconstruction surgery of facial bones</li><li>Rhinoplasty</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
    $('a[rel="otolary"]').qtip(
   {
      content: {
         title: {
            text: 'Otolaryngology Head & Neck Surgery',
            button: 'Close'
         },
         text: '<ul><li>Minor facial fractures repair</li><li>Reconstruction surgery of facial bones</li><li>Rhinoplasty</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
    $('a[rel="urology"]').qtip(
   {
      content: {
         title: {
            text: 'Urology',
            button: 'Close'
         },
         text: '<ul><li>Vasectomy and vasectomy reversal</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
    $('a[rel="vascular"]').qtip(
   {
      content: {
         title: {
            text: 'Vascular Surgery',
            button: 'Close'
         },
         text: '<ul><li>Varicose vein injection</li><li>Varicose vein surgery</li></ul>'
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:500,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
    $('a[rel="facial"]').qtip(
   {
      content: {
         title: {
            text: 'Facial AND Plastic Surgery',
            button: 'Close'
         },
         text: "<table width='650' border='0' cellpadding='0' cellspacing='0'><tr><td width='329'><ul><li>Abdominoplasty</li><li>Blepharoplasty</li><li>Buttock lift, thigh lift</li><li>Calf implant</li><li>Cosmetic laser surgery (CO2 Coherent Laser) - [Certificate of training and reference letter required by the College before approval is granted]</li><li>Dermabrasion</li><li>Dupuytren's contracture repair/excision</li><li>Face lift and forehead lift surgery</li><li>Facial chemosurgery</li><li>Facial implant insertion</li>Fat injection</li><li>Hair transplantation</li><li>Implant revision and removal</li><li>Injectable soft tissue augmentation</li><li>Liposuction</li><li>Malar implants, repositioning osteotomy</li><li>Mastopexy, nipple reconstruction</li><li>Mentoplasty (including chin implantation and horizontal ostectomy)</li><li>Otoplasty</li></ul></td><td width='325' valign='top'><ul><li>Removal of skin tumors and primary reconstructions</li><li>Repair of facial fractures</li><li>Repair of facial lacerations</li><li>Rhinoplasty and septoplasty</li><li>Skin and and Subcutaneous Tissue<ul><li>Suture Lacerations</li><li>Excision/biopsy lesions (nevi, skin, cancers, etc)</li><li>I &amp; D</li></ul></li><li>Spine<ul><li>Two level and single level lumbar discectomies</li></ul></li><li>Foot<ul><li>Ankle Ligament Repair</li><li>Gastrocnemius Repair</li><li>Achilles Repair</li><li>Ankle Arthroscopy</li><li>Tibial Tendon Augmentation</li><li>Fixation Osteochondral Fracture</li><li>Removal of Hardware</li></ul></li></ul></td></tr></table>"
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:700,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
   $('a[rel="orthopae"]').qtip(
   {
      content: {
         title: {
            text: 'Orthopaedic Surgery',
            button: 'Close'
         },
         text: "<table width='650' border='0' cellpadding='0' cellspacing='0'><tr><td width='329' valign='top'><ul><li>Arthroscopic, arthrotomy/endoscopic surgery of all amenable joints</li><li>Miscellaneous neurolysis and nerve repair or graft</li><li>Tendon repairs and reconstructions</li><li>Knee<ul><li>Arthroscopic surgery, including meniscal surgery, synovectomy</li><li>Reconstruction/Repair of Ligaments</li></ul></li><li>Shoulder<ul><li>Acromioplasty</li><li>Arthroscopy /Sub Acromial Decompression</li><li>Bankart/Rotator Cuff Repair</li><li>Biceps Tenodesis or Repair</li><li>Capsular Shrinkage</li><li>Excision of Distal Head of Clavicle</li><li>Fixation Osteochondral Fracture</li><li>Ligament/Labral Repair</li><li>Removal of Hardware</li><li>Shoulder Stabilization</li></ul></li><li>Spine<ul><li>Two level and single level lumbar discectomies</li></ul></li></ul></td><td width='325' valign='top'><ul><li>Hand<ul><li>Arthroplasty finger, thumb, carpus and wrist</li><li>Ganglion excision</li><li>Internal fixation of fractures</li><li>Neurolysis</li><li>Palmar fasciotomy and fasciectomy</li><li>Repair boutonniere deformity</li><li>Repair of tendons: flexor, extensor</li><li>Tendon transplants</li><li>Tenodesis, tenolysis and tendon transfers and grafts</li><li>Treatment of infection</li></ul></li><li>Foot<ul><li>Ankle Ligament Repair</li><li>Gastrocnemius Repair</li><li>Achilles Repair</li><li>Ankle Arthroscopy</li><li>Tibial Tendon Augmentation</li><li>Fixation Osteochondral Fracture</li><li>Removal of Hardware</li></ul></li></ul></td></tr></table>"
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:700,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
   $('a[rel="misc"]').qtip(
   {
      content: {
         title: {
            text: 'General and Miscellaneous',
            button: 'Close'
         },
         text: "<ul><li>Burns, localized treatment</li><li>Removal of foreign bodies</li></ul>"
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:700,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
   $('a[rel="general"]').qtip(
   {
      content: {
         title: {
            text: 'General Surgery',
            button: 'Close'
         },
         text: "<ul><li>Skin laceration - repair<ul><li>Biopsy or excision</li><li>Hernia repair</li></ul></li>"
      },
      position: {
         target: $(document.body), // Position it via the document body...
         corner: 'center' // ...at the center of the viewport
      },
      show: {
         when: 'click', // Show it on click
         solo: true // And hide all other tooltips
      },
      hide: false,
      style: {
         width:700,
         padding: '14px',
         border: {
            width: 9,
            radius: 9,
            color: '#003B4B'
         },
         name: 'light'
      },
      api: {
         beforeShow: function()
         {
            // Fade in the modal "blanket" using the defined show speed
            $('#qtip-blanket').fadeIn(this.options.show.effect.length);
         },
         beforeHide: function()
         {
            // Fade out the modal "blanket" using the defined hide speed
            $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
         }
      }
   });
	
	
	
	
	
   // Create the modal backdrop on document load so all modal tooltips can use it
   $('<div id="qtip-blanket">')
      .css({
         position: 'absolute',
         top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
         left: 0,
         height: $(document).height(), // Span the full document height...
         width: '100%', // ...and full width
         opacity: 0.7, // Make it slightly transparent
         backgroundColor: '#230F08',
         zIndex: 5000  // Make sure the zIndex is below 6000 to keep it below tooltips!
      })
      .appendTo(document.body) // Append to the document body
      .hide(); // Hide it initially
	  
	  
	  
});
