/**
 * @author: James Bon
 * Fix window.addEventListener method different to IE (attachEvent)
 */
if (!window.addEventListener) {
	window.addEventListener = function(whichEvent, handler, direct) {
		if (window.attachEvent) {
			window.attachEvent('on' + whichEvent, handler);	
		}
	};
}
