var $jslide = jQuery.noConflict();

$jslide(document).ready(function() {

// initialise the visibility check
var is_visible = false;

// append show/hide links to the element directly preceding the element with a class of "toggle"
$jslide('.toggle').prev().append(' <a href="#" class="toggleLink">'+showText+'</a>');

// hide all of the elements with a class of 'toggle'
$jslide('.toggle').hide();

// capture clicks on the toggle links
$jslide('a.toggleLink').click(function() {
	// switch visibility
	is_visible = !is_visible;
	// change the link depending on whether the element is shown or hidden
	$jslide(this).html( (!is_visible) ? showText : hideText);
	$jslide(this).parent().next('.toggle').toggle('slow');
	return false;
	});

	/*$jslide('.append').click(function() {
		$jslide(this).parent().toggle('slow');
		is_visible = !is_visible;

		if(is_visible) {
			$jslide(this).parent().prev().find('.toggleLink').html(hideText); 
		} else {
			$jslide(this).parent().prev().find('.toggleLink').html(showText); 

		}

 
	}); */ 

});



