var cocktail = {};

cocktail.log = function() {
        if (typeof console != 'undefined')
                console.log.apply(console, arguments)
};

cocktail.location = function(href) {
        if (typeof href == 'undefined') { return top.location.href; }
        top.location.href = href;
};

cocktail.bind = function(context, func) {
        return (function () {
                func.apply(context, arguments)
        })
};

Function.prototype.bind = function(context) {
        return cocktail.bind(context, this);
}

$(document).ready(function() {
        $('body').addClass('js');
});

