﻿var sIFR=new function(){var b=this,c={ACTIVE:"sIFR-active",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};c.IGNORE_CLASSES=[c.REPLACED,c.IGNORE,c.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=25;this.VERSION="436";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=true;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var r=0,k=false;function A(){this.fire=function(a){if(this[a+"Alert"])alert(this[a+"Alert"]);throw new Error(this[a])};this.isFile="sIFR: Did not activate because the page is being loaded from the filesystem.";this.isFileAlert="Hi!\n\nThanks for using sIFR on your page. Unfortunately sIFR couldn't activate, because it was loaded directly from your computer.\nDue to Flash security restrictions, you need to load sIFR through a web server.\n\nWe apologize for the inconvenience."}function h(){function a(a){return a.toLocaleUpperCase()}this.normalize=function(a){return a.replace(/\n|\r|\xA0/g,h.SINGLE_WHITESPACE).replace(/\s+/g,h.SINGLE_WHITESPACE)};this.textTransform=function(c,b){switch(c){case "uppercase":return b.toLocaleUpperCase();case "lowercase":return b.toLocaleLowerCase();case "capitalize":return b.replace(/^\w|\s\w/g,a)}return b};this.toHexString=function(a){if(a.charAt(0)!="#"||a.length!=4&&a.length!=7)return a;a=a.substring(1);return "0x"+(a.length==3?a.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):a)};this.toJson=function(b,d){var a="";switch(typeof b){case "string":if(d!=undefined)a='"'+d(b)+'"';break;case "number":case "boolean":a=b.toString();break;case "object":a=[];for(var c in b){if(b[c]==Object.prototype[c])continue;a.push('"'+c+'":'+this.toJson(b[c]))}a="{"+a.join(",")+"}"}return a};this.convertCssArg=function(a){if(!a)return {};if(typeof a=="object")if(a.constructor==Array)a=a.join("");else return a;var c={},h=a.split("}");for(var e=0;e<h.length;e++){var b=h[e].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!b||b.length!=3)continue;if(!c[b[1]])c[b[1]]={};var g=b[2].split(";");for(var f=0;f<g.length;f++){var d=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!d||d.length!=3)continue;c[b[1]][d[1]]=d[2].replace(/\s+$/,"")}}return c};this.extractFromCss=function(a,b,c,e){var d=null;if(a&&a[b]&&a[b][c]){d=a[b][c];if(e)delete a[b][c]}return d};this.cssToString=function(f){var c=[];for(var d in f){var b=f[d];if(b==Object.prototype[d])continue;c.push(d,"{");for(var a in b){if(b[a]==Object.prototype[a])continue;var e=b[a];if(h.UNIT_REMOVAL_PROPERTIES[a])e=parseInt(e,10);c.push(a,":",e,";")}c.push("}")}return c.join("")};this.escape=function(a){return escape(a).replace(/\+/g,"%2B")};this.encodeVars=function(a){return a.join("&").replace(/%/g,"%25")};this.copyProperties=function(c,b){for(var a in c)if(b[a]===undefined)b[a]=c[a];return b};this.domain=function(){var a="";try{a=document.domain}catch(b){}return a};this.domainMatches=function(b,a){if(a=="*"||a==b)return true;var d=a.lastIndexOf("*");if(d>-1){a=a.substr(d+1);var c=b.lastIndexOf(a);if(c>-1&&c+a.length==b.length)return true}return false};this.uriEncode=function(a){return encodeURI(decodeURIComponent(a))};this.delay=function(d,c,a){var b=Array.prototype.slice.call(arguments,3);setTimeout(function(){c.apply(a,b)},d)}}h.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};h.SINGLE_WHITESPACE=" ";function l(c){var b=this;function a(d,g,f){var a=b.getStyleAsInt(d,g,c.ua.ie);if(a==0){a=d[f];for(var e=3;e<arguments.length;e++)a-=b.getStyleAsInt(d,arguments[e],true)}return a}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(a){return window.parseSelector(a)};this.addClass=function(b,a){if(a)a.className=((a.className||"")==""?"":a.className+" ")+b};this.removeClass=function(b,a){if(a)a.className=a.className.replace(new RegExp("(^|\\s)"+b+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")};this.hasClass=function(a,b){return (new RegExp("(^|\\s)"+a+"(\\s|$)")).test(b.className)};this.hasOneOfClassses=function(b,c){for(var a=0;a<b.length;a++)if(this.hasClass(b[a],c))return true;return false};this.ancestorHasClass=function(a,b){a=a.parentNode;while(a&&a.nodeType==1){if(this.hasClass(b,a))return true;a=a.parentNode}return false};this.create=function(b,a){var c=document.createElementNS?document.createElementNS(l.XHTML_NS,b):document.createElement(b);if(a)c.className=a;return c};this.getComputedStyle=function(b,c){var a;if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(b,null);a=d?d[c]:null}else if(b.currentStyle)a=b.currentStyle[c];return a||""};this.getStyleAsInt=function(d,c,b){var a=this.getComputedStyle(d,c);if(b&&!/px$/.test(a))return 0;return parseInt(a)||0};this.getWidthFromStyle=function(b){return a(b,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(b){return a(b,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(c){var b=c.offsetWidth,a=c.offsetHeight;if(b==0||a==0)for(var e=0;e<c.childNodes.length;e++){var d=c.childNodes[e];if(d.nodeType!=1)continue;b=Math.max(b,d.offsetWidth);a=Math.max(a,d.offsetHeight)}return {width:b,height:a}};this.getViewport=function(){return {width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight}};this.blurElement=function(b){try{b.blur();return}catch(c){}var a=this.create("input");a.style.width="0px";a.style.height="0px";b.parentNode.appendChild(a);a.focus();a.blur();a.parentNode.removeChild(a)}}l.XHTML_NS="http://www.w3.org/1999/xhtml";function g(){var a=navigator.userAgent.toLowerCase(),l=(navigator.product||"").toLowerCase(),d=navigator.platform.toLowerCase();this.parseVersion=g.parseVersion;this.macintosh=/^mac/.test(d);this.windows=/^win/.test(d);this.linux=/^linux/.test(d);this.quicktime=false;this.opera=/opera/.test(a);this.konqueror=/konqueror/.test(a);this.ie=false||true;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(a)&&0>=5.5;this.ieWin=this.windows&&this.ie&&0>=5.1;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.macintosh&&this.ie&&0<5.1;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(a);this.webkit=!this.konqueror&&/applewebkit/.test(a);this.khtml=this.webkit||this.konqueror;this.gecko=!this.khtml&&l=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(a)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(a)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(a)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(a)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(a)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var b,f=false;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(n){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=this.parseVersion("6");b.AllowScriptAccess="always"}catch(o){f=this.flashVersion==this.parseVersion("6")}if(!f)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(!f&&b)this.flashVersion=this.parseVersion((b.GetVariable("$version")||"").replace(/^\D+(\d+)\D+(\d+)\D+(\d+).*/g,"$1.$2.$3"))}else if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var c=navigator.plugins["Shockwave Flash"].description.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),i=c.replace(/^\D*(\d+\.\d+).*$/,"$1");if(/r/.test(c))i+=c.replace(/^.*r(\d*).*$/,".$1");else if(/d/.test(c))i+=".0";this.flashVersion=this.parseVersion(i);var j=false;for(var h=0,k=this.flashVersion>=g.MIN_FLASH_VERSION;k&&h<navigator.mimeTypes.length;h++){var e=navigator.mimeTypes[h];if(e.type!="application/x-shockwave-flash")continue;if(e.enabledPlugin){j=true;if(e.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){k=false;this.quicktime=true}}}if(this.quicktime||!j)this.flashVersion=this.parseVersion("0")}this.flash=this.flashVersion>=g.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows||this.linux&&(this.flashVersion>=this.parseVersion("10")&&(this.gecko&&this.geckoVersion>=this.parseVersion("1.9")||this.opera));this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof document.location=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.61"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&!this.konqueror}g.parseVersion=function(a){return a.replace(/(^|\D)(\d+)(?=\D|$)/g,function(a,d,b){a=d;for(var c=4-b.length;c>=0;c--)a+="0";return a+b})};g.MIN_FLASH_VERSION=g.parseVersion("8");function o(c){this.fix=c.ua.ieWin&&window.location.hash!="";var a;this.cache=function(){a=document.title};function b(){document.title=a}this.restore=function(){if(this.fix)setTimeout(b,0)}}function y(a){var b=null;function i(){try{if(a.ua.ie||document.readyState!="loaded"&&document.readyState!="complete")document.documentElement.doScroll("left")}catch(b){return setTimeout(i,10)}f()}function f(){if(a.useStyleCheck)l();else if(!a.ua.mustCheckStyle)d(null,true)}function l(){b=a.dom.create("div",c.DUMMY);a.dom.getBody().appendChild(b);h()}function h(){if(a.dom.getComputedStyle(b,"marginLeft")=="42px")k();else setTimeout(h,10)}function k(){if(b&&b.parentNode)b.parentNode.removeChild(b);b=null;d(null,true)}function d(b,c){a.initialize(c);if(b&&b.type=="load"){if(document.removeEventListener)document.removeEventListener("DOMContentLoaded",d,false);if(window.removeEventListener)window.removeEventListener("load",d,false)}}function j(){a.prepareClearReferences();if(document.readyState=="interactive"){document.attachEvent("onstop",e);setTimeout(function(){document.detachEvent("onstop",e)},0)}}function e(){document.detachEvent("onstop",e);g()}function g(){a.clearReferences()}this.attach=function(){if(window.addEventListener)window.addEventListener("load",d,false);else window.attachEvent("onload",d);if(!a.useDomLoaded||a.ua.forcePageLoad||a.ua.ie&&window.top!=window)return;if(a.ua.nativeDomLoaded)document.addEventListener("DOMContentLoaded",f,false);else if(a.ua.ie||a.ua.khtml)i()};this.attachUnload=function(){if(!a.ua.ie)return;window.attachEvent("onbeforeunload",j);window.attachEvent("onunload",g)}}var n="sifrFetch";function z(a){var b=false;this.fetchMovies=function(d){if(a.setPrefetchCookie&&(new RegExp(";?"+n+"=true;?")).test(document.cookie))return;try{b=true;c(d)}catch(e){}if(a.setPrefetchCookie)document.cookie=n+"=true;path="+a.cookiePath};this.clear=function(){if(!b)return;try{var d=document.getElementsByTagName("script");for(var c=d.length-1;c>=0;c--){var a=d[c];if(a.type=="sifr/prefetch")a.parentNode.removeChild(a)}}catch(e){}};function c(b){for(var a=0;a<b.length;a++)document.write('<script defer type="sifr/prefetch" src="'+b[a].src+'"></'+"script>")}}function p(c){var e=c.ua.ie,b=e&&c.ua.flashVersion<c.ua.parseVersion("9.0.115"),d={},a={};this.fixFlash=b;this.register=function(f){if(!e)return;var c=f.getAttribute("id");this.cleanup(c,false);a[c]=f;delete d[c];if(b)window[c]=f};this.reset=function(){if(!e)return false;for(var f=0;f<c.replacements.length;f++){var b=c.replacements[f],g=a[b.id];if(!d[b.id]&&(!g.parentNode||g.parentNode.nodeType==11)){b.resetMovie();d[b.id]=true}}return true};this.cleanup=function(e,g){var c=a[e];if(!c)return;for(var f in c)if(typeof c[f]=="function")c[f]=null;a[e]=null;if(b)window[e]=null;if(c.parentNode)if(g&&c.parentNode.nodeType==1){var d=document.createElement("div");d.style.width=c.offsetWidth+"px";d.style.height=c.offsetHeight+"px";c.parentNode.replaceChild(d,c)}else c.parentNode.removeChild(c)};this.prepareClearReferences=function(){if(!b)return;__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}};this.clearReferences=function(){if(b){var d=document.getElementsByTagName("object");for(var c=d.length-1;c>=0;c--)a[d[c].getAttribute("id")]=d[c]}for(var e in a)if(Object.prototype[e]!=a[e])this.cleanup(e,true)}}function m(c,e,d,a,b){this.sIFR=c;this.id=e;this.vars=d;this.movie=null;this.__forceWidth=a;this.__events=b;this.__resizing=0}m.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var a=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(c.FIX_FOCUS,a)?a:a.parentNode},available:function(){var a=this.getFlashElement();return a&&a.parentNode},call:function(b){var a=this.getFlashElement();if(!a[b])return false;return Function.prototype.apply.call(a[b],a,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available())return false;try{this.call.apply(this,arguments)}catch(a){if(this.sIFR.debug)throw a;return false}return true},updateVars:function(b,d){for(var a=0;a<this.vars.length;a++)if(this.vars[a].split("=")[0]==b){this.vars[a]=b+"="+d;break}var c=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),c);this.movie.injectVars(this.movie.html,c)},storeSize:function(b,a){this.movie.setSize(b,a);this.updateVars(b,a)},fireEvent:function(a){if(this.available()&&this.__events[a])this.sIFR.util.delay(0,this.__events[a],this,this)},resizeFlashElement:function(a,b,d){if(!this.available())return;this.__resizing++;var c=this.getFlashElement();c.setAttribute("height",a);this.getAncestor().style.minHeight="";this.updateVars("renderheight",a);this.storeSize("height",a);if(b!==null){c.setAttribute("width",b);this.movie.setSize("width",b)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(d)this.sIFR.util.delay(0,function(){this.attempt("scaleMovie");this.__resizing--},this);else this.__resizing--},blurFlashElement:function(){if(this.available())this.sIFR.dom.blurElement(this.getFlashElement())},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate())},resizeAfterScale:function(){if(this.available()&&this.__resizing==0)this.sIFR.util.delay(0,this.resize,this)},resize:function(){if(!this.available())return;this.__resizing++;var a=this.getFlashElement(),f=a.offsetWidth;if(f==0)return;var j=a.getAttribute("width"),i=a.getAttribute("height"),b=this.getAncestor(),k=this.sIFR.dom.getHeightFromStyle(b);a.style.width="1px";a.style.height="1px";b.style.minHeight=k+"px";var g=this.getAlternate().childNodes,e=[];for(var c=0;c<g.length;c++){var h=g[c].cloneNode(true);e.push(h);b.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(b);for(var c=0;c<e.length;c++)b.removeChild(e[c]);a.style.width=a.style.height=b.style.minHeight="";a.setAttribute("width",this.__forceWidth?d:j);a.setAttribute("height",i);if(sIFR.ua.ie){a.style.display="none";var l=a.offsetHeight;a.style.display=""}if(d!=f){if(this.__forceWidth)this.storeSize("width",d);this.attempt("resize",d)}this.__resizing--},replaceText:function(e,b){var d=this.sIFR.util.escape(e);if(!this.attempt("replaceText",d))return false;this.updateVars("content",d);var a=this.getAlternate();if(b){while(a.firstChild)a.removeChild(a.firstChild);for(var c=0;c<b.length;c++)a.appendChild(b[c])}else try{a.innerHTML=e}catch(f){}return true},changeCSS:function(a){a=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(a)));this.updateVars("css",a);return this.attempt("changeCSS",a)},remove:function(){if(this.movie&&this.available())this.movie.remove(this.getFlashElement(),this.id)}};var s=new function(){this.create=function(c,e,k,f,n,m,i,g,l,j,d){var h=c.ua.ie?a:b;return new h(c,e,k,f,n,m,i,g,["flashvars",l,"wmode",j,"bgcolor",d,"allowScriptAccess","always","quality","best"])};function b(n,p,b,l,k,o,m,j,g){var f=n.dom.create("object",c.FLASH),h=["type","application/x-shockwave-flash","id",k,"name",k,"data",o,"width",m,"height",j];for(var a=0;a<h.length;a+=2)f.setAttribute(h[a],h[a+1]);var e=f;if(l){e=d.create("div",c.FIX_FOCUS);e.appendChild(f)}for(var a=0;a<g.length;a+=2){if(g[a]=="name")continue;var i=d.create("param");i.setAttribute("name",g[a]);i.setAttribute("value",g[a+1]);f.appendChild(i)}b.style.minHeight=j+"px";while(b.firstChild)b.removeChild(b.firstChild);b.appendChild(e);this.html=e.cloneNode(true)}b.prototype={reset:function(a){a.parentNode.replaceChild(this.html.cloneNode(true),a)},remove:function(a){a.parentNode.removeChild(a)},setSize:function(b,a){this.html.setAttribute(b,a)},injectVars:function(d,c){var b=d.getElementsByTagName("param");for(var a=0;a<b.length;a++)if(b[a].getAttribute("name")=="flashvars"){b[a].setAttribute("value",c);break}}};function a(i,g,d,l,k,j,h,f,b){this.dom=i.dom;this.broken=g;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+k+'" width="'+h+'" height="'+f+'" class="'+c.FLASH+'">'+'<param name="movie" value="'+j+'"></param></object>';var e="";for(var a=0;a<b.length;a+=2)e+='<param name="'+b[a]+'" value="'+b[a+1]+'"></param>';this.html=this.html.replace(/(<\/object>)/,e+"$1");d.style.minHeight=f+"px";d.innerHTML=this.html;this.broken.register(d.firstChild)}a.prototype={reset:function(c,a){a=a.cloneNode(true);var b=c.parentNode;b.innerHTML=this.html;this.broken.register(b.firstChild);b.appendChild(a)},remove:function(b,a){this.broken.cleanup(a)},setSize:function(b,a){this.html=this.html.replace(b=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+a+'"')},injectVars:function(b,a){if(b!=this.html)return;this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+a)}}};this.errors=new A(b);var a=this.util=new h(b),d=this.dom=new l(b),i=this.ua=new g(b),e={fragmentIdentifier:new o(b),pageLoad:new y(b),prefetch:new z(b),brokenFlashIE:new p(b)};this.__resetBrokenMovies=e.brokenFlashIE.reset;var j={kwargs:[],replaceAll:function(c){for(var a=0;a<this.kwargs.length;a++)b.replace(this.kwargs[a]);if(!c)this.kwargs=[]}};this.activate=function(){if(!i.supported||!this.isEnabled||this.isActive||!q()||B())return;e.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();e.fragmentIdentifier.cache();e.pageLoad.attachUnload();if(!this.autoInitialize)return;e.pageLoad.attach()};this.setFlashClass=function(){if(this.hasFlashClassSet)return;d.addClass(c.ACTIVE,d.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet)return;d.removeClass(c.ACTIVE,d.getBody());d.removeClass(c.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(a){if(!this.isActive||!this.isEnabled)return;if(k){if(!a)j.replaceAll(false);return}k=true;j.replaceAll(a);if(b.repaintOnResize)if(window.addEventListener)window.addEventListener("resize",f,false);else window.attachEvent("onresize",f);e.prefetch.clear()};this.replace=function(f,M){if(!i.supported)return;if(M)f=a.copyProperties(f,M);if(!k)return j.kwargs.push(f);if(this.onReplacementStart)this.onReplacementStart(f);var I=f.elements||d.querySelectorAll(f.selector);if(I.length==0)return;var hb=w(f.src),h=a.convertCssArg(f.css),bb=u(f.filters),E=f.forceSingleLine===true,Z=f.preventWrap===true&&!E,G=E||(f.fitExactly==null?this.fitExactly:f.fitExactly)===true,O=G||(f.forceWidth==null?this.forceWidth:f.forceWidth)===true,gb=f.ratios||[],ab=f.pixelFont===true,P=parseInt(f.tuneHeight)||0,eb=!!f.onRelease||!!f.onRollOver||!!f.onRollOut;if(G)a.extractFromCss(h,".sIFR-root","text-align",true);var y=a.extractFromCss(h,".sIFR-root","font-size",true)||"0",C=a.extractFromCss(h,".sIFR-root","background-color",true)||"#FFFFFF",cb=a.extractFromCss(h,".sIFR-root","kerning",true)||"",z=a.extractFromCss(h,".sIFR-root","opacity",true)||"100",db=a.extractFromCss(h,".sIFR-root","cursor",true)||"default",S=parseInt(a.extractFromCss(h,".sIFR-root","leading"))||0,Y=f.gridFitType||a.extractFromCss(h,".sIFR-root","text-align")=="right"?"subpixel":"pixel",V=this.forceTextTransform===false?"none":a.extractFromCss(h,".sIFR-root","text-transform",true)||"none";y=/^\d+(px)?$/.test(y)?parseInt(y):0;z=parseFloat(z)<1?100*parseFloat(z):z;var Q=f.modifyCss?"":a.cssToString(h),n=f.wmode||"";if(!n)if(f.transparent)n="transparent";else if(f.opaque)n="opaque";if(n=="transparent")if(!i.transparencySupport)n="opaque";else C="transparent";else if(C=="transparent")C="#FFFFFF";for(var J=0;J<I.length;J++){var g=I[J];if(d.hasOneOfClassses(c.IGNORE_CLASSES,g)||d.ancestorHasClass(g,c.ALTERNATE))continue;var N=d.getDimensions(g),fb=N.height,D=N.width,R=d.getComputedStyle(g,"display");if(!fb||!D||!R||R=="none")continue;D=d.getWidthFromStyle(g);var o,A;if(!y){var L=v(g);o=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,L.fontSize));if(ab)o=Math.max(8,8*Math.round(o/8));A=L.lines}else{o=y;A=1}var H=d.create("span",c.ALTERNATE),l=g.cloneNode(true);g.parentNode.appendChild(l);for(var K=0,ib=l.childNodes.length;K<ib;K++){var T=l.childNodes[K];if(!/^(style|script)$/i.test(T.nodeName))H.appendChild(T.cloneNode(true))}if(f.modifyContent)f.modifyContent(l,f.selector);if(f.modifyCss)Q=f.modifyCss(h,l,f.selector);var p=t(l,V,f.uriEncode);l.parentNode.removeChild(l);if(f.modifyContentString)p.text=f.modifyContentString(p.text,f.selector);if(p.text=="")continue;var F=Math.round(A*x(o,gb)*o)+this.FLASH_PADDING_BOTTOM+P;if(A>1&&S)F+=Math.round((A-1)*S);var X=O?D:"100%",B="sIFR_replacement_"+r++,U=["id="+B,"content="+a.escape(p.text),"width="+D,"renderheight="+F,"link="+a.escape(p.primaryLink.href||""),"target="+a.escape(p.primaryLink.target||""),"size="+o,"css="+a.escape(Q),"cursor="+db,"tunewidth="+(f.tuneWidth||0),"tuneheight="+P,"offsetleft="+(f.offsetLeft||""),"offsettop="+(f.offsetTop||"0"),"fitexactly="+G,"preventwrap="+Z,"forcesingleline="+E,"antialiastype="+(f.antiAliasType||""),"thickness="+(f.thickness||""),"sharpness="+(f.sharpness||""),"kerning="+cb,"gridfittype="+Y,"flashfilters="+bb,"opacity="+z,"blendmode="+(f.blendMode||""),"selectable="+(f.selectable==null||n!=""&&!sIFR.ua.macintosh&&sIFR.ua.gecko&&sIFR.ua.geckoVersion>=sIFR.ua.parseVersion("1.9")?"true":f.selectable===true),"fixhover="+(this.fixHover===true),"events="+eb,"delayrun="+e.brokenFlashIE.fixFlash,"version="+this.VERSION],W=a.encodeVars(U),q=new m(b,B,U,O,{onReplacement:f.onReplacement,onRollOver:f.onRollOver,onRollOut:f.onRollOut,onRelease:f.onRelease});q.movie=s.create(sIFR,e.brokenFlashIE,g,i.fixFocus&&f.fixFocus,B,hb,X,F,W,n,C);this.replacements.push(q);this.replacements[B]=q;if(f.selector)if(!this.replacements[f.selector])this.replacements[f.selector]=[q];else this.replacements[f.selector].push(q);H.setAttribute("id",B+"_alternate");g.appendChild(H);d.addClass(c.REPLACED,g)}e.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(c){for(var a=0;a<b.replacements.length;a++)if(b.replacements[a].id==c.getAttribute("id"))return b.replacements[a]};this.redraw=function(){for(var a=0;a<b.replacements.length;a++)b.replacements[a].resetMovie()};this.prepareClearReferences=function(){e.brokenFlashIE.prepareClearReferences()};this.clearReferences=function(){e.brokenFlashIE.clearReferences();e=null;j=null;delete b.replacements};function q(){if(b.domains.length==0)return true;var d=a.domain();for(var c=0;c<b.domains.length;c++)if(a.domainMatches(d,b.domains[c]))return true;return false}function B(){return false;if(document.location.protocol=="file:"){if(b.debug)b.errors.fire("isFile");return true}return false}function w(a){if(i.ie&&a.charAt(0)=="/")a=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+a;return a}function x(c,a){for(var b=0;b<a.length;b+=2)if(c<=a[b])return a[b+1];return a[a.length-1]||1}function u(e){var f=[];for(var b in e){if(e[b]==Object.prototype[b])continue;var d=e[b];b=[b.replace(/filter/i,"")+"Filter"];for(var c in d){if(d[c]==Object.prototype[c])continue;b.push(c+":"+a.escape(a.toJson(d[c],a.toHexString)))}f.push(b.join(","))}return a.escape(f.join(";"))}function f(){var c=f.viewport,a=d.getViewport();if(c&&a.width==c.width&&a.height==c.height)return;f.viewport=a;if(b.replacements.length==0)return;if(f.timer)clearTimeout(f.timer);f.timer=setTimeout(function(){delete f.timer;for(var a=0;a<b.replacements.length;a++)b.replacements[a].resize()},200)}function v(a){var b=d.getComputedStyle(a,"fontSize"),e=b.indexOf("px")==-1,f=a.innerHTML;if(e)a.innerHTML="X";a.style.paddingTop=a.style.paddingBottom=a.style.borderTopWidth=a.style.borderBottomWidth="0px";a.style.lineHeight="2em";a.style.display="block";b=e?a.offsetHeight/2:parseInt(b,10);if(e)a.innerHTML=f;var c=Math.round(a.offsetHeight/(2*b));a.style.paddingTop=a.style.paddingBottom=a.style.borderTopWidth=a.style.borderBottomWidth=a.style.lineHeight=a.style.display="";if(isNaN(c)||!isFinite(c)||c==0)c=1;return {fontSize:b,lines:c}}function t(s,r,m){m=m||a.uriEncode;var i=[],g=[],k=null,f=s.childNodes,n=false,l=false,e=0;while(e<f.length){var b=f[e];if(b.nodeType==3){var j=a.textTransform(r,a.normalize(b.nodeValue)).replace(/</g,"&lt;");if(n&&l)j=j.replace(/^\s+/,"");g.push(j);n=/\s$/.test(j);l=false}if(b.nodeType==1&&!/^(style|script)$/i.test(b.nodeName)){var h=[],o=b.nodeName.toLowerCase(),d=b.className||"";if(/\s+/.test(d))if(d.indexOf(c.CLASS)>-1)d=d.match("(\\s|^)"+c.CLASS+"-([^\\s$]*)(\\s|$)")[2];else d=d.match(/^([^\s]+)/)[1];if(d!="")h.push('class="'+d+'"');if(o=="a"){var q=m(b.getAttribute("href")||""),p=b.getAttribute("target")||"";h.push('href="'+q+'"','target="'+p+'"');if(!k)k={href:q,target:p}}g.push("<"+o+(h.length>0?" ":"")+h.join(" ")+">");l=true;if(b.hasChildNodes()){i.push(e);e=0;f=b.childNodes;continue}else if(!/^(br|img)$/i.test(b.nodeName))g.push("</",b.nodeName.toLowerCase(),">")}if(i.length>0&&!b.nextSibling)do{e=i.pop();f=b.parentNode.parentNode.childNodes;b=f[e];if(b)g.push("</",b.nodeName.toLowerCase(),">")}while(e==f.length-1&&i.length>0);e++}return {text:g.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}},parseSelector=function(){var j=/\s*,\s*/,h=/\s*([\s>+~(),]|^|$)\s*/g,g=/([\s>+~,]|[^(]\+|^)([#.:@])/g,d=/(^|\))[^\s>+~]/g,f=/(\)|^)/,m=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function a(i,f){f=f||document.documentElement;var h=i.split(j),d=[];for(var g=0;g<h.length;g++){var e=[f],a=k(h[g]);for(var b=0;b<a.length;){var n=a[b++],m=a[b++],c="";if(a[b]=="("){while(a[b++]!=")"&&b<a.length)c+=a[b];c=c.slice(0,-1)}e=l(e,n,m,c)}d=d.concat(e)}return d}function k(a){var b=a.replace(h,"$1").replace(g,"$1*$2").replace(d,e);return b.match(m)||[]}function e(a){return a.replace(f,"$1 ")}function l(d,b,c,e){return a.selectors[b]?a.selectors[b](d,c,e):[]}var c={toArray:function(b){var c=[];for(var a=0;a<b.length;a++)c.push(b[a]);return c}},b={isTag:function(b,a){return a=="*"||a.toLowerCase()==b.nodeName.toLowerCase()},previousSiblingElement:function(a){do a=a.previousSibling;while(a&&a.nodeType!=1);return a},nextSiblingElement:function(a){do a=a.nextSibling;while(a&&a.nodeType!=1);return a},hasClass:function(a,b){return (b.className||"").match("(^|\\s)"+a+"(\\s|$)")},getByTag:function(b,a){return a.getElementsByTagName(b)}},i={"#":function(b,c){for(var a=0;a<b.length;a++)if(b[a].getAttribute("id")==c)return [b[a]];return []}," ":function(e,f){var a=[];for(var d=0;d<e.length;d++)a=a.concat(c.toArray(b.getByTag(f,e[d])));return a},">":function(g,h){var f=[];for(var d=0,c;d<g.length;d++){c=g[d];for(var e=0,a;e<c.childNodes.length;e++){a=c.childNodes[e];if(a.nodeType==1&&b.isTag(a,h))f.push(a)}}return f},".":function(e,f){var d=[];for(var c=0,a;c<e.length;c++){a=e[c];if(b.hasClass([f],a))d.push(a)}return d},":":function(c,b,d){return a.pseudoClasses[b]?a.pseudoClasses[b](c,d):[]}};a.selectors=i;a.pseudoClasses={};a.util=c;a.dom=b;return a}()
