How to ensure your jQuery and/or java continues to work even after a post back to the page:
Use the following code snippet to re-load your java / jQuery:
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function() {
updateCSS();
});