jQuery(function($){
if($('#advanced-openid-options').length==0) return true;
	$('#advanced-openid-options').hide();
	$legend = $('#advanced-openid-options legend');
	txt = "<a href='' id='advanced-openid-options-toggle'>"+$legend.html()+"</a>"
	$par = $("#open_id_authentication_url").parent();
	$('label', $par[0]).append(txt);
	$legend.remove();
	$('#advanced-openid-options-toggle').click(function(e){
		e.preventDefault();
		$('#advanced-openid-options').toggle();
	});
});
