// redefine to make cacheing optional
// e.g. $.getScript('/lovefilm/static/scripts/imports/alerts.js','',0);
$.getScript = function(url, callback, cache) {
    $.ajax({
        type: "GET",
        url: url,
        success: callback,
        dataType: "script",
        cache: cache
    });
}

// Debugging
jQuery.fn.debug = function() {
    return this.each(function() {
        alert(this);
    });
};
jQuery.log = function(message) {
    if(window.console) {
        // for Firebug :-)
        console.debug(message);
    } else {
        alert(message);
    }
};

// Stops legacy calls to old adserver
function writeDart(sz, pos) {
    return false;
}
