oIconAccess = {
	// check if images are enabled
	checkImagesEnabled : function() {
		var imgWidth = 50; // sprite width
		var imgHeight = 15; // sprite height
		// if the actual size equals the default size, images are on
		if (!(imgWidth == elm.offsetWidth && imgHeight == elm.offsetHeight)) {
			// set the class name to something other than 'icon'
			if (elm.parentNode.className) {
				elm.parentNode.className = 'noicon';
			} else {
				elm.parentNode.setAttribute('class', 'noicon');
			}
		}
	},
	// check if CSS is enabled
	checkCSSEnabled : function() {
		if (window.getComputedStyle) {
			var computedWidth = window.getComputedStyle(elm, null).getPropertyValue('width');
		} else if (elm.currentStyle) {
			var computedWidth = elm.currentStyle.width;
		}
		// if the width of the img element equals the actual width, CSS is off
		if (typeof computedWidth != 'undefined' && parseInt(computedWidth) == elm.getAttribute('width')) {
			var txt = document.createTextNode(elm.getAttribute('alt'));
			elm.parentNode.replaceChild(txt, elm);
		}
	}
};
var elm = document.getElementById('magnifier');
if (elm) {
	oIconAccess.checkImagesEnabled();
	oIconAccess.checkCSSEnabled();
}