
function doit() {

	var active_obj = null;

	$('.gewinnspiel_detail_inhalt_toogle').each(function(i) {
	
		var obj = this;
		$(obj).show();
		
		
		if(i==0) {
			//first one
			$(obj).html(a2_txt);
			active_obj = obj;
		} else {
			//others
			$(obj).next().hide();
		}
		
		
		$(obj).click(function() {
		
			$.validationEngine.closePrompt('.formError',true);
		
			if($(obj).next().is(':hidden')) {
			
				if(active_obj) {
					$(active_obj).next().slideUp('slow');
					$(active_obj).html(a1_txt);
				}
				$(obj).next().slideDown('slow');
				$(obj).html(a2_txt);
				active_obj = obj;
	
			} else {
			
				$(obj).next().slideUp('slow');
				$(obj).html(a1_txt);
			
			}
			
			return false;
					
		});
	});
	
	$('.gewinnspiel_detail_active').each(function(i) {
		if($(this).find('.gewinnspiel_detail_inhalt').is(':hidden')) {
			$(this).find('.gewinnspiel_detail_inhalt_toogle').click();
		}
	});
}


