
var siteSpokePerson_Global;function hideWhenFinished(){siteSpokePerson_Global.HideWhenFinished();}
function siteSpokePerson(){this.src="";this.width="300";this.height="337";this.Position
this.Location=new this.Point();this.Location.X=0;this.Location.Y=0;this.DoNotShowDays=0;this.PositionMode='absolute';this.positionFrom='fromBottom';this.positionHorizontalFrom='fromLeft';this.ReferenceID=null;this.RequiredVersionMajor=9;this.RequiredVersionMinor=0;this.needFlashString="Flash Version "+this.RequiredVersionMajor+"."+this.RequiredVersionMinor+" is needed.<br/><a href='http://www.adobe.com/go/getflash/' target='_blank'>Get it here</a>";if(document.body.attachEvent){this.isIE=true;}else{this.isIE=false;}
this.ParseBrowser();this.backgroundImage='http://omgnational.com/images/transparent.gif';this.NeedsFix=false;this.WriteWrapper=true;this.fla="";this.urlArray=null;this.anchorMode='static';this.InitialX=0;}
siteSpokePerson.prototype.Query=function(x){if(this.urlArray==null){var res=new Array();var href=new String(window.location.href);var qi=href.indexOf('?');if(qi!=-1){var tail=new String(href.substr(qi+1));var params=tail.split('&');for(var i=0;i<params.length;i++){if(params[i].indexOf('=')!=-1){var split=params[i].split('=');res[split[0].toLowerCase()]=split[1];}else{res[params[i].toLowerCase()]='';}}}
this.urlArray=res;}
return this.urlArray[x];}
siteSpokePerson.prototype.AddUrlVarToFlashVars=function(a){this.AddVarToFlashVars(a,this.Query(a));}
siteSpokePerson.prototype.AddVarToFlashVars=function(n,v){this.FlashVars=this.FlashVars+n+'='+v+'&';}
siteSpokePerson.prototype.AddUrlVarToFlashVarsRenamed=function(a,name){this.FlashVars=this.FlashVars+name+'='+this.Query(a)+'&';}
siteSpokePerson.prototype.Point=function(x,y){this.X=x;this.Y=y;}
siteSpokePerson.prototype.GetTimeCookie=function(){var n="isvTime=";var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var c=cookies[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(n)==0)return c.substring(n.length,c.length);}
return null;}
siteSpokePerson.prototype.SetTimeCookie=function(){var date=new Date();date.setTime(date.getTime()+(this.DoNotShowDays*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie="isvTime=nos"+expires+"; path=/";}
siteSpokePerson.prototype.ParseBrowser=function(){this.isNetscape=false;this.isFirefox=false;this.isIE=false;this.isOpera=false;this.isSafari=false;this.appName=navigator.appName;this.appVersion=navigator.appVersion;if(this.appName=="Netscape"&&parseFloat(this.appVersion)>4.7){var uai=navigator.userAgent.indexOf("Firefox");if(uai!=-1){this.isFirefox=true
this.browserVersionMaj=parseInt(navigator.userAgent.charAt(uai+8));}else{this.isNetscape=true;this.browserVersionMaj=parseFloat(this.appVersion);}}else{var uai=navigator.appVersion.indexOf("MSIE");if(uai!=-1){this.isIE=true;var temp=navigator.appVersion.split("MSIE")
this.appVersion=parseFloat(temp[1]);this.browserVersionMaj=parseInt(this.appVersion);}else{var uai=navigator.userAgent.indexOf("Opera");if(uai!=-1){this.isOpera=true;this.browserVersionMaj=parseInt(navigator.userAgent.charAt(uai+6));}}}
if(document.compatMode=='CSS1Compat'){this.isCompatible=true;}else{this.isCompatible=false;}}
siteSpokePerson.prototype.el=function(e){return document.getElementById(e);}
siteSpokePerson.prototype.AnchorToObjectX=function(){if(this.isIE){window.attachEvent('onresize',AnchorResizedX);window.attachEvent('onload',AnchorResizedX);}else{window.addEventListener('load',AnchorResizedX,false);window.addEventListener('resize',AnchorResizedX,false);}}
siteSpokePerson.prototype.Intialize=function(){siteSpokePerson_Global=this;if(this.DoNotShowDays>0){cookie=this.GetTimeCookie();if(cookie!=null){return;}
this.SetTimeCookie();}
this.InitialX=this.Location.X;if(this.ReferenceID!=null&&this.el(this.ReferenceID)!=null){this.AnchorToObjectX();this.LockInitialX();}
if(this.anchorMode=='static')
{this.positionMode='fixed';if(this.isIE){if(this.appVersion>6||!this.isCompatible){this.positionMode='absolute';this.NeedsFix=true;}}
if(this.isFirefox&&this.browserVersionMaj<2){this.positionMode='absolute';window.addEventListener('scroll',RestorePosition,false);window.addEventListener('size',RestorePosition,false);}
this.WriteDiv();}else{this.positionMode='absolute';this.WriteDiv();}
if(this.ReferenceID!=null&&this.el(this.ReferenceID)!=null){this.AnchorToObjectX();}}
siteSpokePerson.prototype.PlaceElement=function(o,s,l,t){var obj=this.el(o);var src=this.el(s);var srcLoc=GetObjectPosition(src);var nl=l+srcLoc[0];var nt=t+srcLoc[1];obj.style.left=nl+'px';obj.style.top=nt+'px';}
siteSpokePerson.prototype.CheckFlashVersion=function(){var maj=0;var min=0;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash"]){var d=navigator.plugins["Shockwave Flash"].description;var a=d.split(" ");var version=a[2];var a1=version.split(".");maj=a1[0];min=a1[1];}}
else{try{var o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var d=o.GetVariable("$version");var a=d.split(" ");var version=a[1];var a1=version.split(",");maj=a1[0];min=a1[1];}catch(e){}}
if(maj>this.RequiredVersionMajor||(maj==this.RequiredVersionMajor&&min>=this.RequiredVersionMinor)){return true;}
else{return false;}}
siteSpokePerson.prototype.GetObjectPosition=function(o){var l,t;l=t=0;if(o.offsetParent){l=o.offsetLeft;t=o.offsetTop;while((o=o.offsetParent)){l+=o.offsetLeft;t+=o.offsetTop;}}
return[l,t];}
siteSpokePerson.prototype.HideWhenFinished=function(){this.el('myParent').style.display='none';}
siteSpokePerson.prototype.GetObjectAbsoluteLocation=function(o){var p=new this.Point(0,0);while(o!=null){p.X+=o.offsetLeft;p.Y+=o.offsetTop;o=o.offsetParent}
return p;}
siteSpokePerson.prototype.GetObjectAbsoluteX=function(o){var x;x=0;while(o!=null){x+=o.offsetLeft;o=o.offsetParent}
return x;}
siteSpokePerson.prototype.GetObjectAbsoluteY=function(o){var y;y=0;while(o!=null){y+=o.offsetTop;o=o.offsetParent}
return y;}
siteSpokePerson.prototype.WriteStandardContainer=function(){document.write('<div id="myParent" style="z-index:1000;');this.WritePositionStyleInfo();document.write('z-index: 100;border: 0px; width:'+this.width+'px;height:'+this.height+';">');document.write('<div id="myDov">');}
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;');}
siteSpokePerson.prototype.WriteNeedFlashContainer=function(){document.write('<div id="myParent" style="');this.WritePositionStyleInfo();document.write('z-index: 100;border: 0px; width:'+this.width+'px; background-color:#FFF; padding:4px 4px 4px 4px; border:inset 3px #F00 ">');document.write('<div id="myDov">');}
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('</div>');document.write('</div>');}}
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'){clientHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){clientHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){clientHeight=document.body.clientHeight;}
if(typeof(window.pageYOffset)=='number'){scrollTop=window.pageYOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrollTop=document.body.scrollTop;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){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;}
return loc;}
siteSpokePerson.prototype.WriteMovieObject=function()
{document.write('<object ');if(!this.WriteWrapper){document.write('   style="');this.WritePositionStyleInfo();document.write('z-index: 1000;"');}
document.write(' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0" id="fTrans" width="');document.write(this.width+'px" height="'+this.height+'">\n');document.write('\t<param name="movie" value="'+this.src+'" />\n');document.write('\t<param name="quality" value="high" />\n');document.write('\t<param name="AllowScriptAccess" value="always" />\n');document.write('\t<param name="flashvars" value="var1='+this.fla+'"');document.write('\t<param name="menu" value="false" />\n');document.write('\t<param name="wmode" value="transparent" />\n');document.write('\t<embed src="'+this.src+'" quality="high" wmode="transparent" AllowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="');document.write(this.width+'px" height="'+this.height+'" menu="false"');document.write('flashvars="var1='+this.fla+'"');document.write('></embed>\n');document.write('</object>\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();}
