<!--
// Jeff
//www.huntingground.freeserve.co.uk

timer=null

function scrollToDiv(id){

steps=80

curPos=window.frames["content"].document.body.scrollLeft

totalWidth=window.frames["content"].document.body.scrollWidth - window.frames["content"].document.body.clientWidth
nextPos=parseInt(window.frames["content"].document.getElementById(id).offsetLeft + 
window.frames["content"].document.getElementById(id).offsetParent.offsetLeft)

if(curPos<nextPos){

if((nextPos-curPos)<steps){steps=1}

window.frames["content"].scrollBy(steps,0)
clearTimeout(timer)
timer=setTimeout("scrollToDiv('"+id+"')",70)

if(curPos>=nextPos||curPos>=totalWidth){
clearTimeout(timer)
}

}
else{

if(curPos>nextPos){

if((curPos-nextPos)<steps){steps=1}

window.frames["content"].scrollBy(-steps,0)
clearTimeout(timer)
timer=setTimeout("scrollToDiv('"+id+"')",80)
}
else{
clearTimeout(timer)
}

}

}
//-->
