(function(a,b){function c(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(!a.ui.version){a.extend(a.ui,{version:"1.8.6",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus();c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(c.css("zIndex"),10);if(!isNaN(d)&&d!==0)return d}c=c.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(c,d){function e(b,c,d,e){a.each(f,function(){c-=parseFloat(a.curCSS(b,"padding"+this,true))||0;if(d)c-=parseFloat(a.curCSS(b,"border"+this+"Width",true))||0;if(e)c-=parseFloat(a.curCSS(b,"margin"+this,true))||0});return c}var f=d==="Width"?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){if(c===b)return h["inner"+d].call(this);return this.each(function(){a(this).css(g,e(this,c)+"px")})};a.fn["outer"+d]=function(b,c){if(typeof b!=="number")return h["outer"+d].call(this,b);return this.each(function(){a(this).css(g,e(this,b,true,c)+"px")})}});a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){var d=b.nodeName.toLowerCase(),e=a.attr(b,"tabindex");if("area"===d){d=b.parentNode;e=d.name;if(!b.href||!e||d.nodeName.toLowerCase()!=="map")return false;b=a("img[usemap=#"+e+"]")[0];return!!b&&c(b)}return(/input|select|textarea|button|object/.test(d)?!b.disabled:"a"==d?b.href||!isNaN(e):!isNaN(e))&&c(b)},tabbable:function(b){var c=a.attr(b,"tabindex");return(isNaN(c)||c>=0)&&a(b).is(":focusable")}});a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=c.offsetHeight===100;a.support.selectstart="onselectstart"in c;b.removeChild(c).style.display="none"});a.extend(a.ui,{plugin:{add:function(b,c,d){b=a.ui[b].prototype;for(var e in d){b.plugins[e]=b.plugins[e]||[];b.plugins[e].push([c,d[e]])}},call:function(a,b,c){if((b=a.plugins[b])&&a.element[0].parentNode)for(var d=0;d<b.length;d++)a.options[b[d][0]]&&b[d][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return false;c=c&&c==="left"?"scrollLeft":"scrollTop";var d=false;if(b[c]>0)return true;b[c]=1;d=b[c]>0;b[c]=0;return d},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}})}})(jQuery);(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){if(!c)if(!b||a.filter(b,[this]).length)a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1];f=e+"-"+b;if(!d){d=c;c=a.Widget}a.expr[":"][f]=function(c){return!!a.data(c,b)};a[e]=a[e]||{};a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};c=new c;c.options=a.extend(true,{},c.options);a[e][b].prototype=a.extend(true,c,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d);a.widget.bridge(b,a[e][b])};a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e==="string",g=Array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[true,e].concat(g)):e;if(f&&e.charAt(0)==="_")return h;f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b){h=f;return false}}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))});return h}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c==="string"){if(d===b)return this.options[c];e={};e[c]=d}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;if(a==="disabled")this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,c,d){var e=this.options[b];c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d=d||{};if(c.originalEvent){b=a.event.props.length;for(var f;b;){f=a.event.props[--b];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(a.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);(function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"h2",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,d=b.options;b.running=0;b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");b.headers=b.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){d.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){d.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){d.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){d.disabled||a(this).removeClass("ui-state-focus")});b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(d.navigation){var e=b.element.find("a").filter(d.navigationFilter).eq(0);if(e.length){var f=e.closest(".ui-accordion-header");b.active=f.length?f:e.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||d.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");b.active.next().addClass("ui-accordion-content-active");b._createIcons();b.resize();b.element.attr("role","tablist");b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel");b.headers.not(b.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();b.active.length?b.active.attr({"aria-expanded":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0);a.browser.safari||b.headers.find("a").attr("tabIndex",-1);d.event&&b.headers.bind(d.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this);a.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(b.autoHeight||b.fillHeight){d.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(b,d){a.Widget.prototype._setOption.apply(this,arguments);b=="active"&&this.activate(d);if(b=="icons"){this._destroyIcons();d&&this._createIcons()}if(b=="disabled"){this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var d=a.ui.keyCode,e=this.headers.length,f=this.headers.index(b.target),g=false;switch(b.keyCode){case d.RIGHT:case d.DOWN:g=this.headers[(f+1)%e];break;case d.LEFT:case d.UP:g=this.headers[(f-1+e)%e];break;case d.SPACE:case d.ENTER:this._clickHandler({target:b.target},b.target);b.preventDefault()}if(g){a(b.target).attr("tabIndex",-1);a(g).attr("tabIndex",0);g.focus();return false}return true}},resize:function(){var b=this.options,d;if(b.fillSpace){if(a.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",e);this.headers.each(function(){d-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(b.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).height("").height())}).height(d)}}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,d){var e=this.options;if(!e.disabled){if(b.target){b=a(b.currentTarget||d);d=b[0]===this.active[0];e.active=e.collapsible&&d?false:this.headers.index(b);if(!(this.running||!e.collapsible&&d)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);if(!d){b.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected);b.next().addClass("ui-accordion-content-active")}h=b.next();f=this.active.next();g={options:e,newHeader:d&&e.collapsible?a([]):b,oldHeader:this.active,newContent:d&&e.collapsible?a([]):h,oldContent:f};e=this.headers.index(this.active[0])>this.headers.index(b[0]);this.active=d?a([]):b;this._toggle(h,f,g,d,e)}}else{if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);this.active.next().addClass("ui-accordion-content-active");var f=this.active.next(),g={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:f},h=this.active=a([]);this._toggle(h,f,g)}}}},_toggle:function(b,d,e,f,g){var h=this,i=h.options;h.toShow=b;h.toHide=d;h.data=e;var j=function(){if(h){return h._completed.apply(h,arguments)}};h._trigger("changestart",null,h.data);h.running=d.size()===0?b.size():d.size();if(i.animated){e={};e=i.collapsible&&f?{toShow:a([]),toHide:d,complete:j,down:g,autoHeight:i.autoHeight||i.fillSpace}:{toShow:b,toHide:d,complete:j,down:g,autoHeight:i.autoHeight||i.fillSpace};if(!i.proxied){i.proxied=i.animated}if(!i.proxiedDuration){i.proxiedDuration=i.duration}i.animated=a.isFunction(i.proxied)?i.proxied(e):i.proxied;i.duration=a.isFunction(i.proxiedDuration)?i.proxiedDuration(e):i.proxiedDuration;f=a.ui.accordion.animations;var k=i.duration,l=i.animated;if(l&&!f[l]&&!a.easing[l]){l="slide"}f[l]||(f[l]=function(a){this.slide(a,{easing:l,duration:k||700})});f[l](e)}else{if(i.collapsible&&f){b.toggle()}else{d.hide();b.show()}j(true)}d.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();b.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});a.extend(a.ui.accordion,{version:"1.8.6",animations:{slide:function(b,d){b=a.extend({easing:"swing",duration:300},b,d);if(b.toHide.size()){if(b.toShow.size()){var e=b.toShow.css("overflow"),f=0,g={},h={},i;d=b.toShow;i=d[0].style.width;d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(d,e){h[e]="hide";d=(""+a.css(b.toShow[0],e)).match(/^([\d+-.]+)(.*)$/);g[e]={value:d[1],unit:d[2]||"px"}});b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(h,{step:function(a,c){if(c.prop=="height"){f=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)}b.toShow[0].style[c.prop]=f*g[c.prop].value+g[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height","");b.toShow.css({width:i,overflow:e});b.complete()}})}else{b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b)}}else{b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b)}},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);(function(a){function c(c,f){var g=this,h=c.add(g),i=c.children(),j=0,l=f.vertical;d||(d=g);if(i.length>1)i=a(f.items,c);a.extend(g,{getConf:function(){return f},getIndex:function(){return j},getSize:function(){return g.getItems().size()},getNaviButtons:function(){return o.add(q)},getRoot:function(){return c},getItemWrap:function(){return i},getItems:function(){return i.children(f.item).not("."+f.clonedClass)},move:function(a,b){return g.seekTo(j+a,b)},next:function(a){return g.move(1,a)},prev:function(a){return g.move(-1,a)},begin:function(a){return g.seekTo(0,a)},end:function(a){return g.seekTo(g.getSize()-1,a)},focus:function(){return d=g},addItem:function(b){b=a(b);if(f.circular){i.children("."+f.clonedClass+":last").before(b);i.children("."+f.clonedClass+":first").replaceWith(b.clone().addClass(f.clonedClass))}else i.append(b);h.trigger("onAddItem",[b]);return g},seekTo:function(b,c,m){b.jquery||(b*=1);if(f.circular&&b===0&&j==-1&&c!==0)return g;if(!f.circular&&b<0||b>g.getSize()||b<-1)return g;var n=b;if(b.jquery)b=g.getItems().index(b);else n=g.getItems().eq(b);var o=a.Event("onBeforeSeek");if(!m){h.trigger(o,[b,c]);if(o.isDefaultPrevented()||!n.length)return g}n=l?{top:-n.position().top}:{left:-n.position().left};j=b;d=g;if(c===undefined)c=f.speed;i.animate(n,c,f.easing,m||function(){h.trigger("onSeek",[b])});return g}});a.each(["onBeforeSeek","onSeek","onAddItem"],function(b,c){a.isFunction(f[c])&&a(g).bind(c,f[c]);g[c]=function(b){b&&a(g).bind(c,b);return g}});if(f.circular){var m=g.getItems().slice(-1).clone().prependTo(i),n=g.getItems().eq(1).clone().appendTo(i);m.add(n).addClass(f.clonedClass);g.onBeforeSeek(function(a,b,c){if(!a.isDefaultPrevented())if(b==-1){g.seekTo(m,c,function(){g.end(0)});return a.preventDefault()}else b==g.getSize()&&g.seekTo(n,c,function(){g.begin(0)})});g.seekTo(0,0,function(){})}var o=b(c,f.prev).click(function(){g.prev()}),q=b(c,f.next).click(function(){g.next()});if(!f.circular&&g.getSize()>1){g.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){o.toggleClass(f.disabledClass,b<=0);q.toggleClass(f.disabledClass,b>=g.getSize()-1)}},1)});f.initialIndex||o.addClass(f.disabledClass)}f.mousewheel&&a.fn.mousewheel&&c.mousewheel(function(a,b){if(f.mousewheel){g.move(b<0?1:-1,f.wheelSpeed||50);return false}});if(f.touch){var r={};i[0].ontouchstart=function(a){a=a.touches[0];r.x=a.clientX;r.y=a.clientY};i[0].ontouchmove=function(a){if(a.touches.length==1&&!i.is(":animated")){var b=a.touches[0],c=r.x-b.clientX;b=r.y-b.clientY;g[l&&b>0||!l&&c>0?"next":"prev"]();a.preventDefault()}}}f.keyboard&&a(document).bind("keydown.scrollable",function(b){if(!(!f.keyboard||b.altKey||b.ctrlKey||a(b.target).is(":input")))if(!(f.keyboard!="static"&&d!=g)){var c=b.keyCode;if(l&&(c==38||c==40)){g.move(c==38?-1:1);return b.preventDefault()}if(!l&&(c==37||c==39)){g.move(c==37?-1:1);return b.preventDefault()}}});f.initialIndex&&g.seekTo(f.initialIndex,0,function(){})}function b(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}a.tools=a.tools||{version:"1.2.5"};a.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,touch:true,wheelSpeed:0}};var d;a.fn.scrollable=function(b){var d=this.data("scrollable");if(d)return d;b=a.extend({},a.tools.scrollable.conf,b);this.each(function(){d=new c(a(this),b);a(this).data("scrollable",d)});return b.api?d:this}})(jQuery);(function(a){a.fn.hoverIntent=function(b,c){var d={sensitivity:7,interval:50,timeout:50};d=a.extend(d,c?{over:b,out:c}:b);var e,f,g,h;var i=function(a){e=a.pageX;f=a.pageY};var j=function(b,c){c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(Math.abs(g-e)+Math.abs(h-f)<d.sensitivity){a(c).unbind("mousemove",i);c.hoverIntent_s=1;return d.over.apply(c,[b])}else{g=e;h=f;c.hoverIntent_t=setTimeout(function(){j(b,c)},d.interval)}};var k=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return d.out.apply(b,[a])};var l=function(b){var c=(b.type=="mouseover"?b.fromElement:b.toElement)||b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(b){c=this}}if(c==this){return false}var e=jQuery.extend({},b);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(b.type=="mouseover"){g=e.pageX;h=e.pageY;a(f).bind("mousemove",i);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){j(e,f)},d.interval)}}else{a(f).unbind("mousemove",i);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){k(e,f)},d.timeout)}}};return this.mouseover(l).mouseout(l)}})(jQuery);$.fn.equalHeights=function(a){$(this).each(function(){var a=0;$(this).children().each(function(b){if($(this).height()>a){a=$(this).height()}});if($.browser.msie&&$.browser.version==6){$(this).children().css({height:a})}$(this).children().css({"min-height":a})});return this};jQuery.extend({roundabout_shape:{def:"lazySusan",lazySusan:function(a,b,c){return{x:Math.sin(a+b),y:Math.sin(a+3*Math.PI/2+b)/8*c,z:(Math.cos(a+b)+1)/2,scale:Math.sin(a+Math.PI/2+b)/2+.5}}}});jQuery.fn.roundabout=function(){var a=typeof arguments[0]!="object"?{}:arguments[0];a={bearing:typeof a.bearing=="undefined"?0:jQuery.roundabout_toFloat(a.bearing%360),tilt:typeof a.tilt=="undefined"?0:jQuery.roundabout_toFloat(a.tilt),minZ:typeof a.minZ=="undefined"?100:parseInt(a.minZ,10),maxZ:typeof a.maxZ=="undefined"?400:parseInt(a.maxZ,10),minOpacity:typeof a.minOpacity=="undefined"?.4:jQuery.roundabout_toFloat(a.minOpacity),maxOpacity:typeof a.maxOpacity=="undefined"?1:jQuery.roundabout_toFloat(a.maxOpacity),minScale:typeof a.minScale=="undefined"?.4:jQuery.roundabout_toFloat(a.minScale),maxScale:typeof a.maxScale=="undefined"?1:jQuery.roundabout_toFloat(a.maxScale),duration:typeof a.duration=="undefined"?600:parseInt(a.duration,10),btnNext:a.btnNext||null,btnPrev:a.btnPrev||null,easing:a.easing||"swing",clickToFocus:a.clickToFocus!==false,focusBearing:typeof a.focusBearing=="undefined"?0:jQuery.roundabout_toFloat(a.focusBearing%360),shape:a.shape||"lazySusan",debug:a.debug||false,childSelector:a.childSelector||"li",startingChild:typeof a.startingChild=="undefined"?null:parseInt(a.startingChild,10),reflect:typeof a.reflect=="undefined"||a.reflect===false?false:true};this.each(function(b){var c=jQuery(this);var d=jQuery.roundabout_toFloat(360/c.children(a.childSelector).length);var e=a.startingChild===null?a.bearing:a.startingChild*d;c.addClass("roundabout-holder").css("padding",0).css("position","relative").css("z-index",a.minZ);c.data("roundabout",{bearing:e,tilt:a.tilt,minZ:a.minZ,maxZ:a.maxZ,minOpacity:a.minOpacity,maxOpacity:a.maxOpacity,minScale:a.minScale,maxScale:a.maxScale,duration:a.duration,easing:a.easing,clickToFocus:a.clickToFocus,focusBearing:a.focusBearing,animating:0,childInFocus:-1,shape:a.shape,period:d,debug:a.debug,childSelector:a.childSelector,reflect:a.reflect});if(a.clickToFocus===true){c.children(a.childSelector).each(function(b){jQuery(this).click(function(e){var f=a.reflect===true?360-d*b:d*b;f=jQuery.roundabout_toFloat(f);if(!jQuery.roundabout_isInFocus(c,f)){e.preventDefault();if(c.data("roundabout").animating===0){c.roundabout_animateAngleToFocus(f)}return false}})})}if(a.btnNext){jQuery(a.btnNext).bind("click.roundabout",function(a){a.preventDefault();if(c.data("roundabout").animating===0){c.roundabout_animateToNextChild()}return false})}if(a.btnPrev){jQuery(a.btnPrev).bind("click.roundabout",function(a){a.preventDefault();if(c.data("roundabout").animating===0){c.roundabout_animateToPreviousChild()}return false})}});this.roundabout_startChildren();if(typeof arguments[1]==="function"){var b=arguments[1],c=this;setTimeout(function(){b(c)},0)}return this};jQuery.fn.roundabout_startChildren=function(){this.each(function(a){var b=jQuery(this);var c=b.data("roundabout");var d=b.children(c.childSelector);d.each(function(a){var b=c.reflect===true?360-c.period*a:c.period*a;jQuery(this).addClass("roundabout-moveable-item").css("position","absolute");jQuery(this).data("roundabout",{startWidth:jQuery(this).width(),startHeight:jQuery(this).height(),startFontSize:parseInt(jQuery(this).css("font-size"),10),degrees:b})});b.roundabout_updateChildPositions()});return this};jQuery.fn.roundabout_setTilt=function(a){this.each(function(b){jQuery(this).data("roundabout").tilt=a;jQuery(this).roundabout_updateChildPositions()});if(typeof arguments[1]==="function"){var b=arguments[1],c=this;setTimeout(function(){b(c)},0)}return this};jQuery.fn.roundabout_setBearing=function(a){this.each(function(b){jQuery(this).data("roundabout").bearing=jQuery.roundabout_toFloat(a%360,2);jQuery(this).roundabout_updateChildPositions()});if(typeof arguments[1]==="function"){var b=arguments[1],c=this;setTimeout(function(){b(c)},0)}return this};jQuery.fn.roundabout_adjustBearing=function(a){a=jQuery.roundabout_toFloat(a);if(a!==0){this.each(function(b){jQuery(this).data("roundabout").bearing=jQuery.roundabout_getBearing(jQuery(this))+a;jQuery(this).roundabout_updateChildPositions()})}if(typeof arguments[1]==="function"){var b=arguments[1],c=this;setTimeout(function(){b(c)},0)}return this};jQuery.fn.roundabout_adjustTilt=function(a){a=jQuery.roundabout_toFloat(a);if(a!==0){this.each(function(b){jQuery(this).data("roundabout").tilt=jQuery.roundabout_toFloat(jQuery(this).roundabout_get("tilt")+a);jQuery(this).roundabout_updateChildPositions()})}if(typeof arguments[1]==="function"){var b=arguments[1],c=this;setTimeout(function(){b(c)},0)}return this};jQuery.fn.roundabout_animateToBearing=function(a){a=jQuery.roundabout_toFloat(a);var b=new Date;var c=typeof arguments[1]=="undefined"?null:arguments[1];var d=typeof arguments[2]=="undefined"?null:arguments[2];var e=typeof arguments[3]!=="object"?null:arguments[3];this.each(function(f){var g=jQuery(this),h=g.data("roundabout"),i,j,k;var l=c===null?h.duration:c;var m=d!==null?d:h.easing||"swing";if(e===null){e={timerStart:b,start:jQuery.roundabout_getBearing(g),totalTime:l}}i=b-e.timerStart;if(i<l){h.animating=1;if(typeof jQuery.easing.def=="string"){j=jQuery.easing[m]||jQuery.easing[jQuery.easing.def];k=j(null,i,e.start,a-e.start,e.totalTime)}else{k=jQuery.easing[m](i/e.totalTime,i,e.start,a-e.start,e.totalTime)}g.roundabout_setBearing(k,function(){g.roundabout_animateToBearing(a,l,m,e)})}else{a=a<0?a+360:a%360;h.animating=0;g.roundabout_setBearing(a)}});return this};jQuery.fn.roundabout_animateToDelta=function(a){var b=arguments[1],c=arguments[2];this.each(function(d){a=jQuery.roundabout_getBearing(jQuery(this))+jQuery.roundabout_toFloat(a);jQuery(this).roundabout_animateToBearing(a,b,c)});return this};jQuery.fn.roundabout_animateToChild=function(a){var b=arguments[1],c=arguments[2];this.each(function(d){var e=jQuery(this),f=e.data("roundabout");if(f.childInFocus!==a&&f.animating===0){var g=jQuery(e.children(f.childSelector)[a]);e.roundabout_animateAngleToFocus(g.data("roundabout").degrees,b,c)}});return this};jQuery.fn.roundabout_animateToNearbyChild=function(a,b){var c=a[0],d=a[1];this.each(function(a){var e=jQuery(this).data("roundabout");var f=jQuery.roundabout_toFloat(360-jQuery.roundabout_getBearing(jQuery(this)));var g=e.period,h=0,i;var j=e.reflect;var k=jQuery(this).children(e.childSelector).length;f=j===true?f%360:f;if(e.animating===0){if(j===false&&b==="next"||j===true&&b!=="next"){f=f===0?360:f;while(true&&h<k){i={lower:jQuery.roundabout_toFloat(g*h),upper:jQuery.roundabout_toFloat(g*(h+1))};i.upper=h==k-1?360:i.upper;if(f<=i.upper&&f>i.lower){jQuery(this).roundabout_animateToDelta(f-i.lower,c,d);break}h++}}else{while(true){i={lower:jQuery.roundabout_toFloat(g*h),upper:jQuery.roundabout_toFloat(g*(h+1))};i.upper=h==k-1?360:i.upper;if(f>=i.lower&&f<i.upper){jQuery(this).roundabout_animateToDelta(f-i.upper,c,d);break}h++}}}});return this};jQuery.fn.roundabout_animateToNextChild=function(){return this.roundabout_animateToNearbyChild(arguments,"next")};jQuery.fn.roundabout_animateToPreviousChild=function(){return this.roundabout_animateToNearbyChild(arguments,"previous")};jQuery.fn.roundabout_animateAngleToFocus=function(a){var b=arguments[1],c=arguments[2];this.each(function(d){var e=jQuery.roundabout_getBearing(jQuery(this))-a;e=Math.abs(360-e)<Math.abs(0-e)?360-e:0-e;e=e>180?-(360-e):e;if(e!==0){jQuery(this).roundabout_animateToDelta(e,b,c)}});return this};jQuery.fn.roundabout_updateChildPositions=function(){this.each(function(a){var b=jQuery(this),c=b.data("roundabout");var d=-1;var e={bearing:jQuery.roundabout_getBearing(b),tilt:c.tilt,stage:{width:Math.floor(b.width()*.9),height:Math.floor(b.height()*.9)},animating:c.animating,inFocus:c.childInFocus,focusBearingRad:jQuery.roundabout_degToRad(c.focusBearing),shape:jQuery.roundabout_shape[c.shape]||jQuery.roundabout_shape[jQuery.roundabout_shape.def]};e.midStage={width:e.stage.width/2,height:e.stage.height/2};e.nudge={width:e.midStage.width+e.stage.width*.05,height:e.midStage.height+e.stage.height*.05};e.zValues={min:c.minZ,max:c.maxZ,diff:c.maxZ-c.minZ};e.opacity={min:c.minOpacity,max:c.maxOpacity,diff:c.maxOpacity-c.minOpacity};e.scale={min:c.minScale,max:c.maxScale,diff:c.maxScale-c.minScale};b.children(c.childSelector).each(function(a){if(jQuery.roundabout_updateChildPosition(jQuery(this),b,e,a)&&e.animating===0){d=a;jQuery(this).addClass("roundabout-in-focus")}else{jQuery(this).removeClass("roundabout-in-focus")}});if(d!==e.inFocus){jQuery.roundabout_triggerEvent(b,e.inFocus,"blur");if(d!==-1){jQuery.roundabout_triggerEvent(b,d,"focus")}c.childInFocus=d}});return this};jQuery.roundabout_getBearing=function(a){return jQuery.roundabout_toFloat(a.data("roundabout").bearing)%360};jQuery.roundabout_degToRad=function(a){return a%360*Math.PI/180};jQuery.roundabout_isInFocus=function(a,b){return jQuery.roundabout_getBearing(a)%360===b%360};jQuery.roundabout_triggerEvent=function(a,b,c){return b<0?this:jQuery(a.children(a.data("roundabout").childSelector)[b]).trigger(c)};jQuery.roundabout_toFloat=function(a){a=Math.round(parseFloat(a)*1e3)/1e3;return parseFloat(a.toFixed(2))};jQuery.roundabout_updateChildPosition=function(a,b,c,d){var e=jQuery(a),f=e.data("roundabout"),g=[];var h=jQuery.roundabout_degToRad(360-e.data("roundabout").degrees+c.bearing);while(h<0){h=h+Math.PI*2}while(h>Math.PI*2){h=h-Math.PI*2}var i=c.shape(h,c.focusBearingRad,c.tilt);i.scale=i.scale>1?1:i.scale;i.adjustedScale=(c.scale.min+c.scale.diff*i.scale).toFixed(4);i.width=(i.adjustedScale*f.startWidth).toFixed(4);i.height=(i.adjustedScale*f.startHeight).toFixed(4);e.css("left",(i.x*c.midStage.width+c.nudge.width-i.width/2).toFixed(1)+"px").css("top",(i.y*c.midStage.height+c.nudge.height-i.height/2).toFixed(1)+"px").css("width",i.width+"px").css("height",i.height+"px").css("opacity",(c.opacity.min+c.opacity.diff*i.scale).toFixed(2)).css("z-index",Math.round(c.zValues.min+c.zValues.diff*i.z)).css("font-size",(i.adjustedScale*f.startFontSize).toFixed(2)+"px").attr("current-scale",i.adjustedScale);if(b.data("roundabout").debug===true){g.push('<div style="font-weight: normal; font-size: 10px; padding: 2px; width: '+e.css("width")+'; background-color: #ffc;">');g.push('<strong style="font-size: 12px; white-space: nowrap;">Child '+d+"</strong><br />");g.push("<strong>left:</strong> "+e.css("left")+"<br /><strong>top:</strong> "+e.css("top")+"<br />");g.push("<strong>width:</strong> "+e.css("width")+"<br /><strong>opacity:</strong> "+e.css("opacity")+"<br />");g.push("<strong>z-index:</strong> "+e.css("z-index")+"<br /><strong>font-size:</strong> "+e.css("font-size")+"<br />");g.push("<strong>scale:</strong> "+e.attr("current-scale"));g.push("</div>");e.html(g.join(""))}return jQuery.roundabout_isInFocus(b,e.data("roundabout").degrees)};(function(a){if(typeof b=="undefined")var b={};b.IeSniff=function(){var a,b=3,c=document.createElement("div"),d=c.getElementsByTagName("i");while(c.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><![endif]-->",d[0]);return b>4?b:a}();b.mnFlyOut=function(){a("#mnCont li.lv0").hoverIntent(function(){var b=a(this);if(!b.find("a.lv0").hasClass("current")){b.find("a.lv0").addClass("jsHover")}if(b.find("ul.lv1").length){b.find("ul.lv1").slideDown("fast")}},function(){var b=a(this);b.find("a.lv0").removeClass("jsHover");if(b.find("ul.lv1").length){b.find("ul.lv1").hide()}})}();b.csFlyOut=function(){a("#countrySelect").hoverIntent(function(){var b=a(this);b.find(".countrySelected").addClass("countrySelectedOpen");b.find("#selectCont").slideDown("fast")},function(){var b=a(this);b.find(".countrySelected").removeClass("countrySelectedOpen");b.find("#selectCont").slideUp("fast")})}();b.tgFmVal=function(){var b=[];a("body").delegate("input[type=text]","focus",function(){if(!b[this.id]){b[this.id]=this.value}if(this.value==b[this.id]){this.value=""}});a("body").delegate("input[type=text]","blur",function(){if(this.value==""){this.value=b[this.id]}})}();b.tgBoxes=function(){a(".tgBoxSrd").each(function(){var b=a(this);b.find(".tgContent.tgOpen").css("display","block");b.find(".tgEvent").wrapInner('<a href="#"></a>').find("a").click(function(b){b.preventDefault();a(this).parent().toggleClass("tgOpen").next().slideToggle("fast",function(){a("#ctHolder > div").css({height:"auto","min-height":0})}).toggleClass("tgOpen")})})}();b.trRoundAbout=function(){if(a("#trRoundAbout").length){var b=a("#trRoundAbout li").length;a("ul#trRoundAbout").roundabout({tilt:1.2,minScale:.6,btnNext:"#raNext",btnPrev:"#raPrev",reflect:true})}}();b.contentScroller=function(){if(a(".contentScroller").length||a(".contentScrollerHome").length){a(".scrollItemsCont").equalHeights();a(".fbNavCont .fbNavNext , .fbNavCont .fbNavPrev").click(function(a){a.preventDefault()});a(".contentScroller,.contentScrollerHome").scrollable({next:".fbNavCont .fbNavNext",prev:".fbNavCont .fbNavPrev",circular:true})}if(a("#hpTeaserCont").length){a("#hpTeaserCont .ct").equalHeights()}}();b.hpAccordion=function(){if(a("#hpAccordion").length){a("#hpAccordion").accordion({fillSpace:true})}}()})(jQuery)
