﻿function showPortfolioGraph() {
    var isSafari = (navigator.userAgent.toLowerCase().indexOf("apple"));
    $("#lnk_KiwiSaverGraph").hide();
    $("#img_KiwiSaverArrow").hide();
    if (isSafari >= 0) {
        $("#lnk_PerformanceGraph").show();
        $("#img_PortfolioArrow").show();
    }
    else {
        $("#lnk_PerformanceGraph").fadeIn("slow");
        $("#img_PortfolioArrow").fadeIn("slow");
    }  
}
function showKiwisaverGraph() {
    var isSafari = (navigator.userAgent.toLowerCase().indexOf("apple"));
    $("#lnk_PerformanceGraph").hide();
    $("#img_PortfolioArrow").hide();
    if (isSafari >= 0) {
        $("#lnk_KiwiSaverGraph").show();
        $("#img_KiwiSaverArrow").show();
    }
    else {
        $("#lnk_KiwiSaverGraph").fadeIn("slow");
        $("#img_KiwiSaverArrow").fadeIn("slow");
    }
}
function clearEmailAddress(textbox) {
    textbox.value = "";
}
