Event.onDOMReady(function() {

Formidable.initialize({path: 'http://salseros.ru/typo3conf/ext/ameos_formidable/'});

Formidable.Context.Forms["registration"] = new Formidable.Classes.FormBaseClass(
		{"sFormId":"registration","Misc":{"Urls":{"Ajax":{"event":"http:\/\/salseros.ru\/index.php?eID=tx_ameosformidable&object=tx_ameosformidable&servicekey=ajaxevent"}},"MajixSpinner":{}}}
	);

Formidable.Context.Forms["registration"].Objects["registration.username"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.username","localname":"username","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.password"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.password","localname":"password","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.password_confirm"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.password_confirm","localname":"password_confirm","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.name"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.name","localname":"name","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_dob_day"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_dob_day","localname":"tx_salseros_dob_day","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_dob_month"] = new Formidable.Classes.ListBox(
	{"id":"registration.tx_salseros_dob_month","localname":"tx_salseros_dob_month","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_dob_year"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_dob_year","localname":"tx_salseros_dob_year","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_dob"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_dob","localname":"tx_salseros_dob","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_gender"] = new Formidable.Classes.Radio(
	{"id":"registration.tx_salseros_gender","localname":"tx_salseros_gender","formid":"registration","_rdts":{},"parent":false,"name":"registration[tx_salseros_gender]","radiobuttons":{"0":"registration.tx_salseros_gender_0","1":"registration.tx_salseros_gender_1"},"bParentObj":true}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_town"] = new Formidable.Classes.ListBox(
	{"id":"registration.tx_salseros_town","localname":"tx_salseros_town","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_alt_town"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_alt_town","localname":"tx_salseros_alt_town","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_salsestartdate"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_salsestartdate","localname":"tx_salseros_salsestartdate","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_clubs"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_clubs","localname":"tx_salseros_clubs","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_addinfo"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_addinfo","localname":"tx_salseros_addinfo","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_school"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_school","localname":"tx_salseros_school","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_professors"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_professors","localname":"tx_salseros_professors","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_styles"] = new Formidable.Classes.CheckBox(
	{"id":"registration.tx_salseros_styles","localname":"tx_salseros_styles","formid":"registration","_rdts":{},"parent":false,"checkboxes":{"0":"registration.tx_salseros_styles_0","1":"registration.tx_salseros_styles_1","2":"registration.tx_salseros_styles_2","3":"registration.tx_salseros_styles_3","4":"registration.tx_salseros_styles_4","5":"registration.tx_salseros_styles_5","6":"registration.tx_salseros_styles_6","7":"registration.tx_salseros_styles_7","8":"registration.tx_salseros_styles_8"},"bParentObj":true}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_isprofessor"] = new Formidable.Classes.CheckBox(
	{"id":"registration.tx_salseros_isprofessor","localname":"tx_salseros_isprofessor","formid":"registration","_rdts":{},"parent":false,"checkboxes":{"0":"registration.tx_salseros_isprofessor_0"},"bParentObj":true}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_yourpro"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_yourpro","localname":"tx_salseros_yourpro","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_yourhobby"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_yourhobby","localname":"tx_salseros_yourhobby","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.email"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.email","localname":"email","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.telephone"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.telephone","localname":"telephone","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_icq"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_icq","localname":"tx_salseros_icq","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_ljurl"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_ljurl","localname":"tx_salseros_ljurl","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_mmforum_avatar"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_mmforum_avatar","localname":"tx_mmforum_avatar","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_photo_1"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_photo_1","localname":"tx_salseros_photo_1","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_photo_2"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_photo_2","localname":"tx_salseros_photo_2","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.tx_salseros_photo_3"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.tx_salseros_photo_3","localname":"tx_salseros_photo_3","formid":"registration","_rdts":{},"parent":false}
);

Formidable.Context.Forms["registration"].Objects["registration.btn_submit"] = new Formidable.Classes.RdtBaseClass(
	{"id":"registration.btn_submit","localname":"btn_submit","formid":"registration","_rdts":{},"parent":false}
);



Formidable.f("registration").attachEvent("registration.btn_submit", "click", function(event) {Event.stop(event);
Formidable.f('registration').addFormData({"btn_submit":"1"});Formidable.f('registration').submitFull();});});