var Site = {

	start: function() {

		new textResizzle();
		Site.attachExternalLinks();
		Site.attachFormValidators();

	},


	attachExternalLinks: function() {
		$$('a.external').each(function(anchor){
			anchor.setProperty('target', '_blank');
		});
	},

	attachFormValidators: function() {
		$$('form.validate-form').each(function(elem, idx) {
			new Form.Validator.Inline(elem, {
				'errorPrefix': '',
				'useTitles': true
			});
		});
	}
};

window.addEvent('domready', Site.start);
