//blank function cBlank() { window.open(this.href); return false; } function setBlank() { if(document.getElementsByTagName) { var links = document.getElementsByTagName('A'); for(i = 0; i < links.length; i++) { if (links[i].attributes["class"] && links[i].attributes["class"].value.match("blank")) { links[i].onclick = cBlank; } } } } function windowLoad() { setBlank(); } window.onload = windowLoad; var str = ''; isMN = navigator.appName == "Netscape"; if (isMN) { str = "px"; } function showBanner(id, position) { var obj = eval('document.getElementById("banner' + id + '")'); var l = 0, t = 0; while (obj.tagName != "BODY") { l = l + obj.offsetLeft; t = t + obj.offsetTop; obj = obj.offsetParent; } switch (position) { case 1: t += document.getElementById('banner' + id).offsetTop; break; case 2: l += document.getElementById('banner' + id).offsetWidth; break; case 3: l -= document.getElementById('bannersub' + id).offsetWidth; break; case 4: l += document.getElementById('banner' + id).offsetWidth; break; } document.getElementById('bannersub' + id).style.left = l + str; document.getElementById('bannersub' + id).style.top = t + str; document.getElementById('bannersub' + id).style.visibility = "visible"; } function hideBanner(id) { document.getElementById('bannersub' + id).style.visibility = "hidden"; }