
jQuery.fn.ajaxform = function() {
	this
		.each(function() {
				if (this.nodeName=='FORM') {
					/*$(this).submit(function(event) {
						$.post(this.action,$(this).serialize()+'&ajax');
						event.preventDefault();
						});*/
					$(this)
						.find('INPUT[type=submit]')
						.click(function(event) {
							var ser = $(this.form).serialize()+'&ajax&'+this.name+'=';
							$.post(this.form.action,ser);
							event.preventDefault();
							})
						;
				}
				if (this.nodeName=='A') {
				}
			})
		;
	return this;
};

$(document).ready(function() {
		//$('a[rel=ajaxform],form[class=ajaxform]').ajaxform();
});
$(function() {
	$('#right').cycle({timeout: 6000});
});

