var div = document.createElement("div"); div.innerHTML = '

Is your child ill?

If your child’s ill and will be absent from school, you need to tell us.
We use a service called Studybugs which makes it easy.

'; window.setTimeout(function(){ var banner = div.firstChild, box = banner.getElementsByClassName("sicklyBox1")[0], spacer = banner.getElementsByClassName("sicklySpacer")[0], dismiss = banner.getElementsByClassName("sicklyDismiss")[0], body = document.getElementsByTagName("body")[0], height; body.insertBefore(banner, body.firstChild); height = box.clientHeight + 3; box.style.top = 0; spacer.style.height = height + "px"; dismiss.onclick = function() { box.style.top = "-" + height + "px"; spacer.style.height = 0; return false; }; }, 1000);