
// JavaScript Document

/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth = "190px" //set default menu width.

//Help descriptions
var helpterm = new Array(18);
var helpdescription = new Array(18);

helpterm[0] = 'Destination';
helpdescription[0] = 'Area 1 - your home country, England, Scotland, Wales, Isle of Man or N. Ireland<br/><br/>Area 2 - The Continent of Europe, Southern Ireland, <strong>Channel Islands</strong>,\nThe Azores, any country or island with a Mediterranean coastline. <br/><br/>Please see list below: \nAlbania - Andorra - Austria - Balearic Islands - Belgium - Bosnia - \nBulgaria - Canary Islands - Corsica - Crete - Croatia - Cyprus -\n Czech Republic + Slovakia - Denmark - Egypt - Finland - France - Greece - \nGermany - Hungary - Ibiza - Iceland - Italy - Lapland \nLiechtenstein - Luxembourg - Madeira - Mallorca - Malta - Menorca - \nMonaco - Morocco - Netherlands - Norway - Poland - Portugal - Romania -\n San Marino - Sardinia - Sicily - Slovenia - Spain - Sweden - Switzerland - \nSyria - Tunisia - Turkey - Yugoslavia. Also included is these parts of the \nformer USSR: Estonia - Belorussia - Latvia - Lithuania - Moldavia - \n Russia (Moscow) - Ukraine (Kiev)<br/><br/>Area 3 - Worldwide excluding USA/ Canada<br/><br/>Area 4 - Australia and New Zealand ONLY<br/><br/>Area 5 - Worldwide including USA/ Canada<br/><br/>';

helpterm[1] = 'Dates';
helpdescription[1] = 'Please enter the year format in YYYY.';

helpterm[2] = 'UK / Eire residents';
helpdescription[2] = 'You must have been resident in the United Kingdom, Northern Ireland, Channel Islands, Isle of Man or Eire for 6 months out of the last 12 months (or more) at the time you bought or renewed your policy.';

helpterm[3] = 'Promotional Code';
helpdescription[3] = 'If you have a promotional code then please enter it here';

helpterm[4] = 'Europ Assistance';
helpdescription[4] = "InsureandGo are delighted to have Europ Assistance as their underwriter. With representations in over 200 countries and owned by the Generali Group, one of the largest global insurance companies. You can rely on them for quality policies at great prices.";

helpterm[5] = 'Forgotten your password?';
helpdescription[5] = 'To retrieve your password please enter your email address and press the \'email-it\' button. Shortly after you\'ll receive an email containing you password.';

helpterm[6] = 'Hazardous Sports';
helpdescription[6] = 'Blurb';

helpterm[7] = 'Home Visits';
helpdescription[7] = 'Blurb';

helpterm[8] = 'Valuables';
helpdescription[8] = 'Blurb';

helpterm[9] = 'Extreme Ski';
helpdescription[9] = 'Blurb';

helpterm[10] = 'Baggage and Money';
helpdescription[10] = 'We will pay you if your baggage or personal effects are lost, stolen, damaged or delayed. There is a single item and valuables limit, which is dependent on the policy you have chosen, as is the total amount of money we will pay out.';

helpterm[11] = 'Double Excess & Excess Waiver';
helpdescription[11] = 'By selecting Double Excess the price of your policy will reduce but the excess you will have to pay should you make a claim will be double the standard amount. By selecting Excess Waiver the price of your policy will go up, however you won\'t have to pay any excess at all should you make a claim.';

helpterm[12] = 'Excess Waiver';
helpdescription[12] = 'Claims under most sections of the policy will be subject to an excess by paying an additional premium you can have no excess to pay.';

helpterm[13] = 'Winter Sports';
helpdescription[13] = 'We will pay for your hospital bills and repatriation to your home country should you be injured or fall ill during your trip. In addition the policy covers you if your ski or snowboard equipment is lost, stolen or damaged. There is a single item and valuables limit, which is dependent on the policy you have chosen, as is the total amount of money we will pay out.';

helpterm[14] = 'Business';
helpdescription[14] = 'We will pay you if your business equipment (such as computer equipment, communication devices and other business related equipment) is lost, stolen or damaged. The total amount we will pay is dependent on the policy you choose.';

helpterm[15] = 'Golf';
helpdescription[15] = 'We will pay you for loss, damage or theft of your golf equipment. We will also pay towards the cost of hiring alternative golf equipment if yours is delayed or lost on your outward-bound journey for more than 12 hours. The total amount we will pay you is dependent on the policy you choose.';

