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

