I am using DrByte's show sidebox on external page to show the shopping cart on my main page. Is there a way to check for "store down for maintenance" and display something else accordingly? It seems that once the file gets to require (application_top.php), when the store is down, nothing else happens past it( which of course makes sense). I looked through application_top.php and down_for_maintenance but I cannot make anything out of it.

I would appreicate if soembody with more experience with this code could give me some hints. Thanks!