\n');
}
function startPolling(anPoint){
//Have to make a local variable to this function, won't work just as 'anPoint'
//And can't use 'var' in front of it, or it won't work
//If anyone knows why, let me know
anPt = anPoint;
//calls to 'Poll' function to scroll
my_polling_prog = setInterval("poll(anPt)",25);
}
// FUNCTION TO SCROLL DOWN PAGE TO 'ANCHOR' POINT BASED ON BROWSER y POSITION FROM FLASH FILE fsCommand
var position = 0;
var color = "#ffffff";
function poll(anchorPoint){
// Check Which Browser
if (navigator.appName == "Microsoft Internet Explorer"){ //for IE
if (document.body.scrollTop) {
//for IE 5 & 5.5
var position = document.body.scrollTop;
} else {
//for IE 6
var position = document.documentElement.scrollTop;
}
}
else {
//for Netscape, Opera
var position = window.pageYOffset;
}
//Keep scrolling down until reach this number: anchorPoint
if (position >= anchorPoint) {
//Set to final 'anchorPoint' destination
window.scrollTo(0,anchorPoint);
//Stops setInterval calling to function: DONE
clearInterval(my_polling_prog);
} else { //keep scrolling down
position += 10;
//Scroll to this x, y position in browser window
window.scrollTo(0,position);
return true;
}
}//END 'POLL' FUNCTION FOR SCROLLING
//----end Hide------------->