window.addEvent('domready', function() {
	$('ACForm').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('log_res').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
	});
	$('ACFormOwn').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('log_res_own').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
	});
	
	
	
	var status = {
		'true': 'open',
		'false': 'close'
	};

	
	var CreatorDiv = new Fx.Slide('creator_div');
	var CreatorDivOwn = new Fx.Slide('creator_div_own');
	CreatorDiv.hide();
	CreatorDivOwn.hide();
//myVerticalSlide.hide();

	$('startAC').addEvent('click', function(e){
		
		e.stop();
		//#("creator_div_own").hide();
		CreatorDivOwn.slideOut();
		CreatorDiv.toggle();
	});
	$('startAC-domain').addEvent('click', function(e){
		e.stop();
		//#("creator_div").hide();
		CreatorDiv.slideOut();
		CreatorDivOwn.toggle();
	});

	
});

