
    Milk.notify = function (t, err) {
        var p, i, s, a, d = document.createElement('div');
        FLQ.addClass(d, 'site-error');
        
        s = '<div>The following error'+(err.length == 1 ? '' : 's')+' occurred:<br/><br />'
        for (i=0; err[i]; i++) {
            s+= '<span>‣ '+err[i]+'</span><br/>'
        }
        s+= '</div>';

        d.innerHTML = s
        d.appendChild(a = document.createElement('a'))
        FLQ.addClass(a, 'button');
        a.href = '#'
        a.appendChild(document.createTextNode('Ok'))
        FLQ.e.add(a, 'click', function (e) { this.parentNode.parentNode.removeChild(this.parentNode); FLQ.e.stopEvent(e) })
        
        p = document.getElementById('content');
        p.parentNode.insertBefore(d, p)
        a.focus()
    }

    Milk.Ctrl.ImageCycle = function (id) {
        this.id = id
        this.n  = null
        this.timeout = 0
    }

    Milk.Ctrl.ImageCycle.prototype = new MilkCtrl()

    Milk.Ctrl.ImageCycle.prototype.init = function () {
        this.n = _$(this.id)

        $(this.n).cycle({fx: 'fade', timeout: this.timeout})
    }

    Milk.Ctrl.ImageCycle.prototype.next = function () {
        $(this.n).cycle('next')
    }

    Milk.Ctrl.ImageCycle.prototype.prev = function () {
        $(this.n).cycle('prev')
    }

