function anoneditview() {
	var edit = document.getElementById('pageedit');
	var login = document.getElementById('e_login');
	sethidden(edit);
	setvisible(login);
}

/* VISIBILITY and FADING */
function setvisible(ctl) {
	if (ctl != null) ctl.style.display='';
}

function sethidden(ctl) {
	if (ctl != null) ctl.style.display='none';
}

function setvisibleFade(ctl) {
	ctl.style.display='';
	fadeIn(ctl.id,0,10,50);
}

function sethiddenFade(ctl) {
	fadeOut(ctl.id,100,10,20);
	//ctl.style.display='none';
}

function setFadeIn(ctl) {
	fadeIn(ctl.id,0,10,50);
}

var fadeInObj = null;
var fadeOutObj = null;

function fadeIn(ctlId,start,step,delay) {
	clearTimeout(fadeOutObj);
	var opacity;
	var object;
	opacity = start + step;
	if (opacity > 100) {
		opacity = 100;
	}

	object = document.getElementById(ctlId).style;
	object.opacity = opacity / 100;
	object.filter = 'alpha(opacity=' + opacity + ')';
	object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100); 
    
	if (opacity < 100) {
		fadeInObj = setTimeout('fadeIn("' + ctlId + '",' + opacity + ',' + step + ',' + delay + ');',delay);
	} else {
		clearTimeout(fadeInObj);
	}
}

function fadeOut(ctlId,start,step,delay) {
	clearTimeout(fadeInObj);
	var opacity;
	opacity = start - step;
	if (opacity < 0) {
		opacity = 0;
	}
	document.getElementById(ctlId).style.opacity = opacity / 100;
	document.getElementById(ctlId).style.filter = 'alpha(opacity=' + opacity + ')';
	
	if (opacity > 0) {
		fadeOutObj = setTimeout('fadeOut("' + ctlId + '",' + opacity + ',' + step + ',' + delay + ');',delay);
	} else {
		document.getElementById(ctlId).style.display='none';
		clearTimeout(fadeOutObj);
	}
}