function Tools()
{
}

function $(el)
{
	if(el==undefined)
		return false;
	el = document.getElementById(el);
	return el==null? false : el;
}

Object.prototype.attachEvent = function (sEvent, fnHandler, bUseCapture) {
    this.addEventListener(sEvent.indexOf('on') == 0 ? sEvent.replace('on', '') : sEvent, fnHandler, bUseCapture);
}

Tools.isIE = function ()
{
	return window.navigator.userAgent.match('MSIE') ? true : false;
}