﻿// Автор: Стаценко Владимир
// http://www.simplecoding.org

function showForm(targetElement,ind,step) {
	if ($(targetElement).offsetLeft > ind) {
		new Effect.MoveBy(targetElement, 0, step, {duration: 1});
	}
}

function hideForm(targetElement) {
	if ($(targetElement).offsetLeft >= 0) {
		new Effect.MoveBy(targetElement, 0, -800, {duration: 1});
	}
}

function showFormV(targetElement,ind,step) {
	if ($(targetElement).offsetTop > ind) {
		new Effect.MoveBy(targetElement, step, 0, {duration: 1});
	}
}
