﻿var sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="436";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Y(){}function D(c){function d(e){return e.toLocaleUpperCase()}this.normalize=function(e){return e.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE)};this.textTransform=function(e,f){switch(e){case"uppercase":return f.toLocaleUpperCase();case"lowercase":return f.toLocaleLowerCase();case"capitalize":return f.replace(/^\w|\s\w/g,d)}return f};this.toHexString=function(e){if(e.charAt(0)!="#"||e.length!=4&&e.length!=7){return e}e=e.substring(1);return"0x"+(e.length==3?e.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):e)};this.toJson=function(g,f){var e="";switch(typeof(g)){case"string":e='"'+f(g)+'"';break;case"number":case"boolean":e=g.toString();break;case"object":e=[];for(var h in g){if(g[h]==Object.prototype[h]){continue}e.push('"'+h+'":'+this.toJson(g[h]))}e="{"+e.join(",")+"}";break}return e};this.convertCssArg=function(e){if(!e){return{}}if(typeof(e)=="object"){if(e.constructor==Array){e=e.join("")}else{return e}}var l={};var m=e.split("}");for(var h=0;h<m.length;h++){var k=m[h].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!k||k.length!=3){continue}if(!l[k[1]]){l[k[1]]={}}var g=k[2].split(";");for(var f=0;f<g.length;f++){var n=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!n||n.length!=3){continue}l[k[1]][n[1]]=n[2].replace(/\s+$/,"")}}return l};this.extractFromCss=function(g,f,i,e){var h=null;if(g&&g[f]&&g[f][i]){h=g[f][i];if(e){delete g[f][i]}}return h};this.cssToString=function(f){var g=[];for(var e in f){var j=f[e];if(j==Object.prototype[e]){continue}g.push(e,"{");for(var i in j){if(j[i]==Object.prototype[i]){continue}var h=j[i];if(D.UNIT_REMOVAL_PROPERTIES[i]){h=parseInt(h,10)}g.push(i,":",h,";")}g.push("}")}return g.join("")};this.escape=function(e){return escape(e).replace(/\+/g,"%2B")};this.encodeVars=function(e){return e.join("&").replace(/%/g,"%25")};this.copyProperties=function(g,f){for(var e in g){if(f[e]===undefined){f[e]=g[e]}}return f};this.domain=function(){var f="";try{f=document.domain}catch(g){}return f};this.domainMatches=function(h,g){if(g=="*"||g==h){return true}var f=g.lastIndexOf("*");if(f>-1){g=g.substr(f+1);var e=h.lastIndexOf(g);if(e>-1&&(e+g.length)==h.length){return true}}return false};this.uriEncode=function(e){return encodeURI(decodeURIComponent(e))};this.delay=function(f,h,g){var e=Array.prototype.slice.call(arguments,3);setTimeout(function(){h.apply(g,e)},f)}}D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function U(e){var d=this;function c(g,j,h){var k=d.getStyleAsInt(g,j,e.ua.ie);if(k==0){k=g[h];for(var f=3;f<arguments.length;f++){k-=d.getStyleAsInt(g,arguments[f],true)}}return k}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(f){return window.parseSelector(f)};this.addClass=function(f,g){if(g){g.className=((g.className||"")==""?"":g.className+" ")+f}};this.removeClass=function(f,g){if(g){g.className=g.className.replace(new RegExp("(^|\\s)"+f+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(f,g){return new RegExp("(^|\\s)"+f+"(\\s|$)").test(g.className)};this.hasOneOfClassses=function(h,g){for(var f=0;f<h.length;f++){if(this.hasClass(h[f],g)){return true}}return false};this.ancestorHasClass=function(g,f){g=g.parentNode;while(g&&g.nodeType==1){if(this.hasClass(f,g)){return true}g=g.parentNode}return false};this.create=function(f,g){var h=document.createElementNS?document.createElementNS(U.XHTML_NS,f):document.createElement(f);if(g){h.className=g}return h};this.getComputedStyle=function(h,i){var f;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(h,null);f=g?g[i]:null}else{if(h.currentStyle){f=h.currentStyle[i]}}return f||""};this.getStyleAsInt=function(g,i,f){var h=this.getComputedStyle(g,i);if(f&&!/px$/.test(h)){return 0}return parseInt(h)||0};this.getWidthFromStyle=function(f){return c(f,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(f){return c(f,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(j){var h=j.offsetWidth;var f=j.offsetHeight;if(h==0||f==0){for(var g=0;g<j.childNodes.length;g++){var k=j.childNodes[g];if(k.nodeType!=1){continue}h=Math.max(h,k.offsetWidth);f=Math.max(f,k.offsetHeight)}}return{width:h,height:f}};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(g){try{g.blur();return}catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f)}}U.XHTML_NS="http://www.w3.org/1999/xhtml";function H(r){var g=navigator.userAgent.toLowerCase();var q=(navigator.product||"").toLowerCase();var h=navigator.platform.toLowerCase();this.parseVersion=H.parseVersion;this.macintosh=/^mac/.test(h);this.windows=/^win/.test(h);this.linux=/^linux/.test(h);this.quicktime=false;this.opera=/opera/.test(g);this.konqueror=/konqueror/.test(g);this.ie=false
/*@cc_on||true@*/
;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(g)
/*@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=/safari/.test(g);this.webkit=!this.konqueror&&/applewebkit/.test(g);this.khtml=this.webkit||this.konqueror;this.gecko=!this.khtml&&q=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(g)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(g)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(g)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var l;var o=false;try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=this.parseVersion("6");l.AllowScriptAccess="always"}catch(m){o=this.flashVersion==this.parseVersion("6")}if(!o){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}}if(!o&&l){this.flashVersion=this.parseVersion((l.GetVariable("$version")||"").replace(/^\D+(\d+)\D+(\d+)\D+(\d+).*/g,"$1.$2.$3"))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash"].description.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var p=n.replace(/^\D*(\d+\.\d+).*$/,"$1");if(/r/.test(n)){p+=n.replace(/^.*r(\d*).*$/,".$1")}else{if(/d/.test(n)){p+=".0"}}this.flashVersion=this.parseVersion(p);var j=false;for(var k=0,c=this.flashVersion>=H.MIN_FLASH_VERSION;c&&k<navigator.mimeTypes.length;k++){var f=navigator.mimeTypes[k];if(f.type!="application/x-shockwave-flash"){continue}if(f.enabledPlugin){j=true;if(f.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){c=false;this.quicktime=true}}}if(this.quicktime||!j){this.flashVersion=this.parseVersion("0")}}}this.flash=this.flashVersion>=H.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)}H.parseVersion=function(c){return c.replace(/(^|\D)(\d+)(?=\D|$)/g,function(f,e,g){f=e;for(var d=4-g.length;d>=0;d--){f+="0"}return f+g})};H.MIN_FLASH_VERSION=H.parseVersion("8");function F(c){this.fix=c.ua.ieWin&&window.location.hash!="";var d;this.cache=function(){d=document.title};function e(){document.title=d}this.restore=function(){if(this.fix){setTimeout(e,0)}}}function S(l){var e=null;function c(){try{if(l.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(n){return setTimeout(c,10)}i()}function i(){if(l.useStyleCheck){h()}else{if(!l.ua.mustCheckStyle){d(null,true)}}}function h(){e=l.dom.create("div",E.DUMMY);l.dom.getBody().appendChild(e);m()}function m(){if(l.dom.getComputedStyle(e,"marginLeft")=="42px"){g()}else{setTimeout(m,10)}}function g(){if(e&&e.parentNode){e.parentNode.removeChild(e)}e=null;d(null,true)}function d(n,o){l.initialize(o);if(n&&n.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",d,false)}if(window.removeEventListener){window.removeEventListener("load",d,false)}}}function j(){l.prepareClearReferences();if(document.readyState=="interactive"){document.attachEvent("onstop",f);setTimeout(function(){document.detachEvent("onstop",f)},0)}}function f(){document.detachEvent("onstop",f);k()}function k(){l.clearReferences()}this.attach=function(){if(window.addEventListener){window.addEventListener("load",d,false)}else{window.attachEvent("onload",d)}if(!l.useDomLoaded||l.ua.forcePageLoad||l.ua.ie&&window.top!=window){return}if(l.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",i,false)}else{if(l.ua.ie||l.ua.khtml){c()}}};this.attachUnload=function(){if(!l.ua.ie){return}window.attachEvent("onbeforeunload",j);window.attachEvent("onunload",k)}}var Q="sifrFetch";function N(c){var e=false;this.fetchMovies=function(f){if(c.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return}try{e=true;d(f)}catch(g){}if(c.setPrefetchCookie){document.cookie=Q+"=true;path="+c.cookiePath}};this.clear=function(){if(!e){return}try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h)}}}catch(j){}};function d(f){for(var g=0;g<f.length;g++){document.write('<script defer type="sifr/prefetch" src="'+f[g].src+'"></script>')}}}function b(e){var g=e.ua.ie;var f=g&&e.ua.flashVersion<e.ua.parseVersion("9.0.115");var d={};var c={};this.fixFlash=f;this.register=function(h){if(!g){return}var i=h.getAttribute("id");this.cleanup(i,false);c[i]=h;delete d[i];if(f){window[i]=h}};this.reset=function(){if(!g){return false}for(var j=0;j<e.replacements.length;j++){var h=e.replacements[j];var k=c[h.id];if(!d[h.id]&&(!k.parentNode||k.parentNode.nodeType==11)){h.resetMovie();d[h.id]=true}}return true};this.cleanup=function(l,h){var i=c[l];if(!i){return}for(var k in i){if(typeof(i[k])=="function"){i[k]=null}}c[l]=null;if(f){window[l]=null}if(i.parentNode){if(h&&i.parentNode.nodeType==1){var j=document.createElement("div");j.style.width=i.offsetWidth+"px";j.style.height=i.offsetHeight+"px";i.parentNode.replaceChild(j,i)}else{i.parentNode.removeChild(i)}}};this.prepareClearReferences=function(){if(!f){return}__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}};this.clearReferences=function(){if(f){var j=document.getElementsByTagName("object");for(var h=j.length-1;h>=0;h--){c[j[h].getAttribute("id")]=j[h]}}for(var k in c){if(Object.prototype[k]!=c[k]){this.cleanup(k,true)}}}}function K(d,g,f,c,e){this.sIFR=d;this.id=g;this.vars=f;this.movie=null;this.__forceWidth=c;this.__events=e;this.__resizing=0}K.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var c=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,c)?c:c.parentNode},available:function(){var c=this.getFlashElement();return c&&c.parentNode},call:function(c){var d=this.getFlashElement();if(!d[c]){return false}return Function.prototype.apply.call(d[c],d,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available()){return false}try{this.call.apply(this,arguments)}catch(c){if(this.sIFR.debug){throw c}return false}return true},updateVars:function(c,e){for(var d=0;d<this.vars.length;d++){if(this.vars[d].split("=")[0]==c){this.vars[d]=c+"="+e;break}}var f=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),f);this.movie.injectVars(this.movie.html,f)},storeSize:function(c,d){this.movie.setSize(c,d);this.updateVars(c,d)},fireEvent:function(c){if(this.available()&&this.__events[c]){this.sIFR.util.delay(0,this.__events[c],this,this)}},resizeFlashElement:function(c,d,e){if(!this.available()){return}this.__resizing++;var f=this.getFlashElement();f.setAttribute("height",c);this.getAncestor().style.minHeight="";this.updateVars("renderheight",c);this.storeSize("height",c);if(d!==null){f.setAttribute("width",d);this.movie.setSize("width",d)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(e){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 g=this.getFlashElement();var f=g.offsetWidth;if(f==0){return}var e=g.getAttribute("width");var l=g.getAttribute("height");var m=this.getAncestor();var o=this.sIFR.dom.getHeightFromStyle(m);g.style.width="1px";g.style.height="1px";m.style.minHeight=o+"px";var c=this.getAlternate().childNodes;var n=[];for(var k=0;k<c.length;k++){var h=c[k].cloneNode(true);n.push(h);m.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(m);for(var k=0;k<n.length;k++){m.removeChild(n[k])}g.style.width=g.style.height=m.style.minHeight="";g.setAttribute("width",this.__forceWidth?d:e);g.setAttribute("height",l);if(sIFR.ua.ie){g.style.display="none";var j=g.offsetHeight;g.style.display=""}if(d!=f){if(this.__forceWidth){this.storeSize("width",d)}this.attempt("resize",d)}this.__resizing--},replaceText:function(g,j){var d=this.sIFR.util.escape(g);if(!this.attempt("replaceText",d)){return false}this.updateVars("content",d);var f=this.getAlternate();if(j){while(f.firstChild){f.removeChild(f.firstChild)}for(var c=0;c<j.length;c++){f.appendChild(j[c])}}else{try{f.innerHTML=g}catch(h){}}return true},changeCSS:function(c){c=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(c)));this.updateVars("css",c);return this.attempt("changeCSS",c)},remove:function(){if(this.movie&&this.available()){this.movie.remove(this.getFlashElement(),this.id)}}};var X=new function(){this.create=function(p,n,j,i,f,e,g,o,l,h,m){var k=p.ua.ie?d:c;return new k(p,n,j,i,f,e,g,o,["flashvars",l,"wmode",h,"bgcolor",m,"allowScriptAccess","always","quality","best"])};function c(s,q,l,h,f,e,g,r,n){var m=s.dom.create("object",E.FLASH);var p=["type","application/x-shockwave-flash","id",f,"name",f,"data",e,"width",g,"height",r];for(var o=0;o<p.length;o+=2){m.setAttribute(p[o],p[o+1])}var j=m;if(h){j=W.create("div",E.FIX_FOCUS);j.appendChild(m)}for(var o=0;o<n.length;o+=2){if(n[o]=="name"){continue}var k=W.create("param");k.setAttribute("name",n[o]);k.setAttribute("value",n[o+1]);m.appendChild(k)}l.style.minHeight=r+"px";while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(j);this.html=j.cloneNode(true)}c.prototype={reset:function(e,f){e.parentNode.replaceChild(this.html.cloneNode(true),e)},remove:function(e,f){e.parentNode.removeChild(e)},setSize:function(e,f){this.html.setAttribute(e,f)},injectVars:function(e,g){var h=e.getElementsByTagName("param");for(var f=0;f<h.length;f++){if(h[f].getAttribute("name")=="flashvars"){h[f].setAttribute("value",g);break}}}};function d(p,n,j,h,f,e,g,o,k){this.dom=p.dom;this.broken=n;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+o+'" class="'+E.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var m="";for(var l=0;l<k.length;l+=2){m+='<param name="'+k[l]+'" value="'+k[l+1]+'"></param>'}this.html=this.html.replace(/(<\/object>)/,m+"$1");j.style.minHeight=o+"px";j.innerHTML=this.html;this.broken.register(j.firstChild)}d.prototype={reset:function(f,g){g=g.cloneNode(true);var e=f.parentNode;e.innerHTML=this.html;this.broken.register(e.firstChild);e.appendChild(g)},remove:function(e,f){this.broken.cleanup(f)},setSize:function(e,f){this.html=this.html.replace(e=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+f+'"')},injectVars:function(e,f){if(e!=this.html){return}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+f)}}};this.errors=new Y(O);var A=this.util=new D(O);var W=this.dom=new U(O);var T=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O),brokenFlashIE:new b(O)};this.__resetBrokenMovies=G.brokenFlashIE.reset;var J={kwargs:[],replaceAll:function(d){for(var c=0;c<this.kwargs.length;c++){O.replace(this.kwargs[c])}if(!d){this.kwargs=[]}}};this.activate=function(){if(!T.supported||!this.isEnabled||this.isActive||!C()||a()){return}G.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();G.pageLoad.attachUnload();if(!this.autoInitialize){return}G.pageLoad.attach()};this.setFlashClass=function(){if(this.hasFlashClassSet){return}W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(c){if(!this.isActive||!this.isEnabled){return}if(R){if(!c){J.replaceAll(false)}return}R=true;J.replaceAll(c);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",Z,false)}else{window.attachEvent("onresize",Z)}}G.prefetch.clear()};this.replace=function(x,u){if(!T.supported){return}if(u){x=A.copyProperties(x,u)}if(!R){return J.kwargs.push(x)}if(this.onReplacementStart){this.onReplacementStart(x)}var AM=x.elements||W.querySelectorAll(x.selector);if(AM.length==0){return}var w=M(x.src);var AR=A.convertCssArg(x.css);var v=B(x.filters);var AN=x.forceSingleLine===true;var AS=x.preventWrap===true&&!AN;var q=AN||(x.fitExactly==null?this.fitExactly:x.fitExactly)===true;var AD=q||(x.forceWidth==null?this.forceWidth:x.forceWidth)===true;var s=x.ratios||[];var AE=x.pixelFont===true;var r=parseInt(x.tuneHeight)||0;var z=!!x.onRelease||!!x.onRollOver||!!x.onRollOut;if(q){A.extractFromCss(AR,".sIFR-root","text-align",true)}var t=A.extractFromCss(AR,".sIFR-root","font-size",true)||"0";var e=A.extractFromCss(AR,".sIFR-root","background-color",true)||"#FFFFFF";var o=A.extractFromCss(AR,".sIFR-root","kerning",true)||"";var AW=A.extractFromCss(AR,".sIFR-root","opacity",true)||"100";var k=A.extractFromCss(AR,".sIFR-root","cursor",true)||"default";var AP=parseInt(A.extractFromCss(AR,".sIFR-root","leading"))||0;var AJ=x.gridFitType||(A.extractFromCss(AR,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var h=this.forceTextTransform===false?"none":A.extractFromCss(AR,".sIFR-root","text-transform",true)||"none";t=/^\d+(px)?$/.test(t)?parseInt(t):0;AW=parseFloat(AW)<1?100*parseFloat(AW):AW;var AC=x.modifyCss?"":A.cssToString(AR);var AG=x.wmode||"";if(!AG){if(x.transparent){AG="transparent"}else{if(x.opaque){AG="opaque"}}}if(AG=="transparent"){if(!T.transparencySupport){AG="opaque"}else{e="transparent"}}else{if(e=="transparent"){e="#FFFFFF"}}for(var AV=0;AV<AM.length;AV++){var AF=AM[AV];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AF)||W.ancestorHasClass(AF,E.ALTERNATE)){continue}var AO=W.getDimensions(AF);var f=AO.height;var c=AO.width;var AA=W.getComputedStyle(AF,"display");if(!f||!c||!AA||AA=="none"){continue}c=W.getWidthFromStyle(AF);var n,AH;if(!t){var AL=I(AF);n=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AL.fontSize));if(AE){n=Math.max(8,8*Math.round(n/8))}AH=AL.lines}else{n=t;AH=1}var d=W.create("span",E.ALTERNATE);var AX=AF.cloneNode(true);AF.parentNode.appendChild(AX);for(var AU=0,AT=AX.childNodes.length;AU<AT;AU++){var m=AX.childNodes[AU];if(!/^(style|script)$/i.test(m.nodeName)){d.appendChild(m.cloneNode(true))}}if(x.modifyContent){x.modifyContent(AX,x.selector)}if(x.modifyCss){AC=x.modifyCss(AR,AX,x.selector)}var p=P(AX,h,x.uriEncode);AX.parentNode.removeChild(AX);if(x.modifyContentString){p.text=x.modifyContentString(p.text,x.selector)}if(p.text==""){continue}var AK=Math.round(AH*V(n,s)*n)+this.FLASH_PADDING_BOTTOM+r;if(AH>1&&AP){AK+=Math.round((AH-1)*AP)}var AB=AD?c:"100%";var AI="sIFR_replacement_"+L++;var AQ=["id="+AI,"content="+A.escape(p.text),"width="+c,"renderheight="+AK,"link="+A.escape(p.primaryLink.href||""),"target="+A.escape(p.primaryLink.target||""),"size="+n,"css="+A.escape(AC),"cursor="+k,"tunewidth="+(x.tuneWidth||0),"tuneheight="+r,"offsetleft="+(x.offsetLeft||""),"offsettop="+(x.offsetTop||""),"fitexactly="+q,"preventwrap="+AS,"forcesingleline="+AN,"antialiastype="+(x.antiAliasType||""),"thickness="+(x.thickness||""),"sharpness="+(x.sharpness||""),"kerning="+o,"gridfittype="+AJ,"flashfilters="+v,"opacity="+AW,"blendmode="+(x.blendMode||""),"selectable="+(x.selectable==null||AG!=""&&!sIFR.ua.macintosh&&sIFR.ua.gecko&&sIFR.ua.geckoVersion>=sIFR.ua.parseVersion("1.9")?"true":x.selectable===true),"fixhover="+(this.fixHover===true),"events="+z,"delayrun="+G.brokenFlashIE.fixFlash,"version="+this.VERSION];var y=A.encodeVars(AQ);var g=new K(O,AI,AQ,AD,{onReplacement:x.onReplacement,onRollOver:x.onRollOver,onRollOut:x.onRollOut,onRelease:x.onRelease});g.movie=X.create(sIFR,G.brokenFlashIE,AF,T.fixFocus&&x.fixFocus,AI,w,AB,AK,y,AG,e);this.replacements.push(g);this.replacements[AI]=g;if(x.selector){if(!this.replacements[x.selector]){this.replacements[x.selector]=[g]}else{this.replacements[x.selector].push(g)}}d.setAttribute("id",AI+"_alternate");AF.appendChild(d);W.addClass(E.REPLACED,AF)}G.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(d){for(var c=0;c<O.replacements.length;c++){if(O.replacements[c].id==d.getAttribute("id")){return O.replacements[c]}}};this.redraw=function(){for(var c=0;c<O.replacements.length;c++){O.replacements[c].resetMovie()}};this.prepareClearReferences=function(){G.brokenFlashIE.prepareClearReferences()};this.clearReferences=function(){G.brokenFlashIE.clearReferences();G=null;J=null;delete O.replacements};function C(){if(O.domains.length==0){return true}var d=A.domain();for(var c=0;c<O.domains.length;c++){if(A.domainMatches(d,O.domains[c])){return true}}return false}function a(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile")}return true}return false}function M(c){if(T.ie&&c.charAt(0)=="/"){c=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+c}return c}function V(d,e){for(var c=0;c<e.length;c+=2){if(d<=e[c]){return e[c+1]}}return e[e.length-1]||1}function B(g){var e=[];for(var d in g){if(g[d]==Object.prototype[d]){continue}var c=g[d];d=[d.replace(/filter/i,"")+"Filter"];for(var f in c){if(c[f]==Object.prototype[f]){continue}d.push(f+":"+A.escape(A.toJson(c[f],A.toHexString)))}e.push(d.join(","))}return A.escape(e.join(";"))}function Z(d){var e=Z.viewport;var c=W.getViewport();if(e&&c.width==e.width&&c.height==e.height){return}Z.viewport=c;if(O.replacements.length==0){return}if(Z.timer){clearTimeout(Z.timer)}Z.timer=setTimeout(function(){delete Z.timer;for(var f=0;f<O.replacements.length;f++){O.replacements[f].resize()}},200)}function I(f){var g=W.getComputedStyle(f,"fontSize");var d=g.indexOf("px")==-1;var e=f.innerHTML;if(d){f.innerHTML="X"}f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth="0px";f.style.lineHeight="2em";f.style.display="block";g=d?f.offsetHeight/2:parseInt(g,10);if(d){f.innerHTML=e}var c=Math.round(f.offsetHeight/(2*g));f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth=f.style.lineHeight=f.style.display="";if(isNaN(c)||!isFinite(c)||c==0){c=1}return{fontSize:g,lines:c}}function P(c,g,s){s=s||A.uriEncode;var q=[],m=[];var k=null;var e=c.childNodes;var o=false,p=false;var j=0;while(j<e.length){var f=e[j];if(f.nodeType==3){var t=A.textTransform(g,A.normalize(f.nodeValue)).replace(/</g,"&lt;");if(o&&p){t=t.replace(/^\s+/,"")}m.push(t);o=/\s$/.test(t);p=false}if(f.nodeType==1&&!/^(style|script)$/i.test(f.nodeName)){var h=[];var r=f.nodeName.toLowerCase();var n=f.className||"";if(/\s+/.test(n)){if(n.indexOf(E.CLASS)>-1){n=n.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{n=n.match(/^([^\s]+)/)[1]}}if(n!=""){h.push('class="'+n+'"')}if(r=="a"){var d=s(f.getAttribute("href")||"");var l=f.getAttribute("target")||"";h.push('href="'+d+'"','target="'+l+'"');if(!k){k={href:d,target:l}}}m.push("<"+r+(h.length>0?" ":"")+h.join(" ")+">");p=true;if(f.hasChildNodes()){q.push(j);j=0;e=f.childNodes;continue}else{if(!/^(br|img)$/i.test(f.nodeName)){m.push("</",f.nodeName.toLowerCase(),">")}}}if(q.length>0&&!f.nextSibling){do{j=q.pop();e=f.parentNode.parentNode.childNodes;f=e[j];if(f){m.push("</",f.nodeName.toLowerCase(),">")}}while(j==e.length-1&&q.length>0)}j++}return{text:m.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}};var parseSelector=(function(){var b=/\s*,\s*/;var a=/\s*([\s>+~(),]|^|$)\s*/g;var l=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var f=/(^|\))[^\s>+~]/g;var m=/(\)|^)/;var k=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function h(s,q){q=q||document.documentElement;var t=s.split(b),y=[];for(var v=0;v<t.length;v++){var n=[q],x=g(t[v]);for(var u=0;u<x.length;){var r=x[u++],o=x[u++],w="";if(x[u]=="("){while(x[u++]!=")"&&u<x.length){w+=x[u]}w=w.slice(0,-1)}n=i(n,r,o,w)}y=y.concat(n)}return y}function g(n){var o=n.replace(a,"$1").replace(l,"$1*$2").replace(f,d);return o.match(k)||[]}function d(n){return n.replace(m,"$1 ")}function i(n,q,r,o){return(h.selectors[q])?h.selectors[q](n,r,o):[]}var e={toArray:function(o){var n=[];for(var q=0;q<o.length;q++){n.push(o[q])}return n}};var c={isTag:function(o,n){return(n=="*")||(n.toLowerCase()==o.nodeName.toLowerCase())},previousSiblingElement:function(n){do{n=n.previousSibling}while(n&&n.nodeType!=1);return n},nextSiblingElement:function(n){do{n=n.nextSibling}while(n&&n.nodeType!=1);return n},hasClass:function(n,o){return(o.className||"").match("(^|\\s)"+n+"(\\s|$)")},getByTag:function(n,o){return o.getElementsByTagName(n)}};var j={"#":function(n,q){for(var o=0;o<n.length;o++){if(n[o].getAttribute("id")==q){return[n[o]]}}return[]}," ":function(o,r){var n=[];for(var q=0;q<o.length;q++){n=n.concat(e.toArray(c.getByTag(r,o[q])))}return n},">":function(o,s){var n=[];for(var r=0,t;r<o.length;r++){t=o[r];for(var q=0,u;q<t.childNodes.length;q++){u=t.childNodes[q];if(u.nodeType==1&&c.isTag(u,s)){n.push(u)}}}return n},".":function(o,r){var n=[];for(var q=0,s;q<o.length;q++){s=o[q];if(c.hasClass([r],s)){n.push(s)}}return n},":":function(n,q,o){return(h.pseudoClasses[q])?h.pseudoClasses[q](n,o):[]}};h.selectors=j;h.pseudoClasses={};h.util=e;h.dom=c;return h})();sIFR.debug=new function(){function a(){this.fire=function(d){if(this[d+"Alert"]){alert(this[d+"Alert"])}throw new Error(this[d])};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."}sIFR.errors=new a();function b(d){if(!sIFR.ua.safari&&window.console&&console.log){console.log(d)}else{alert(d)}}this.ua=function(){var d=[];for(var e in sIFR.ua){if(sIFR.ua[e]==Object.prototype[e]){continue}d.push(e,": ",sIFR.ua[e],"\n")}b(d.join(""))};this.domains=function(){if(sIFR.domains.length==0){b("No domain verification used.");return}var d=sIFR.util.domain();var g=[],j=[];for(var e=0;e<sIFR.domains.length;e++){var f=sIFR.domains[e];if(sIFR.util.domainMatches(d,f)){g.push(f)}else{j.push(f)}}var h=['The domain "',d,'"'];if(g.length>0){h.push(" matches:\n* ",g.join("\n* "))}if(g.length>0&&j.length>0){h.push("\nbut")}if(j.length>0){h.push(" does not match:\n* ",j.join("\n* "))}b(h.join(""))};this.ratios=function(d,e){if(e){d=sIFR.util.copyProperties(d,e)}if(!d.selector&&!d.elements){b("Cannot calculate ratios, no selector or element given.");return}delete d.wmode;delete d.transparent;delete d.opaque;if(d.css){d.css=sIFR.util.convertCssArg(d.css);sIFR.util.extractFromCss(d.css,".sIFR-root","leading",true)}var f=false;d.onReplacement=function(g){if(f){return}f=true;sIFR.debug.__ratiosCallback[g.id]=function(h){h="["+h.join(", ")+"]";setTimeout(function(){var i=new Date();prompt("The ratios for "+d.selector+" are:",h);if(sIFR.ua.ie&&i-new Date<200){alert("Press Control+C to copy the text of this alert box. Then paste it into your favorite text editor.\nThe numbers between the braces, including the braces, are the ratios. You have to add those to your sIFR configuration.\n\nTip: try calculating the ratios in Firefox instead, it'll be easier to copy the ratios.\n\n"+h)}g.resetMovie()},0)};g.call("calculateRatios")};sIFR.replace(d)};this.__ratiosCallback=function(d,e){if(this.__ratiosCallback[d]){this.__ratiosCallback[d](e)}};function c(f,d,e){if(sIFR.ua.ie&&f.charAt(0)=="/"){f=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+f}var g=new XMLHttpRequest();g.open("GET",f,true);g.onreadystatechange=function(){if(g.readyState==4){if(g.status!=200){b(d)}else{b(e)}}};g.send("")}this.test=function(f,g){f=merge(f,g);var k=f.src;var d=false;if(typeof(k)!="string"){if(k.src){k=k.src}if(typeof(k)!="string"){var m=[];for(var l in k){if(k[l]!=Object.prototype[l]){m.push(l)}}m.sort().reverse();var j="";var e=-1;while(!j&&++e<m.length){if(parseFloat(m[e])<=ua.flashVersion){j=k[m[e]]}var h="<"+k[m[e]]+">, flash "+parseFloat(m[e]);c(k[m[e]],"FAILED: "+h,"OK: "+h)}k=j;d=true}}if(!k){b("Could not determine appropriate source.")}else{if(!d){c(k,"FAILED: <"+k+">","OK: <"+k+">")}}};this.forceTest=function(){var d=sIFR.replace;sIFR.replace=function(e,f){sIFR.debug.test(e,f);d.call(sIFR,e,f)}}};var h1={src:"files/templates/157/georgia.swf"};sIFR.activate(h1);sIFR.replace(h1,{selector:"#content h1",wmode:"transparent",css:".sIFR-root { color: #B67701; font-size: 26px; }"});(function(y){var B="2.73";if(y.support==undefined){y.support={opacity:!(y.browser.msie)}}function q(a){if(y.fn.cycle.debug){v(a)}}function v(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}y.fn.cycle=function(b,a){var c={s:this.selector,c:this.context};if(this.length===0&&b!="stop"){if(!y.isReady&&c.s){v("DOM not ready, queuing slideshow");y(function(){y(c.s,c.c).cycle(b,a)});return this}v("terminating; zero elements found by selector"+(y.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var g=C(this,b,a);if(g===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var h=y(this);var i=g.slideExpr?y(g.slideExpr,this):h.children();var e=i.get();if(e.length<2){v("terminating; too few slides: "+e.length);return}var d=A(h,i,e,g,c);if(d===false){return}var f=d.continuous?10:x(d.currSlide,d.nextSlide,d,!d.rev);if(f){f+=(d.delay||0);if(f<10){f=10}q("first timeout: "+f);this.cycleTimeout=setTimeout(function(){u(e,d,0,!d.rev)},f)}})};function C(a,d,b){if(a.cycleStop==undefined){a.cycleStop=0}if(d===undefined||d===null){d={}}if(d.constructor==String){switch(d){case"stop":a.cycleStop++;if(a.cycleTimeout){clearTimeout(a.cycleTimeout)}a.cycleTimeout=0;y(a).removeData("cycle.opts");return false;case"pause":a.cyclePause=1;return false;case"resume":a.cyclePause=0;if(b===true){d=y(a).data("cycle.opts");if(!d){v("options not found, can not resume");return false}if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}u(d.elements,d,1,1)}return false;case"prev":case"next":var e=y(a).data("cycle.opts");if(!e){v('options not found, "prev/next" ignored');return false}y.fn.cycle[d](e);return false;default:d={fx:d}}return d}else{if(d.constructor==Number){var c=d;d=y(a).data("cycle.opts");if(!d){v("options not found, can not advance slide");return false}if(c<0||c>=d.elements.length){v("invalid slide index: "+c);return false}d.nextSlide=c;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof b=="string"){d.oneTimeFx=b}u(d.elements,d,1,c>=d.currSlide);return false}}return d}function r(a,b){if(!y.support.opacity&&b.cleartype&&a.style.filter){try{a.style.removeAttribute("filter")}catch(c){}}}function A(O,j,L,o,e){var c=y.extend({},y.fn.cycle.defaults,o||{},y.metadata?O.metadata():y.meta?O.data():{});if(c.autostop){c.countdown=c.autostopCount||L.length}var m=O[0];O.data("cycle.opts",c);c.$cont=O;c.stopCount=m.cycleStop;c.elements=L;c.before=c.before?[c.before]:[];c.after=c.after?[c.after]:[];c.after.unshift(function(){c.busy=0});if(!y.support.opacity&&c.cleartype){c.after.push(function(){r(this,c)})}if(c.continuous){c.after.push(function(){u(L,c,0,!c.rev)})}D(c);if(!y.support.opacity&&c.cleartype&&!c.cleartypeNoBg){w(j)}if(O.css("position")=="static"){O.css("position","relative")}if(c.width){O.width(c.width)}if(c.height&&c.height!="auto"){O.height(c.height)}if(c.startingSlide){c.startingSlide=parseInt(c.startingSlide)}if(c.random){c.randomMap=[];for(var h=0;h<L.length;h++){c.randomMap.push(h)}c.randomMap.sort(function(F,G){return Math.random()-0.5});c.randomIndex=0;c.startingSlide=c.randomMap[0]}else{if(c.startingSlide>=L.length){c.startingSlide=0}}c.currSlide=c.startingSlide=c.startingSlide||0;var N=c.startingSlide;j.css({position:"absolute",top:0,left:0}).hide().each(function(G){var F=N?G>=N?L.length-(G-N):N-G:L.length-G;y(this).css("z-index",F)});y(L[N]).css("opacity",1).show();r(L[N],c);if(c.fit&&c.width){j.width(c.width)}if(c.fit&&c.height&&c.height!="auto"){j.height(c.height)}var d=c.containerResize&&!O.innerHeight();if(d){var M=0,b=0;for(var f=0;f<L.length;f++){var l=y(L[f]),k=l[0],a=l.outerWidth(),i=l.outerHeight();if(!a){a=k.offsetWidth}if(!i){i=k.offsetHeight}M=a>M?a:M;b=i>b?i:b}if(M>0&&b>0){O.css({width:M+"px",height:b+"px"})}}if(c.pause){O.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(s(c)===false){return false}var n=false;o.requeueAttempts=o.requeueAttempts||0;j.each(function(){var H=y(this);this.cycleH=(c.fit&&c.height)?c.height:H.height();this.cycleW=(c.fit&&c.width)?c.width:H.width();if(H.is("img")){var F=(y.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var I=(y.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var G=(y.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var J=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(F||I||G||J){if(e.s&&c.requeueOnImageNotLoaded&&++o.requeueAttempts<100){v(o.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){y(e.s,e.c).cycle(o)},c.requeueTimeout);n=true;return false}else{v("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(n){return false}c.cssBefore=c.cssBefore||{};c.animIn=c.animIn||{};c.animOut=c.animOut||{};j.not(":eq("+N+")").css(c.cssBefore);if(c.cssFirst){y(j[N]).css(c.cssFirst)}if(c.timeout){c.timeout=parseInt(c.timeout);if(c.speed.constructor==String){c.speed=y.fx.speeds[c.speed]||parseInt(c.speed)}if(!c.sync){c.speed=c.speed/2}while((c.timeout-c.speed)<250){c.timeout+=c.speed}}if(c.easing){c.easeIn=c.easeOut=c.easing}if(!c.speedIn){c.speedIn=c.speed}if(!c.speedOut){c.speedOut=c.speed}c.slideCount=L.length;c.currSlide=c.lastSlide=N;if(c.random){c.nextSlide=c.currSlide;if(++c.randomIndex==L.length){c.randomIndex=0}c.nextSlide=c.randomMap[c.randomIndex]}else{c.nextSlide=c.startingSlide>=(L.length-1)?0:c.startingSlide+1}if(!c.multiFx){var g=y.fn.cycle.transitions[c.fx];if(y.isFunction(g)){g(O,j,c)}else{if(c.fx!="custom"&&!c.multiFx){v("unknown transition: "+c.fx,"; slideshow terminating");return false}}}var P=j[N];if(c.before.length){c.before[0].apply(P,[P,P,c,true])}if(c.after.length>1){c.after[1].apply(P,[P,P,c,true])}if(c.next){y(c.next).bind(c.prevNextEvent,function(){return E(c,c.rev?-1:1)})}if(c.prev){y(c.prev).bind(c.prevNextEvent,function(){return E(c,c.rev?1:-1)})}if(c.pager){t(L,c)}z(c,L);return c}function D(a){a.original={before:[],after:[]};a.original.cssBefore=y.extend({},a.cssBefore);a.original.cssAfter=y.extend({},a.cssAfter);a.original.animIn=y.extend({},a.animIn);a.original.animOut=y.extend({},a.animOut);y.each(a.before,function(){a.original.before.push(this)});y.each(a.after,function(){a.original.after.push(this)})}function s(g){var e,c,b=y.fn.cycle.transitions;if(g.fx.indexOf(",")>0){g.multiFx=true;g.fxs=g.fx.replace(/\s*/g,"").split(",");for(e=0;e<g.fxs.length;e++){var f=g.fxs[e];c=b[f];if(!c||!b.hasOwnProperty(f)||!y.isFunction(c)){v("discarding unknown transition: ",f);g.fxs.splice(e,1);e--}}if(!g.fxs.length){v("No valid transitions named; slideshow terminating.");return false}}else{if(g.fx=="all"){g.multiFx=true;g.fxs=[];for(p in b){c=b[p];if(b.hasOwnProperty(p)&&y.isFunction(c)){g.fxs.push(p)}}}}if(g.multiFx&&g.randomizeEffects){var d=Math.floor(Math.random()*20)+30;for(e=0;e<d;e++){var a=Math.floor(Math.random()*g.fxs.length);g.fxs.push(g.fxs.splice(a,1)[0])}q("randomized fx sequence: ",g.fxs)}return true}function z(b,a){b.addSlide=function(d,e){var c=y(d),f=c[0];if(!b.autostopCount){b.countdown++}a[e?"unshift":"push"](f);if(b.els){b.els[e?"unshift":"push"](f)}b.slideCount=a.length;c.css("position","absolute");c[e?"prependTo":"appendTo"](b.$cont);if(e){b.currSlide++;b.nextSlide++}if(!y.support.opacity&&b.cleartype&&!b.cleartypeNoBg){w(c)}if(b.fit&&b.width){c.width(b.width)}if(b.fit&&b.height&&b.height!="auto"){$slides.height(b.height)}f.cycleH=(b.fit&&b.height)?b.height:c.height();f.cycleW=(b.fit&&b.width)?b.width:c.width();c.css(b.cssBefore);if(b.pager){y.fn.cycle.createPagerAnchor(a.length-1,f,y(b.pager),a,b)}if(y.isFunction(b.onAddSlide)){b.onAddSlide(c)}else{c.hide()}}}y.fn.cycle.resetState=function(b,a){a=a||b.fx;b.before=[];b.after=[];b.cssBefore=y.extend({},b.original.cssBefore);b.cssAfter=y.extend({},b.original.cssAfter);b.animIn=y.extend({},b.original.animIn);b.animOut=y.extend({},b.original.animOut);b.fxFn=null;y.each(b.original.before,function(){b.before.push(this)});y.each(b.original.after,function(){b.after.push(this)});var c=y.fn.cycle.transitions[a];if(y.isFunction(c)){c(b.$cont,y(b.elements),b)}};function u(i,b,h,j){if(h&&b.busy&&b.manualTrump){y(i).stop(true,true);b.busy=false}if(b.busy){return}var f=b.$cont[0],a=i[b.currSlide],k=i[b.nextSlide];if(f.cycleStop!=b.stopCount||f.cycleTimeout===0&&!h){return}if(!h&&!f.cyclePause&&((b.autostop&&(--b.countdown<=0))||(b.nowrap&&!b.random&&b.nextSlide<b.currSlide))){if(b.end){b.end(b)}return}if(h||!f.cyclePause){var g=b.fx;a.cycleH=a.cycleH||y(a).height();a.cycleW=a.cycleW||y(a).width();k.cycleH=k.cycleH||y(k).height();k.cycleW=k.cycleW||y(k).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length){b.lastFx=0}g=b.fxs[b.lastFx];b.currFx=g}if(b.oneTimeFx){g=b.oneTimeFx;b.oneTimeFx=null}y.fn.cycle.resetState(b,g);if(b.before.length){y.each(b.before,function(l,m){if(f.cycleStop!=b.stopCount){return}m.apply(k,[a,k,b,j])})}var d=function(){y.each(b.after,function(l,m){if(f.cycleStop!=b.stopCount){return}m.apply(k,[a,k,b,j])})};if(b.nextSlide!=b.currSlide){b.busy=1;if(b.fxFn){b.fxFn(a,k,b,d,j)}else{if(y.isFunction(y.fn.cycle[b.fx])){y.fn.cycle[b.fx](a,k,b,d)}else{y.fn.cycle.custom(a,k,b,d,h&&b.fastOnEvent)}}}b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==i.length){b.randomIndex=0}b.nextSlide=b.randomMap[b.randomIndex]}else{var e=(b.nextSlide+1)==i.length;b.nextSlide=e?0:b.nextSlide+1;b.currSlide=e?i.length-1:b.nextSlide-1}if(b.pager){y.fn.cycle.updateActivePagerLink(b.pager,b.currSlide)}}var c=0;if(b.timeout&&!b.continuous){c=x(a,k,b,j)}else{if(b.continuous&&f.cyclePause){c=10}}if(c>0){f.cycleTimeout=setTimeout(function(){u(i,b,0,!b.rev)},c)}}y.fn.cycle.updateActivePagerLink=function(a,b){y(a).each(function(){y(this).find("a").removeClass("activeSlide").filter("a:eq("+b+")").addClass("activeSlide")})};function x(e,c,d,b){if(d.timeoutFn){var a=d.timeoutFn(e,c,d,b);while((a-d.speed)<250){a+=d.speed}q("calculated timeout: "+a+"; speed: "+d.speed);if(a!==false){return a}}return d.timeout}y.fn.cycle.next=function(a){E(a,a.rev?-1:1)};y.fn.cycle.prev=function(a){E(a,a.rev?1:-1)};function E(b,e){var a=b.elements;var d=b.$cont[0],c=d.cycleTimeout;if(c){clearTimeout(c);d.cycleTimeout=0}if(b.random&&e<0){b.randomIndex--;if(--b.randomIndex==-2){b.randomIndex=a.length-2}else{if(b.randomIndex==-1){b.randomIndex=a.length-1}}b.nextSlide=b.randomMap[b.randomIndex]}else{if(b.random){if(++b.randomIndex==a.length){b.randomIndex=0}b.nextSlide=b.randomMap[b.randomIndex]}else{b.nextSlide=b.currSlide+e;if(b.nextSlide<0){if(b.nowrap){return false}b.nextSlide=a.length-1}else{if(b.nextSlide>=a.length){if(b.nowrap){return false}b.nextSlide=0}}}}if(y.isFunction(b.prevNextClick)){b.prevNextClick(e>0,b.nextSlide,a[b.nextSlide])}u(a,b,1,e>=0);return false}function t(b,c){var a=y(c.pager);y.each(b,function(d,e){y.fn.cycle.createPagerAnchor(d,e,a,b,c)});y.fn.cycle.updateActivePagerLink(c.pager,c.startingSlide)}y.fn.cycle.createPagerAnchor=function(e,f,c,d,g){var b;if(y.isFunction(g.pagerAnchorBuilder)){b=g.pagerAnchorBuilder(e,f)}else{b='<a href="#">'+(e+1)+"</a>"}if(!b){return}var h=y(b);if(h.parents("body").length===0){var a=[];if(c.length>1){c.each(function(){var i=h.clone(true);y(this).append(i);a.push(i[0])});h=y(a)}else{h.appendTo(c)}}h.bind(g.pagerEvent,function(i){i.preventDefault();g.nextSlide=e;var k=g.$cont[0],j=k.cycleTimeout;if(j){clearTimeout(j);k.cycleTimeout=0}if(y.isFunction(g.pagerClick)){g.pagerClick(g.nextSlide,d[g.nextSlide])}u(d,g,1,g.currSlide<e);return false});if(g.pagerEvent!="click"){h.click(function(){return false})}if(g.pauseOnPagerHover){h.hover(function(){g.$cont[0].cyclePause++},function(){g.$cont[0].cyclePause--})}};y.fn.cycle.hopsFromLast=function(d,c){var b,a=d.lastSlide,e=d.currSlide;if(c){b=e>a?e-a:d.slideCount-a}else{b=e<a?a-e:a+d.slideCount-e}return b};function w(c){function b(d){d=parseInt(d).toString(16);return d.length<2?"0"+d:d}function a(f){for(;f&&f.nodeName.toLowerCase()!="html";f=f.parentNode){var d=y.css(f,"background-color");if(d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+b(e[0])+b(e[1])+b(e[2])}if(d&&d!="transparent"){return d}}return"#ffffff"}c.each(function(){y(this).css("background-color",a(this))})}y.fn.cycle.commonReset=function(f,d,e,b,c,a){y(e.elements).not(f).hide();e.cssBefore.opacity=1;e.cssBefore.display="block";if(b!==false&&d.cycleW>0){e.cssBefore.width=d.cycleW}if(c!==false&&d.cycleH>0){e.cssBefore.height=d.cycleH}e.cssAfter=e.cssAfter||{};e.cssAfter.display="none";y(f).css("zIndex",e.slideCount+(a===true?1:0));y(d).css("zIndex",e.slideCount+(a===true?0:1))};y.fn.cycle.custom=function(b,h,c,e,d){var a=y(b),i=y(h);var f=c.speedIn,l=c.speedOut,g=c.easeIn,k=c.easeOut;i.css(c.cssBefore);if(d){if(typeof d=="number"){f=l=d}else{f=l=1}g=k=null}var j=function(){i.animate(c.animIn,f,g,e)};a.animate(c.animOut,l,k,function(){if(c.cssAfter){a.css(c.cssAfter)}if(!c.sync){j()}});if(c.sync){j()}};y.fn.cycle.transitions={fade:function(b,c,a){c.not(":eq("+a.currSlide+")").css("opacity",0);a.before.push(function(f,d,e){y.fn.cycle.commonReset(f,d,e);e.cssBefore.opacity=0});a.animIn={opacity:1};a.animOut={opacity:0};a.cssBefore={top:0,left:0}}};y.fn.cycle.ver=function(){return B};y.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!y.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(b){b.fn.cycle.transitions.none=function(e,f,a){a.fxFn=function(i,c,d,j){b(c).show();b(i).hide();j()}};b.fn.cycle.transitions.scrollUp=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.height();f.cssBefore={top:a,left:0};f.cssFirst={top:0};f.animIn={top:0};f.animOut={top:-a}};b.fn.cycle.transitions.scrollDown=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.height();f.cssFirst={top:0};f.cssBefore={top:-a,left:0};f.animIn={top:0};f.animOut={top:a}};b.fn.cycle.transitions.scrollLeft=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.width();f.cssFirst={left:0};f.cssBefore={left:a,top:0};f.animIn={left:0};f.animOut={left:0-a}};b.fn.cycle.transitions.scrollRight=function(g,h,f){g.css("overflow","hidden");f.before.push(b.fn.cycle.commonReset);var a=g.width();f.cssFirst={left:0};f.cssBefore={left:-a,top:0};f.animIn={left:0};f.animOut={left:a}};b.fn.cycle.transitions.scrollHorz=function(e,f,a){e.css("overflow","hidden").width();a.before.push(function(j,d,i,c){b.fn.cycle.commonReset(j,d,i);i.cssBefore.left=c?(d.cycleW-1):(1-d.cycleW);i.animOut.left=c?-j.cycleW:j.cycleW});a.cssFirst={left:0};a.cssBefore={top:0};a.animIn={left:0};a.animOut={top:0}};b.fn.cycle.transitions.scrollVert=function(e,f,a){e.css("overflow","hidden");a.before.push(function(j,d,i,c){b.fn.cycle.commonReset(j,d,i);i.cssBefore.top=c?(1-d.cycleH):(d.cycleH-1);i.animOut.top=c?j.cycleH:-j.cycleH});a.cssFirst={top:0};a.cssBefore={left:0};a.animIn={top:0};a.animOut={left:0}};b.fn.cycle.transitions.slideX=function(e,f,a){a.before.push(function(h,c,d){b(d.elements).not(h).hide();b.fn.cycle.commonReset(h,c,d,false,true);d.animIn.width=c.cycleW});a.cssBefore={left:0,top:0,width:0};a.animIn={width:"show"};a.animOut={width:0}};b.fn.cycle.transitions.slideY=function(e,f,a){a.before.push(function(h,c,d){b(d.elements).not(h).hide();b.fn.cycle.commonReset(h,c,d,true,false);d.animIn.height=c.cycleH});a.cssBefore={left:0,top:0,height:0};a.animIn={height:"show"};a.animOut={height:0}};b.fn.cycle.transitions.shuffle=function(i,j,h){var g,a=i.css("overflow","visible").width();j.css({left:0,top:0});h.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d,true,true,true)});if(!h.speedAdjusted){h.speed=h.speed/2;h.speedAdjusted=true}h.random=0;h.shuffle=h.shuffle||{left:-a,top:15};h.els=[];for(g=0;g<j.length;g++){h.els.push(j[g])}for(g=0;g<h.currSlide;g++){h.els.push(h.els.shift())}h.fxFn=function(q,f,o,c,e){var d=e?b(q):b(f);b(f).css(o.cssBefore);var n=o.slideCount;d.animate(o.shuffle,o.speedIn,o.easeIn,function(){var l=b.fn.cycle.hopsFromLast(o,e);for(var m=0;m<l;m++){e?o.els.push(o.els.shift()):o.els.unshift(o.els.pop())}if(e){for(var t=0,k=o.els.length;t<k;t++){b(o.els[t]).css("z-index",k-t+n)}}else{var u=b(q).css("z-index");d.css("z-index",parseInt(u)+1+n)}d.animate({left:0,top:0},o.speedOut,o.easeOut,function(){b(e?this:q).hide();if(c){c()}})})};h.cssBefore={display:"block",opacity:1,top:0,left:0}};b.fn.cycle.transitions.turnUp=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false);d.cssBefore.top=c.cycleH;d.animIn.height=c.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,height:0};a.animIn={top:0};a.animOut={height:0}};b.fn.cycle.transitions.turnDown=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false);d.animIn.height=c.cycleH;d.animOut.top=h.cycleH});a.cssFirst={top:0};a.cssBefore={left:0,top:0,height:0};a.animOut={height:0}};b.fn.cycle.transitions.turnLeft=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true);d.cssBefore.left=c.cycleW;d.animIn.width=c.cycleW});a.cssBefore={top:0,width:0};a.animIn={left:0};a.animOut={width:0}};b.fn.cycle.transitions.turnRight=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true);d.animIn.width=c.cycleW;d.animOut.left=h.cycleW});a.cssBefore={top:0,left:0,width:0};a.animIn={left:0};a.animOut={width:0}};b.fn.cycle.transitions.zoom=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,false,true);d.cssBefore.top=c.cycleH/2;d.cssBefore.left=c.cycleW/2;d.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH};d.animOut={width:0,height:0,top:h.cycleH/2,left:h.cycleW/2}});a.cssFirst={top:0,left:0};a.cssBefore={width:0,height:0}};b.fn.cycle.transitions.fadeZoom=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,false);d.cssBefore.left=c.cycleW/2;d.cssBefore.top=c.cycleH/2;d.animIn={top:0,left:0,width:c.cycleW,height:c.cycleH}});a.cssBefore={width:0,height:0};a.animOut={opacity:0}};b.fn.cycle.transitions.blindX=function(g,h,f){var a=g.css("overflow","hidden").width();f.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d);d.animIn.width=c.cycleW;d.animOut.left=e.cycleW});f.cssBefore={left:a,top:0};f.animIn={left:0};f.animOut={left:a}};b.fn.cycle.transitions.blindY=function(g,h,f){var a=g.css("overflow","hidden").height();f.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d);d.animIn.height=c.cycleH;d.animOut.top=e.cycleH});f.cssBefore={top:a,left:0};f.animIn={top:0};f.animOut={top:a}};b.fn.cycle.transitions.blindZ=function(i,j,h){var g=i.css("overflow","hidden").height();var a=i.width();h.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d);d.animIn.height=c.cycleH;d.animOut.top=e.cycleH});h.cssBefore={top:g,left:a};h.animIn={top:0,left:0};h.animOut={top:g,left:a}};b.fn.cycle.transitions.growX=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true);d.cssBefore.left=this.cycleW/2;d.animIn={left:0,width:this.cycleW};d.animOut={left:0}});a.cssBefore={width:0,top:0}};b.fn.cycle.transitions.growY=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false);d.cssBefore.top=this.cycleH/2;d.animIn={top:0,height:this.cycleH};d.animOut={top:0}});a.cssBefore={height:0,left:0}};b.fn.cycle.transitions.curtainX=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,false,true,true);d.cssBefore.left=c.cycleW/2;d.animIn={left:0,width:this.cycleW};d.animOut={left:h.cycleW/2,width:0}});a.cssBefore={top:0,width:0}};b.fn.cycle.transitions.curtainY=function(e,f,a){a.before.push(function(h,c,d){b.fn.cycle.commonReset(h,c,d,true,false,true);d.cssBefore.top=c.cycleH/2;d.animIn={top:0,height:c.cycleH};d.animOut={top:h.cycleH/2,height:0}});a.cssBefore={left:0,height:0}};b.fn.cycle.transitions.cover=function(j,k,h){var l=h.direction||"left";var a=j.css("overflow","hidden").width();var d=j.height();h.before.push(function(f,c,e){b.fn.cycle.commonReset(f,c,e);if(l=="right"){e.cssBefore.left=-a}else{if(l=="up"){e.cssBefore.top=d}else{if(l=="down"){e.cssBefore.top=-d}else{e.cssBefore.left=a}}}});h.animIn={left:0,top:0};h.animOut={opacity:1};h.cssBefore={top:0,left:0}};b.fn.cycle.transitions.uncover=function(j,k,h){var l=h.direction||"left";var a=j.css("overflow","hidden").width();var d=j.height();h.before.push(function(f,c,e){b.fn.cycle.commonReset(f,c,e,true,true,true);if(l=="right"){e.animOut.left=a}else{if(l=="up"){e.animOut.top=-d}else{if(l=="down"){e.animOut.top=d}else{e.animOut.left=-a}}}});h.animIn={left:0,top:0};h.animOut={opacity:1};h.cssBefore={top:0,left:0}};b.fn.cycle.transitions.toss=function(i,j,h){var a=i.css("overflow","visible").width();var g=i.height();h.before.push(function(e,c,d){b.fn.cycle.commonReset(e,c,d,true,true,true);if(!d.animOut.left&&!d.animOut.top){d.animOut={left:a*2,top:-g/2,opacity:0}}else{d.animOut.opacity=0}});h.cssBefore={left:0,top:0};h.animIn={left:0}};b.fn.cycle.transitions.wipe=function(A,w,d){var z=A.css("overflow","hidden").width();var t=A.height();d.cssBefore=d.cssBefore||{};var l;if(d.clip){if(/l2r/.test(d.clip)){l="rect(0px 0px "+t+"px 0px)"}else{if(/r2l/.test(d.clip)){l="rect(0px "+z+"px "+t+"px "+z+"px)"}else{if(/t2b/.test(d.clip)){l="rect(0px "+z+"px 0px 0px)"}else{if(/b2t/.test(d.clip)){l="rect("+t+"px "+z+"px "+t+"px 0px)"}else{if(/zoom/.test(d.clip)){var y=parseInt(t/2);var h=parseInt(z/2);l="rect("+y+"px "+h+"px "+y+"px "+h+"px)"}}}}}}d.cssBefore.clip=d.cssBefore.clip||l||"rect(0px 0px 0px 0px)";var v=d.cssBefore.clip.match(/(\d+)/g);var B=parseInt(v[0]),a=parseInt(v[1]),x=parseInt(v[2]),r=parseInt(v[3]);d.before.push(function(m,f,j){if(m==f){return}var e=b(m),c=b(f);b.fn.cycle.commonReset(m,f,j,true,true,false);j.cssAfter.display="block";var i=1,g=parseInt((j.speedIn/13))-1;(function k(){var q=B?B-parseInt(i*(B/g)):0;var s=r?r-parseInt(i*(r/g)):0;var n=x<t?x+parseInt(i*((t-x)/g||1)):t;var o=a<z?a+parseInt(i*((z-a)/g||1)):z;c.css({clip:"rect("+q+"px "+o+"px "+n+"px "+s+"px)"});(i++<=g)?setTimeout(k,13):e.css("display","none")})()});d.cssBefore={display:"block",opacity:1,top:0,left:0};d.animIn={left:0};d.animOut={left:0}}})(jQuery);$(document).ready(function(){var a=$("#subNav ul  > li ");if(a.length<1){$("#subNav").css({display:"none"})}$("#subNav").appendTo("#content");$("#checkinCalendarIcon").attr("src","files/270/cal5.gif");$("#checkoutCalendarIcon").attr("src","files/270/cal5.gif");$("#linkHolder").cycle({fx:"scrollLeft",timeout:6000,next:"#next",prev:"#prev",pause:"true"})});
