function extractBlockquoteCitations() {   
 var quotes = document.getElementsByTagName('blockquote');   
 for (var i = 0; i < quotes.length; i++) {   
   var title = quotes[i].getAttribute('title');   
   if (title !== null && title !== '') {   
     var p = document.createElement('p');   
     p.className = 'blockquotetitle';   
     quotes[i].appendChild(p);   
     p.innerHTML = "引用元：「"+title+"」";   
     }else{   
     var p = document.createElement('p');   
     p.className = 'blockquotetitle';   
     quotes[i].appendChild(p);   
     p.innerHTML = "引用元：";   
   }   
   var cite = quotes[i].getAttribute('cite');   
   if (cite != '') {   
     var a = document.createElement('a');   
     a.setAttribute('href', cite);   
     a.setAttribute('title', title);   
     a.appendChild(document.createTextNode(a));   
     var p = document.createElement('p');   
     p.className = 'blockquoteurl';   
     p.appendChild(a);   
     quotes[i].appendChild(p);   
   }   
 }   
}   
function addEvent(obj, evType, fn){   
  if (obj.addEventListener){   
    obj.addEventListener(evType, fn, false);   
    return true;   
  } else if (obj.attachEvent){   
    var r = obj.attachEvent("on"+evType, fn);   
    return r;   
  } else {   
    return false;   
  }   
}   
  
addEvent(window, 'load', extractBlockquoteCitations);