// URL to glossary page var GLOSSARY_PAGE = 'http://www.mercer.com.au/common/glossary.jhtml'; // Array of pages which are only shown in English. var ENGLISH_ONLY_PAGES = [ "cart.jhtml", "pricingOptions.jhtml", "paymentform.jhtml", "purchasepreview.jhtml", "purchaseconfirmation.jhtml" ]; function showGlossary(theAnchorName) { var glossaryURL = GLOSSARY_PAGE; if ( showGlossaryInEnglish() ) { glossaryURL = glossaryURL + "?" + "idLanguage=500"; } return windowOpener(glossaryURL +'#'+theAnchorName, 'glossary', 'width=500,height=400,toolbar=0,directories=0,location=0,menubar=0,resizable=0,scrollbars=1'); } /** * * The Glossary must be shown in English for certain pages (e.g. Shopping Cart) * All such pages are stored in array - ENGLISH_ONLY_PAGES * * Returns true if the Glossary must be shown in English. * */ function showGlossaryInEnglish () { try { var pagePath = top.location.pathname; if ( ENGLISH_ONLY_PAGES && pagePath ) { for ( var i=0; i -1 ) { return true; } } } } catch (error) { } return false; }