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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function selectField(param) {
	elem = document.getElementById(param);
	elem.value="";
	setTimeout("elem.select()",0);
}

function changeClass(id, newClass) {
   identity=document.getElementById(id);
   identity.className=newClass;
}
function miniProfileOn(evt,id) {
	eIE=window.event;
	if(eIE){
		x=eIE.offsetX;
		y=eIE.offsetY;
	} else{
		x=evt.layerX;
		y=evt.layerY;
	}
	a1=document.getElementById(id).style;
	if((x<=150)&&(x>3)&&(y<80)&&(y>3)){
		a1.display="block";
		a1.marginLeft=3+x+"px";
		a1.marginTop=3+y+"px";
	} else {
		a1.display="none";
	}
}
function miniProfileOff(id){
	a1=document.getElementById(id).style;
	a1.display="none";
}
