/* CLIQUE */
/* Event Widget Temporary Patch for Markup Changes re: Ticket #1774
----------------------------------------------------------------------------- */


	jQuery(window).load(function() {
	
	
		var $p = jQuery;
	

		$p('div.confirmation').each(function() {


			var $widget = $p(this);

			if ($widget.find('ul.toggle a').length > 0) {
			
				return false;
			
			}


/* REPLACE RADIO BUTTONS WITH LINKS
----------------------------------------------------------------------------- */

		
	$p(this).children('ul.toggle').children('li').each(function() {
	
		var classes = $p(this).attr('class');

		if ($p(this).find('label strong').length > 0) {
		
			var label = $p(this).find('label strong').text();
			$p(this).append('<strong class="' + classes + '">' + label + '</strong>');

		} else {
		
			var label = $p(this).find('label em').text();
			$p(this).append('<a class="' + classes + '" href="#">' + label + '</a>');
		
		}
		
	});
	
	$p(this).find('ul.toggle a').click(function() {
	
		$p(this).siblings('label').children('input').attr('checked','checked');
		$widget.find('input[type=submit]').click();

		return false;
	
	});



/* HIDE NEW ELEMENTS
----------------------------------------------------------------------------- */


	$p(this).children('ul.actions').hide();
	$widget.find('label').hide();


/* END
----------------------------------------------------------------------------- */

		
		});


/* SHOW WIDGET
----------------------------------------------------------------------------- */


	if (!$p('div.confirmation').hasClass('hide')) {

		$p('div.confirmation').show();

	}


	});
