var isIE = navigator.appName == 'Microsoft Internet Explorer';

function fade(oldId,newId,pos){
  if (pos<0){
		var aktElem=document.getElementById(oldId);
		if (isIE)
			aktElem.style.filter="Alpha(opacity="+(-pos*10)+")";
		else
			aktElem.style.opacity=-(pos/10);
	} else if (pos==0) { 
		var aktElem=document.getElementById(oldId);
		aktElem.style.display="none";
		aktElem=document.getElementById(newId);
		if (isIE)
			aktElem.style.filter="Alpha(opacity=0)";
		else
			aktElem.style.opacity=0;
		aktElem.style.display="block";
	} else if (pos>0) {
		aktElem=document.getElementById(newId);
		if (isIE)
			aktElem.style.filter="Alpha(opacity="+(pos*10)+")";
		else
			aktElem.style.opacity=(pos/10);
	}
	if (pos<10)
		window.setTimeout("fade('"+oldId+"','"+newId+"',"+(pos+1)+")",20);
}
