// Andy Langton's show/hide/mini-accordion - updated 23/11/2009
// Latest version @ http://andylangton.co.uk/jquery-show-hide
$(document).ready(function() {
	//Web Builder
	var showText='<p><a class="bluebutton toggleLink" href="#"><span>show specifications</span></a></p>';
	var hideText='<p><a class="bluebutton toggleLink" href="#"><span>hide specifications</span></a></p>';
	var whereTo='<div class="toggleLink" style="margin: auto; width: 250px;">'+showText+'</div>'
	var is_visible = false;
	$('.toggle').prev().append(whereTo);
	$('.toggle').hide();
	$('div.toggleLink').click(function() {
		is_visible = !is_visible;
		$(this).html( (!is_visible) ? showText : hideText);
		$('.toggle').toggle('slow');
		return false;
	});
	//Speaker Request
	var showText1='<span>submit request</span>';
	var hideText1='<span>cancel request</span>';
	var whereTo1='<div style="margin: auto; width: 200px;"><p><a class="goldbutton toggleLink1" href="#">'+showText1+'</a></p></div>'
	var is_visible1 = false;
	$('.toggle1').prev().append(whereTo1);
	$('.toggle1').hide();
	$('a.toggleLink1').click(function() {
		is_visible1 = !is_visible1;
		$(this).html( (!is_visible1) ? showText1 : hideText1);
		$('.toggle1').toggle('slow');
		return false;
	});
});
