Site = {
initialize: function() {
Site.animSidebar();
},
animSidebar: function() {
var anchors = $$("#recent-entries a", "#categories-list a", "#blogroll a", "#out-of-date-goodies a");
anchors.each(function(el) {
var fx = new Fx.Morph(el, { duration: 200, wait: false });
// var fx = new Fx.Styles(el, { duration: 200, wait: false });
el.addEvent("mouseenter", function() {
fx.start({
"margin-left": 5,
"color": "#c4a000"
});
});
el.addEvent("mouseleave", function() {
fx.start({
"margin-left": 0,
"color": "#faec8e"
});
});
});
}
}
window.addEvent("domready", Site.initialize);