function inherit(Child, Parent) {
var temp = new Parent();
for(var p in temp) if(temp.hasOwnProperty(p)) delete temp[p];
Child.prototype = temp;
Child.constructor = Child;
}
function Tool(name, src) {
this.id = name;
this.src = src;
}
inherit(Tool, Image);
var o = new Tool("tool1", "/.../arr-right.png");
var o1 = new Tool("tool2", "/.../arr-left.png");
alert([[o.id, o.src], [o1.id, o1.src]].join('\n'))