\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 positionIncrement = 20;
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;
var documentHeight = document.body.scrollHeight;
var browserHeight = document.body.clientHeight;
} else {
//for IE 6
var position = document.documentElement.scrollTop;
var documentHeight = document.documentElement.scrollHeight;
var browserHeight = document.documentElement.clientHeight;
}
}
else {
//for Netscape, Opera
var position = window.pageYOffset;
var documentHeight = window.scrollHeight;
var browserHeight = window.innerHeight;
}
//Keep scrolling down until it reaches this number: anchorPoint
if (position >= (anchorPoint-5)) {
//Set to final 'anchorPoint' destination
window.scrollTo(0,anchorPoint);
//Stops setInterval calling to function: DONE
clearInterval(my_polling_prog);
} else if (position >= 951-browserHeight) {
clearInterval(my_polling_prog);
} else { //keep scrolling down
//if (positionIncrement>=50) {
// positionIncrement = 45
// position += 50 - positionIncrement;
//} else {
// positionIncrement += 5;
// position += 50 - positionIncrement;
//}
position += (anchorPoint-position)/4;
//Scroll to this x, y position in browser window
window.scrollTo(0,position);
return true;
}
}//END 'POLL' FUNCTION FOR SCROLLING
//----end Hide------------->