
/* setup the tooltips */
jQuery(document).ready(function() {
	var 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\"><img src=\"images/lens_type.gif\"></div>Bifocal lenses should only be ordered if tour Optician recommends you do so. Glasses 123 recommend 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).';
	var 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.';
	var 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>';
	var 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 Glasses 123; 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;\"><img src=\"images/thin_lenses.gif\"></div>Thin High index lenses reflect more light than normal lenses. Glasses 123 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';
	var 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><img src=\"images/scratch_resistant_img.jpg\"><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 /><img src=\"images/anti_reflective_img.jpg\"><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 /><img src=\"images/uv_img.jpg\">';
	var tint_tooltip_text         = '<h4>Tints </h4><br />These are great for sunglasses; there is an array of colours available to suit every individual.';
	var case_tooltip_text         = 'Choose whether you would like a special case.';
	var cloth_tooltip_text        = '';
	var spray_tooltip_text        = '';
	var tools_tooltip_text        = 'Choose whether you would like any tools with your order.';
	var sph_tooltip_text          = 'There may be a few blank boxes in your prescription, 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.';
	var cyl_tooltip_text          = 'There may be a few blank boxes in your prescription, 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.';
	var axis_tooltip_text         = 'There may be a few blank boxes in your prescription, 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.';
	var add_near_tooltip_text     = 'There may be a few blank boxes in your prescription, 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.';
	var add_inter_tooltip_text    = '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.';
	var 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 />';

        jQuery('#lens-type-tooltip').tooltip({    showURL: false, bodyHandler: function() { return lens_type_tooltip_text; } });
        jQuery('#transition-tooltip').tooltip({   showURL: false, bodyHandler: function() { return transition_tooltip_text; } });
        jQuery('#polarised-tooltip').tooltip({    showURL: false, bodyHandler: function() { return polarised_tooltip_text; } });
        jQuery('#thin-lens-tooltip').tooltip({    showURL: false, bodyHandler: function() { return thin_lens_tooltip_text; } });
        jQuery('#coating-tooltip').tooltip({      showURL: false, bodyHandler: function() { return coating_tooltip_text; } });
        jQuery('#tint-tooltip').tooltip({         showURL: false, bodyHandler: function() { return tint_tooltip_text; } });
        jQuery('#case-tooltip').tooltip({         showURL: false, bodyHandler: function() { return case_tooltip_text; } });
        jQuery('#cloth-tooltip').tooltip({        showURL: false, bodyHandler: function() { return cloth_tooltip_text; } });
        jQuery('#spray-tooltip').tooltip({        showURL: false, bodyHandler: function() { return spray_tooltip_text; } });
		jQuery('#tools-tooltip').tooltip({        showURL: false, bodyHandler: function() { return tools_tooltip_text; } });
        jQuery('#sph-tooltip').tooltip({          showURL: false, bodyHandler: function() { return sph_tooltip_text; } });
        jQuery('#cyl-tooltip').tooltip({          showURL: false, bodyHandler: function() { return cyl_tooltip_text; } });
        jQuery('#axis-tooltip').tooltip({         showURL: false, bodyHandler: function() { return axis_tooltip_text; } });
        jQuery('#add-near-tooltip').tooltip({     showURL: false, bodyHandler: function() { return add_near_tooltip_text; } });
        jQuery('#add-inter-tooltip').tooltip({    showURL: false, bodyHandler: function() { return add_inter_tooltip_text; } });
        jQuery('#pd-tooltip').tooltip({           showURL: false, bodyHandler: function() { return pd_tooltip_text; } });
});

