lens_type_tooltip_text    = '<h4>Lens Type </h4><br />There are two main types of lenses that are available:<br/>Single Vision (SV)<br/>Bifocals (BF)<br/><br />Single Vision lenses are the lens types that the majority of our customers order. They are made to your prescription and are made for customers who are short sighted or long sighted - select DISTANCE LENSES. For those who need glasses for close work i.e. reading select READING LENSES. For VDU use please select INTERMEDIATE LENSES.<br/><br />Bifocal Lenses are for individuals who require two powers in their lenses.<div align=\"center\"></div>Bifocal lenses should only be ordered if tour Optician recommends you do so. Glasses123.co.uk recommends that you ask your Optician to make out a prescription for your glasses assuming that they are worn 12-13mm from the eye (the BVD or Back Vertex Distance).';

transition_tooltip_text   = '<h4>Photochromic Lenses </h4><br />Photochromic lenses (also known as Transitions) change from light to dark depending on the amount of Ultraviolet light they are exposed to. They come with 100% UV protection and glare reduction. They turn dark in sunny conditions and then light again with indoor use.';

polarised_tooltip_text    = '<h4>Polarised Lenses </h4><br />Polarized lenses cut out reflectance glare. By doing this they improve visual acuity, therefore providing enhanced ability to perceive contrast and improve depth of perception. These lenses are useful for sun wear, driving, water sport activities, improving natural colour contrast. Individuals who play golf and play target sports such as shooting or archery will benefit from these lenses.</div>';

thin_lens_tooltip_text    = '<h4>Thin Lenses </h4><br />Thin lenses - also known as High Index Lenses have thinner edges compared to the same prescription made from standard lenses. They are lighter in weight as they require less material.<br />High Index Lenses are recommended by Glasses123.co.uk for individuals who:<br /><br />&middot;&nbsp;prefer thin and comfortable lenses<br />&middot;&nbsp;have a high prescription - as the lenses provide a better appearance therefore cosmetically pleasing.<br />&middot;&nbsp;want a rimless frame as they provide superior strength.<br /><br />A 1.60 index lens is approximately 25% thinner than a standard index lens.<br />A 1.67 index lens is approximately 40% thinner than a standard index lens.<div style=\"padding:10px;\"></div>Thin High index lenses reflect more light than normal lenses. Glasses123.co.uk recommend an anti-reflective coating on all thin high index lenses to correct this.<br />Bifocal lenses are only available in 1.6 thin high index lenses';

coating_tooltip_text      = '<h4>Coating </h4><br /><b>Anti-scratch coating</b><br />Extends the life of your lens by protecting your lenses against everyday wear &amp; tear.<br><br /><b>Anti-reflective coating</b><br />Helps protect against glare and surface reflection, whilst improving your appearance as it makes your eyes more visible.<br /><br /><b>UV 400 protective coating</b><br />Protects your eyes from harmful UV radiation, which cause eye disorders such as cataracts and macular degeneration.<br />';

tint_tooltip_text         = '<h4>Tints </h4><br />These are great for sunglasses; there is an array of colours available to suit every individual.';
case_tooltip_text         = '';
cloth_tooltip_text        = '';
spray_tooltip_text        = '';

sph_tooltip_text       = 
cyl_tooltip_text       =
axis_tooltip_text      =
add_near_tooltip_text  =
add_inter_tooltip_text = '<h4>Sphere SPH</h4><br />There may be a few blank boxes in your prescription (i.e. no \'Sphere\', \'Cylinder\', \'Axis\' and / or \'Add\'); you should leave those sections empty. If there is only one number for each eye this is the \'Sphere\' power.<br /><br />In the \'Cylinder\' section, some prescriptions may have this number is a plus (+) or minus (-) form, or it may be blank.<br /><br />If you cannot understand your prescription, please contact us and we will advise you.';

pd_tooltip_text = '<h4>Pupillary Distance or PD</h4><br />PD is the distance from the centre of one pupil to the centre the other (the pupil is the black spot in the middle of your eye). If this measurement is not on your prescription please call your Opticians and they will give it to you. Most Optical Stores will measure it for you in under a minute at no cost. The standard PD is set to 60mm (for reading glasses) and 63mm (for distance glasses) by our Dispensing Opticians.<br />';

/* setup the tooltips */
$(document).ready(function() {
        $('#lens-type-tooltip').tooltip({    showURL: false, bodyHandler: function() { return lens_type_tooltip_text; } });
        $('#transition-tooltip').tooltip({   showURL: false, bodyHandler: function() { return transition_tooltip_text; } });
        $('#polarised-tooltip').tooltip({    showURL: false, bodyHandler: function() { return polarised_tooltip_text; } });
        $('#thin-lens-tooltip').tooltip({    showURL: false, bodyHandler: function() { return thin_lens_tooltip_text; } });
        $('#coating-tooltip').tooltip({      showURL: false, bodyHandler: function() { return coating_tooltip_text; } });
        $('#tint-tooltip').tooltip({         showURL: false, bodyHandler: function() { return tint_tooltip_text; } });
        $('#case-tooltip').tooltip({         showURL: false, bodyHandler: function() { return case_tooltip_text; } });
        $('#cloth-tooltip').tooltip({        showURL: false, bodyHandler: function() { return cloth_tooltip_text; } });
        $('#spray-tooltip').tooltip({        showURL: false, bodyHandler: function() { return spray_tooltip_text; } });

        $('#sph-tooltip').tooltip({          showURL: false, bodyHandler: function() { return sph_tooltip_text; } });
        $('#cyl-tooltip').tooltip({          showURL: false, bodyHandler: function() { return cyl_tooltip_text; } });
        $('#axis-tooltip').tooltip({         showURL: false, bodyHandler: function() { return axis_tooltip_text; } });
        $('#add-near-tooltip').tooltip({     showURL: false, bodyHandler: function() { return add_near_tooltip_text; } });
        $('#add-inter-tooltip').tooltip({    showURL: false, bodyHandler: function() { return add_inter_tooltip_text; } });
        $('#pd-tooltip').tooltip({           showURL: false, bodyHandler: function() { return pd_tooltip_text; } });
});
