AdBlock = Class.create();
AdBlock.prototype = {
    initialize: function(flashobject) {
        this.flashobject = (typeof(flashobject) == 'string') ? $(flashobject) : flashobject;
        this.container = this.flashobject.parentNode;
        this.flashobject.observe('mouseover', this.removeAdBlocker.bind(this));
        this.flashobject.observe('mouseon', this.removeAdBlocker.bind(this));
    },
    removeAdBlocker: function() {
        anchors = this.container.getElementsByTagName('a');
        for (var i = 0; i < anchors.length; i++) {
            if (typeof(anchors[i])=='object') {
                anchors[i].parentNode.removeChild(anchors[i]);
            }
        }
    }
}