setInterval(function () {
	var ex;
	try {
		if(!window.protectorImages) {
			window.protectorImages = {};
		}
		var protectorSrc = 'protector/t.gif';
		var protectorLength = protectorSrc.length;
		var nodes = document.images;
		for(var i = nodes.length; --i >= 0;) {
			var src = nodes[i].src;
			var sl = src.length;
			if(sl < protectorLength || src.lastIndexOf(protectorSrc) + protectorLength != sl) {
				var pimg = protectorImages[src];
				if(!pimg) {
					pimg = new Image();
					pimg.src = src;
					protectorImages[src] = pimg;
				} else if(pimg.width > 1 && pimg.height > 1) {
					var img = nodes[i];
					var w = img.width;
					var h = img.height;
					if(w > 1 && h > 1 && Math.abs(w - pimg.width) <= (w / 10) && Math.abs(h - pimg.height) <= (h / 10)) {
						var s = img.style;
						s.backgroundImage = "url('" + img.src + "')";
						s.backgroundAttachment = 'scroll';
						s.backgroundPosition = 'center center';
						s.backgroundRepeat = 'no-repeat';
						img.src = protectorSrc;
						img.width = w;
						img.height = h;
					}
				}
			}
		}
	} catch(ex) {
		// unloaded or whatever
		//alert(ex);
	}
}, 1000);

