﻿var FAQRules = {
	"div.hide-show-header": function(el) {
		el.onclick = function(ev) {
			el = $(el);

			// Show the panel below (or hide if it's already showing)
			var target = el.up('.hide-show-panel').down('.hide-show-content');

			// target.toggle();
			if (target.getStyle("display") == "none")
				Effect.BlindDown(target.id, { duration: 0.3 });
			else
				Effect.BlindUp(target.id, { duration: 0.3 });
		}
	}
}



Behaviour.register(FAQRules);