/*
	BRADLEY INPUTS!!!!
*/

var initInput = function() {
	var imps = $$('input.beainput,textarea.beainput');
	for(var i=0; i<imps.length; i++) {
		var cnt = new Element('table', { 'class': imps[i].className });
		var row1 = new Element('tr');
		var topleft = new Element('td', { 'class': 'topleft' });
		var top = new Element('td', { 'class': 'top' });
		var topright = new Element('td', { 'class': 'topright' });
		var row2 = new Element('tr');
		var left = new Element('td', { 'class': 'left' });
		var icnt = new Element('td', { 'class': 'container' });
		var right = new Element('td', { 'class': 'right' });
		var row3 = new Element('tr');
		var bottomleft = new Element('td', { 'class': 'bottomleft' });
		var bottom = new Element('td', { 'class': 'bottom' });
		var bottomright = new Element('td', { 'class': 'bottomright' });
		cnt.inject(imps[i], 'before');
		row1.inject(cnt);
		topleft.inject(row1);
		top.inject(row1);
		topright.inject(row1);
		row2.inject(cnt);
		left.inject(row2);
		icnt.inject(row2);
		imps[i].inject(icnt);
		right.inject(row2);
		row3.inject(cnt);
		bottomleft.inject(row3);
		bottom.inject(row3);
		bottomright.inject(row3);
		//imps[i].className = null;
	}
};

window.addEvent('domready', function() {	
	initInput();
});


