/* * * Startup scripts, run on every page * */ $(document).ready(function () { $(document).on("click", 'a[rel=external]', function (e) { e.preventDefault(); var targetUrl = $(this).attr("href"); fnOpenLeavingWebsiteDialog(targetUrl) }); }); $(document).ready(function () { $("img.crossRollover").hover( function () { this.src = this.src.replace("-off", "-on"); }, function () { this.src = this.src.replace("-on", "-off"); }); }); $(document).ready(function () { $("table.grid tr:even").addClass("alternate-row"); }); var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_endRequest(function () { $("table.grid tr:even").addClass("alternate-row"); }); function fnOpenLeavingWebsiteDialog(targetUrl) { $("#dialog-leaving-site-confirm").html("

You are now leaving First Trust Portfolios L.P. We are not responsible for the content on any external website linked to from within this site.

Opinions expressed are those of the author or fund manager as of the publication date and are subject to change, are not guaranteed, should not be considered recommendations to buy or sell any security, and should not be considered investment advice.

Any performance data shown represents past performance and is no guarantee of future results. Investment return and principal value will fluctuate, so that you may have a gain or loss when shares are sold. Current performance may be higher or lower than that quoted. Call us at 1-800-621-1675 for most recent month-end performance.

Before investing, consider a Fund's investment objectives, risks, charges, and expenses. To obtain a copy of the prospectus, call 1-800-621-1675. Please read it carefully.

"); // Define the Dialog and its properties. $("#dialog-leaving-site-confirm").dialog({ resizable: false, modal: true, title: "Important Notice", height: 405, width: 650, open: function (event, ui) { $('.ui-widget-content').addClass('dialog-override'); $('.ui-widget-overlay').addClass('dialog-override'); }, buttons: { "Yes": function () { $(this).dialog('close'); window.open(targetUrl, '_blank'); }, "No": function () { $(this).dialog('close'); } } }); } $(window).resize(function () { var theDialog = $("#dialog-leaving-site-confirm"); if (theDialog.hasClass('ui-dialog-content')) { theDialog.dialog("option", "position", "center"); } });