// addEvent
var addEvent = function(){
	if (window.addEventListener)
	{
		return function(el, type, fn){
			el.addEventListener(type, fn, false)
		}
	}
	else if (window.attachEvent)
	{
		return function(el, type, fn){
			var f = function() {
				fn.call(el, window.event)
			};
			el.attachEvent('on' + type, f)
		}
	}
	else
	{
		return function(el, type, fn){
			var of = el['on' + type];
			if (typeof of != 'function') el['on' + type] = fn.apply(this, arguments);
			else el['on' + type] = function(){
				of.apply(this, arguments);
				fn.apply(this, arguments)
			}
		}
	}
}();
// get
var get = function(id){ return document.getElementById(id);}