
// Scrollable content III- By http://www.dynamicdrive.com
// modded to enable vert and horiz scroll - refer to original for single axis version

var vspeed, currentpos=curpos1=0,alt=1,curpos2=-1
var hspeed, currentpos=curpos0=0,alt=1,curpos2=-1

function vinitialize(){
if (window.parent.vscrollspeed!=0){
vspeed=window.parent.vscrollspeed
vscrollwindow()
}
}

function hinitialize(){
if (window.parent.hscrollspeed!=0){
hspeed=window.parent.hscrollspeed
hscrollwindow()
}
}

function vscrollwindow(){
temp=(document.all)? document.body.scrollTop : window.pageYOffset
alt=(alt==0)? 1 : 0
if (alt==0)
curpos1=temp
else
curpos2=temp

window.scrollBy(0,vspeed)
}

function hscrollwindow(){
temp=(document.all)? document.body.scrollLeft : window.pageXOffset
alt=(alt==0)? 1 : 0
if (alt==0)
curpos1=temp
else
curpos2=temp

window.scrollBy(hspeed,0)
}

setInterval("hinitialize()",10)
setInterval("vinitialize()",10)


