/**
 * fd
 * desciption:
 *
 *
 * @author communicatie bureau fourdesign_ Menno Tempelaar
 *
 *
 */

var baseUrl = '';

var fd = new function () {

	var self			= this;
	var instances		= [];
	var twitter;

	var _construct = function () {
		$(function () {
			$('div.fd_header').each(function () 
			{
				instances.push(new fd_header(self, this));
			});
			
			$('div.fd_twitter').each(function () 
			{
				instances.push(new fd_twitter(self, this));
			});
			
			$('form.fd_form').each(function () 
			{
				instances.push(new fd_form(self, this));
			});
			
			$('div.fd_popup').each(function ()
			{
				
				$(this).find('a').click(function () 
				{
					$.fancybox(
					$(this).parent().find('div.fd_popup_content').html(),
					{
						autoDimensions	: false,
						width			: 411, 
						height			: 'auto'
					});
					
					return false;
				});
			});
		});
	};

	_construct();
	return {
	}
}();
