function checkBroadcast() { var sMsgBoxID = "divBroadcast"; var sMsg = ""; // only broadcast on target page if (sMsg != "") { //sMsg = "This site will be undergoing maintenance from Saturday, November 22 at 7:30 AM until Saturday, November 22 at 11:00 AM. During this downtime, you may still access data by clicking on this link for Staff.Net, or copy the URL \"http://staffnet\" into your browser address bar and click on \"Go\". Thanks for your patience while we upgrade SharePlace."; sMsg += "
" // create message box var oDiv = document.createElement("DIV"); oDiv.id = sMsgBoxID; oDiv.msg = sMsg; oDiv.style.position = "absolute"; if (document.getElementById("objFlash")) { oDiv.style.top = getOffsetTop(document.getElementById("newHV")) + "px"; oDiv.style.left = getOffsetLeft(document.getElementById("newHV")) + "px"; } else { oDiv.style.top = "30%"; oDiv.style.left = "30%"; } oDiv.style.width = "0px"; oDiv.style.height = "0px"; oDiv.style.border = "2px solid #c0c0c0"; oDiv.style.padding = "0px"; oDiv.style.backgroundColor = "#E8BC42"; oDiv.style.fontFamily = "verdana"; oDiv.style.fontSize = "10pt"; document.body.appendChild(oDiv); // apply special effect setSlideEffect(oDiv.id,425); } } function setSlideEffect(sID, iWidth) { var oObj = document.getElementById(sID); if (parseInt(oObj.style.width) < iWidth) { oObj.style.width = (parseInt(oObj.style.width)+8) + "px"; setTimeout("setSlideEffect('" + sID + "'," + iWidth + ")",1); } else { oObj.style.width = iWidth + "px"; oObj.style.height = "auto"; oObj.style.padding = "10px"; oObj.innerHTML = oObj.msg; } } function hideBroadCast(sName) { document.getElementById(sName).style.display = "none"; } function getOffsetTop (el) { var ot = el.offsetTop; while((el = el.offsetParent) != null) ot += el.offsetTop; return ot; } function getOffsetLeft (el) { var ol = el.offsetLeft; while ((el = el.offsetParent) != null) ol += el.offsetLeft; return ol; } checkBroadcast();