jQuery(document).ready(function () {
	$("body").addClass('js');

    jQuery('.venue-toggle').click(function () {
        $(this).parent().next('.venues').slideToggle();
        if ($(this).hasClass('open')) {
            $(this).removeClass('open');
            $(this).addClass('closed');
        }
        else {
            $(this).removeClass('closed');
            $(this).addClass('open');
        }
    })

    jQuery('.statement-toggle-english').click(function () {
        if ($(this).hasClass('show')) {
            $(this).parent().nextAll('.english').fadeOut();
            $(this).removeClass('show');
        }
        else {
            $(this).parent().nextAll('.cymraeg').fadeOut();
            $(this).parent().nextAll('.francais').fadeOut();
            $(this).siblings().removeClass('show');
            $(this).parent().nextAll('.english').fadeIn();
            $(this).addClass('show');
        }
    })

    jQuery('.statement-toggle-cymraeg').click(function () {
        if ($(this).hasClass('show')) {
            $(this).parent().nextAll('.cymraeg').fadeOut();
            $(this).removeClass('show');
        }
        else {
            $(this).parent().nextAll('.english').fadeOut();
            $(this).parent().nextAll('.francais').fadeOut();
            $(this).siblings().removeClass('show');
            $(this).parent().nextAll('.cymraeg').fadeIn();
            $(this).addClass('show');
        }
    })

    jQuery('.statement-toggle-francais').click(function () {
        if ($(this).hasClass('show')) {
            $(this).parent().nextAll('.francais').fadeOut();
            $(this).removeClass('show');
        }
        else {
            $(this).parent().nextAll('.cymraeg').fadeOut();
            $(this).parent().nextAll('.english').fadeOut();
            $(this).siblings().removeClass('show');
            $(this).parent().nextAll('.francais').fadeIn();
            $(this).addClass('show');
        }
    })



})
