function addEvent(obj, evType, fn){
if (obj.addEventListener){
obj.addEventListener(evType, fn, true);
return true;
} else if (obj.attachEvent){
var r = obj.attachEvent("on"+evType, fn);
return r;
} else {
return false;
}
}
And here's the code to add our blockquotes function to the load event of the window object in the included js :
addEvent(window, 'load', extractBlockquoteCitations);