(function($) {
//
// Gästebuch
//

// this tells jquery to run the function below once the DOM is ready
$(document).ready(function() {

// choose text for the show/hide link - can contain HTML (e.g. an image)
var showText_container='Eintrag hinzufügen';
var hideText_container='Hinzufügen ausblenden';

// append show/hide links to the element directly preceding the element with a class of "toggle"
$('#guestbook_formular').prev().append(' <div id="gbook-eintragen"><a href="#" class="toggleLink_container">'+showText_container+'</a></div>');

// hide all of the elements with a class of 'toggle'
$('#guestbook_formular').hide();

// capture clicks on the toggle links
$('a.toggleLink_container').click(function() {

// change the link depending on whether the element is shown or hidden
$(this).html ($(this).html()==hideText_container ? showText_container : hideText_container);

// toggle the display - uncomment the next line for a basic "accordion" style
//$('.toggle_container').hide();$('a.toggleLink').html(showText_container);
$(this).parent().parent().next('#guestbook_formular').slideToggle('normal');

// return false so any link destination 2is not followed
return false;

});
});
})(jQuery);

(function($) {
	//
	// Gallerie Backend
	//

	// this tells jquery to run the function below once the DOM is ready
	$(document).ready(function() {

	// choose text for the show/hide link - can contain HTML (e.g. an image)
	var showText_container_gallery='Bearbeiten';
	var hideText_container_gallery='Ausblenden';

	// append show/hide links to the element directly preceding the element with a class of "toggle"
	$('.maxigallery_details').prev().append('<a href="#" class="toggleLink_gallery">'+showText_container_gallery+'</a>');

	// hide all of the elements with a class of 'toggle'
	$('.maxigallery_details').hide();

	// capture clicks on the toggle links
	$('.toggleLink_gallery').click(function() {

	// change the link depending on whether the element is shown or hidden
	$(this).html ($(this).html()==hideText_container_gallery ? showText_container_gallery : hideText_container_gallery);

	// toggle the display - uncomment the next line for a basic "accordion" style
	//$('.toggle_container').hide();$('a.toggleLink').html(showText_container);
	$(this).parent().next('.maxigallery_details').slideToggle('normal');

	// return false so any link destination 2is not followed
	return false;

	});
	});
	})(jQuery);

(function($) {
	//
	// Gallerie Backend
	//

	// this tells jquery to run the function below once the DOM is ready
	$(document).ready(function() {

	// choose text for the show/hide link - can contain HTML (e.g. an image)
	var showText_container_gallery_main='Bilder bearbeiten';
	var hideText_container_gallery_main='Bearbeiten ausblenden';

	// append show/hide links to the element directly preceding the element with a class of "toggle"
	$('.manage_gallery_pictures').prev().append('<a href="#" class="toggleLink_gallery_main">'+showText_container_gallery_main+'</a>');

	// hide all of the elements with a class of 'toggle'
	$('.manage_gallery_pictures').hide();

	// capture clicks on the toggle links
	$('.toggleLink_gallery_main').click(function() {

	// change the link depending on whether the element is shown or hidden
	$(this).html ($(this).html()==hideText_container_gallery_main ? showText_container_gallery_main : hideText_container_gallery_main);

	// toggle the display - uncomment the next line for a basic "accordion" style
	//$('.toggle_container').hide();$('a.toggleLink').html(showText_container);
	$(this).parent().next('.manage_gallery_pictures').slideToggle('normal');

	// return false so any link destination 2is not followed
	return false;

	});
	});
	})(jQuery);


