// JavaScript Document
// Jeff
//www.huntingground.freeserve.co.uk
function initWhatsNew(){



updateDiv=document.getElementById("w_n_update");

wWidth=document.body.clientWidth;
wHeight=document.body.clientHeight;

sWidth=updateDiv.offsetWidth;
sHeight=updateDiv.offsetHeight;

updateDiv.style.left= (screen.width - 702)/2;
updateDiv.style.top=updateDiv.offsetTop-sHeight;


defPos=parseInt(updateDiv.style.top);
topPos=defPos;
stopPos=100; // top position layer scrolls down to in relation to page top (zero)



}

showMe="";
hideMe="";
function showWhatsNew(){
document.getElementById("w_n_update").style.visibility="visible";
if (topPos<stopPos){
topPos+=30;
updateDiv.style.top=topPos;
showMe=setTimeout("showWhatsNew()",50)
}
else{
clearTimeout(showMe)
}
showing=1;
}

function hideWhatsNew(){
if(showing==0){return}
clearTimeout(showMe);
if (topPos>defPos) {
topPos-=50;
updateDiv.style.top=topPos;
hideMe=setTimeout("hideWhatsNew()",50)
}
else{
clearTimeout(hideMe);
}
}

