var r = function() {
	this.ifr = $('killSelect2');
	this.v = '';
	this.e;
}
r.prototype.over = function(e) {
	this.e = e.element();
	this.e.addClassName('over');
	this.v = 'visible';
	this.showframe();
}
r.prototype.out = function(e) {
	this.e = e.element();
	this.e.removeClassName('over').addClassName('out');
	this.v = 'hidden';
	this.hideframe();
}
r.prototype.liclass = function(e) {
	this.e = e.element();
	this.e.toggleClassName('over');
}
r.prototype.showframe = function () {
	var e = this.e.down('ul');
	if(typeof(e) != 'undefined' && this.v == 'hidden') {
		var p = Element.viewportOffset(e);
		this.ifr.setStyle({	'top': ((p[1]))+'px', 'left': ((p[0])-10)+'px', 'height': (e.getHeight())+'px', 'width': (e.getWidth()+20)+'px'});
	}
	else {
		this.v = 'hidden';
	}
	this.ifr.style.visibility = this.v;
}
r.prototype.hideframe = function () {
	this.ifr.style.visibility = 'hidden';
}
r.prototype.init = function() {
	$$("#menu > ul > li").invoke('observe' ,'mouseenter', rn.over.bind(this)).invoke('observe' ,'mouseleave', rn.out.bind(this));
	$$("#menu > ul > li.menublock > ul > li").invoke('observe' ,'mouseenter', rn.liclass.bind(this)).invoke('observe' ,'mouseleave', rn.liclass.bind(this));
}
