var tableLink = new Class({	

	
	initialize: function(e)
	{
		this.e = e;
		
		this.outer = new Element('div');
		this.html = this.e.get('html');
		this.class = this.e.get('class');
		
		this.outer.replaces(this.e);
		this.outer.setProperty('html', this.html);
		this.outer.setProperty('class', this.class)
		//this.outer.setProperty('id', 'blue');
		this.setEvents();
		
	},
	
	setEvents: function()
	{
		this.outer.addEvents
		({
			'click': this.doClick.bind(this),
		});
		
	},
	
	doClick: function()
	{
		window.location = this.e;
	}
});

