function slideSwitch(){
    var active = $('#slides img.active');
    var activemarker = $('#slide_markers span.active');
    if (active.length == 0) {
        active = $('#slides img:last');
        activemarker = $('#slide_markers span:last');
    }
    if (active.next().length) {
        next = active.next();
        nextmarker = activemarker.next();
    }
    else {
        next = $('#slides img:first');
        nextmarker = $('#slide_markers span:first');
    }
    active.addClass('last-active');
    activemarker.removeClass('active');
    nextmarker.addClass('active');
    next.css({
        opacity: 0.0
    }).addClass('active').animate({
        opacity: 1.0
    }, 700, function(){
        active.removeClass('active last-active');
    });
}

function openHeader(){
    $('#close_header').hide();
    $('#apps').animate({
        height: '+=430'
    }, 1000);
}

function toggleDonateHelp(button){
	$(button).toggleClass('active');
	$('#donate_help').toggleClass('hidden');
}
