
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++freshmilk.arena.javascripts/rules.js - */
jq(document).ready(function() {
	jq('#arena-rules #twister').click(function(event) {
        event.preventDefault();
		jq('#arena-rules').toggleClass('expanded');
	});
});

/* - ++resource++freitag.edition.javascripts/edition.js - */
jq(document).ready(function() {

    cb = jq('input#form-widgets-delivery_show-0');
    if(cb.attr('checked')) {
        delivery_form = jq("fieldset#fieldset-3");
        delivery_form.show("fast");
    }

    cb.click(function() {
        checked = jq(this).attr('checked');
        delivery_form = jq("fieldset#fieldset-3");
        if(checked) {
            delivery_form.show("fast");
        } else {
            delivery_form.hide("fast");
        }
    });

    jq('div.edition-book-order-form fieldset#fieldset-1 p:eq(0)').after("<div style=\"margin: 0.2em;\">(mit <img src=\"required.png\" style=\"vertical-align: top;\" /> gekennzeichnete Felder sind Pflichtfelder)</div>");
});


