﻿var sIFR=new function(){var b=this,c={ACTIVE:"sIFR-active",UNLOADING:"sIFR-unloading",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=5;this.VERSION="405";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=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var t=0,k=false;function B(){}function g(){function a(a){return a.toLocaleUpperCase()}this.normalize=function(a){return a.replace(/\n|\r|\xA0/g,g.SINGLE_WHITESPACE).replace(/\s+/g,g.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":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 f=0;f<h.length;f++){var b=h[f].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 e=0;e<g.length;e++){var d=g[e].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 b=[];for(var d in f){var c=f[d];if(c==Object.prototype[d])continue;b.push(d,"{");for(var a in c){if(c[a]==Object.prototype[a])continue;var e=c[a];if(g.UNIT_REMOVAL_PROPERTIES[a])e=parseInt(e,10);b.push(a,":",e,";")}b.push("}")}return b.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(b,d,c){var a=Array.prototype.slice.call(arguments,3);setTimeout(function(){d.apply(c,a)},b)}}g.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};g.SINGLE_WHITESPACE=" ";function l(c){var b=this;function a(e,g,f){var a=b.getStyleAsInt(e,g,c.ua.ie);if(a==0){a=e[f];for(var d=3;d<arguments.length;d++)a-=b.getStyleAsInt(e,arguments[d],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(a,b){var c=document.createElementNS?document.createElementNS(l.XHTML_NS,a):document.createElement(a);if(b)c.className=b;return c};this.getComputedStyle=function(b,d){var a;if(document.defaultView&&document.defaultView.getComputedStyle){var c=document.defaultView.getComputedStyle(b,null);a=c?c[d]:null}else if(b.currentStyle)a=b.currentStyle[d];return a||""};this.getStyleAsInt=function(c,d,b){var a=this.getComputedStyle(c,d);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 d=0;d<c.childNodes.length;d++){var e=c.childNodes[d];if(e.nodeType!=1)continue;b=Math.max(b,e.offsetWidth);a=Math.max(a,e.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 i(){var a=navigator.userAgent.toLowerCase(),g=(navigator.product||"").toLowerCase(),f=navigator.platform.toLowerCase();this.parseVersion=function(a){return a.replace(/(^|\D)(\d)(?=\D|$)/g,"$10000$2")};this.macintosh=/^mac/.test(f);this.windows=/^win/.test(f);this.quicktime=false;this.opera=/opera/.test(a);this.konqueror=/konqueror/.test(g);this.ie=false||true;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(a)&&0>=5.5;this.ieWin=this.ie&&this.windows&&0>=5.1;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh&&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.webkit&&g=="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,d=false;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(j){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;b.AllowScriptAccess="always"}catch(k){d=this.flashVersion==6}if(!d)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(k){}}if(!d&&b)this.flashVersion=parseFloat(/([\d,?]+)/.exec(b.GetVariable("$version"))[1].replace(/,/g,"."))}else if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(navigator.plugins["Shockwave Flash"].description)[1]);var c=0;while(this.flashVersion>=i.MIN_FLASH_VERSION&&c<navigator.mimeTypes.length){var e=navigator.mimeTypes[c];if(e.type=="application/x-shockwave-flash"&&e.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}c++}}this.flash=this.flashVersion>=i.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.requiresPrefetch=this.ieWin||this.khtml;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.50"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&!this.konqueror}i.MIN_FLASH_VERSION=8;function r(b){this.fix=b.ua.ieWin&&window.location.hash!="";var a;this.cache=function(){a=document.title};function c(){document.title=a}this.restore=function(){if(this.fix)setTimeout(c,0)}}function x(a){var b=null;function g(){try{if(a.ua.ie||document.readyState!="loaded"&&document.readyState!="complete")document.documentElement.doScroll("left")}catch(b){return setTimeout(g,10)}e()}function e(){if(a.useStyleCheck)h();else if(!a.ua.mustCheckStyle)d(null,true)}function h(){b=a.dom.create("div",c.DUMMY);a.dom.getBody().appendChild(b);f()}function f(){if(a.dom.getComputedStyle(b,"marginLeft")=="42px")i();else setTimeout(f,10)}function i(){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)}}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",e,false);else if(a.ua.ie||a.ua.khtml)g()}}var n="sifrFetch";function v(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.debug)throw 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 a=d.length-1;a>=0;a--){var c=d[a];if(c.type=="sifr/prefetch")c.parentNode.removeChild(c)}}catch(e){}};function c(b){for(var a=0;a<b.length;a++)document.write('<script defer type="sifr/prefetch" src="'+b[a].src+('"></sc'+"ript>"))}}function A(b){var a={};function c(b,a,c){return b+","+a+","+c}this.reset=function(i,m,h){var e=a[c(i,m,h)];for(var f=0;!e&&f<b.replacements.length;f++){var d=b.replacements[f],k=d.getFlashElement(),l=k.getAttribute("width"),g=k.getAttribute("height");if(l==i&&g==m){var j=d.call("getAmnesiacId");if(j==h)e=d;else a[c(l,g,j)]=d}}if(e){e.resetMovie();return true}return false}}function m(b,e,d,a,c){this.sIFR=b;this.id=e;this.vars=d;this.movie=null;this.__forceWidth=a;this.__events=c;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();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(a,b){this.movie.setSize(a,b);this.updateVars(a,b)},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.updateVars("renderheight",a);this.storeSize("height",a);if(b!==null){c.setAttribute("width",b);this.storeSize("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(),g=a.offsetWidth;if(g==0)return;var i=a.getAttribute("width"),j=a.getAttribute("height"),c=this.getAncestor(),k=this.sIFR.dom.getHeightFromStyle(c);a.style.width="1px";a.style.height="1px";c.style.minHeight=k+"px";var f=this.getAlternate().childNodes,e=[];for(var b=0;b<f.length;b++){var h=f[b].cloneNode(true);e.push(h);c.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(c);for(var b=0;b<e.length;b++)c.removeChild(e[b]);a.style.width=a.style.height=c.style.minHeight="";a.setAttribute("width",this.__forceWidth?d:i);a.setAttribute("height",j);if(sIFR.ua.ie){a.style.display="none";var l=a.offsetHeight;a.style.display=""}if(d!=g){if(this.__forceWidth)this.storeSize("width",d);this.attempt("resize",d)}this.__resizing--},replaceText:function(e,c){var d=this.sIFR.util.escape(e);if(!this.attempt("replaceText",d))return false;this.updateVars("content",d);var a=this.getAlternate();if(c){while(a.firstChild)a.removeChild(a.firstChild);for(var b=0;b<c.length;b++)a.appendChild(c[b])}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)}};var z=new function(){this.create=function(c,i,h,e,d,f,m,k,g,l){var j=c.ua.ie?b:a;return new j(c,i,h,e,d,f,m,["flashvars",k,"wmode",g,"bgcolor",l,"allowScriptAccess","always","quality","best"])};function a(o,e,m,j,k,l,n,g){var f=o.dom.create("object",c.FLASH),i=["type","application/x-shockwave-flash","id",j,"name",j,"data",k,"width",l,"height",n];for(var a=0;a<i.length;a+=2)f.setAttribute(i[a],i[a+1]);var b=f;if(m){b=d.create("div",c.FIX_FOCUS);b.appendChild(f)}for(var a=0;a<g.length;a+=2){if(g[a]=="name")continue;var h=d.create("param");h.setAttribute("name",g[a]);h.setAttribute("value",g[a+1]);f.appendChild(h)}while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(b);this.html=b.cloneNode(true)}a.prototype={reset:function(a){a.parentNode.replaceChild(this.html.cloneNode(true),a)},setSize:function(a,b){this.html.setAttribute(a,b)},injectVars:function(c,d){var b=c.getElementsByTagName("param");for(var a=0;a<b.length;a++)if(b[a].getAttribute("name")=="flashvars"){b[a].setAttribute("value",d);break}}};function b(j,h,k,f,e,g,i,b){this.dom=j.dom;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+i+'" class="'+c.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var d="";for(var a=0;a<b.length;a+=2)d+='<param name="'+b[a]+'" value="'+b[a+1]+'"></param>';this.html=this.html.replace(/(<\/object>)/,d+"$1");h.innerHTML=this.html}b.prototype={reset:function(c,a){a=a.cloneNode(true);var b=c.parentNode;b.innerHTML=this.html;b.appendChild(a)},setSize:function(a,b){this.html=this.html.replace(a=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+b+'"')},injectVars:function(a,b){if(a!=this.html)return;this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+b)}}};this.errors=new B(b);var a=this.util=new g(b),d=this.dom=new l(b),e=this.ua=new i(b),h={fragmentIdentifier:new r(b),pageLoad:new x(b),prefetch:new v(b),amnesia:new A(b)};this.__resetAmnesicMovies=h.amnesia.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(!e.supported||!this.isEnabled||this.isActive||!q()||o())return;if(e.requiresPrefetch)h.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();h.fragmentIdentifier.cache();if(!this.autoInitialize)return;h.pageLoad.attach();if(e.ie)window.attachEvent("onunload",function(){d.addClass(c.UNLOADING,document.documentElement)})};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);h.prefetch.clear()};this.replace=function(f,T){if(!e.supported)return;if(T)f=a.copyProperties(f,T);if(!k)return j.kwargs.push(f);if(this.onReplacementStart)this.onReplacementStart(f);var E=f.elements||d.querySelectorAll(f.selector);if(E.length==0)return;var fb=u(f.src),i=a.convertCssArg(f.css),eb=p(f.filters),F=f.forceSingleLine===true,Y=f.preventWrap===true&&!F,J=F||(f.fitExactly==null?this.fitExactly:f.fitExactly)===true,L=J||(f.forceWidth==null?this.forceWidth:f.forceWidth)===true,db=f.ratios||[],W=f.pixelFont===true,S=parseInt(f.tuneHeight)||0,hb=!!f.onRelease||!!f.onRollOver||!!f.onRollOut;if(J)a.extractFromCss(i,".sIFR-root","text-align",true);var B=a.extractFromCss(i,".sIFR-root","font-size",true)||"0",R=a.extractFromCss(i,".sIFR-root","background-color",true)||"#FFFFFF",cb=a.extractFromCss(i,".sIFR-root","kerning",true)||"",x=a.extractFromCss(i,".sIFR-root","opacity",true)||"100",bb=a.extractFromCss(i,".sIFR-root","cursor",true)||"default",P=parseInt(a.extractFromCss(i,".sIFR-root","leading"))||0,X=f.gridFitType||a.extractFromCss(i,".sIFR-root","text-align")=="right"?"subpixel":"pixel",ab=this.forceTextTransform===false?"none":a.extractFromCss(i,".sIFR-root","text-transform",true)||"none";B=/^\d+(px)?$/.test(B)?parseInt(B):0;x=parseFloat(x)<1?100*parseFloat(x):x;var K=f.modifyCss?"":a.cssToString(i),q=f.wmode||"";if(!q)if(f.transparent)q="transparent";else if(f.opaque)q="opaque";if(q=="transparent")if(!e.transparencySupport)q="opaque";else R="transparent";for(var H=0;H<E.length;H++){var g=E[H];if(d.hasOneOfClassses(c.IGNORE_CLASSES,g)||d.ancestorHasClass(g,c.ALTERNATE))continue;var O=d.getDimensions(g),D=O.height,C=O.width,U=d.getComputedStyle(g,"display");if(!D||!C||!U||U=="none")continue;C=d.getWidthFromStyle(g);var o,l;if(!B){var N=s(g);o=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,N.fontSize));if(W)o=Math.max(8,8*Math.round(o/8));l=N.lines;if(isNaN(l)||!isFinite(l)||l==0)l=1;if(l>1&&P)D+=Math.round((l-1)*P)}else{o=B;l=1}var I=d.create("span",c.ALTERNATE),n=g.cloneNode(true);g.parentNode.appendChild(n);for(var G=0,Z=n.childNodes.length;G<Z;G++)I.appendChild(n.childNodes[G].cloneNode(true));if(f.modifyContent)f.modifyContent(n,f.selector);if(f.modifyCss)K=f.modifyCss(i,n,f.selector);var r=w(n,ab,f.uriEncode);n.parentNode.removeChild(n);if(f.modifyContentString)r.text=f.modifyContentString(r.text,f.selector);if(r.text=="")continue;D=Math.round(l*o);var M=Math.round(l*y(o,db)*o)+this.FLASH_PADDING_BOTTOM+S,V=L?C:"100%",v="sIFR_replacement_"+t++,Q=["id="+v,"content="+a.escape(r.text),"width="+C,"height="+D,"renderheight="+M,"link="+a.escape(r.primaryLink.href||""),"target="+a.escape(r.primaryLink.target||""),"size="+o,"css="+a.escape(K),"cursor="+bb,"tunewidth="+(f.tuneWidth||0),"tuneheight="+S,"offsetleft="+(f.offsetLeft||""),"offsettop="+(f.offsetTop||""),"fitexactly="+J,"preventwrap="+Y,"forcesingleline="+F,"antialiastype="+(f.antiAliasType||""),"thickness="+(f.thickness||""),"sharpness="+(f.sharpness||""),"kerning="+cb,"gridfittype="+X,"flashfilters="+eb,"opacity="+x,"blendmode="+(f.blendMode||""),"selectable="+(f.selectable==null?"true":f.selectable===true),"fixhover="+(this.fixHover===true),"events="+hb,"version="+this.VERSION],gb=a.encodeVars(Q),A=new m(b,v,Q,L,{onReplacement:f.onReplacement,onRollOver:f.onRollOver,onRollOut:f.onRollOut,onRelease:f.onRelease});A.movie=z.create(sIFR,g,e.fixFocus&&f.fixFocus,v,fb,V,M,gb,q,R);this.replacements.push(A);this.replacements[v]=A;if(f.selector)if(!this.replacements[f.selector])this.replacements[f.selector]=[A];else this.replacements[f.selector].push(A);I.setAttribute("id",v+"_alternate");g.appendChild(I);d.addClass(c.REPLACED,g)}h.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()};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 o(){if(document.location.protocol=="file:"){if(b.debug)b.errors.fire("isFile");return true}return false}function u(a){if(e.ie&&a.charAt(0)=="/")a=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+a;return a}function y(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 p(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 s(a){var b,i;if(!e.ie){b=d.getStyleAsInt(a,"lineHeight");i=Math.floor(d.getStyleAsInt(a,"height")/b)}else if(e.ie){var b=d.getComputedStyle(a,"fontSize");if(b.indexOf("px")>0)b=parseInt(b);else{var j=a.innerHTML;a.style.visibility="visible";a.style.overflow="visible";a.style.position="static";a.style.zoom="normal";a.style.writingMode="lr-tb";a.style.width=a.style.height="auto";a.style.maxWidth=a.style.maxHeight=a.style.styleFloat="none";var g=a,h=a.currentStyle.hasLayout;if(h){a.innerHTML='<div class="'+c.LAYOUT+'">X<br>X<br>X</div>';g=a.firstChild}else a.innerHTML="X<br>X<br>X";var f=g.getClientRects();b=f[1].bottom-f[1].top;b=Math.ceil(b*.8);if(h){a.innerHTML='<div class="'+c.LAYOUT+'">'+j+"</div>";g=a.firstChild}else a.innerHTML=j;f=g.getClientRects();i=f.length;if(h)a.innerHTML=j;a.style.visibility=a.style.width=a.style.height=a.style.maxWidth=a.style.maxHeight=a.style.overflow=a.style.styleFloat=a.style.position=a.style.zoom=a.style.writingMode=""}}return {fontSize:b,lines:i}}function w(r,s,m){m=m||a.uriEncode;var i=[],g=[],k=null,f=r.childNodes,p=false,l=false,d=0;while(d<f.length){var b=f[d];if(b.nodeType==3){var j=a.textTransform(s,a.normalize(b.nodeValue)).replace(/</g,"&lt;");if(p&&l)j=j.replace(/^\s+/,"");g.push(j);p=/\s$/.test(j);l=false}if(b.nodeType==1&&!/^(style|script)$/i.test(b.nodeName)){var h=[],q=b.nodeName.toLowerCase(),e=b.className||"";if(/\s+/.test(e))if(e.indexOf(c.CLASS)>-1)e=e.match("(\\s|^)"+c.CLASS+"-([^\\s$]*)(\\s|$)")[2];else e=e.match(/^([^\s]+)/)[1];if(e!="")h.push('class="'+e+'"');if(q=="a"){var n=m(b.getAttribute("href")||""),o=b.getAttribute("target")||"";h.push('href="'+n+'"','target="'+o+'"');if(!k)k={href:n,target:o}}g.push("<"+q+(h.length>0?" ":"")+h.join(" ")+">");l=true;if(b.hasChildNodes()){i.push(d);d=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{d=i.pop();f=b.parentNode.parentNode.childNodes;b=f[d];if(b)g.push("</",b.nodeName.toLowerCase(),">")}while(d==f.length-1&&i.length>0);d++}return {text:g.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}},parseSelector=function(){var e=/\s*,\s*/,d=/\s*([\s>+~(),]|^|$)\s*/g,k=/([\s>+~,]|[^(]\+|^)([#.:@])/g,f=/^[^\s>+~]/,j=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function a(n,f){f=f||document.documentElement;var k=n.split(e),j=[];for(var i=0;i<k.length;i++){var d=[f],b=g(k[i]);for(var a=0;a<b.length;){var m=b[a++],l=b[a++],c="";if(b[a]=="("){while(b[a++]!=")"&&a<b.length)c+=b[a];c=c.slice(0,-1)}d=h(d,m,l,c)}j=j.concat(d)}return j}function g(b){var a=b.replace(d,"$1").replace(k,"$1*$2");if(f.test(a))a=" "+a;return a.match(j)||[]}function h(c,b,e,d){return a.selectors[b]?a.selectors[b](c,e,d):[]}var c={toArray:function(c){var b=[];for(var a=0;a<c.length;a++)b.push(c[a]);return b}},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(a,b){return b.getElementsByTagName(a)}},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,e;d<g.length;d++){e=g[d];for(var c=0,a;c<e.childNodes.length;c++){a=e.childNodes[c];if(a.nodeType==1&&b.isTag(a,h))f.push(a)}}return f},".":function(e,f){var d=[];for(var a=0,c;a<e.length;a++){c=e[a];if(b.hasClass([f],c))d.push(c)}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}()