helpterm[16] = 'Family Definition';
helpdescription[16] = 'To qualify for a family policy, the following definition of \'family\' applies:<br/><br/> An individual and his or her husband or wife or partner (as long as they have lived together for six months or more) and their dependent children or legally adopted children who are aged under 18 and are either in full-time education or living with them.';

helpterm[17] = 'Privacy Statement';
helpdescription[17] = 'Your email address will be used to send you quote and purchase information, and will NOT be passed on or sold to any other 3rd parties.';

helpterm[18] = 'Compare Policies';
helpdescription[18] = 'Annual policies can save you money if you are planning to go away more than once in the next twelve months, particularly if one of those holidays is for winter sports.  Click here to compare the benefits of annual policies over a single policy.';

helpterm[19] = 'Getting your policy details sent to your phone';
helpdescription[19] = 'Enter your mobile number and we will text your policy details to your mobile phone, so you have easy access to them incase of an emergency.';

helpterm[20] = 'Group Types';
helpdescription[20] = 'Select whether you would like to purchase an insurance policy tailored for families or a group of individuals so we can offer you the most suitable products.';

helpterm[21] = 'Travel Disruption';
helpdescription[21] = 'Blah blah blah.';

/*
////No need to edit beyond here

var ie5 = document.all && !window.opera
var ns6 = document.getElementById

if (ie5 || ns6)
    document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')
document.write('<div id="popitmenuscroll" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest() {
    return (document.compatMode && document.compatMode.indexOf("CSS") != -1) ? document.documentElement : document.body
}

function showmenu(e, which, optWidth) {
    if (!document.all && !document.getElementById)
        return
    clearhidemenu()
    if (which == 0 || which == 4)
        menuobj = ie5 ? document.all.popitmenuscroll : document.getElementById("popitmenuscroll")
    else
        menuobj = ie5 ? document.all.popitmenu : document.getElementById("popitmenu")
    menuobj.innerHTML = "<p>" + helpterm[which] + "</p>" + helpdescription[which]
    menuobj.style.width = (typeof optWidth != "undefined") ? optWidth : defaultMenuWidth
    menuobj.contentwidth = menuobj.offsetWidth
    eventX = ie5 ? event.clientX : e.clientX
    eventY = ie5 ? event.clientY : e.clientY
    //Find out how close the mouse is to the corner of the window
    var rightedge = ie5 ? iecompattest().clientWidth - eventX : window.innerWidth - eventX
    var bottomedge = ie5 ? iecompattest().clientHeight - eventY : window.innerHeight - eventY
    //if the horizontal distance isn't enough to accomodate the width of the context menu
    if (rightedge < menuobj.contentwidth)
    //move the horizontal position of the menu to the left by it's width
        menuobj.style.left = ie5 ? iecompattest().scrollLeft + eventX - menuobj.contentwidth + "px" : window.pageXOffset + eventX - menuobj.contentwidth + "px"
    else
    //position the horizontal position of the menu where the mouse was clicked
        menuobj.style.left = ie5 ? iecompattest().scrollLeft + eventX + "px" : window.pageXOffset + eventX + "px"
    //same concept with the vertical position
    if (bottomedge < menuobj.contentheight)
        menuobj.style.top = ie5 ? iecompattest().scrollTop + eventY - menuobj.contentheight + "px" : window.pageYOffset + eventY - menuobj.contentheight + "px"
    else
        menuobj.style.top = ie5 ? iecompattest().scrollTop + event.clientY + "px" : window.pageYOffset + eventY + "px"
    menuobj.style.visibility = "visible"

    return false
}

function contains_ns6(a, b) {
    //Determines if 1 element in contained in another- by Brainjar.com
    while (b.parentNode)
        if ((b = b.parentNode) == a)
        return true;
    return false;
}

function hidemenu() {
    if (window.menuobj)
        menuobj.style.visibility = "hidden"
}

function dynamichide(e) {
    if (ie5 && !menuobj.contains(e.toElement))
        hidemenu()
    else if (ns6 && e.currentTarget != e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget))
        hidemenu()
}

function delayhidemenu() {
    delayhide = setTimeout("hidemenu()", 500)
}

function clearhidemenu() {
    if (window.delayhide)
        clearTimeout(delayhide)
}

if (ie5 || ns6)
    document.onclick = hidemenu


*/


