(function(b){var a=new Date().getTime();b.fn.embedSWF=function(g){var c=[],f=["width","height","expressInstall","version"];g=b.extend(true,{},b.fn.embedSWF.defaults,g);function e(h){var i=h.attr("id");if(!i){i="id-"+String(a++);h.attr({id:i})}return i}function d(j){var i={},h=null;if(j){j=j.replace(/^\?/,"").replace(/&amp;/g,"&").split(/&/);b.each(j,function(k,l){h=l.split(/\=/);i[decodeURIComponent(h[0])]=(h[1])?decodeURIComponent(h[1]):""})}return i}this.each(function(){var m=b(this),k=this.className,o=b("a",this).filter('[href*=".swf"], [href*=".flv"]'),i=e(m),h=o.attr("href").split("?"),l=d(h[1]),j=l.width||m.width(),r=l.height||m.height(),p=l.version||g.version,q=false,n=null;if(l.expressInstall=="false"){q=false}else{if(!l.expressInstall){q=g.expressInstall}else{q=l.expressInstall}}b.each(f,function(t,s){delete l[s]});b.extend({},g.parameters,l);swfobject.embedSWF(h[0],i,j,r,p,q,false,l);n=document.getElementById(i);n.className=k;c.push(n)});return this.pushStack(c)};b.fn.embedSWF.defaults={expressInstall:false,version:"9.0.124",parameters:{}}}(jQuery));(function(d){try{if(!window.console){window.console={}}if(!console.log){console.log=d.noop}}catch(i){}if(document.execCommand){try{document.execCommand("BackgroundImageCache",false,true)}catch(i){}}if(!d.support.opacity&&!d.opacityRemoveFix){var b=d.style;d.style=function(l,k,m){var e=b(l,k,m);if(k==="opacity"&&m==1){l.style.filter=(l.style.filter||"").replace("alpha(opacity=100)","")}return e};d.opacityRemoveFix=true}d.beget=function(l,e){var k=function(){};l=new k();if(l.create&&l.create.apply){l.create.call(l,e||{})}return l};var h=["h1","h2","h3","h4","h5","h6","a","p","li","dt","dd","blockquote","address","th","td","dfn"],c=d.expr.filters;c.focusPoint=function(k){var e=k.nodeName.toLowerCase();return((!k.disabled&&k.type!=="hidden"&&k.getAttribute("role")!=="presentation"&&k.getAttribute("aria-disabled")!=="true")&&(k.offsetWidth>0&&k.offsetHeight>0&&d.curCSS(k,"visibility")!=="hidden")&&(d.inArray(e,h)!==-1))};c.focusAble=function(e,k){return(d.attr(k,"tabindex")!==undefined)};d.fn.firstExpOf=function(n){if(!this[0]){return this.pushStack([])}var k=d("*",this[0]),e=k.length,l=[];for(var m=0;m<e;m++){if(c[n](k[m],m)){l=[k[m]];break}}return this.pushStack(l)};var f=location.href.split("#")[0];d.fn.getHrefHash=function(k){var e="";if(this[0]){e=this[0].hash||this[0].href.replace(f,"")}return e};d("html").addClass("js-on");var g,j;d.SCROLLBARWIDTH=15;d.SCROLLROOT=d(d.browser.webkit||document.compatMode=="BackCompat"?document.body:document.documentElement);function a(){g=d(document.body);j=g[0].style;var e=d('<div style="position: absolute; visibility: hidden; width: 80px; overflow: scroll;height: 80px;"><div style="width: 99px; height: 99px;" /></div>').appendTo("body");d.SCROLLBARWIDTH=e.innerWidth()-d("div",e).css("width","auto").innerWidth();e.remove();e=null;g.removeClass("js-off")}if(!document.body||!document.body.style){d(a)}else{a()}d.each(["outerHeight","outerWidth","height","width","innerHeight","innerWidth"],function(k,e){d.fn[e+"s"]=function(l){if((e==="height"||e==="width")&&l!==undefined){return d.fn[e].apply(this,arguments)}var m=0;this.each(function(){m+=d(this)[e](l)});return m}})})(jQuery);(function(e){var c=true;function a(){c=false;d(function(){c=true},1)}function f(h){var i=h.originalEvent;if(h.target===document||h.target===window||e.nodeName(h.target,"body")||e.nodeName(h.target,"html")||e.attr(h.target,"tabindex")===undefined){a();return false}if(i){if(c&&h.target&&h.target.nodeType===1&&(i.explicitOriginalTarget&&i.explicitOriginalTarget&&i.explicitOriginalTarget!==window&&i.explicitOriginalTarget!==document&&!e(i.explicitOriginalTarget).is("html, body")||i.toElement||i.fromElement)){return true}else{return false}}return true}e.each(["focusin","focusout"],function(j,h){e.event.special["dom"+h]={setup:function(){e(this).bind(h,e.event.special["dom"+h].handler);return true},teardown:function(){e(this).unbind(h,e.event.special["dom"+h].handler);return true},handler:function(i){if(f(i)){i=e.extend({},i,{type:"dom"+h});return e.event.handle.call(this,i)}return undefined}}});var g=window.clearInterval,b=window.setInterval,d=window.setTimeout;e.createTimer=function(i){function h(j){if(i[j]!==undefined){g(i[j])}}return{setInterval:function(k,l,j){h(k);i[k]=b(function(){l.call(i)},j)},setDelay:function(k,l,j){h(k);i[k]=d(function(){l.call(i)},j)},clear:h}}})(jQuery);(function(g){var h="position: absolute; width: 1px; height: 1px; overflow: hidden;margin: 0; padding: 0;top: 0;",a=(g("html").attr("dir")==="rtl")?"right: -9999em;":"left: -99999em;",c=h+a,b=parseInt(g.browser.version,10);g.support.waiAria=(!g.browser.msie||b>7);g.notIE6=(!g.browser.msie||b>6);g.browser.lteIE6=(g.browser.msie&&b<7);g.browser.lteIE7=(g.browser.msie&&b<8);g.browser.lteIE8=(g.browser.msie&&b<9);if(g.fx.interval<16){g.fx.interval=17;if(g.browser.lteIE8||g.browser.mozilla&&b<2){g.fx.interval=25}g(function(){try{if(g(window).width()<490&&g(window).height()<490){g.fx.interval=33}}catch(i){}})}g(function(){var j=document.createElement("style"),i;j.setAttribute("type","text/css");j=g(j).prependTo("head");i=document.styleSheets[0];function k(l,m){if(i.cssRules||i.rules){if(i.insertRule){i.insertRule(l+" {"+m+";}",i.cssRules.length)}else{if(i.addRule){i.addRule(l,m)}}}}k(".a11y-js-overflow","overflow:visible !important");k(".a11y-hidden","position:absolute");k(".a11y-hidden",a.replace(";",""));g.cssRule={add:k}});g.ui=g.ui||{};if(!g.ui.keyCode){g.ui.keyCode={DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}}g.ui.userMode=(function(){var l,m,i;function j(){if(console.firebug&&console.info){return}i=i||g('<div style="'+c+'"></div>').appendTo("body");var p=g.curCSS(i.css({backgroundColor:"#000000"})[0],"backgroundColor",true),n=g.curCSS(i.css({backgroundColor:"#ffffff"})[0],"backgroundColor",true),o=(p===n||n==="transparent");if(o!=l){l=o;g.event.trigger({type:"usermode",disabled:!l,enabled:l})}return l}function k(){j();clearInterval(m);m=setInterval(j,3000)}g.event.special.usermode={add:function(n){j();var o=this;setTimeout(function(){g(o).trigger({type:"usermode",disabled:!l,enabled:l})},0);return n},setup:function(){},teardown:function(){},handler:function(){}};return{get:j,init:k}})();g.fn.userMode=function(i){return this[(i)?"bind":"trigger"]("usermode",i)};g(function(){g("html").userMode(function(i){g(this)[i.enabled?"addClass":"removeClass"]("hcm")});g.ui.userMode.init()});(function(k){var j=false;function i(l){if(!j&&(!l.keyCode||l.keyCode===13||(l.keyCode===32&&k.attr(l.target,"role")==="button"))){j=true;setTimeout(function(){j=false},1);return k.event.special.ariaclick.handler.apply(this,arguments)}else{if(j&&l.type=="click"){l.preventDefault();return false}}return undefined}k.event.special.ariaclick={setup:function(){k(this).bind("click keypress",i);return true},teardown:function(){k(this).unbind("click keypress",i);return true},handler:function(l){l.type="ariaclick";return k.event.handle.apply(this,arguments)}}})(jQuery);g.bodyDefaultFontsize=10;g.testEm=(function(){var i=document.body,n,j={type:"emchange",emPx:0,oldEmPx:0},k=g(document.documentElement);function m(){if(console.firebug&&console.info){return}var o=j.emPx;j.emPx=parseInt(g.curCSS(i,"fontSize",true),10);if(j.emPx!==o){j.oldEmPx=o;g.event.trigger(j)}return j}function l(r){var o=r.emPx-g.bodyDefaultFontsize,q=(o>0)?"em-increased-":"em-decreased-",p=[];o=Math.abs(o)+1;while(o-->1){p.push(q+o)}k[0].className=g.grep(k[0].className.split(" "),function(s){return(s.indexOf("em-increased-")!==0&&s.indexOf("em-decreased-")!==0)}).concat(p).join(" ")}g(function(){i=document.body;clearInterval(n);setTimeout(function(){k.bind("emchange",l);m();n=setInterval(m,3000)},0)});return m})();(function(l){var n=true,i=document,q=("activeElement" in document),r=70,o,p;function m(s){n=false;clearTimeout(o);setTimeout(function(){n=true;clearTimeout(o)},99)}function k(t){var s=l(t.target).addClass("a11y-focus");i=t.target;if(!q){document.activeElement=t.target}clearTimeout(o);o=setTimeout(function(){if(n){s.addClass("a11y-focus-key").trigger("keyfocus")}},0)}l(document).bind("mousedown click",m).bind("domfocusin",k).bind("focusout",function(s){clearTimeout(o);l(s.target).removeClass("a11y-focus-key a11y-focus-widget a11y-focus")});function j(t){var s=t.attr("tabindex");if(!(s||s===0)){t.css({outline:"none"}).attr({tabindex:"-1"});if(!l.support.waiAria&&t[0]){t[0].hideFocus=true}}return t}l.fn.setFocus=function(v){if(!this[0]){return this}v=l.extend({},l.fn.setFocus.defaults,v);var u=this[0],x=l(u),y=document.activeElement,t=new Date().getTime(),s=function(){try{m();u.focus();x.addClass("a11y-focus-widget")}catch(z){}},w;if(v.addTabindex){j(x)}l.ui.SR.update();if(!v.fast){if(y&&y.focus&&y.blur){y.blur();m();y.focus()}clearTimeout(p);w=x.closest(":animated",v.context);if(w[0]){w.queue(function(){var z=new Date().getTime()-t-r;z=(z>9)?z:9;p=setTimeout(s,z);setTimeout(function(){w.dequeue()},z+16)})}else{p=setTimeout(s,r)}}else{s()}return this};l.fn.setFocus.defaults={addTabindex:true,fast:false,context:false}})(jQuery);g.fn.ariaHide=function(){g.fn.hide.apply(this,arguments);return this.attr({"aria-hidden":"true"})};g.fn.ariaShow=function(){g.fn.show.apply(this,arguments);return this.attr({"aria-hidden":"false"})};g.ui.SR=(function(){var p,i=0,l,m,n,j;function r(){l=g('<div class="a11y-hidden" role="alert" style="'+c+'" />').ariaHide().appendTo("body");n=g('<div class="a11y-hidden" style="'+c+'"><div aria-live="polite" relevant="additions text" /> </div>').appendTo("body").find("div");p=g('<form role="presentation" action="#" class="aural" style="'+c+'"><input name="sr-update" id="sr-update" type="hidden" value="'+i+'" /></form>').appendTo("body").find("input").ajaxComplete(k)}function k(){var s,t;if(p){p[0].setAttribute("value",""+(++i));setTimeout(function(){p[0].setAttribute("value",""+(++i))},1)}}function o(s){clearTimeout(m);l.ariaHide().html(s).find("*").attr({role:"presentation"}).end().ariaShow();m=setTimeout(function(){l.ariaHide().empty()},999)}function q(s){s=g("<div>"+s+"</div>").find("*").attr({role:"presentation"}).end();n.html(s);clearTimeout(j);j=setTimeout(function(){n.empty()},999)}return{update:k,alert:o,giveStatus:q,init:r}})();g(g.ui.SR.init);if(!g.fn.getID){var f=new Date().getTime();g.fn.getID=function(j){function i(){var k=this.getAttribute("id");if(!k){k="ID-"+(f++);this.setAttribute("id",k)}return k}if(this[0]){if(j){this.each(i)}return i.call(this[0])}return undefined}}g.each({labelWith:"aria-labelledby",describeWith:"aria-describedby",ownsThis:"aria-owns",controlsThis:"aria-controls",activateThis:"aria-activedescendant"},function(i,j){g.fn[i]=function(k){return this.attr(j,g(k).getID()||"")}});var e=/focusin|focus$|mouseenter|mouseover/,d=0;g.fn.enterLeave=function(n,j,m){m=g.extend({},g.fn.enterLeave.defaults,m);d++;var i="enterLeaveData-"+d;var l="mouseenter mouseleave focusin focusout";if(m.useEventTypes==="mouse"){l="mouseenter mouseleave"}else{if(m.useEventTypes==="focus"){l="focusin focusout"}}var k=function k(s){var q,p=g.data(this,i)||g.data(this,i,{inEvents:0}),t,r=this,o;if(e.test(s.type)){q=n;t=[1,"in",true];if(m.useWebkitAutoBlur){p.autoBlur=true;setTimeout(function(){p.autoBlur=false},0)}}else{q=j;t=[-1,"out",false];if(p.autoBlur){return}}clearTimeout(p.inOutTimer);p.inEvents=Math.max(p.inEvents+t[0],0);p.inOutTimer=setTimeout(function(){if(t[2]!=p.inOutState&&(t[2]||!m.bothOut||!p.inEvents)){p.inOutState=t[2];o=g.Event(t[1]);o.originalEvent=s;g.extend(o,{target:s.target,currentTarget:s.currentTarget});q.call(r,o)}},/focus/.test(s.type)?m.keyDelay:m.mouseDelay)};return this[m.bindStyle](l,k)};g.fn.enterLeave.defaults={mouseDelay:0,keyDelay:1,bothOut:false,useEventTypes:"both",useWebkitAutoBlur:false,bindStyle:"bind"};g.fn.inOut=g.fn.enterLeave;g.fn.slideParentDown=function(j){j=g.extend({},g.fn.slideParentDown.defaults,j);var i=j.complete;return this.each(function(){var m=g(this),k=m.parent().css({height:""}),l;m.css((j.hideStyle==="visibility")?{visibility:""}:{display:"block"});l=k.height();k.css({overflow:"hidden",height:"0px"}).animate({height:l},g.extend({},j,{complete:function(){k.css({height:""});i.apply(this,arguments)}}))})};g.fn.slideParentDown.defaults={duration:400,complete:g.noop,hideStyle:"display"};g.fn.slideParentUp=function(j){j=g.extend({},g.fn.slideParentUp.defaults,j);var i=j.complete;return this.each(function(){var m=g(this),k=m.parent().css({overflow:"hidden"}),l={height:"0px"};if(g.browser.mozilla&&j.flickrFix){l.flickrFix=Math.random()*2}k.animate(l,g.extend({},j,{complete:function(){if(j.hideStyle==="visibility"){m.css({visibility:"hidden"})}else{m.css({display:"none"});k.css({height:"",overflow:"",display:""})}i.apply(this,arguments)}}))})};g.fn.slideParentUp.defaults={duration:400,hideStyle:"display",complete:g.noop,flickrFix:false};g.support.inlineBlock=true;g(function(){var i=g('<div style="display: inline-block;"/>').appendTo("body");g.support.inlineBlock=(i.css("display")==="inline-block");i.remove()})})(jQuery);
