/*Fade*/

function fadein(){
	
	var duration = 500;
	var steps = 500;
	
	for(i=0; i <= 1; i+=(1/steps)){
		setTimeout("opacity("+i+")", i*duration);
		setTimeout("float("+(i*(-13))+")", i*duration);
	}
	
}

function opacity(value){
	var e = document.getElementById('home');
	e.style.opacity = value;
}
function float(value){
	var e = document.getElementById('home');	
	e.style.marginTop = value + 'px';
}

/*Visibility*/

function hide(id){
	var e = document.getElementById(id);
	e.style.display= 'none';
}
function show(id){
	var e = document.getElementById(id);
	e.style.display= 'block';
}

/*Forms*/

function run(id){
	var e = document.getElementById(id);
	e.submit();
}
