onload = function () {
  rip();
}

function rip() {
  var d = document;
  if(d.images){
    if(!d.MM_p) d.MM_p=new Array();
    var anchorFields = d.getElementsByTagName('A');
    for ( var i =0; i <anchorFields.length ; i++  ) {
      var anchor = anchorFields[i];
      if ( !anchor.firstChild ) continue;
      if ( !anchor.firstChild.src ) continue;
      if ( new String(anchor.firstChild.src).match(/-fir-/) ) {
        var src_on  = new String(anchor.firstChild.src).replace(/-fir-/,'-sec-') ;
        anchor.onmouseover = function () {this.firstChild.src = this.firstChild.src.replace(/-fir-/,'-sec-')};
        anchor.onmouseout  = function () {this.firstChild.src = this.firstChild.src.replace(/-sec-/,'-fir-')};
        d.MM_p[i] = new Image;
        d.MM_p[i].src = src_on;
      }
    }
  }
}

function addBookmark(title,url) {
    if (window.sidebar) {
        window.sidebar.addPanel(title, url,"");
    } else if( document.all ) {
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
        return true;
    }
}

function initialize() {
var feed = new google.feeds.Feed("http://rss.exblog.jp/rss/exblog/bingof/index.xml");
feed.load(function(result) {
if (!result.error) {
var container = document.getElementById("feed");
for (var i = 0; i < result.feed.entries.length; i++) {
var entry = result.feed.entries[i];
var dd = new Date(entry.publishedDate); // now
var yearNum = dd.getYear();
if (yearNum < 2000) yearNum += 1900;
var date = yearNum + "/"+(dd.getMonth()+1)+"/"+dd.getDate();
container.innerHTML += "<p>" + date + "<br />" +"<a href='" + entry.link + "' title='" + entry.title + "'>" + entry.title + "</a></p>";
}
}
});
}
