JSWorkIcon = new Class({

	// ----------------------------------------------------------------------------------------------------
	initialize: function(a, div, myName) {

		this.a = a;
		this.div = div;
		this.myName = myName;
		this.fx = new Fx.Style(div, 'height', {duration: 350});
		// Link
		$(a).setProperty('_parent', myName);
		$(a).addEvents({
			mouseover: function() {
				var _parent = eval(this.getProperty('_parent'));
				_parent.over();
			},
			mouseout: function() {
				var _parent = eval(this.getProperty('_parent'));
				_parent.out();
			}
		});

	},

	// ----------------------------------------------------------------------------------------------------
	over: function() {

		this.fx.stop();
		this.fx.start(71);

	},

	// ----------------------------------------------------------------------------------------------------
	out: function() {

		this.fx.stop();
		this.fx.start(0);

	}

});
