addEvent(window, 'load', initCorners);
if (window.attachEvent) window.attachEvent("onload", sfHover);

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
 
function talk_to_the_doctor() {
	document.addcomm.darlects.value="7";
	}

function initCorners() {

	var settings = {
      	tl: { radius: 5 },
      	tr: { radius: 5 },
      	bl: { radius: 5 },
      	br: { radius: 5 },
      	antiAlias: true
		}
	curvyCorners(settings, ".myBox");

	var settings2 = {
      	tl: { radius: 5 },
      	tr: { radius: 5 },
      	bl: { radius: 0 },
      	br: { radius: 0 },
      	antiAlias: true
		}
	curvyCorners(settings2, ".myItem");

	var settings3 = {
      	tl: { radius: 0 },
      	tr: { radius: 0 },
      	bl: { radius: 5 },
      	br: { radius: 5 },
      	antiAlias: true
		}
	curvyCorners(settings3, ".myNav");
	}
 
function clearThis(el) {
if (el.defaultValue==el.value) el.value = ""
}

