function hide(obj)
{
var item = document.getElementById(obj);
item.style.visibility = 'hidden';  
}

function show(obj)
{
var item = document.getElementById(obj);
item.style.visibility = 'visible'; 
}




function toBottom(id){
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight;
check();
checkcookie();
}

function check(){
var scrollPos = document.getElementById('facepile').scrollTop;
 
if(scrollPos > 0) {
document.getElementById('wrapper').style.zIndex='100';
show('wrapper');

}

 
else {
hide('wrapper');

 }
}

setTimeout("toBottom('facepile')", 4000);

