var Highlight = new Class({
	Implements: [Events],
	
	initialize: function(){
		this.header = new Fx.Morph($$('div.header_central')[0], {fps:75});
		this.highlight = new Fx.Morph($$('div.header_central div.menu_highlight')[0]);
		
		$$('div.header_central div.menu_highlight a.close')[0].addEvent('click', function(e){
			e.stop();
			this.close();
		}.bind(this));
		
		this.init();
	},
	
	init: function(){
		this.header.set({'height' : 660});
		this.highlight.set({'height' : 400, 'margin-top' : 50, 'margin-bottom' : 115});
	},
	
	close: function(){
		this.highlight.start({'height' : 0, 'margin-top' : 0, 'margin-bottom' : 0});
		this.header.start({'height' : 142});
	}
});


var hg;
window.addEvent('domready', function(){
	if ($$('div.header_central div.menu_highlight').length > 0)
		hg = new Highlight();
});
