I can't put my finger on it, but I suspect this might break in old IE. Have you tested this in IE7-IE10?