\n');
}
function setFlashWidth(divid, newW)
{
document.getElementById(divid).style.width = newW + "px";
}
function setFlashHeight(divid, newH)
{
//alert("Setting height to: " + newH + "px");
document.getElementById(divid).style.height = newH + "px";
if(document.body.scrollHeight > document.body.clientHeight)
{
//alert("it's visible!");
document.getElementById("body").style.marginLeft = "17px";
}
else
{
document.getElementById("body").style.marginLeft = "0px";
}
}
function setFlashSize(divid, newW, newH)
{
setFlashWidth(divid, newW);
setFlashHeight(divid, newH);
}
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------------->
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
'width', '100%',
'height', '100%',
'src', 'thomas',
'quality', 'high',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'noScale',
'wmode', 'window',
'devicefont', 'false',
'id', 'thomas',
'bgcolor', '#ffffff',
'name', 'thomas',
'menu', 'true',
'allowResize', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'thomas',
'salign', ''
);
//end AC code