var updateCartBlock = function($){
    var domwin;
    if(typeof parent !== 'undefined' && parent === this) {
        domwin = this;
    }else{
        domwin = parent;
    }
    var url = 'http://cart.austininstitute.com/shopping-cart-block';
    $.getJSON(url+'?callback=?', function(data){
        if(data.block !== false) {
            var div = $('<div></div>').html(data.block);
            var target = $('#block-block-16', $('#leftcol', domwin.document));
		target.html('');
            div.prependTo(target);
        }
    });
    $('body', domwin.document).append($('<span></span>').text('.'));
};
jQuery(function($){
	updateCartBlock($); 
});

