//LBi.RIA.FlashLoader v1.7
self.LBi={};LBi.RIA={};LBi.RIA.FlashPlayerVersion=function(arrVersion){this.major=arrVersion[0]!=null?parseInt(arrVersion[0]):0;this.minor=arrVersion[1]!=null?parseInt(arrVersion[1]):0;this.rev=arrVersion[2]!=null?parseInt(arrVersion[2]):0;},LBi.RIA.FlashLoader={_flashVersion:null,_browser:null,_upgradeFunction:null,LoaderStack:{_stack:new Array(),get:function(loaderObjectId){if(LBi.RIA.FlashLoader.LoaderStack.isEmpty()){}
else{for(sloi=0;sloi<LBi.RIA.FlashLoader.LoaderStack.size();sloi++){if(this._stack[sloi].id==loaderObjectId){return this._stack[sloi];break;}}}},add:function(loaderObject){this._stack.push(loaderObject);},remove:function(loaderObjectId){var _removeLocation=null;if(LBi.RIA.FlashLoader.LoaderStack.isEmpty()){}
else{for(sloi=0;sloi<LBi.RIA.FlashLoader.LoaderStack.size();sloi++){if(this._stack[sloi].id==loaderObjectId){_removeLocation=sloi;break;}}
if(_removeLocation!=null){LBi.RIA.FlashLoader.LoaderStack.splice(_removeLocation,1);_removeLocation=null;}
else{}}},isEmpty:function(){return((this._stack=="undefined")||(this._stack.length==0));},size:function(){if(LBi.RIA.FlashLoader.LoaderStack.isEmpty()){return 0;}
else{return this._stack.length;}},splice:function(position,count){this._stack.splice(position,count);},run:function(){var _loaded=new Array();if(!LBi.RIA.FlashLoader.LoaderStack.isEmpty()){for(wsloi=0;wsloi<LBi.RIA.FlashLoader.LoaderStack.size();wsloi++){var _watched=LBi.RIA.FlashLoader.LoaderStack._stack[wsloi];_loaded.push(_watched.id);LBi.RIA.FlashLoader.load(_watched);}}
if(!LBi.RIA.FlashLoader.LoaderStack.isEmpty()){for(lr=0;lr<_loaded.length;lr++){LBi.RIA.FlashLoader.LoaderStack.remove(_loaded[lr]);}}
if(typeof window.onunload=='function'){var oldunload=window.onunload;window.onunload=function(){LBi.RIA.FlashLoader.cleanUp();oldunload();}}else{window.onunload=LBi.RIA.FlashLoader.cleanUp;}}},createLoader:function(id,rcContainerId,rcURL,rcWidth,rcHeight,rcBgColour,rcVersion,eventPreWrite,eventPostWrite){var _loader={_eventPreWrite:null,_eventPostWrite:null,'id':id,'loadFlag':0,'rcContainerId':rcContainerId,'rcObject':null,'rcURL':rcURL,'rcWidth':rcWidth,'rcHeight':rcHeight,'rcBgColour':rcBgColour,'rcVersion':new LBi.RIA.FlashPlayerVersion(rcVersion.toString().split(".")),variables:new Object(),params:new Object(),attributes:new Array(),setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name];},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name];},deleteVariable:function(name){delete this.variables[name];},getVariables:function(){return this.variables;},setVariables:function(variables){this.variables=variables;},getVariablePairs:function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key]);}
return variablePairs;},write:function(){var _container=document.getElementById(this.rcContainerId);var _newContainer=document.createElement("div");_newContainer.id=_container.id;_newContainer.className=_container.className;var _swfNode=null;if(LBi.RIA.FlashLoader.isActiveXSupported()){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_swfNode='<object id="'+this.id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.rcWidth+'" height="'+this.rcHeight+'">';_swfNode+='<param name="movie" value="'+this.rcURL+'" />';var params=this.getParams();for(var key in params){_swfNode+='<param name="'+key+'" value="'+params[key]+'" />';}
var pairs=this.getVariablePairs().join("&");if(pairs.length>0){_swfNode+='<param name="flashvars" value="'+pairs+'" />';}
_swfNode+="</object>";_newContainer.innerHTML=_swfNode;}
else{_swfNode=document.createElement("embed");_swfNode.id=this.id;_swfNode.setAttribute("type","application/x-shockwave-flash");_swfNode.setAttribute("src",this.rcURL);_swfNode.setAttribute("width",this.rcWidth);_swfNode.setAttribute("height",this.rcHeight);_swfNode.setAttribute("name",this.id);var _params=this.getParams()
for(var key in _params){_swfNode.setAttribute(key,_params[key]);}
var _variablePairs=this.getVariablePairs().join("&");if(_variablePairs.length>0){_swfNode.setAttribute("flashvars",_variablePairs);}
_newContainer.appendChild(_swfNode);}
_container.parentNode.replaceChild(_newContainer,_container);}};_loader.addParam("bgcolor",_loader.rcBgColour);_loader.addParam("quality","high");return _loader;},load:function(loaderObject){loaderObject.loadFlag=1;var _mode=LBi.RIA.FlashLoader.mode(loaderObject.rcVersion);if(_mode=="html"){}
else if(_mode=="upgrade"){LBi.RIA.FlashLoader.upgrade();}
else if(_mode=="flash"){if(loaderObject._eventPreWrite!=null)
loaderObject._eventPreWrite();loaderObject.write();if(loaderObject._eventPostWrite!=null)
loaderObject._eventPostWrite();}
loaderObject.loadFlag=2;},init:function(upgradeFunction){LBi.RIA.FlashLoader._flashVersion=LBi.RIA.FlashLoader.getPlayerVersion();LBi.RIA.FlashLoader._browser=((navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length)?"NONIE":"IE");if((upgradeFunction!=null)&&(typeof(upgradeFunction)=="function")){LBi.RIA.FlashLoader._upgradeFunction=upgradeFunction;}},mode:function(version){if(LBi.RIA.FlashLoader._flashVersion.major==0)return"html";if(LBi.RIA.FlashLoader._flashVersion.major<version.major)return"upgrade";return"flash";},run:function(version){var f=LBi.RIA.FlashLoader.LoaderStack.run,a,b=navigator.userAgent,d=document,w=window,c="__onContent__",e="addEventListener",o="opera",r="readyState",s="<scr".concat("ipt defer src='//:' on",r,"change='if(this.",r,"==\"complete\"){this.parentNode.removeChild(this);",c,"()}'></scr","ipt>");w[c]=(function(o){return function(){w[c]=function(){};for(a=arguments.callee;!a.done;a.done=1)f(o?o():o)}})(w[c]);if(d[e])d[e]("DOMContentLoaded",w[c],false);if(/WebKit|Khtml/i.test(b)||(w[o]&&parseInt(w[o].version())<9))
(function(){/loaded|complete/.test(d[r])?w[c]():setTimeout(arguments.callee,1)})();else if(/MSIE/i.test(b))d.write(s);},getPlayerVersion:function(){var PlayerVersion=new LBi.RIA.FlashPlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new LBi.RIA.FlashPlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");PlayerVersion=new LBi.RIA.FlashPlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(PlayerVersion.major==6){return PlayerVersion;}}
try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}
if(axo!=null){PlayerVersion=new LBi.RIA.FlashPlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return PlayerVersion;},isActiveXSupported:function(){return(LBi.RIA.FlashLoader._browser=="IE");},upgrade:function(){if(LBi.RIA.FlashLoader._upgradeFunction!=null){LBi.RIA.FlashLoader._upgradeFunction();}
else{var _upgrade=document.createElement("div");_upgrade.style.backgroundColor="#ffffff";_upgrade.style.border="10px solid #f1001b";_upgrade.style.left="20%";_upgrade.style.position="absolute";_upgrade.style.width="60%";var _upgradePrompt=document.createElement("p");_upgradePrompt.style.fontFamily="Arial, Helvetica, sans-serif";_upgradePrompt.style.fontSize="1.2em";_upgradePrompt.style.margin="15px 15px 4.5em 15px";_upgradePrompt.style.padding="0";_upgradePrompt.innerHTML="Some elements of this site use a newer version of Flash player than the one currently"+" installed, would you like to upgrade to a newer version to get the full experience or continue without?";_upgrade.appendChild(_upgradePrompt);var _upgradeAccept=document.createElement("input");_upgradeAccept.onclick=function(){window.location.href="http://www.adobe.com/go/getflashplayer";}
_upgradeAccept.keypress=_upgradeAccept.onclick;_upgradeAccept.type="button";_upgradeAccept.value="Upgrade";_upgradeAccept.style.bottom="1em";_upgradeAccept.style.fontFamily="Arial, Helvetica, sans-serif";_upgradeAccept.style.fontSize="1.5em";_upgradeAccept.style.left="20%";_upgradeAccept.style.position="absolute";_upgrade.appendChild(_upgradeAccept);var _upgradeContinue=document.createElement("input");_upgradeContinue.onclick=function(){this.parentNode.parentNode.removeChild(this.parentNode);}
_upgradeContinue.keypress=_upgradeContinue.onclick;_upgradeContinue.type="button";_upgradeContinue.value="Continue";_upgradeContinue.style.bottom="1em";_upgradeContinue.style.fontFamily="Arial, Helvetica, sans-serif";_upgradeContinue.style.fontSize="1.5em";_upgradeContinue.style.right="20%";_upgradeContinue.style.position="absolute";_upgrade.appendChild(_upgradeContinue);document.getElementsByTagName("body")[0].appendChild(_upgrade);}},cleanUp:function(){var objects=document.getElementsByTagName("object");for(var i=0;i<objects.length;i++){objects[i].style.display='none';for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=null;}}}}}