');
}
siteSpokePerson.prototype.WritePositionStyleInfo=function() {
document.write('position: '+this.positionMode+'; ');
if(this.positionFrom=='fromBottom')
{
document.write('bottom: ');
}
else {document.write('top: ');}
document.write(this.Location.Y+'px; ');
if(this.positionHorizontalFrom=='fromLeft')
{
document.write('left: ');
}
else
{
document.write('right: ');
}
document.write(
this.InitialX+'px;');
// this.Location.X
}
siteSpokePerson.prototype.WriteNeedFlashContainer= function(){
document.write('
');
document.write('
');
}
siteSpokePerson.prototype.WriteDiv=function() {
if(this.CheckFlashVersion()) {
if(this.WriteWrapper) {
this.WriteStandardContainer();
}
this.WriteMovieObject();
}
else {
this.WriteNeedFlashContainer();
this.WriteNeedFlash();
}
if(this.NeedsFix){
this.FixIEFixed();
}
if(this.WriteWrapper) {
document.write('
');
document.write('
');
}
}
siteSpokePerson.prototype.WriteNeedFlash=function() {
document.write(this.needFlashString);
}
siteSpokePerson.prototype.LockInitialX=function() {
var src=this.el(siteSpokePerson_Global.ReferenceID);
var srcLoc=this.GetObjectAbsoluteX(src);
this.InitialX=srcLoc+this.Location.X;
}
function AnchorResizedX() {
var obj=siteSpokePerson_Global.el('myParent');
var src=siteSpokePerson_Global.el(siteSpokePerson_Global.ReferenceID);
var srcLoc=siteSpokePerson_Global.GetObjectAbsoluteX(src);
var nl=video.Location.X+srcLoc;
obj.style.left=nl + 'px';
}
var shown=0;
var lastNum=0;
function getIEFixHeight() {
var loc;
var scrollTop;
var clientHeight;
if( typeof( window.innerWidth ) == 'number' ) { //Non-IE
clientHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode'
clientHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible
clientHeight = document.body.clientHeight;
}
if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant
scrollTop = window.pageYOffset;
} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant
scrollTop = document.body.scrollTop;
} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
//IE6 standards compliant mode
scrollTop = document.documentElement.scrollTop;
} else {scrollTop=0;}
if(siteSpokePerson_Global.positionFrom=='fromBottom'){
loc=scrollTop+clientHeight-siteSpokePerson_Global.Location.Y-siteSpokePerson_Global.el('myParent').clientHeight ;
} else {
loc=scrollTop+siteSpokePerson_Global.Location.Y;
}
//if(shown<2 && lastNum!=loc)
// { alert(loc);shown++;lastNum=loc;}
return loc;
}
siteSpokePerson.prototype.WriteMovieObject=function()
{
document.write('
\n');
}
siteSpokePerson.prototype.FixIEFixed=function(){
if(document.body.currentStyle['backgroundImage']=='none')
{
document.body.style.backgroundImage='url('+this.backgroundImage+')';
document.body.style.backgroundRepeat='no-repeat';
document.body.style.backgroundAttachment='fixed';
}
this.el('myParent').style.setExpression('top','getIEFixHeight()');
}
siteSpokePerson.prototype.FixFF15Position=function(){
var scrollTop= window.pageYOffset;
var clientHeight=window.innerHeight;
if(this.InitialHeight== undefined) { this.InitialHeight=this.el('myParent').clientHeight;}
if(this.positionFrom=='fromBottom'){
loc = scrollTop + clientHeight -
this.Location.Y-this.InitialHeight ;
} else {
loc=scrollTop+siteSpokePerson_Global.Location.Y;
}
this.el('myParent').style.top=loc+'px';
}
function RestorePosition() {
siteSpokePerson_Global.FixFF15Position();
}