function $(element) {
	if (arguments.length > 1) {
		for (var i = 0, elements = [], length = arguments.length; i < length; i++) elements.push($(arguments[i]));
		return elements;
	}
	if (typeof element == 'string') element = document.getElementById(element);
	return element;
}
var Fly = {
	cur: 0,
	timer: 0,
	to: function(id) {
		if (this.timer) window.clearTimeout(this.timer);
		if (this.cur != id) {
			if ($('fly'+this.cur)) $('fly'+this.cur).style.display = 'none';
			this.cur = id;
		}
		if ($('fly'+this.cur) && $('fly'+this.cur).style.display == 'none') $('fly'+this.cur).style.display = 'block';
	},
	out: function(id) {
		if (id == this.cur) {
			if (this.timer) window.clearTimeout(this.timer);
			this.timer = window.setTimeout('Fly.away()', 500);
		}
	},
	away: function() {
		if ($('fly'+this.cur)) $('fly'+this.cur).style.display = 'none';
		this.cur = 0;
	}
};
