﻿$(document).ready(    function(){        $('.rounded').corners("10px");        $('ul.about-subnav li a').corners("top 5px");        $('.project-item .categories').corners("3px");        $('.project-details-impact').corners("10px");        $('a.overlay').fancybox({                'width'             : 640,                'height'            : 500,                'autoScale'         : false,                'transitionIn'      : 'fade',                'transitionOut'     : 'fade',                'type'              : 'iframe',                'overlayColor'      :   '#486872',                'overlayOpacity'    :   0.5            });        $('ul.about-subnav li a').click(            function(event){                event.preventDefault();                var clicked = $(this).attr("id");                $('ul.about-subnav li a').removeClass("active");                $('.tab-content').fadeOut('fast');                $(this).addClass("active");                $('#content-'+clicked).fadeIn('slow');            }        );        $('.home-achievements ul').jcarousel({            auto: 4,            wrap: 'last',            vertical: true,            initCallback: mycarousel_initCallback        });    });function mycarousel_initCallback(carousel){    // Disable autoscrolling if the user clicks the prev or next button.    carousel.buttonNext.bind('click', function() {        carousel.startAuto(0);    });    carousel.buttonPrev.bind('click', function() {        carousel.startAuto(0);    });    // Pause autoscrolling if the user moves with the cursor over the clip.    carousel.clip.hover(function() {        carousel.stopAuto();    }, function() {        carousel.startAuto();    });};
function jumpYouCanHelp(obj){    switch($('#dd_youcanhelp').val()){        case 'Leave a Bequest':            $.fancybox({href:'overlays/common/leave_a_bequest.html','width'             : 640,                'height'            : 500,                'autoScale'         : false,                'transitionIn'      : 'fade',                'transitionOut'     : 'fade',                'type'              : 'iframe',                'overlayColor'      :   '#486872',                'overlayOpacity'    :   0.5});            break;        case 'Corporate Sponsorship':
            $.fancybox({href:'overlays/common/corporate_sponsorship.html','width'               : 640,                'height'            : 500,                'autoScale'         : false,                'transitionIn'      : 'fade',                'transitionOut'     : 'fade',                'type'              : 'iframe',                'overlayColor'      :   '#486872',                'overlayOpacity'    :   0.5});            break;        case 'Friends of the Foundation':            window.location.href = "friendsofthefoundation.aspx";            break;
        case 'Fellowship':            window.location.href = "fellowships.aspx";            break;
        case 'Volunteer':            window.location.href = "volunteer.aspx";            break;    }    $('#dd_youcanhelp').val('');}
