var sIFR=new function(){ var SIFR=this;var CSS_ACTIVE="sIFR-active";var CSS_UNLOADING="sIFR-unloading";var CSS_REPLACED="sIFR-replaced";var CSS_FLASH="sIFR-flash";var CSS_IGNORE="sIFR-ignore";var CSS_ALTERNATE="sIFR-alternate";var CSS_CLASS="sIFR-class";var CSS_LAYOUT="sIFR-layout";var CSS_FIX_FOCUS="sIFR-fixfocus";var CSS_DUMMY="sIFR-dummy";var CSS_ZOOM_DETECT="sIFR-zoomdetect";var MIN_FONT_SIZE=6;var MAX_FONT_SIZE=126;var MIN_FLASH_VERSION=8;var PREFETCH_COOKIE="SIFR-PREFETCHED";var DEFAULT_RATIOS=[];var FLASH_PADDING_BOTTOM=5;var VERSION="382";this.isActive=false;this.isEnabled=true;this.preserveSingleWhitespace=false;this.fixWrap=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.fromLocal=false;this.forceClear=false;this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.callbacks=[];var elementCount=0;var hasPrefetched=false,isInitialized=false;function DomUtil(){var A="http://www.w3.org/1999/xhtml";this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(C){return window.parseSelector(C)};this.addClass=function(C,D){if(D){D.className=((D.className||"")==""?"":D.className+" ")+C}};this.removeClass=function(C,D){if(D){D.className=D.className.replace(new RegExp("(^|\\s)"+C+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(C,D){return new RegExp("(^|\\s)"+C+"(\\s|$)").test(D.className)};this.hasOneOfClassses=function(E,D){for(var C=0;C"},params:function(D){var E="";for(var C=1;C"}return D.replace(/(<\/object>)/,E+"$1")},insert:function(D,C){D.innerHTML=C;return C}},other:{object:function(E,J,I,F,C){var H=B.create("object");var D=["type","application/x-shockwave-flash","id",J,"name",J,"data",I,"width",F,"height",C];while(D.length){H.setAttribute(D.shift(),D.shift())}H.className=CSS_FLASH;if(!E){return{root:H,obj:H}}var G=B.create("div");G.className=CSS_FIX_FOCUS;G.appendChild(H);return{root:G,obj:H}},params:function(D){for(var C=1;C -1;this.windows=ua.indexOf('windows') > -1;this.quicktime=false;this.opera=ua.indexOf('opera') > -1;this.konqueror=product.indexOf('konqueror') > -1;this.ie=false/*@cc_on || true @*/;this.ieSupported=this.ie && !/ppc|smartphone|iemobile|msie\s5\.5/.test(ua)/*@cc_on && @_jscript_version >= 5.5 @*/ this.ieWin=this.ie && this.windows/*@cc_on && @_jscript_version >= 5.1 @*/;this.windows=this.windows && (!this.ie || this.ieWin);this.ieMac=this.ie && this.macintosh/*@cc_on && @_jscript_version < 5.1 @*/;this.macintosh=this.macintosh && (!this.ie || this.ieMac);this.safari=ua.indexOf('safari') > -1;this.webkit=ua.indexOf('applewebkit') > -1 && !this.konqueror;this.khtml=this.webkit || this.konqueror;this.gecko=!this.webkit && product == 'gecko';this.ieVersion=this.ie&& /.*msie\s(\d\.\d)/.exec(ua) ? parseFloat(RegExp.$1) : 0;this.operaVersion=this.opera&& /.*opera(\s|\/)(\d+\.\d+)/.exec(ua) ? parseFloat(RegExp.$2) : 0;this.webkitVersion=this.webkit&& /.*applewebkit\/(\d+).*/.exec(ua) ? parseFloat(RegExp.$1) : 0;this.geckoBuildDate=this.gecko&& /.*gecko\/(\d{8}).*/.exec(ua) ? parseFloat(RegExp.$1) : 0;this.konquerorMajor=this.konqueror&& /.*konqueror\/(\d).*/.exec(ua) ? parseFloat(RegExp.$1) : 0;this.konquerorMinor=this.konqueror&& /.*khtml\/\d\.(\d).*/.exec(ua) ? parseFloat(RegExp.$1) : 0;this.konquerorSmall=this.konqueror&& /.*khtml\/\d\.\d\.(\d).*/.exec(ua) ? parseFloat(RegExp.$1) : 0;this.flashVersion=0;if(this.ieWin){var axo;var stop=false;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;axo.AllowScriptAccess="always"}catch(e){stop=this.flashVersion==6}if(!stop){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}}if(!stop&&axo){this.flashVersion=parseFloat(/([\d,?]+)/.exec(axo.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var flashPlugin=navigator.plugins["Shockwave Flash"];this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(flashPlugin.description)[1]);var i=0;while(this.flashVersion>=MIN_FLASH_VERSION&&i-1){this.flashVersion=0;this.quicktime=true}i++}}}this.flash=this.flashVersion>=MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||document.defaultView&&document.defaultView.getComputedStyle&&(!this.gecko||this.geckoBuildDate>=20030624);this.requiresPrefetch=this.ieWin||this.khtml;this.fixFocus=this.gecko&&this.windows&&this.geckoBuildDate>20061206;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=525||this.konqueror&&this.konquerorMajor>3||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkit<523;this.properDocument=typeof (document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&(!this.opera)&&(!this.webkit||this.webkitVersion>=412)&&(!this.konqueror)&&this.computedStyleSupport&&(!this.gecko||this.geckoBuildDate>20040804)};var ua = this.ua = new UserAgentDetection();function Util(){var B={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};var A=" ";function C(D){return D.toUpperCase()}this.normalize=function(D){if(SIFR.preserveSingleWhitespace){return D.replace(/\s/g,A)}return D.replace(/(\n|\r)+/g,A).replace(/(\s)\s+/g,"$1").replace(/\xA0/,A)};this.textTransform=function(G,H){switch(G){case"uppercase":H=H.toUpperCase();break;case"lowercase":H=H.toLowerCase();break;case"capitalize":var D=H;H=H.replace(/^\w|\s\w/g,C);if(H.indexOf("function capitalize")!=-1){var E=D.replace(/(^|\s)(\w)/g,"$1$1$2$2").split(/^\w|\s\w/g);H="";for(var F=0;F-1){F=F.substr(E+1);var D=G.lastIndexOf(F);if(D>-1&&(D+F.length)==G.length){return true}}return false};this.uriEncode=function(D){return encodeURI(decodeURIComponent(D))}}var util=this.util=new Util();var hacks={};function FragmentIdentifier(){this.fix=true;var A;this.cache=function(){A=document.title};function B(){document.title=A}this.restore=function(){if(this.fix){setTimeout(B,0)}}}hacks.fragmentIdentifier=new FragmentIdentifier();function PageLoad(){var F=null;function A(){if(SIFR.useStyleCheck){C()}else{if(!ua.mustCheckStyle){D(null,true)}}}function C(){F=dom.create("div");F.className=CSS_DUMMY;dom.getBody().appendChild(F);B()}function B(){if(dom.getComputedStyle(F,"marginLeft")=="42px"){E()}else{setTimeout(B,10)}}function E(){if(F&&F.parentNode){F.parentNode.removeChild(F)}F=null;D(null,true)}function D(G,H){SIFR.initialize(H)}this.attach=function(){window.addEvent("load",D);if(!SIFR.useDomLoaded||ua.forcePageLoad||ua.ie&&window.top!=window){return }window.addEvent("domready",A)}}hacks.pageLoad=new PageLoad();this.hacks={fragmentIdentifier:hacks.fragmentIdentifier};function Errors(){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.";this.getSource="sIFR: Could not determine appropriate source"}this.errors=new Errors();function FlashInteractor(D,C,A,B){this.id=D;this.vars=C;this._events=B;this._forceWidth=A;this._firedReplacementEvent=!(B.onReplacement!=null);this._rescale=false;this.html=null}FlashInteractor.prototype.getFlashElement=function(){return document.getElementById(this.id)};FlashInteractor.prototype.available=function(){var A=this.getFlashElement();return A&&A.parentNode};FlashInteractor.prototype.handle=function(F,B){if(!this.available()){return }switch(/(FSCommand\:)?(.+)/.exec(F)[2]){case"init":this._rescale=true;break;case"resize":var E=this.getFlashElement();var D=B.split(/\:|,/);E.setAttribute(D[0],D[1]);this.updateVars("renderheight",D[1]);this.storeSize(D[0],D[1]);if(D.length>2){E.style[D[2]]=D[3]+"px";this.storeSize(D[2],D[3])}if(ua.khtml){var C=E.offsetHeight}if(!this._firedReplacementEvent){this._events.onReplacement(this);this._firedReplacementEvent=true}if(this._rescale){this._rescale=false;var A=this;setTimeout(function(){A.call("scale")},0)}break;case"resetmovie":this.resetMovie();break;case"blur":dom.blurElement(this.getFlashElement());break;case"event":if(this._events[B]){this._events[B](this)}break;default:if(this.debugHandler&&/(FSCommand\:)?debug/.test(F)){this.debugHandler(F,B)}}};FlashInteractor.prototype.call=function(A,C){if(!this.available()){return false}var B=this.getFlashElement();try{B.SetVariable("callbackType",A);B.SetVariable("callbackValue",C);B.SetVariable("callbackTrigger",true)}catch(D){return false}return true};FlashInteractor.prototype.replaceText=function(D,F){var B=util.escape(D);if(this.call("replacetext",B)){this.updateVars("content",B);var C=this.getAlternate();if(F){while(C.firstChild){C.removeChild(C.firstChild)}for(var A=0;A0){this.prefetch.apply(this,arguments)}this.isActive=true;this.setFlashClass();hacks.fragmentIdentifier.fix=ua.ieWin&&hacks.fragmentIdentifier.fix&&window.location.hash!="";if(hacks.fragmentIdentifier.fix){hacks.fragmentIdentifier.cache()}if(!this.autoInitialize){return }hacks.pageLoad.attach();if(ua.ie){window.attachEvent("onunload",function(){dom.addClass(CSS_UNLOADING,document.documentElement)})}};this.setFlashClass=function(){if(this.hasFlashClassSet){return }dom.addClass(CSS_ACTIVE,dom.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return }dom.removeClass(CSS_ACTIVE,dom.getBody());dom.removeClass(CSS_ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(A){if(!this.isActive||!this.isEnabled){return }if(isInitialized){if(!A){replaceKwargsStore.replaceAll(false)}return }isInitialized=true;replaceKwargsStore.replaceAll(A);if(SIFR.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",resize,false)}else{window.attachEvent("onresize",resize)}}clearPrefetch()};function getSource(E){if(typeof (E)!="string"){if(E.src){E=E.src}if(typeof (E)!="string"){var B=[];for(var C in E){if(E[C]!=Object.prototype[C]){B.push(C)}}B.sort().reverse();var A="";var D=-1;while(!A&&++D")}}function prefetchLight(A){for(var B=0;B=0;B--){var C=A[B];if(C.type=="sifr/prefetch"){C.parentNode.removeChild(C)}}}catch(D){}}function getRatio(B,C){for(var A=0;A0){E=parseInt(G)}else{var D=F.innerHTML;F.style.visibility="visible";F.style.overflow="visible";F.style.position="static";F.style.zoom="normal";F.style.writingMode="lr-tb";F.style.width=F.style.height="auto";F.style.maxWidth=F.style.maxHeight=F.style.styleFloat="none";var H=F;var A=F.currentStyle.hasLayout;if(A){F.innerHTML="
X
X
X
";H=F.firstChild}else{F.innerHTML="X
X
X"}var C=H.getClientRects();E=C[1].bottom-C[1].top;E=Math.ceil(E*0.8);if(A){F.innerHTML="
"+D+"
";H=F.firstChild}else{F.innerHTML=D}C=H.getClientRects();B=C.length;if(A){F.innerHTML=D}F.style.visibility=F.style.width=F.style.height=F.style.maxWidth=F.style.maxHeight=F.style.overflow=F.style.styleFloat=F.style.position=F.style.zoom=F.style.writingMode=""}}}return{lineHeight:E,lines:B}}this.replace=function(R,O){if(!ua.supported){return }if(O){R=util.copyProperties(R,O)}if(!isInitialized){return replaceKwargsStore.kwargs.push(R)}if(SIFR.onReplacementStart){SIFR.onReplacementStart(R)}var n=R.elements;if(!n){n=dom.querySelectorAll(R.selector)}if(n.length==0){return }var Q=getSource(R.src);var s=util.convertCssArg(R.css);var P=getFilters(R.filters);var I=(R.forceClear==null)?SIFR.forceClear:R.forceClear;var o=R.forceSingleLine===true;var K=o||((R.fitExactly==null)?SIFR.fitExactly:R.fitExactly);var Y=K||(R.forceWidth==null?SIFR.forceWidth:R.forceWidth);var t=!!(R.preventWrap&&!o);var q=parseInt(util.extractFromCss(s,".sIFR-root","leading"))||0;var N=util.extractFromCss(s,".sIFR-root","font-size",true)||0;var C=util.extractFromCss(s,".sIFR-root","background-color",true)||"#FFFFFF";var H=util.extractFromCss(s,".sIFR-root","kerning",true)||"";var h=R.gridFitType||util.extractFromCss(s,".sIFR-root","text-align")=="right"?"subpixel":"pixel";var E=SIFR.forceTextTransform?util.extractFromCss(s,".sIFR-root","text-transform",true)||"none":"none";var x=util.extractFromCss(s,".sIFR-root","opacity",true)||"100";var F=util.extractFromCss(s,".sIFR-root","cursor",true)||"default";var a=R.pixelFont||false;var M=R.ratios||DEFAULT_RATIOS;var L=parseInt(R.tuneHeight)||0;var T=!!R.onRelease||!!R.onRollOver||!!R.onRollOut;if(parseInt(N).toString()!=N&&N.indexOf("px")==-1){N=0}else{N=parseInt(N)}if(parseFloat(x)<1){x=100*parseFloat(x)}var X="";if(K){util.extractFromCss(s,".sIFR-root","text-align",true)}if(!R.modifyCss){X=util.cssToString(s)}var f=R.wmode||"";if(!f){if(R.transparent){f="transparent"}else{if(R.opaque){f="opaque"}}}if(f=="transparent"){if(!ua.transparencySupport){f="opaque"}else{C="transparent"}}for(var w=0;w1&&q){D+=Math.round((g-1)*q)}}else{Z=N;g=1}D=Math.round(g*Z);if(I&&ua.gecko){d.style.clear=""}var A=dom.create("span");A.className=CSS_ALTERNATE;var y=d.cloneNode(true);d.parentNode.appendChild(y);for(var v=0,u=y.childNodes.length;v-1){K=K.match("(\\s|^)"+CSS_CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{K=K.match(/^([^\s]+)/)[1]}}if(K!=""){F.push("class=\""+K+"\"")}if(M=="a"){var B=N(D.getAttribute("href")||"");var I=D.getAttribute("target")||"";F.push("href=\""+B+"\"","target=\""+I+"\"");if(H.length==0){H=[B,I]}}J.push("<"+M+(F.length>0?" ":"")+F.join(" ")+">");if(D.hasChildNodes()){L.push(G);G=0;C=D.childNodes;continue}else{if(!/^(br|img)$/i.test(D.nodeName)){J.push("")}}}if(L.length>0&&!D.nextSibling){do{G=L.pop();C=D.parentNode.parentNode.childNodes;D=C[G];if(D){J.push("")}}while(G==C.length-1&&L.length>0)}G++}return{text:J.join("").replace(/\n|\r/g,""),primaryLink:H}} }; parseSelector = $$;