jQuery().ready(function(){
	var wizard = jQuery("#featsoft").accordion({
		header: '.title',
		event: false
	});
	
	var wizardButtons = jQuery([]);
	jQuery("div.title", wizard).each(function(index) {
		wizardButtons = wizardButtons.add(jQuery(this)
		.next()
		.children(":button")
		.filter(".next, .previous")
		.click(function() {
			wizard.accordion("activate", index + (jQuery(this).is(".next") ? 1 : -1))
		}));
	});

	$cnt = 0;
	jQuery('#featsoft > div').each(function(){ jQuery(this).attr("id", "acordion_"+ ++$cnt); });
	$cnt = 0;
	jQuery('#acordion_'+jQuery('#featsoft > div').size()+' > div').each(function(){
			if(++$cnt == 2){
				//jQuery(this).attr("height", 100);
				$total_div_inside = jQuery(this).find("div").size();
				$cnt = 0;
				jQuery(this).find("div").each(function(){
					if(++$cnt == $total_div_inside)
						jQuery(this).addClass("acordeonLast");
				});
			}
		});
	//alert(maxHeightssss);
});
