/*
CSS Browser Selector v0.3.5 (Feb 05, 2010)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
*/
function css_browser_selector(u) { var ua = u.toLowerCase(), is = function (t) { return ua.indexOf(t) > -1; }, g = 'gecko', w = 'webkit', s = 'safari', o = 'opera', h = document.documentElement, b = [(!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('firefox/2') ? g + ' ff2' : is('firefox/3.5') ? g + ' ff3 ff3_5' : is('firefox/3') ? g + ' ff3' : is('gecko/') ? g : is('opera') ? o + (/version\/(\d+)/.test(ua) ? ' ' + o + RegExp.$1 : (/opera(\s|\/)(\d+)/.test(ua) ? ' ' + o + RegExp.$2 : '')) : is('konqueror') ? 'konqueror' : is('chrome') ? w + ' chrome' : is('iron') ? w + ' iron' : is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') : is('mozilla/') ? g : '', is('j2me') ? 'mobile' : is('iphone') ? 'iphone' : is('ipod') ? 'ipod' : is('mac') ? 'mac' : is('darwin') ? 'mac' : is('webtv') ? 'webtv' : is('win') ? 'win' : is('freebsd') ? 'freebsd' : (is('x11') || is('linux')) ? 'linux' : '', 'js']; c = b.join(' '); h.className += ' ' + c; return c; }; css_browser_selector(navigator.userAgent);
$(function () {
    $('a.savings_planner_link').click(function (e) {
        e.preventDefault();
        $('#savings_planner').modal();
    });
    $('a.sellwood-opening').click(function (e) {
        e.preventDefault();
        $('#sellwood-modal').modal();
    });
    $('a.alberta-opening').click(function (e) {
        e.preventDefault();
        $('#alberta-modal').modal();
    });
});

$(document).ready(function () {
    $('a.savings_planner_link').click(function (e) {
        e.preventDefault();
        $('#savings_planner').modal();
    });
});



function closeYouthSavingsPlanner() {
    $.modal.close();
}

function createLTEPlanner(firstname, item, goal, saved, weekly) {
    window.location.replace('/UmpquaLife/Support/learn-to-earn-kids/savings-planner.aspx?firstname=' + firstname + '&item=' + item + '&goal=' + goal + '&saved=' + saved + '&weekly=' + weekly);
}

$(".externallink").mouseover(function () {
    Tip(LeavingUmpqua, BALLOON, true, ABOVE, true);
}
    ).mouseout(function () {
        UnTip();
    }
);
$(function () {
    // FancyZoom
    if ($('.watch-video').length) {
        $('.watch-video').fancyZoom();
    }
    // Videofy
    if ($('.featured-video').length) {
        $('.featured-video').videofy();
    }
});

function showDetails(id2) {
    var id = document.getElementById(id2);
    if (id.style.display == 'none') {
        id.style.display = 'block';
    }
    else {
        id.style.display = 'none';
    }
}
