//Example:
//<a href="#null" onclick="toTop('div1')">Top</a>  
//<a href="#null" onmousedown="scrollDivDown('div1')" onmouseup="clearTimeout(timerDown)">ScrollDown</a>  
//<a href="#null" onmousedown="scrollDivUp('div1')" onmouseup="clearTimeout(timerUp)">Scroll Up</a> 
//<a href="#null" onmousedown="scrollDivRight('div1')" onmouseup="clearTimeout(timerRight)">Scroll Right</a>  
//<a href="#null" onmousedown="scrollDivLeft('div1')" onmouseup="clearTimeout(timerLeft)">Scroll Left</a> 
//<a href="#null" onclick="toBottom('div1')">Bottom</a>  
//<a href="#null" onclick="toPoint('div1')">Point</a>  
//<BR><BR> 
//<div id="div1" style="width:150px; height:150px; overflow:auto; border: 1px solid red; whitespace: nowrap;"> 
//<b>LAYER CONTENTS</b> 
//<table width="250">
//    <tr>
//        <td>
//            <P>Some Text SOME TEXT Some Text SOME TEXT Some Text SOME TEXT</p>  
//            <P>Some Text SOME TEXT Some Text SOME TEXT Some Text SOME TEXT</p>  
//            <P>Some Text SOME TEXT Some Text SOME TEXT Some Text SOME TEXT</p>  
//            <P>Some Text SOME TEXT Some Text SOME TEXT Some Text SOME TEXT</p>  
//        </td>
//    </tr>
//</table>
//</div>

var scrollIndex = 0;
var timer = 0;
//Short for myScrollImages
var mSI = new Array();

var imageServer = 'Https://is30.eporia.com/company_1001/';
var imageParams = '?cell=75&qlt=100&cvt=jpeg';

function toTop(id){ 
    document.getElementById(id).scrollTop=0 
} 

defaultStep=5 
step=defaultStep 

function scrollDivDown(id){ 
    document.getElementById(id).scrollTop+=step 
    timerDown=setTimeout("scrollDivDown('"+id+"')",10) 
} 

function scrollDivUp(id){ 
    document.getElementById(id).scrollTop-=step 
    timerUp=setTimeout("scrollDivUp('"+id+"')",10) 
} 

function scrollDivRight(id){ 
    document.getElementById(id).scrollLeft+=step
    timerRight=setTimeout("scrollDivRight('"+id+"')",10) 
    if((mSI.length > scrollIndex) && (timer == 0))
    {
        document.getElementById('i' + scrollIndex).src = imageServer + mSI[scrollIndex] + imageParams;
        scrollIndex += 1;
        timer = 5;
    }
    else
    {
        timer -= 1;
    }
} 

function scrollDivLeft(id){ 
    document.getElementById(id).scrollLeft-=step 
    timerLeft=setTimeout("scrollDivLeft('"+id+"')",10) 
} 

function toBottom(id){ 
    document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight 
} 

function toPoint(id){ 
    document.getElementById(id).scrollTop=100 
} 

function iSRC(div, name)
{
    document.getElementById(div).src= imageServer + name + imageParams;
}

function oSRC(obj, name)
{
    obj.src= imageServer + name + imageParams;
}

