<!--

// patch IE's :hover & :focus problems with tags other than <a>

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			sel = document.getElementsByTagName("select");
			for (var i=0; i<sel.length; i++) {
				sel[i].style.visibility = 'hidden';	
			}
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			sel = document.getElementsByTagName("select");
			for (var i=0; i<sel.length; i++) {
				sel[i].style.visibility = 'visible';	
			}
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	
}
// only win:
if (window.attachEvent) window.attachEvent("onload", sfHover);


// INPUT Felder

function focus_(obj_) {
	obj_ = this;
	obj_.style.color = "#000";
	obj_.style.backgroundColor ="#FFFFE5";
	obj_.focus();
	obj_.select();
	if(obj_.value == obj_.title) {
		obj_.value ="";
	}
}

function blur_(obj_) {
	obj_ = this;
	//alert(obj_.id)
	obj_.style.backgroundColor ="#FFFFFF";
	if(obj_.value.length == 0 || obj_.value == obj_.title) {
		obj_.value = obj_.title;
		if(obj_.id == "posName" || obj_.id == "posEmail") {
			obj_.style.color = "#969696";
		} else
			obj_.style.color = "#000";
	}
}

/*function over_(obj_) {
	obj_ = this;
	obj_.style.backgroundColor ="#FFFFE5";
}

function out_(obj_) {
	obj_ = this;
	obj_.style.backgroundColor ="";
}*/

function getInpToFocus() {
	//if (!document.getElementById) return
	inp = document.getElementsByTagName("input");
	are = document.getElementsByTagName("textarea");
	for(i=0; i<inp.length; i++) {
		inp[i].onfocus = focus_;
		inp[i].onblur = blur_;
		//inp[i].onmouseover = over_;
		//inp[i].onmouseout = out_;
	}
	for(i=0; i<are.length; i++) {
		are[i].onfocus = focus_;
		are[i].onblur = blur_;
		//are[i].onmouseover = over_;
		//are[i].onmouseout = out_;
	}
}


//-->