/**
 * fd
 * desciption:
 * 
 * @author communicatie bureau fourdesign_ Menno Tempelaar
 *
 *
 */

$(function () {

	var fd = new function () {

		var self				= this;

		this.calculator			= new fd_calculator(this);
		this.color				= new fd_color(this);

		var _construct = function () {
			
			_search();
		};

		var _search = function () {
			$(document).find('.fd_calculator').each(function () {
				self.calculator.addInstance(this);
			});

			$(document).find('.fd_color').each(function () {
				self.color.addInstance(this);
			})
		};

		_construct();
	}();
	
});
