var paginationRules = {
    '#pagination li' : function(el) {
        el.onclick = function() {
            var link = this.getElementsByTagName('a')[0].getAttribute('href');
            window.location = link;
        };
        el.onmouseover = function() {
            this.className = this.className.replace(' hover', '');
            this.className = this.className.replace('hover', '');
            this.className += ' hover';
        };
        el.onmouseout = function(){
            this.className = this.className.replace(' hover', '');
            this.className = this.className.replace('hover', '');
        };
    }
};

Behaviour.register(paginationRules);