var a=0;
function showMenu(){
	var ul=document.getElementById("ul");
	if(a<=1){
		a+=0.025;
		ul.style.opacity=a;
		var timer=setTimeout("showMenu()",50);
	}else{
		a=0;
        ul.style.opacity='1';
		clearTimeout(timer);
	}
}

var b=0;
var timer;
function slide(to){
    var upd=document.getElementById("updates");
    if(to=='bottom'){
        upd.style.padding='10px';
        upd.style.display='block';
        if(b<450){
            b+=10;
            upd.style.height=b+'px';
            timer=setTimeout("slide('bottom');",20);
        }else{
            upd.style.height='450px';
            clearTimeout(timer);
            document.getElementById("slide_lnk").setAttribute("href","javascript:filo('hide');");
            document.getElementById("arrow").setAttribute("src","images/up.png");
            filo('show');
        }
    }else if(to=='top'){
        if(b>0){
            b-=10;
            upd.style.height=b+'px';
            timer=setTimeout("slide('top');",20);
        }else{
            upd.style.padding='0';
            upd.style.height='0';
            upd.style.display='none';
            b=0;
            clearTimeout(timer);
            document.getElementById("slide_lnk").setAttribute("href","javascript:slide('bottom');");
            document.getElementById("arrow").setAttribute("src","images/down.png");
        }
    }
}

var c=0;
var timer2;
function filo(what){
    var div=document.getElementById("filo");
    if(what=='show'){
        div.style.display='block';
        if(c<=1){
            c+=0.05;
            div.style.opacity=c;
            div.style.filter="alpha(opacity="+(c*100)+")";
            timer2=setTimeout("filo('show');",35);
        }else{
            div.style.opacity='1';
            div.style.filter="alpha(opacity=100)";
            clearTimeout(timer2);
            return true;
        }
    }else if(what=='hide'){
        if(c>=0){
            c-=0.05;
            div.style.opacity=c;
            div.style.filter="alpha(opacity="+(c*100)+")";
            timer2=setTimeout("filo('hide');",35);
        }else{
            c=0;
            div.style.opacity='0';
            div.style.filter="alpha(opacity=0)";
            div.style.display='none';
            clearTimeout(timer2);
            slide('top');
        }
    }
}