$('#mainbox,#menubox').html(''); var target = document.getElementById('mainbox'); var mbspinner = new Spinner(spnopts).spin(target); $('#mainbox').load('http://www.giltrap.co.uk/common/calendar/2.3.4/index.php', { 'prefix' : 'giltrap', 'query_string' : 'page%3Dcalendar%26view%3Dday%26day%3D2015-04-18', 'from' : 0, 'limit' : 12, 'prevdaynum' : '' }, function(){ mbspinner.stop(); convert2slash('#mainbox a:not(a.noslash,.controlbar a)'); }); var target = document.getElementById('menubox'); var mnspinner = new Spinner(spnopts).spin(target); $('#menubox').css('min-height','200px').load('http://www.giltrap.co.uk/common/calendar/2.3.4/menu.php', { 'prefix' : 'giltrap', 'query_string' : 'page%3Dcalendar%26view%3Dday%26day%3D2015-04-18' }, function(){ mnspinner.stop(); convert2slash('#menubox a:not(a.noslash)'); var target = document.getElementById('tinygrid'); var tgspinner = new Spinner(spnopts).spin(target); $('#tinygrid').load('http://www.giltrap.co.uk/common/calendar/2.3.4/tinygrid.php', { 'prefix' : 'giltrap', 'query_string' : 'page%3Dcalendar%26view%3Dday%26day%3D2015-04-18' }, function(){ tgspinner.stop(); convert2slash('#tinygrid .tinygrid a,.dayline a'); }); });