
function quit(id) {
			
			setTimeout(function(){
				document.getElementById(id).style.opacity = 1
			}, 50);
			setTimeout(function(){
				document.getElementById(id).style.opacity = 0.5
			}, 100);
			setTimeout(function(){
				
				document.getElementById(id).style.opacity = 0;
			
				document.getElementById(id).style.display = 'none';
			}, 150);
			
			
			setTimeout(function(){
				document.getElementById('background_panel').style.opacity = 0.5
			}, 200);
			setTimeout(function(){
				document.getElementById('background_panel').style.opacity = 0.3
				document.bgColor = '#CDC3A8';
			}, 250);
			setTimeout(function(){
				document.getElementById('background_panel').style.opacity = 0;
				
				document.getElementById('background_panel').style.display = 'none';
				
				stop_action = false;
			}, 300);
			
	
	
}

function enter(id) {
	//var windows = new Array();
	// windows[0] = document.getElementById("login");
	 //windows[1] = document.getElementById("artist");
	//	for (var v = 0; v < windows.length; v++) {
	//		windows[v].style.display = 'none';
	//}
			setTimeout(function(){
				stop_action = true;
				
				document.getElementById('background_panel').style.display = 'block';
				document.getElementById('background_panel').style.opacity = 0.3
			}, 50);
			setTimeout(function(){
				document.getElementById('background_panel').style.opacity = 0.6;
				document.bgColor = '#0A0908';
			}, 100);
			setTimeout(function(){
				if (id!='photo')
				document.getElementById('background_panel').style.opacity = 0.8;
				else
				document.getElementById('background_panel').style.opacity = 1;
			}, 150);
			
			
			setTimeout(function(){
				document.getElementById(id).style.display = 'block';
				document.getElementById(id).style.opacity = 0.3;
			}, 200);
			setTimeout(function(){
				document.getElementById(id).style.opacity = 0.6
			}, 250);
			setTimeout(function(){
				document.getElementById(id).style.opacity = 1;
				if (document.getElementById('l_'+id)) document.getElementById('l_'+id).focus();
			
					
				
			}, 300);
	
	
}




