!function(t){var e,o,n,i,s,r;function a(){return[t(document).width(),t(document).height()]}function l(e){if(e)return e.call(t.mask)}t.tools=t.tools||{version:"v1.2.7"},e=t.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}},t.mask={load:function(c,f){if(i)return this;"string"==typeof c&&(c={color:c}),c=c||s,s=c=t.extend(t.extend({},e.conf),c),(o=t("#"+c.maskId)).length||(o=t("<div/>").attr("id",c.maskId),t("body").append(o));var u=a();return o.css({position:"absolute",top:0,left:0,width:u[0],height:u[1],display:"none",opacity:c.startOpacity,zIndex:c.zIndex}),c.color&&o.css("backgroundColor",c.color),!1===l(c.onBeforeLoad)||(c.closeOnEsc&&t(document).on("keydown.mask",(function(e){27===e.keyCode&&t.mask.close(e)})),c.closeOnClick&&o.on("click.mask",(function(e){t.mask.close(e)})),t(window).on("resize.mask",(function(){t.mask.fit()})),f&&f.length&&(r=f.eq(0).css("zIndex"),t.each(f,(function(){var e=t(this);/relative|absolute|fixed/i.test(e.css("position"))||e.css("position","relative")})),n=f.css({zIndex:Math.max(c.zIndex+1,"auto"===r?0:r)})),o.css({display:"block"}).fadeTo(c.loadSpeed,c.opacity,(function(){t.mask.fit(),l(c.onLoad),i="full"})),i=!0),this},close:function(){if(i){if(!1===l(s.onBeforeClose))return this;o.fadeOut(s.closeSpeed,(function(){l(s.onClose),n&&n.css({zIndex:r}),i=!1})),t(document).off("keydown.mask"),o.off("click.mask"),t(window).off("resize.mask")}return this},fit:function(){if(i){var t=a();o.css({width:t[0],height:t[1]})}},getMask:function(){return o},isLoaded:function(t){return t?"full"===i:i},getConf:function(){return s},getExposed:function(){return n}},t.fn.mask=function(e){return t.mask.load(e),this},t.fn.expose=function(e){return t.mask.load(e,this),this}}(jQuery),function(){var t=document.all,e="http://www.adobe.com/go/getflashplayer",o="function"==typeof jQuery,n=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,i={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};function s(t,e){if(e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}window.attachEvent&&window.attachEvent("onbeforeunload",(function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}})),window.flashembed=function(t,e,o){if("string"==typeof t&&(t=document.getElementById(t.replace("#",""))),t)return"string"==typeof e&&(e={src:e}),new l(t,s(s({},i),e),o)};var r=s(window.flashembed,{conf:i,getVersion:function(){var t,e;try{e=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{e=(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&t.GetVariable("$version")}catch(o){try{e=(t=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&t.GetVariable("$version")}catch(t){}}}return(e=n.exec(e))?[e[1],e[3]]:[0,0]},asString:function(t){if(null==t)return null;var e=typeof t;switch("object"===e&&t.push&&(e="array"),e){case"string":return'"'+(t=(t=t.replace(new RegExp('(["\\\\])',"g"),"\\$1")).replace(/^\s?(\d+\.?\d*)%/,"$1pct"))+'"';case"array":return"["+function(t,e){var o=[];for(var n in t)t.hasOwnProperty(n)&&(o[n]=e(t[n]));return o}(t,(function(t){return r.asString(t)})).join(",")+"]";case"function":return'"function()"';case"object":var o=[];for(var n in t)t.hasOwnProperty(n)&&o.push('"'+n+'":'+r.asString(t[n]));return"{"+o.join(",")+"}"}return String(t).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(e,o){var n='<object width="'+(e=s({},e)).width+'" height="'+e.height+'" id="'+e.id+'" name="'+e.id+'"';for(var i in e.cachebusting&&(e.src+=(-1!=e.src.indexOf("?")?"&":"?")+Math.random()),e.w3c||!t?n+=' data="'+e.src+'" type="application/x-shockwave-flash"':n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',n+=">",(e.w3c||t)&&(n+='<param name="movie" value="'+e.src+'" />'),e.width=e.height=e.id=e.w3c=e.src=null,e.onFail=e.version=e.expressInstall=null,e)e[i]&&(n+='<param name="'+i+'" value="'+e[i]+'" />');var a="";if(o){for(var l in o)if(o[l]){var c=o[l];a+=l+"="+encodeURIComponent(/function|object/.test(typeof c)?r.asString(c):c)+"&"}n+='<param name="flashvars" value=\''+(a=a.slice(0,-1))+"' />"}return n+="</object>"},isSupported:function(t){return a[0]>t[0]||a[0]===t[0]&&a[1]>=t[1]}}),a=r.getVersion();function l(o,n,i){if(r.isSupported(n.version))o.innerHTML=r.getHTML(n,i);else if(n.expressInstall&&r.isSupported([6,65]))o.innerHTML=r.getHTML(s(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else if(o.innerHTML.replace(/\s/g,"")||(o.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(a[0]>0?"Your version is "+a:"You have no flash plugin installed")+"</h3>"+("A"===o.tagName?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+e+"'>here</a></p>"),"A"===o.tagName&&(o.onclick=function(){location.href=e})),n.onFail){var l=n.onFail.call(this);"string"==typeof l&&(o.innerHTML=l)}t&&(window[n.id]=document.getElementById(n.id)),s(this,{getRoot:function(){return o},getOptions:function(){return n},getConf:function(){return i},getApi:function(){return o.firstChild}})}o&&(jQuery.tools=jQuery.tools||{version:"v1.2.7"},jQuery.tools.flashembed={conf:i},jQuery.fn.flashembed=function(t,e){return this.each((function(){jQuery(this).data("flashembed",flashembed(this,t,e))}))})}(),function(t){var e,o,n;t.tools=t.tools||{version:"v1.2.7"},t.tools.history={init:function(i){n||(setInterval((function(){var o=location.hash;o!==e&&t(window).trigger("hash",o)}),100),o=o?o.add(i):i,i.click((function(e){var o=t(this).attr("href");if("#"!=o.slice(0,1))return location.href="#"+o,e.preventDefault()})),n=!0)}},t(window).on("hash",(function(n,i){i?o.filter((function(){var e=t(this).attr("href");return e===i||e===i.replace("#","")})).trigger("history",[i]):o.eq(0).trigger("history",[i]),e=i})),t.fn.history=function(e){return t.tools.history.init(this),this.on("history",e)}}(jQuery),function(t){t.fn.mousewheel=function(t){return this[t?"on":"trigger"]("wheel",t)},t.event.special.wheel={setup:function(){t.event.add(this,e,o,{})},teardown:function(){t.event.remove(this,e,o)}};var e="mousewheel";function o(e){switch(e.type){case"mousemove":return t.extend(e.data,{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY});case"DOMMouseScroll":t.extend(e,e.data),e.delta=-e.detail/3;break;case"mousewheel":e.delta=e.wheelDelta/120}return e.type="wheel",t.event.handle.call(this,e,e.delta)}}(jQuery),function(t){t.tools=t.tools||{version:"v1.2.7"},t.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(t,o,n){e[t]=[o,n]}};var e={toggle:[function(t){var e=this.getConf(),o=this.getTip(),n=e.opacity;n<1&&o.css({opacity:n}),o.show(),t.call()},function(t){this.getTip().hide(),t.call()}],fade:[function(t){var e=this.getConf();
this.getTip().fadeTo(e.fadeInSpeed,e.opacity,t)},function(t){var e=this.getConf();
this.getTip().fadeOut(e.fadeOutSpeed,t)}]};function o(e,o,n){var i=n.relative?e.position().top:e.offset().top,s=n.relative?e.position().left:e.offset().left,r=n.position[0];i-=o.outerHeight()-n.offset[0],s+=e.outerWidth()+n.offset[1],/iPad/i.test(navigator.userAgent)&&(i-=t(window).scrollTop());var a=o.outerHeight()+e.outerHeight();"center"===r&&(i+=a/2),"bottom"===r&&(i+=a),r=n.position[1];var l=o.outerWidth()+e.outerWidth();return"center"===r&&(s-=l/2),"left"===r&&(s-=l),{top:i,left:s}}function n(n,i){var s,r,a=this,l=n.add(a),c=0,f=0,u=n.attr("title"),d=n.attr("data-tooltip"),h=e[i.effect],p=n.is(":input"),g=p&&n.is(":checkbox, :radio, select, :button, :submit"),v=n.attr("type"),w=i.events[v]||i.events[p?g?"widget":"input":"def"];if(!h)throw'Nonexistent effect "'+i.effect+'"';if(2!=(w=w.split(/,\s*/)).length)throw"Tooltip: bad events configuration for "+v;n.on(w[0],(function(t){clearTimeout(c),i.predelay?f=setTimeout((function(){a.show(t)}),i.predelay):a.show(t)})).on(w[1],(function(t){clearTimeout(f),i.delay?c=setTimeout((function(){a.hide(t)}),i.delay):a.hide(t)})),u&&i.cancelDefault&&(n.removeAttr("title"),n.data("title",u)),t.extend(a,{show:function(e){if(!s&&(d?s=t(d):i.tip?s=t(i.tip).eq(0):u?s=t(i.layout).addClass(i.tipClass).appendTo(document.body).hide().append(u):(s=n.next()).length||(s=n.parent().next()),!s.length))throw"Cannot find tooltip for "+n;if(a.isShown())return a;s.stop(!0,!0);var p=o(n,s,i);if(i.tip&&s.html(n.data("title")),(e=t.Event()).type="onBeforeShow",l.trigger(e,[p]),e.isDefaultPrevented())return a;p=o(n,s,i),s.css({position:"absolute",top:p.top,left:p.left}),r=!0,h[0].call(a,(function(){e.type="onShow",r="full",l.trigger(e)}));var g=i.events.tooltip.split(/,\s*/);return s.data("__set")||(s.off(g[0]).on(g[0],(function(){clearTimeout(c),clearTimeout(f)})),g[1]&&!n.is("input:not(:checkbox, :radio), textarea")&&s.off(g[1]).on(g[1],(function(t){t.relatedTarget!=n[0]&&n.trigger(w[1].split(" ")[0])})),i.tip||s.data("__set",!0)),a},hide:function(o){return s&&a.isShown()?((o=t.Event()).type="onBeforeHide",l.trigger(o),o.isDefaultPrevented()?void 0:(r=!1,e[i.effect][1].call(a,(function(){o.type="onHide",l.trigger(o)})),a)):a},isShown:function(t){return t?"full"===r:r},getConf:function(){return i},getTip:function(){return s},getTrigger:function(){return n}}),t.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),(function(e,o){"function"==typeof i[o]&&t(a).on(o,i[o]),a[o]=function(e){return e&&t(a).on(o,e),a}}))}t.fn.tooltip=function(e){var o=this.data("tooltip");return o||("string"==typeof(e=t.extend(!0,{},t.tools.tooltip.conf,e)).position&&(e.position=e.position.split(/,?\s/)),this.each((function(){o=new n(t(this),e),t(this).data("tooltip",o)})),e.api?o:this)}}(jQuery),function(t){var e=t.tools.tooltip;e.dynamic={conf:{classNames:"top right bottom left"}},t.fn.dynamic=function(o){"number"==typeof o&&(o={speed:o}),o=t.extend({},e.dynamic.conf,o);var n,i=t.extend(!0,{},o),s=o.classNames.split(/\s/);return this.each((function(){var e=t(this).tooltip().onBeforeShow((function(e,o){var r=this.getTip(),a=this.getConf();n||(n=[a.position[0],a.position[1],a.offset[0],a.offset[1],t.extend({},a)]),t.extend(a,n[4]),a.position=[n[0],n[1]],a.offset=[n[2],n[3]],r.css({visibility:"hidden",position:"absolute",top:o.top,left:o.left}).show();var l=t.extend(!0,{},i),c=function(e){var o=t(window),n=o.width()+o.scrollLeft(),i=o.height()+o.scrollTop();return[e.offset().top<=o.scrollTop(),n<=e.offset().left+e.width(),i<=e.offset().top+e.height(),o.scrollLeft()>=e.offset().left]}(r);(function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0})(c)||(c[2]&&(t.extend(a,l.top),a.position[0]="top",r.addClass(s[0])),c[3]&&(t.extend(a,l.right),a.position[1]="right",r.addClass(s[1])),c[0]&&(t.extend(a,l.bottom),a.position[0]="bottom",r.addClass(s[2])),c[1]&&(t.extend(a,l.left),a.position[1]="left",r.addClass(s[3])),(c[0]||c[2])&&(a.offset[0]*=-1),(c[1]||c[3])&&(a.offset[1]*=-1)),r.css({visibility:"visible"}).hide()}));e.onBeforeShow((function(){var t=this.getConf();this.getTip();setTimeout((function(){t.position=[n[0],n[1]],t.offset=[n[2],n[3]]}),0)})),e.onHide((function(){this.getTip().removeClass(o.classNames)})),ret=e})),o.api?ret:this}}(jQuery),function(t){var e=t.tools.tooltip;t.extend(e.conf,{direction:"up",bounce:!1,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!0});var o={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};e.addEffect("slide",(function(t){var e=this.getConf(),n=this.getTip(),i=e.slideFade?{opacity:e.opacity}:{},s=o[e.direction]||o.up;i[s[1]]=s[0]+"="+e.slideOffset,e.slideFade&&n.css({opacity:0}),n.show().animate(i,e.slideInSpeed,t)}),(function(e){var n=this.getConf(),i=n.slideOffset,s=n.slideFade?{opacity:0}:{},r=o[n.direction]||o.up,a=""+r[0];n.bounce&&(a="+"===a?"-":"+"),s[r[1]]=a+"="+i,this.getTip().animate(s,n.slideOutSpeed,(function(){t(this).hide(),e.call()}))}))}(jQuery);