<script type="text/javascript" >
var EventUtil = {
addHandler: function (element, type, handler) {
if (element.addEventListener) {
element.addEventListener(type, handler, false);
} else if (element.attachEvent) {
element.attachEvent("on" + type, handler);
} else {
element["on" + type] = handler;
}
}
};
EventUtil.addHandler(document, "DOMContentLoaded", function (event) {
setTimeout(function(){
var imgs=document.getElementsByTagName("img");
for (var i =0; i<=imgs.length;i++){
var img=imgs[i];
var height,width;
height=img.naturalHeight;
width=img.naturalWidth;
if((height==0&&width==0)){
img.src="";
img.parentNode.parentNode.hidden=true;
var nid=img.getAttribute('nid');
document.getElementById('divNoneImg'+nid).style.display="block";
}
}
}, 2000);
});
</script>