﻿//Honyu 2009-01-03 编写

var isIE = (document.all) ? true : false;

var $ = function(id) {
    return "string" == typeof id ? document.getElementById(id) : id;
};
var Class = {
    create: function() {
        return function() {
            this.initialize.apply(this, arguments);
        }
    }
}

Object.extend = function(destination, source) {
    for (var property in source) {
        destination[property] = source[property];
    }
    return destination;
}

var ImageError = Class.create();
ImageError.prototype = {
    initialize: function() {
        this.arrImg = document.getElementsByTagName("img");
    },
    checkImg: function() {
        for (var i = 0; i < this.arrImg.length; i++) {
            this.arrImg[i].onerror = function() { this.src = "Images/nopic.jpg"; }
            this.arrImg[i].src = this.arrImg[i].src
        }
    }

}
