/*=:project
  scalable Inman Flash Replacement (sIFR) version 3, revision 378

  =:file
    Copyright: 2006 Mark Wubben.
    Author: Mark Wubben, <http://novemberborn.net/>

  =:history
    * IFR: Shaun Inman
    * sIFR 1: Mike Davidson, Shaun Inman and Tomas Jogin
    * sIFR 2: Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben

  =:license
    This software is licensed and provided under the CC-GNU LGPL.
    See <http://creativecommons.org/licenses/LGPL/2.1/>    
*/

var sIFR=new function(){var _1=this;var _2="sIFR-active";var _3="sIFR-unloading";var _4="sIFR-replaced";var _5="sIFR-flash";var _6="sIFR-ignore";var _7="sIFR-alternate";var _8="sIFR-class";var _9="sIFR-layout";var _a="sIFR-fixfocus";var _b="sIFR-dummy";var _c="sIFR-zoomdetect";var _d=6;var _e=126;var _f=8;var _10="SIFR-PREFETCHED";var _11=[];var _12=5;var _13="378";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 _14=0;var _15=false,_16=false;function DomUtil(){var _17="http://www.w3.org/1999/xhtml";this.getBody=function(){var _18=document.getElementsByTagName("body");if(_18.length==1){return _18[0]}return null};this.addClass=function(_19,_1a){if(_1a){_1a.className=((_1a.className||"")==""?"":_1a.className+" ")+_19}};this.removeClass=function(_1b,_1c){if(_1c){_1c.className=_1c.className.replace(new RegExp("(^|\\s)"+_1b+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(_1d,_1e){return new RegExp("(^|\\s)"+_1d+"(\\s|$)").test(_1e.className)};this.hasOneOfClassses=function(_1f,_20){for(var i=0;i<_1f.length;i++){if(this.hasClass(_1f[i],_20)){return true}}return false};this.create=function(_22){if(document.createElementNS){return document.createElementNS(_17,_22)}return document.createElement(_22)};this.nodeFromHtml=function(_23){var _24=this.create("div");_24.innerHTML=_23;return _24.firstChild};this.getComputedStyle=function(_25,_26){var _27;if(document.defaultView&&document.defaultView.getComputedStyle){var _28=document.defaultView.getComputedStyle(_25,null);_27=_28?_28[_26]:null}else{if(_25.currentStyle){_27=_25.currentStyle[_26]}}return _27||""};this.getStyleAsInt=function(_29,_2a,_2b){var _2c=this.getComputedStyle(_29,_2a);if(_2b&&!/px$/.test(_2c)){return 0}_2c=parseInt(_2c);return isNaN(_2c)?0:_2c};this.getWidthFromStyle=function(_2d){var _2e=this.getStyleAsInt(_2d,"width",ua.ie);if(_2e==0){var _2f=this.getStyleAsInt(_2d,"paddingRight",true);var _30=this.getStyleAsInt(_2d,"paddingLeft",true);var _31=this.getStyleAsInt(_2d,"borderRightWidth",true);var _32=this.getStyleAsInt(_2d,"borderLeftWidth",true);_2e=_2d.offsetWidth-_30-_2f-_32-_31}return _2e};this.getHeightFromStyle=function(_33){var _34=this.getStyleAsInt(_33,"height",ua.ie);if(_34==0){var _35=this.getStyleAsInt(_33,"paddingTop",true);var _36=this.getStyleAsInt(_33,"paddingBottom",true);var _37=this.getStyleAsInt(_33,"borderTopHeight",true);var _38=this.getStyleAsInt(_33,"borderBottomHeight",true);_34=_33.offsetHeight-_36-_35-_38-_37}return _34};this.blurElement=function(_39){if(ua.gecko){_39.blur();return}var _3a=dom.create("input");_3a.style.width="0px";_3a.style.height="0px";_39.parentNode.appendChild(_3a);_3a.focus();_3a.blur();_3a.parentNode.removeChild(_3a)};this.getDimensions=function(_3c){var _3d=_3c.offsetWidth;var _3e=_3c.offsetHeight;if(_3d==0||_3e==0){for(var i=0;i<_3c.childNodes.length;i++){var _40=_3c.childNodes[i];if(_40.nodeType!=1){continue}_3d=Math.max(_3d,_40.offsetWidth);_3e=Math.max(_3e,_40.offsetHeight)}}return {width:_3d,height:_3e}};this.contentIsLink=function(_41){var _42=false;for(var i=0;i<_41.childNodes.length;i++){var _44=_41.childNodes[i];if(_44.nodeType==3&&!_44.nodeValue.match(/^\s*$/)){return false}else{if(_44.nodeType!=1){continue}}var _45=_44.nodeName.toLowerCase()=="a";if(!_45){return false}else{_42=true}}return _42};var dom=this;this.swf={create:function(_46,_47,id,_49,_4a,src,_4c,_4d,_4e){var obj=_46.object(_47,id,src,_49,_4a);return _46.params(obj,"flashvars",_4c,"wmode",_4d,"bgcolor",_4e,"allowScriptAccess","always","quality","best")},ie:{object:function(_50,id,src,_53,_54){return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\""+id+"\" width=\""+_53+"\" height=\""+_54+"\" class=\""+_5+"\">"+"<param name=\"movie\" value=\""+src+"\"></param></object>"+"<scr"+"ipt event=FSCommand(info,args) for="+id+">"+id+"_DoFSCommand(info, args);"+"</"+"script>"},params:function(obj){var _56="";for(var i=1;i<arguments.length;i+=2){_56+="<param name=\""+arguments[i]+"\" value=\""+arguments[i+1]+"\"></param>"}return obj.replace(/(<\/object>)/,_56+"$1")},insert:function(_58,_59){_58.innerHTML=_59;return _59}},other:{object:function(_5a,id,src,_5d,_5e){var obj=dom.create("object");var _60=["type","application/x-shockwave-flash","id",id,"name",id,"data",src,"width",_5d,"height",_5e];while(_60.length){obj.setAttribute(_60.shift(),_60.shift())}obj.className=_5;if(!_5a){return {root:obj,obj:obj}}var _61=dom.create("div");_61.className=_a;_61.appendChild(obj);return {root:_61,obj:obj}},params:function(obj){for(var i=1;i<arguments.length;i+=2){if(arguments[i]=="name"){continue}var _64=dom.create("param");_64.setAttribute("name",arguments[i]);_64.setAttribute("value",arguments[i+1]);obj.obj.appendChild(_64)}return obj.root},insert:function(_65,_66){while(_65.firstChild){_65.removeChild(_65.firstChild)}_65.appendChild(_66);return _66.cloneNode(true)}}}}var dom=this.dom=new DomUtil();function UserAgentDetection(){var ua=navigator.userAgent.toLowerCase();var _69=(navigator.product||"").toLowerCase();this.macintosh=ua.indexOf("mac")>-1;this.windows=ua.indexOf("windows")>-1;this.quicktime=false;this.opera=ua.indexOf("opera")>-1;this.konqueror=_69.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&&_69=="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 _6b=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){_6b=this.flashVersion==6}if(!_6b){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}}if(!_6b&&axo){this.flashVersion=parseFloat(/([\d,?]+)/.exec(axo.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var _6c=navigator.plugins["Shockwave Flash"];this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(_6c.description)[1]);var i=0;while(this.flashVersion>=_f&&i<navigator.mimeTypes.length){var _6e=navigator.mimeTypes[i];if(_6e.type=="application/x-shockwave-flash"&&_6e.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}i++}}}this.flash=this.flashVersion>=_f;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 _70={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};var _71=" ";function capitalize($){return $.toUpperCase()}this.normalize=function(str){if(_1.preserveSingleWhitespace){return str.replace(/\s/g,_71)}return str.replace(/(\n|\r)+/g,_71).replace(/(\s)\s+/g,"$1").replace(/\xA0/,_71)};this.textTransform=function(_74,str){switch(_74){case "uppercase":str=str.toUpperCase();break;case "lowercase":str=str.toLowerCase();break;case "capitalize":var _76=str;str=str.replace(/^\w|\s\w/g,capitalize);if(str.indexOf("function capitalize")!=-1){var _77=_76.replace(/(^|\s)(\w)/g,"$1$1$2$2").split(/^\w|\s\w/g);str="";for(var i=0;i<_77.length;i++){str+=_77[i].charAt(0).toUpperCase()+_77[i].substring(1)}}break}return str};this.toHexString=function(str){if(typeof (str)!="string"||!str.charAt(0)=="#"||str.length!=4&&str.length!=7){return str}str=str.replace(/#/,"");if(str.length==3){str=str.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")}return "0x"+str};this.toJson=function(obj){var _7b="";switch(typeof (obj)){case "string":_7b="\""+obj+"\"";break;case "number":case "boolean":_7b=obj.toString();break;case "object":_7b=[];for(var _7c in obj){if(obj[_7c]==Object.prototype[_7c]){continue}_7b.push("\""+_7c+"\":"+util.toJson(obj[_7c]))}_7b="{"+_7b.join(",")+"}";break}return _7b};this.convertCssArg=function(arg){if(!arg){return {}}if(typeof (arg)=="object"){if(arg.constructor==Array){arg=arg.join("")}else{return arg}}var obj={};var _7f=arg.split("}");for(var i=0;i<_7f.length;i++){var $=_7f[i].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!$||$.length!=3){continue}if(!obj[$[1]]){obj[$[1]]={}}var _82=$[2].split(";");for(var j=0;j<_82.length;j++){var $2=_82[j].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!$2||$2.length!=3){continue}obj[$[1]][$2[1]]=$2[2].replace(/\s+$/,"")}}return obj};this.extractFromCss=function(css,_86,_87,_88){var _89=null;if(css&&css[_86]&&css[_86][_87]){_89=css[_86][_87];if(_88){delete css[_86][_87]}}return _89};this.cssToString=function(arg){var css=[];for(var _8c in arg){var _8d=arg[_8c];if(_8d==Object.prototype[_8c]){continue}css.push(_8c,"{");for(var _8e in _8d){if(_8d[_8e]==Object.prototype[_8e]){continue}var _8f=_8d[_8e];if(_70[_8e]){_8f=parseInt(_8f,10)}css.push(_8e,":",_8f,";")}css.push("}")}return css.join("")};this.escape=function(str){return escape(str).replace(/\+/g,"%2B")};this.copyProperties=function(_91,to){for(var _93 in _91){if(to[_93]===undefined){to[_93]=_91[_93]}}return to};this.domain=function(){var _94="";try{_94=document.domain}catch(e){}return _94};this.domainMatches=function(_95,_96){if(_96=="*"||_96==_95){return true}var _97=_96.lastIndexOf("*");if(_97>-1){_96=_96.substr(_97+1);var _98=_95.lastIndexOf(_96);if(_98>-1&&(_98+_96.length)==_95.length){return true}}return false};this.uriEncode=function(s){return encodeURI(decodeURIComponent(s))}}var _9a=this.util=new Util();var _9b={};function FragmentIdentifier(){this.fix=true;var _9c;this.cache=function(){_9c=document.title};function doFix(){document.title=_9c}this.restore=function(){if(this.fix){setTimeout(doFix,0)}}}_9b.fragmentIdentifier=new FragmentIdentifier();function PageLoad(){var _9d=null;function pollLoad(){try{if(ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(e){return setTimeout(pollLoad,10)}afterDomLoad()}function afterDomLoad(){if(_1.useStyleCheck){checkStyle()}else{if(!ua.mustCheckStyle){fire(null,true)}}}function checkStyle(){_9d=dom.create("div");_9d.className=_b;dom.getBody().appendChild(_9d);pollStyle()}function pollStyle(){if(dom.getComputedStyle(_9d,"marginLeft")=="42px"){afterStyle()}else{setTimeout(pollStyle,10)}}function afterStyle(){if(_9d&&_9d.parentNode){_9d.parentNode.removeChild(_9d)}_9d=null;fire(null,true)}function fire(evt,_9f){_1.initialize(_9f);if(evt&&evt.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",fire,false)}if(window.removeEventListener){window.removeEventListener("load",fire,false)}}}this.attach=function(){if(window.addEventListener){window.addEventListener("load",fire,false)}else{window.attachEvent("onload",fire)}if(!_1.useDomLoaded||ua.forcePageLoad||ua.ie&&window.top!=window){return}if(ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",afterDomLoad,false)}else{if(ua.ie||ua.khtml){pollLoad()}}}}_9b.pageLoad=new PageLoad();this.hacks={fragmentIdentifier:_9b.fragmentIdentifier};function Errors(){}this.errors=new Errors();function FlashInteractor(id,_a1,_a2,_a3){this.id=id;this.vars=_a1;this._events=_a3;this._forceWidth=_a2;this._firedReplacementEvent=!(_a3.onReplacement!=null);this._rescale=false;this.html=null}FlashInteractor.prototype.getFlashElement=function(){return document.getElementById(this.id)};FlashInteractor.prototype.available=function(){var _a4=this.getFlashElement();return _a4&&_a4.parentNode};FlashInteractor.prototype.handle=function(_a5,arg){if(!this.available()){return}switch(/(FSCommand\:)?(.+)/.exec(_a5)[2]){case "init":this._rescale=true;break;case "resize":var _a7=this.getFlashElement();var $=arg.split(/\:|,/);_a7.setAttribute($[0],$[1]);this.updateVars("renderheight",$[1]);if($.length>2){_a7.style[$[2]]=$[3]+"px"}if(ua.khtml){var _a9=_a7.offsetHeight}if(!this._firedReplacementEvent){this._events.onReplacement(this);this._firedReplacementEvent=true}if(this._rescale){this._rescale=false;var cb=this;setTimeout(function(){cb.call("scale")},0)}break;case "resetmovie":this.resetMovie();break;case "blur":dom.blurElement(this.getFlashElement());break;case "event":if(this._events[arg]){this._events[arg](this)}break;default:if(this.debugHandler&&/(FSCommand\:)?debug/.test(_a5)){this.debugHandler(_a5,arg)}}};FlashInteractor.prototype.call=function(_ab,_ac){if(!this.available()){return false}var _ad=this.getFlashElement();try{_ad.SetVariable("callbackType",_ab);_ad.SetVariable("callbackValue",_ac);_ad.SetVariable("callbackTrigger",true)}catch(e){return false}return true};FlashInteractor.prototype.replaceText=function(_ae,_af){var _b0=_9a.escape(_ae);if(this.call("replacetext",_b0)){this.updateVars("content",_b0);var _b1=this.getAlternate();if(_af){while(_b1.firstChild){_b1.removeChild(_b1.firstChild)}for(var i=0;i<_af.length;i++){_b1.appendChild(_af[i])}}else{try{_b1.innerHTML=_ae}catch(e){}}return true}return false};FlashInteractor.prototype.updateVars=function(_b3,_b4){for(var i=0;i<this.vars.length;i++){if(this.vars[i].split("=")[0]==_b3){this.vars[i]=_b3+"="+_b4;break}}if(!ua.ie){this.injectVars(this.getFlashElement());this.injectVars(this.html)}};FlashInteractor.prototype.injectVars=function(_b6){var _b7=_b6.getElementsByTagName("param");for(var i=0;i<_b7.length;i++){if(_b7[i].getAttribute("name")=="flashvars"){_b7[i].setAttribute("value",encodeVars(this.vars));break}}};FlashInteractor.prototype.resetMovie=function(){if(!this.available()){return}var _b9=this.getFlashElement();var _ba=_b9.parentNode;if(ua.ie){this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+encodeVars(this.vars));_ba.replaceChild(dom.nodeFromHtml(this.html),_b9)}else{_ba.replaceChild(this.html.cloneNode(true),_b9)}};FlashInteractor.prototype.resize=function(){if(!this.available()){return}var _bb=this.getFlashElement();var _bc=_bb.offsetWidth;if(_bc==0){return}var _bd=_bb.getAttribute("width");var _be=_bb.getAttribute("height");var _bf=this.getAncestor();var _c0=dom.getHeightFromStyle(_bf);_bb.style.width="0px";_bb.style.height="0px";_bf.style.minHeight=_c0+"px";var _c1=this.getAlternate().childNodes;var _c2=[];for(var i=0;i<_c1.length;i++){var _c4=_c1[i].cloneNode(true);_c2.push(_c4);_bf.appendChild(_c4)}var _c5=dom.getWidthFromStyle(_bf);for(var i=0;i<_c2.length;i++){_bf.removeChild(_c2[i])}_bb.style.width=_bb.style.height=_bf.style.minHeight="";_bb.setAttribute("width",this._forceWidth?_c5:_bd);_bb.setAttribute("height",_be);if(_c5!=_bc){this.call("resize",_c5)}};FlashInteractor.prototype.changeCSS=function(css){css=_9a.escape(_9a.cssToString(_9a.convertCssArg(css)));this.updateVars("css",css);return this.call("changecss",css)};FlashInteractor.prototype.getAlternate=function(){return document.getElementById(this.id+"_alternate")};FlashInteractor.prototype.getAncestor=function(){var _c7=this.getFlashElement().parentNode;return !dom.hasClass(_a,_c7)?_c7:_c7.parentNode};var _c8={kwargs:[],replaceAll:function(_c9){for(var i=0;i<this.kwargs.length;i++){_1.replace(this.kwargs[i])}if(!_c9){this.kwargs=[]}}};function isValidDomain(){if(_1.domains.length==0){return true}var _cb=_9a.domain();for(var i=0;i<_1.domains.length;i++){var _cd=_1.domains[i];if(_9a.domainMatches(_cb,_cd)){return true}}return false}function isFile(){if(!_1.fromLocal&&document.location.protocol=="file:"){if(_1.debug){_1.errors.fire("isFile")}return true}return false}function resize(evt){var _cf=resize.viewport;resize.viewport={width:window.innerWidth||document.documentElement.clientWidth||dom.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||dom.getBody().clientHeight};if(_cf&&resize.viewport.width==_cf.width&&resize.viewport.height==_cf.height){return}if(resize.timer){clearTimeout(resize.timer)}resize.timer=setTimeout(function(){delete resize.timer;for(var i=0;i<_1.callbacks.length;i++){_1.callbacks[i].resize()}},200)}this.activate=function(){if(!ua.supported||!this.isEnabled||this.isActive||!isValidDomain()||isFile()){return}if(arguments.length>0){this.prefetch.apply(this,arguments)}this.isActive=true;this.setFlashClass();_9b.fragmentIdentifier.fix=ua.ieWin&&_9b.fragmentIdentifier.fix&&window.location.hash!="";if(_9b.fragmentIdentifier.fix){_9b.fragmentIdentifier.cache()}if(!this.autoInitialize){return}_9b.pageLoad.attach();if(ua.ie){window.attachEvent("onunload",function(){dom.addClass(_3,document.documentElement)})}};this.setFlashClass=function(){if(this.hasFlashClassSet){return}dom.addClass(_2,dom.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}dom.removeClass(_2,dom.getBody());dom.removeClass(_2,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(_d1){if(!this.isActive||!this.isEnabled){return}if(_16){if(!_d1){_c8.replaceAll(false)}return}_16=true;_c8.replaceAll(_d1);if(_1.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",resize,false)}else{window.attachEvent("onresize",resize)}}clearPrefetch()};function getSource(src){if(typeof (src)!="string"){if(src.src){src=src.src}if(typeof (src)!="string"){var _d3=[];for(var _d4 in src){if(src[_d4]!=Object.prototype[_d4]){_d3.push(_d4)}}_d3.sort().reverse();var _d5="";var i=-1;while(!_d5&&++i<_d3.length){if(parseFloat(_d3[i])<=ua.flashVersion){_d5=src[_d3[i]]}}src=_d5}}if(!src&&_1.debug){_1.errors.fire("getSource")}if(ua.ie&&src.charAt(0)=="/"){src=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+src}return src}this.prefetch=function(){if((!ua.requiresPrefetch&&!this.isActive)||!ua.supported||!this.isEnabled||!isValidDomain()){return}if(this.setPrefetchCookie&&new RegExp(";?"+_10+"=true;?").test(document.cookie)){return}try{_15=true;if(ua.ieWin){prefetchIexplore(arguments)}else{prefetchLight(arguments)}if(this.setPrefetchCookie){document.cookie=_10+"=true;path="+this.cookiePath}}catch(e){if(_1.debug){throw e}}};function prefetchIexplore(_d7){for(var i=0;i<_d7.length;i++){document.write("<script defer type=\"sifr/prefetch\" src=\""+getSource(_d7[i])+"\"></script>")}}function prefetchLight(_d9){for(var i=0;i<_d9.length;i++){new Image().src=getSource(_d9[i])}}function clearPrefetch(){if(!ua.ieWin||!_15){return}try{var _db=document.getElementsByTagName("script");for(var i=_db.length-1;i>=0;i--){var _dd=_db[i];if(_dd.type=="sifr/prefetch"){_dd.parentNode.removeChild(_dd)}}}catch(e){}}function getRatio(_de,_df){for(var i=0;i<_df.length;i+=2){if(_de<=_df[i]){return _df[i+1]}}return _df[_df.length-1]||1}function getFilters(obj){var _e2=[];for(var _e3 in obj){if(obj[_e3]==Object.prototype[_e3]){continue}var _e4=obj[_e3];_e3=[_e3.replace(/filter/i,"")+"Filter"];for(var _e5 in _e4){if(_e4[_e5]==Object.prototype[_e5]){continue}_e3.push(_e5+":"+_9a.escape(_9a.toJson(_9a.toHexString(_e4[_e5]))))}_e2.push(_e3.join(","))}return _9a.escape(_e2.join(";"))}function calculate(_e6){var _e7,_e8;if(!ua.ie){_e7=dom.getStyleAsInt(_e6,"lineHeight");_e8=Math.floor(dom.getStyleAsInt(_e6,"height")/_e7)}else{if(ua.ie){var _e9=dom.getComputedStyle(_e6,"fontSize");if(_e9.indexOf("px")>0){_e7=parseInt(_e9)}else{var _ea=_e6.innerHTML;_e6.style.visibility="visible";_e6.style.overflow="visible";_e6.style.position="static";_e6.style.zoom="normal";_e6.style.writingMode="lr-tb";_e6.style.width=_e6.style.height="auto";_e6.style.maxWidth=_e6.style.maxHeight=_e6.style.styleFloat="none";var _eb=_e6;var _ec=_e6.currentStyle.hasLayout;if(_ec){_e6.innerHTML="<div class=\""+_9+"\">X<br />X<br />X</div>";_eb=_e6.firstChild}else{_e6.innerHTML="X<br />X<br />X"}var _ed=_eb.getClientRects();_e7=_ed[1].bottom-_ed[1].top;_e7=Math.ceil(_e7*0.8);if(_ec){_e6.innerHTML="<div class=\""+_9+"\">"+_ea+"</div>";_eb=_e6.firstChild}else{_e6.innerHTML=_ea}_ed=_eb.getClientRects();_e8=_ed.length;if(_ec){_e6.innerHTML=_ea}_e6.style.visibility=_e6.style.width=_e6.style.height=_e6.style.maxWidth=_e6.style.maxHeight=_e6.style.overflow=_e6.style.styleFloat=_e6.style.position=_e6.style.zoom=_e6.style.writingMode=""}}}return {lineHeight:_e7,lines:_e8}}this.replace=function(_ee,_ef){if(!ua.supported){return}if(_ef){_ee=_9a.copyProperties(_ee,_ef)}if(!_16){return _c8.kwargs.push(_ee)}if(_1.onReplacementStart){_1.onReplacementStart(_ee)}var _f0=_ee.elements;if(!_f0&&parseSelector){_f0=parseSelector(_ee.selector)}if(_f0.length==0){return}var src=getSource(_ee.src);var css=_9a.convertCssArg(_ee.css);var _f3=getFilters(_ee.filters);var _f4=(_ee.forceClear==null)?_1.forceClear:_ee.forceClear;var _f5=_ee.forceSingleLine===true;var _f6=_f5||((_ee.fitExactly==null)?_1.fitExactly:_ee.fitExactly);var _f7=_f6||(_ee.forceWidth==null?_1.forceWidth:_ee.forceWidth);var _f8=!!(_ee.preventWrap&&!_f5);var _f9=parseInt(_9a.extractFromCss(css,".sIFR-root","leading"))||0;var _fa=_9a.extractFromCss(css,".sIFR-root","font-size",true)||0;var _fb=_9a.extractFromCss(css,".sIFR-root","background-color",true)||"#FFFFFF";var _fc=_9a.extractFromCss(css,".sIFR-root","kerning",true)||"";var _fd=_ee.gridFitType||_9a.extractFromCss(css,".sIFR-root","text-align")=="right"?"subpixel":"pixel";var _fe=_1.forceTextTransform?_9a.extractFromCss(css,".sIFR-root","text-transform",true)||"none":"none";var _ff=_9a.extractFromCss(css,".sIFR-root","opacity",true)||"100";var _100=_9a.extractFromCss(css,".sIFR-root","cursor",true)||"default";var _101=_ee.pixelFont||false;var _102=_ee.ratios||_11;var _103=parseInt(_ee.tuneHeight)||0;var _104=!!_ee.onRelease||!!_ee.onRollOver||!!_ee.onRollOut;if(parseInt(_fa).toString()!=_fa&&_fa.indexOf("px")==-1){_fa=0}else{_fa=parseInt(_fa)}if(parseFloat(_ff)<1){_ff=100*parseFloat(_ff)}var _105="";if(_f6){_9a.extractFromCss(css,".sIFR-root","text-align",true)}if(!_ee.modifyCss){_105=_9a.cssToString(css)}var _106=_ee.wmode||"";if(!_106){if(_ee.transparent){_106="transparent"}else{if(_ee.opaque){_106="opaque"}}}if(_106=="transparent"){if(!ua.transparencySupport){_106="opaque"}else{_fb="transparent"}}for(var i=0;i<_f0.length;i++){var node=_f0[i];if(dom.hasOneOfClassses([_4,_6,_7],node)){continue}var _109=dom.getDimensions(node);var _10a=_109.height;var _10b=_109.width;var _10c=dom.getComputedStyle(node,"display");if(!_10a||!_10b||_10c==null||_10c=="none"){continue}if(_f4&&ua.gecko){node.style.clear="both"}var html=null;if(_1.fixWrap&&ua.ie&&_10c=="block"){html=node.innerHTML;node.innerHTML="X"}_10b=dom.getWidthFromStyle(node);if(html&&_1.fixWrap&&ua.ie){node.innerHTML=html}var _10e,_10f;if(!_fa){var _110=calculate(node);_10e=Math.min(_e,Math.max(_d,_110.lineHeight));if(_101){_10e=Math.max(8,8*Math.round(_10e/8))}_10f=_110.lines;if(isNaN(_10f)||!isFinite(_10f)||_10f==0){_10f=1}if(_10f>1&&_f9){_10a+=Math.round((_10f-1)*_f9)}}else{_10e=_fa;_10f=1}_10a=Math.round(_10f*_10e);if(_f4&&ua.gecko){node.style.clear=""}var _111=dom.create("span");_111.className=_7;var _112=node.cloneNode(true);node.parentNode.appendChild(_112);for(var j=0,l=_112.childNodes.length;j<l;j++){_111.appendChild(_112.childNodes[j].cloneNode(true))}if(_ee.modifyContent){_ee.modifyContent(_112,_ee.selector)}if(_ee.modifyCss){_105=_ee.modifyCss(css,_112,_ee.selector)}var _115=_1.fixHover&&dom.contentIsLink(_112);var _116=handleContent(_112,_fe,_ee.uriEncode);_112.parentNode.removeChild(_112);if(_ee.modifyContentString){_116.text=_ee.modifyContentString(_116.text,_ee.selector)}if(_116.text==""){continue}var _117=Math.round(_10f*getRatio(_10e,_102)*_10e)+_12+_103;var _118=_f7?_10b:"100%";var vars=["content="+_9a.escape(_116.text),"antialiastype="+(_ee.antiAliasType||""),"width="+_10b,"height="+_10a,"renderheight="+_117,"fitexactly="+_f6,"tunewidth="+(_ee.tuneWidth||0),"tuneheight="+_103,"offsetleft="+(_ee.offsetLeft||""),"offsettop="+(_ee.offsetTop||""),"thickness="+(_ee.thickness||""),"sharpness="+(_ee.sharpness||""),"kerning="+_fc,"gridfittype="+_fd,"flashfilters="+_f3,"opacity="+_ff,"blendmode="+(_ee.blendMode||""),"size="+_10e,"css="+_9a.escape(_105),"selectable="+(_ee.selectable==null?"true":_ee.selectable),"fixhover="+_115,"preventwrap="+_f8,"forcesingleline="+_f5,"link="+_9a.escape(_116.primaryLink[0]||""),"target="+_9a.escape(_116.primaryLink[1]||""),"events="+_104,"cursor="+_100,"version="+_13];var _11a=encodeVars(vars);var _11b="sIFR_callback_"+_14++;var _11c=new FlashInteractor(_11b,vars,_f7,{onReplacement:_ee.onReplacement,onRollOver:_ee.onRollOver,onRollOut:_ee.onRollOut,onRelease:_ee.onRelease});window[_11b+"_DoFSCommand"]=(function(_11d){return function(info,arg){_11d.handle(info,arg)}})(_11c);_111.setAttribute("id",_11b+"_alternate");var _120=ua.ie?dom.swf.ie:dom.swf.other;var _121=dom.swf.create(_120,ua.fixFocus&&_ee.fixFocus,_11b,_118,_117,src,_11a,_106,_fb);_11c.html=_120.insert(node,_121);_1.callbacks.push(_11c);if(_ee.selector){if(!_1.callbacks[_ee.selector]){_1.callbacks[_ee.selector]=[_11c]}else{_1.callbacks[_ee.selector].push(_11c)}}node.appendChild(_111);dom.addClass(_4,node)}_9b.fragmentIdentifier.restore()};this.getCallbackByFlashElement=function(node){for(var i=0;i<_1.callbacks.length;i++){if(_1.callbacks[i].id==node.getAttribute("id")){return _1.callbacks[i]}}};this.redraw=function(){for(var i=0;i<_1.callbacks.length;i++){_1.callbacks[i].resetMovie()}};function encodeVars(vars){return vars.join("&").replace(/%/g,"%25")}function handleContent(_126,_127,_128){_128=_128||_9a.uriEncode;var _129=[],_12a=[],_12b=[];var _12c=_126.childNodes;var i=0;while(i<_12c.length){var node=_12c[i];if(node.nodeType==3){var text=_9a.normalize(node.nodeValue);text=_9a.textTransform(_127,text);text=text.replace(/</g,"&lt;");_12a.push(text)}if(node.nodeType==1){var _130=[];var _131=node.nodeName.toLowerCase();var _132=node.className||"";if(/\s+/.test(_132)){if(_132.indexOf(_8)>-1){_132=_132.match("(\\s|^)"+_8+"-([^\\s$]*)(\\s|$)")[2]}else{_132=_132.match(/^([^\s]+)/)[1]}}if(_132!=""){_130.push("class=\""+_132+"\"")}if(_131=="a"){var href=_128(node.getAttribute("href")||"");var _134=node.getAttribute("target")||"";_130.push("href=\""+href+"\"","target=\""+_134+"\"");if(_12b.length==0){_12b=[href,_134]}}_12a.push("<"+_131+(_130.length>0?" ":"")+_130.join(" ")+">");if(node.hasChildNodes()){_129.push(i);i=0;_12c=node.childNodes;continue}else{if(!/^(br|img)$/i.test(node.nodeName)){_12a.push("</",node.nodeName.toLowerCase(),">")}}}if(_129.length>0&&!node.nextSibling){do{i=_129.pop();_12c=node.parentNode.parentNode.childNodes;node=_12c[i];if(node){_12a.push("</",node.nodeName.toLowerCase(),">")}}while(i==_12c.length-1&&_129.length>0)}i++}return {text:_12a.join("").replace(/\n|\r/g,""),primaryLink:_12b}}};
var parseSelector=(function(){var _135=/\s*,\s*/;var _136=/\s*([\s>+~(),]|^|$)\s*/g;var _137=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var _138=/^[^\s>+~]/;var _139=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function parseSelector(_13a,node){node=node||document.documentElement;var _13c=_13a.split(_135),_13d=[];for(var i=0;i<_13c.length;i++){var _13f=[node],_140=toStream(_13c[i]);for(var j=0;j<_140.length;){var _142=_140[j++],_143=_140[j++],args="";if(_140[j]=="("){while(_140[j++]!=")"&&j<_140.length){args+=_140[j]}args=args.slice(0,-1)}_13f=select(_13f,_142,_143,args)}_13d=_13d.concat(_13f)}return _13d}function toStream(_145){var _146=_145.replace(_136,"$1").replace(_137,"$1*$2");if(_138.test(_146)){_146=" "+_146}return _146.match(_139)||[]}function select(_147,_148,_149,args){return (parseSelector.selectors[_148])?parseSelector.selectors[_148](_147,_149,args):[]}var util={toArray:function(_14c){var a=[];for(var i=0;i<_14c.length;i++){a.push(_14c[i])}return a}};var dom={isTag:function(node,tag){return (tag=="*")||(tag.toLowerCase()==node.nodeName.toLowerCase())},previousSiblingElement:function(node){do{node=node.previousSibling}while(node&&node.nodeType!=1);return node},nextSiblingElement:function(node){do{node=node.nextSibling}while(node&&node.nodeType!=1);return node},hasClass:function(name,node){return (node.className||"").match("(^|\\s)"+name+"(\\s|$)")},getByTag:function(tag,node){return node.getElementsByTagName(tag)}};var _158={"#":function(_159,_15a){for(var i=0;i<_159.length;i++){if(_159[i].getAttribute("id")==_15a){return [_159[i]]}}return []}," ":function(_15c,_15d){var _15e=[];for(var i=0;i<_15c.length;i++){_15e=_15e.concat(util.toArray(dom.getByTag(_15d,_15c[i])))}return _15e},">":function(_160,_161){var _162=[];for(var i=0,node;i<_160.length;i++){node=_160[i];for(var j=0,_166;j<node.childNodes.length;j++){_166=node.childNodes[j];if(_166.nodeType==1&&dom.isTag(_166,_161)){_162.push(_166)}}}return _162},".":function(_167,_168){var _169=[];for(var i=0,node;i<_167.length;i++){node=_167[i];if(dom.hasClass([_168],node)){_169.push(node)}}return _169},":":function(_16c,_16d,args){return (parseSelector.pseudoClasses[_16d])?parseSelector.pseudoClasses[_16d](_16c,args):[]}};parseSelector.selectors=_158;parseSelector.pseudoClasses={};parseSelector.util=util;parseSelector.dom=dom;return parseSelector})();