﻿(function(){function s(g,e){if(e){for(var f in e){if(e.hasOwnProperty(f)){g[f]=e[f]}}}return g}function q(i,f){var g=[];for(var e in i){if(i.hasOwnProperty(e)){g[e]=f(i[e])}}return g}function r(i,f,g){if(a.isSupported(f.version)){i.innerHTML=a.getHTML(f,g)}else{if(f.expressInstall&&a.isSupported([6,65])){i.innerHTML=a.getHTML(s(f,{src:f.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!i.innerHTML.replace(/\s/g,"")){i.innerHTML="<h2>Flash version "+f.version+" or greater is required</h2><h3>"+(t[0]>0?"Your version is "+t:"You have no flash plugin installed")+"</h3>"+(i.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+c+"'>here</a></p>");if(i.tagName=="A"){i.onclick=function(){location.href=c}}}if(f.onFail){var e=f.onFail.call(this);if(typeof e=="string"){i.innerHTML=e}}}}if(d){window[f.id]=document.getElementById(f.id)}s(this,{getRoot:function(){return i},getOptions:function(){return f},getConf:function(){return g},getApi:function(){return i.firstChild}})}var d=document.all,c="http://www.adobe.com/go/getflashplayer",h=typeof jQuery=="function",p=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(g,e,f){if(typeof g=="string"){g=document.getElementById(g.replace("#",""))}if(g){if(typeof e=="string"){e={src:e}}return new r(g,s(s({},b),e),f)}};var a=s(window.flashembed,{conf:b,getVersion:function(){var j,g;try{g=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(i){try{g=(j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&j.GetVariable("$version")}catch(f){try{g=(j=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&j.GetVariable("$version")}catch(e){}}}return(g=p.exec(g))?[g[1],g[3]]:[0,0]},asString:function(g){if(g===null||g===undefined){return null}var e=typeof g;if(e=="object"&&g.push){e="array"}switch(e){case"string":g=g.replace(new RegExp('(["\\\\])',"g"),"\\$1");g=g.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+g+'"';case"array":return"["+q(g,function(i){return a.asString(i)}).join(",")+"]";case"function":return'"function()"';case"object":e=[];for(var f in g){g.hasOwnProperty(f)&&e.push('"'+f+'":'+a.asString(g[f]))}return"{"+e.join(",")+"}"}return String(g).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(j,g){j=s({},j);var i='<object width="'+j.width+'" height="'+j.height+'" id="'+j.id+'" name="'+j.id+'"';if(j.cachebusting){j.src+=(j.src.indexOf("?")!=-1?"&":"?")+Math.random()}i+=j.w3c||!d?' data="'+j.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';i+=">";if(j.w3c||d){i+='<param name="movie" value="'+j.src+'" />'}j.width=j.height=j.id=j.w3c=j.src=null;j.onFail=j.version=j.expressInstall=null;for(var f in j){if(j[f]){i+='<param name="'+f+'" value="'+j[f]+'" />'}}j="";if(g){for(var e in g){if(g[e]){f=g[e];j+=e+"="+(/function|object/.test(typeof f)?a.asString(f):f)+"&"}}j=j.slice(0,-1);i+='<param name="flashvars" value=\''+j+"' />"}i+="</object>";return i},isSupported:function(e){return t[0]>e[0]||t[0]==e[0]&&t[1]>=e[1]}}),t=a.getVersion();if(h){jQuery.tools=jQuery.tools||{version:"1.2.5"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(f,e){return this.each(function(){$(this).data("flashembed",flashembed(this,f,e))})}}})();(function(k){function a(b){if(b){var d=c.contentWindow.document;d.open().close();d.location.hash=b}}var e,c,l,j;k.tools=k.tools||{version:"1.2.5"};k.tools.history={init:function(b){if(!j){if(k.browser.msie&&k.browser.version<"8"){if(!c){c=k("<iframe/>").attr("src","javascript:false;").hide().get(0);k("body").append(c);setInterval(function(){var d=c.contentWindow.document;d=d.location.hash;e!==d&&k.event.trigger("hash",d)},100);a(location.hash||"#")}}else{setInterval(function(){var d=location.hash;d!==e&&k.event.trigger("hash",d)},100)}l=!l?b:l.add(b);b.click(function(f){var d=k(this).attr("href");c&&a(d);if(d.slice(0,1)!="#"){location.href="#"+d;return f.preventDefault()}});j=true}}};k(window).bind("hash",function(b,d){d?l.filter(function(){var f=k(this).attr("href");return f==d||f==d.replace("#","")}).trigger("history",[d]):l.eq(0).trigger("history",[d]);e=d});k.fn.history=function(b){k.tools.history.init(this);return this.bind("history",b)}})(jQuery);(function(p){function f(){if(p.browser.msie){var c=p(document).height(),b=p(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c-b<20?b:c]}return[p(document).width(),p(document).height()]}function m(b){if(b){return b.call(p.mask)}}p.tools=p.tools||{version:"1.2.5"};var o;o=p.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};var q,n,a,r,d;p.mask={load:function(e,b){if(a){return this}if(typeof e=="string"){e={color:e}}e=e||r;r=e=p.extend(p.extend({},o.conf),e);q=p("#"+e.maskId);if(!q.length){q=p("<div/>").attr("id",e.maskId);p("body").append(q)}var c=f();q.css({position:"absolute",top:0,left:0,width:c[0],height:c[1],display:"none",opacity:e.startOpacity,zIndex:e.zIndex});e.color&&q.css("backgroundColor",e.color);if(m(e.onBeforeLoad)===false){return this}e.closeOnEsc&&p(document).bind("keydown.mask",function(g){g.keyCode==27&&p.mask.close(g)});e.closeOnClick&&q.bind("click.mask",function(g){p.mask.close(g)});p(window).bind("resize.mask",function(){p.mask.fit()});if(b&&b.length){d=b.eq(0).css("zIndex");p.each(b,function(){var g=p(this);/relative|absolute|fixed/i.test(g.css("position"))||g.css("position","relative")});n=b.css({zIndex:Math.max(e.zIndex+1,d=="auto"?0:d)})}q.css({display:"block"}).fadeTo(e.loadSpeed,e.opacity,function(){p.mask.fit();m(e.onLoad);a="full"});a=true;return this},close:function(){if(a){if(m(r.onBeforeClose)===false){return this}q.fadeOut(r.closeSpeed,function(){m(r.onClose);n&&n.css({zIndex:d});a=false});p(document).unbind("keydown.mask");q.unbind("click.mask");p(window).unbind("resize.mask")}return this},fit:function(){if(a){var b=f();q.css({width:b[0],height:b[1]})}},getMask:function(){return q},isLoaded:function(b){return b?a=="full":a},getConf:function(){return r},getExposed:function(){return n}};p.fn.mask=function(b){p.mask.load(b);return this};p.fn.expose=function(b){p.mask.load(b,this);return this}})(jQuery);(function(e){function f(b){switch(b.type){case"mousemove":return e.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});case"DOMMouseScroll":e.extend(b,b.data);b.delta=-b.detail/3;break;case"mousewheel":b.delta=b.wheelDelta/120;break}b.type="wheel";return e.event.handle.call(this,b,b.delta)}e.fn.mousewheel=function(b){return this[b?"bind":"trigger"]("wheel",b)};e.event.special.wheel={setup:function(){e.event.add(this,a,f,{})},teardown:function(){e.event.remove(this,a,f)}};var a=!e.browser.mozilla?"mousewheel":"DOMMouseScroll"+(e.browser.version<"1.9"?" mousemove":"")})(jQuery);(function(e){function a(p,n,o){var c=this,m=p.add(this),g=p.find(o.tabs),k=n.jquery?n:p.children(n),f;g.length||(g=p.children());k.length||(k=p.parent().find(n));k.length||(k=e(n));e.extend(this,{click:function(l,h){var i=g.eq(l);if(typeof l=="string"&&l.replace("#","")){i=g.filter("[href*="+l.replace("#","")+"]");l=Math.max(g.index(i),0)}if(o.rotate){var j=g.length-1;if(l<0){return c.click(j,h)}if(l>j){return c.click(0,h)}}if(!i.length){if(f>=0){return c}l=o.initialIndex;i=g.eq(l)}if(l===f){return c}h=h||e.Event();h.type="onBeforeClick";m.trigger(h,[l]);if(!h.isDefaultPrevented()){b[o.effect].call(c,l,function(){h.type="onClick";m.trigger(h,[l])});f=l;g.removeClass(o.current);i.addClass(o.current);return c}},getConf:function(){return o},getTabs:function(){return g},getPanes:function(){return k},getCurrentPane:function(){return k.eq(f)},getCurrentTab:function(){return g.eq(f)},getIndex:function(){return f},next:function(){return c.click(f+1)},prev:function(){return c.click(f-1)},destroy:function(){g.unbind(o.event).removeClass(o.current);k.find("a[href^=#]").unbind("click.T");return c}});e.each("onBeforeClick,onClick".split(","),function(i,h){e.isFunction(o[h])&&e(c).bind(h,o[h]);c[h]=function(j){j&&e(c).bind(h,j);return c}});if(o.history&&e.fn.history){e.tools.history.init(g);o.event="history"}g.each(function(h){e(this).bind(o.event,function(i){c.click(h,i);return i.preventDefault()})});k.find("a[href^=#]").bind("click.T",function(h){c.click(e(this).attr("href"),h)});if(location.hash&&o.tabs=="a"&&p.find("[href="+location.hash+"]").length){c.click(location.hash)}else{if(o.initialIndex===0||o.initialIndex>0){c.click(o.initialIndex)}}}e.tools=e.tools||{version:"1.2.5"};e.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(c,f){b[c]=f}};var b={"default":function(c,f){this.getPanes().hide().eq(c).show();f.call()},fade:function(c,h){var i=this.getConf(),f=i.fadeOutSpeed,g=this.getPanes();f?g.fadeOut(f):g.hide();g.eq(c).fadeIn(i.fadeInSpeed,h)},slide:function(c,f){this.getPanes().slideUp(200);this.getPanes().eq(c).slideDown(400,f)},ajax:function(c,f){this.getPanes().eq(0).load(this.getTabs().eq(c).attr("href"),f)}},d;e.tools.tabs.addEffect("horizontal",function(c,f){d||(d=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){e(this).hide()});this.getPanes().eq(c).animate({width:d},function(){e(this).show();f.call()})});e.fn.tabs=function(c,f){var g=this.data("tabs");if(g){g.destroy();this.removeData("tabs")}if(e.isFunction(f)){f={onBeforeClick:f}}f=e.extend({},e.tools.tabs.conf,f);this.each(function(){g=new a(e(this),c,f);e(this).data("tabs",g)});return f.api?g:this}})(jQuery);(function(d){function a(u,t){function r(h){var g=d(h);return g.length<2?g:u.parent().find(h)}var s=this,o=u.add(this),v=u.data("tabs"),f,c=true,p=r(t.next).click(function(){v.next()}),e=r(t.prev).click(function(){v.prev()});d.extend(s,{getTabs:function(){return v},getConf:function(){return t},play:function(){if(f){return s}var g=d.Event("onBeforePlay");o.trigger(g);if(g.isDefaultPrevented()){return s}f=setInterval(v.next,t.interval);c=false;o.trigger("onPlay");return s},pause:function(){if(!f){return s}var g=d.Event("onBeforePause");o.trigger(g);if(g.isDefaultPrevented()){return s}f=clearInterval(f);o.trigger("onPause");return s},stop:function(){s.pause();c=true}});d.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(h,g){d.isFunction(t[g])&&d(s).bind(g,t[g]);s[g]=function(i){return d(s).bind(g,i)}});t.autopause&&v.getTabs().add(p).add(e).add(v.getPanes()).hover(s.pause,function(){c||s.play()});t.autoplay&&s.play();t.clickable&&v.getPanes().click(function(){v.next()});if(!v.getConf().rotate){var q=t.disabledClass;v.getIndex()||e.addClass(q);v.onBeforeClick(function(h,g){e.toggleClass(q,!g);p.toggleClass(q,g==v.getTabs().length-1)})}}var b;b=d.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3000,clickable:true,api:false}};d.fn.slideshow=function(c){var e=this.data("slideshow");if(e){return e}c=d.extend({},b.conf,c);this.each(function(){e=new a(d(this),c);d(this).data("slideshow",e)});return c.api?e:this}})(jQuery);(function(d){function a(m,k,l){var e=l.relative?m.position().top:m.offset().top,f=l.relative?m.position().left:m.offset().left,g=l.position[0];e-=k.outerHeight()-l.offset[0];f+=m.outerWidth()+l.offset[1];if(/iPad/i.test(navigator.userAgent)){e-=d(window).scrollTop()}var n=k.outerHeight()+m.outerHeight();if(g=="center"){e+=n/2}if(g=="bottom"){e+=n}g=l.position[1];m=k.outerWidth()+m.outerWidth();if(g=="center"){f-=m/2}if(g=="left"){f-=m}return{top:e,left:f}}function c(C,A){var B=this,w=C.add(B),D,x=0,p=0,z=C.attr("title"),g=C.attr("data-tooltip"),e=b[A.effect],y,f=C.is(":input"),n=f&&C.is(":checkbox, :radio, select, :button, :submit"),o=C.attr("type"),u=A.events[o]||A.events[f?n?"widget":"input":"def"];if(!e){throw'Nonexistent effect "'+A.effect+'"'}u=u.split(/,\s*/);if(u.length!=2){throw"Tooltip: bad events configuration for "+o}C.bind(u[0],function(h){clearTimeout(x);if(A.predelay){p=setTimeout(function(){B.show(h)},A.predelay)}else{B.show(h)}}).bind(u[1],function(h){clearTimeout(p);if(A.delay){x=setTimeout(function(){B.hide(h)},A.delay)}else{B.hide(h)}});if(z&&A.cancelDefault){C.removeAttr("title");C.data("title",z)}d.extend(B,{show:function(i){if(!D){if(g){D=d(g)}else{if(A.tip){D=d(A.tip).eq(0)}else{if(z){D=d(A.layout).addClass(A.tipClass).appendTo(document.body).hide().append(z)}else{D=C.next();D.length||(D=C.parent().next())}}}if(!D.length){throw"Cannot find tooltip for "+C}}if(B.isShown()){return B}D.stop(true,true);var h=a(C,D,A);A.tip&&D.html(C.data("title"));i=i||d.Event();i.type="onBeforeShow";w.trigger(i,[h]);if(i.isDefaultPrevented()){return B}h=a(C,D,A);D.css({position:"absolute",top:h.top,left:h.left});y=true;e[0].call(B,function(){i.type="onShow";y="full";w.trigger(i)});h=A.events.tooltip.split(/,\s*/);if(!D.data("__set")){D.bind(h[0],function(){clearTimeout(x);clearTimeout(p)});h[1]&&!C.is("input:not(:checkbox, :radio), textarea")&&D.bind(h[1],function(j){j.relatedTarget!=C[0]&&C.trigger(u[1].split(" ")[0])});D.data("__set",true)}return B},hide:function(h){if(!D||!B.isShown()){return B}h=h||d.Event();h.type="onBeforeHide";w.trigger(h);if(!h.isDefaultPrevented()){y=false;b[A.effect][1].call(B,function(){h.type="onHide";w.trigger(h)});return B}},isShown:function(h){return h?y=="full":y},getConf:function(){return A},getTip:function(){return D},getTrigger:function(){return C}});d.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(i,h){d.isFunction(A[h])&&d(B).bind(h,A[h]);B[h]=function(j){j&&d(B).bind(h,j);return B}})}d.tools=d.tools||{version:"1.2.5"};d.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(g,e,f){b[g]=[e,f]}};var b={toggle:[function(g){var e=this.getConf(),f=this.getTip();e=e.opacity;e<1&&f.css({opacity:e});f.show();g.call()},function(e){this.getTip().hide();e.call()}],fade:[function(f){var e=this.getConf();this.getTip().fadeTo(e.fadeInSpeed,e.opacity,f)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};d.fn.tooltip=function(f){var e=this.data("tooltip");if(e){return e}f=d.extend(true,{},d.tools.tooltip.conf,f);if(typeof f.position=="string"){f.position=f.position.split(/,?\s/)}this.each(function(){e=new c(d(this),f);d(this).data("tooltip",e)});return f.api?e:this}})(jQuery);(function(a){var b=a.tools.tooltip;a.extend(b.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!a.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.addEffect("slide",function(d){var i=this.getConf(),j=this.getTip(),e=i.slideFade?{opacity:i.opacity}:{},h=c[i.direction]||c.up;e[h[1]]=h[0]+"="+i.slideOffset;i.slideFade&&j.css({opacity:0});j.show().animate(e,i.slideInSpeed,d)},function(d){var k=this.getConf(),l=k.slideOffset,i=k.slideFade?{opacity:0}:{},j=c[k.direction]||c.up,e=""+j[0];if(k.bounce){e=e=="+"?"-":"+"}i[j[1]]=e+"="+l;this.getTip().animate(i,k.slideOutSpeed,function(){a(this).hide();d.call()})})})(jQuery);(function(a){function c(i){var g=a(window),f=g.width()+g.scrollLeft(),e=g.height()+g.scrollTop();return[i.offset().top<=g.scrollTop(),f<=i.offset().left+i.width(),e<=i.offset().top+i.height(),g.scrollLeft()>=i.offset().left]}function d(f){for(var e=f.length;e--;){if(f[e]){return false}}return true}var b=a.tools.tooltip;b.dynamic={conf:{classNames:"top right bottom left"}};a.fn.dynamic=function(g){if(typeof g=="number"){g={speed:g}}g=a.extend({},b.dynamic.conf,g);var f=g.classNames.split(/\s/),e;this.each(function(){var i=a(this).tooltip().onBeforeShow(function(h,k){h=this.getTip();var j=this.getConf();e||(e=[j.position[0],j.position[1],j.offset[0],j.offset[1],a.extend({},j)]);a.extend(j,e[4]);j.position=[e[0],e[1]];j.offset=[e[2],e[3]];h.css({visibility:"hidden",position:"absolute",top:k.top,left:k.left}).show();k=c(h);if(!d(k)){if(k[2]){a.extend(j,g.top);j.position[0]="top";h.addClass(f[0])}if(k[3]){a.extend(j,g.right);j.position[1]="right";h.addClass(f[1])}if(k[0]){a.extend(j,g.bottom);j.position[0]="bottom";h.addClass(f[2])}if(k[1]){a.extend(j,g.left);j.position[1]="left";h.addClass(f[3])}if(k[0]||k[2]){j.offset[0]*=-1}if(k[1]||k[3]){j.offset[1]*=-1}}h.css({visibility:"visible"}).hide()});i.onBeforeShow(function(){var h=this.getConf();this.getTip();setTimeout(function(){h.position=[e[0],e[1]];h.offset=[e[2],e[3]]},0)});i.onHide(function(){var h=this.getTip();h.removeClass(g.classNames)});ret=i});return g.api?ret:this}})(jQuery);(function(a){function b(h,g){var e=a(g);return e.length<2?e:h.parent().find(g)}function c(y,x){var w=this,p=y.add(w),z=y.children(),u=0,k=x.vertical;d||(d=w);if(z.length>1){z=a(x.items,y)}a.extend(w,{getConf:function(){return x},getIndex:function(){return u},getSize:function(){return w.getItems().size()},getNaviButtons:function(){return r.add(h)},getRoot:function(){return y},getItemWrap:function(){return z},getItems:function(){return z.children(x.item).not("."+x.clonedClass)},move:function(g,f){return w.seekTo(u+g,f)},next:function(f){return w.move(1,f)},prev:function(f){return w.move(-1,f)},begin:function(f){return w.seekTo(0,f)},end:function(f){return w.seekTo(w.getSize()-1,f)},focus:function(){return d=w},addItem:function(f){f=a(f);if(x.circular){z.children("."+x.clonedClass+":last").before(f);z.children("."+x.clonedClass+":first").replaceWith(f.clone().addClass(x.clonedClass))}else{z.append(f)}p.trigger("onAddItem",[f]);return w},seekTo:function(m,g,f){m.jquery||(m*=1);if(x.circular&&m===0&&u==-1&&g!==0){return w}if(!x.circular&&m<0||m>w.getSize()||m<-1){return w}var j=m;if(m.jquery){m=w.getItems().index(m)}else{j=w.getItems().eq(m)}var l=a.Event("onBeforeSeek");if(!f){p.trigger(l,[m,g]);if(l.isDefaultPrevented()||!j.length){return w}}j=k?{top:-j.position().top}:{left:-j.position().left};u=m;d=w;if(g===undefined){g=x.speed}z.animate(j,g,x.easing,f||function(){p.trigger("onSeek",[m])});return w}});a.each(["onBeforeSeek","onSeek","onAddItem"],function(g,f){a.isFunction(x[f])&&a(w).bind(f,x[f]);w[f]=function(j){j&&a(w).bind(f,j);return w}});if(x.circular){var e=w.getItems().slice(-1).clone().prependTo(z),i=w.getItems().eq(1).clone().appendTo(z);e.add(i).addClass(x.clonedClass);w.onBeforeSeek(function(j,g,f){if(!j.isDefaultPrevented()){if(g==-1){w.seekTo(e,f,function(){w.end(0)});return j.preventDefault()}else{g==w.getSize()&&w.seekTo(i,f,function(){w.begin(0)})}}});w.seekTo(0,0,function(){})}var r=b(y,x.prev).click(function(){w.prev()}),h=b(y,x.next).click(function(){w.next()});if(!x.circular&&w.getSize()>1){w.onBeforeSeek(function(g,f){setTimeout(function(){if(!g.isDefaultPrevented()){r.toggleClass(x.disabledClass,f<=0);h.toggleClass(x.disabledClass,f>=w.getSize()-1)}},1)});x.initialIndex||r.addClass(x.disabledClass)}x.mousewheel&&a.fn.mousewheel&&y.mousewheel(function(g,f){if(x.mousewheel){w.move(f<0?1:-1,x.wheelSpeed||50);return false}});if(x.touch){var v={};z[0].ontouchstart=function(f){f=f.touches[0];v.x=f.clientX;v.y=f.clientY};z[0].ontouchmove=function(j){if(j.touches.length==1&&!z.is(":animated")){var g=j.touches[0],f=v.x-g.clientX;g=v.y-g.clientY;w[k&&g>0||!k&&f>0?"next":"prev"]();j.preventDefault()}}}x.keyboard&&a(document).bind("keydown.scrollable",function(g){if(!(!x.keyboard||g.altKey||g.ctrlKey||a(g.target).is(":input"))){if(!(x.keyboard!="static"&&d!=w)){var f=g.keyCode;if(k&&(f==38||f==40)){w.move(f==38?-1:1);return g.preventDefault()}if(!k&&(f==37||f==39)){w.move(f==37?-1:1);return g.preventDefault()}}}});x.initialIndex&&w.seekTo(x.initialIndex,0,function(){})}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(g){var e=this.data("scrollable");if(e){return e}g=a.extend({},a.tools.scrollable.conf,g);this.each(function(){e=new c(a(this),g);a(this).data("scrollable",e)});return g.api?e:this}})(jQuery);(function(a){var c=a.tools.scrollable;c.autoscroll={conf:{autoplay:true,interval:3000,autopause:true}};a.fn.autoscroll=function(f){if(typeof f=="number"){f={interval:f}}var e=a.extend({},c.autoscroll.conf,f),b;this.each(function(){var i=a(this).data("scrollable");if(i){b=i}var g,d=true;i.play=function(){if(!g){d=false;g=setInterval(function(){i.next()},e.interval)}};i.pause=function(){g=clearInterval(g)};i.stop=function(){i.pause();d=true};e.autopause&&i.getRoot().add(i.getNaviButtons()).hover(i.pause,i.play);e.autoplay&&i.play()});return e.api?b:this}})(jQuery);(function(a){function b(f,d){var e=a(d);return e.length<2?e:f.parent().find(d)}var c=a.tools.scrollable;c.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};a.fn.navigator=function(e){if(typeof e=="string"){e={navi:e}}e=a.extend({},c.navigator.conf,e);var d;this.each(function(){function r(j,h,f){g.seekTo(h);if(m){if(location.hash){location.hash=j.attr("href").replace("#","")}}else{return f.preventDefault()}}function v(){return p.find(e.naviItem||"> *")}function s(h){var f=a("<"+(e.naviItem||"a")+"/>").click(function(j){r(a(this),h,j)}).attr("href","#"+h);h===0&&f.addClass(u);e.indexed&&f.text(h+1);e.idPrefix&&f.attr("id",e.idPrefix+h);return f.appendTo(p)}function t(h,f){h=v().eq(f.replace("#",""));h.length||(h=v().filter("[href="+f+"]"));h.click()}var g=a(this).data("scrollable"),p=e.navi.jquery?e.navi:b(g.getRoot(),e.navi),i=g.getNaviButtons(),u=e.activeClass,m=e.history&&a.fn.history;if(g){d=g}g.getNaviButtons=function(){return i.add(p)};v().length?v().each(function(f){a(this).click(function(h){r(a(this),f,h)})}):a.each(g.getItems(),function(f){s(f)});g.onBeforeSeek(function(h,f){setTimeout(function(){if(!h.isDefaultPrevented()){var j=v().eq(f);!h.isDefaultPrevented()&&j.length&&v().removeClass(u).eq(f).addClass(u)}},1)});g.onAddItem(function(h,f){f=s(g.getItems().index(f));m&&f.history(t)});m&&v().history(t)});return e.api?d:this}})(jQuery);(function(e){function d(w,s){var t=this,h=w.add(t),q=e(window),i,u,r,v=e.tools.expose&&(s.mask||s.expose),l=Math.random().toString().slice(10);if(v){if(typeof v=="string"){v={color:v}}v.closeOnClick=v.closeOnEsc=false}var a=s.target||w.attr("rel");u=a?e(a):w;if(!u.length){throw"Could not find Overlay: "+a}w&&w.index(u)==-1&&w.click(function(f){t.load(f);return f.preventDefault()});e.extend(t,{load:function(j){if(t.isOpened()){return t}var f=c[s.effect];if(!f){throw'Overlay: cannot find effect : "'+s.effect+'"'}s.oneInstance&&e.each(b,function(){this.close(j)});j=j||e.Event();j.type="onBeforeLoad";h.trigger(j);if(j.isDefaultPrevented()){return t}r=true;v&&e(u).expose(v);var g=s.top,k=s.left,n=u.outerWidth({margin:true}),m=u.outerHeight({margin:true});if(typeof g=="string"){g=g=="center"?Math.max((q.height()-m)/2,0):parseInt(g,10)/100*q.height()}if(k=="center"){k=Math.max((q.width()-n)/2,0)}f[0].call(t,{top:g,left:k},function(){if(r){j.type="onLoad";h.trigger(j)}});v&&s.closeOnClick&&e.mask.getMask().one("click",t.close);s.closeOnClick&&e(document).bind("click."+l,function(o){e(o.target).parents(u).length||t.close(o)});s.closeOnEsc&&e(document).bind("keydown."+l,function(o){o.keyCode==27&&t.close(o)});return t},close:function(f){if(!t.isOpened()){return t}f=f||e.Event();f.type="onBeforeClose";h.trigger(f);if(!f.isDefaultPrevented()){r=false;c[s.effect][1].call(t,function(){f.type="onClose";h.trigger(f)});e(document).unbind("click."+l).unbind("keydown."+l);v&&e.mask.close();return t}},getOverlay:function(){return u},getTrigger:function(){return w},getClosers:function(){return i},isOpened:function(){return r},getConf:function(){return s}});e.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(g,f){e.isFunction(s[f])&&e(t).bind(f,s[f]);t[f]=function(j){j&&e(t).bind(f,j);return t}});i=u.find(s.close||".close");if(!i.length&&!s.close){i=e('<a class="close"></a>');u.prepend(i)}i.click(function(f){t.close(f)});s.load&&t.load()}e.tools=e.tools||{version:"1.2.5"};e.tools.overlay={addEffect:function(a,f,g){c[a]=[f,g]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!e.browser.msie||e.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var b=[],c={};e.tools.overlay.addEffect("default",function(a,f){var g=this.getConf(),h=e(window);if(!g.fixed){a.top+=h.scrollTop();a.left+=h.scrollLeft()}a.position=g.fixed?"fixed":"absolute";this.getOverlay().css(a).fadeIn(g.speed,f)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});e.fn.overlay=function(a){var f=this.data("overlay");if(f){return f}if(e.isFunction(a)){a={onBeforeLoad:a}}a=e.extend(true,{},e.tools.overlay.conf,a);this.each(function(){f=new d(e(this),a);b.push(f);e(this).data("overlay",f)});return a.api?f:this}})(jQuery);(function(a){function g(f){var h=f.offset();return{top:h.top+f.height()/2,left:h.left+f.width()/2}}var d=a.tools.overlay,b=a(window);a.extend(d.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function c(v,f){var t=this.getOverlay(),s=this.getConf(),u=this.getTrigger(),h=this,q=t.outerWidth({margin:true}),r=t.data("img"),o=s.fixed?"fixed":"absolute";if(!r){r=t.css("backgroundImage");if(!r){throw"background-image CSS property not set for overlay"}r=r.slice(r.indexOf("(")+1,r.indexOf(")")).replace(/\"/g,"");t.css("backgroundImage","none");r=a('<img src="'+r+'"/>');r.css({border:0,display:"none"}).width(q);a("body").append(r);t.data("img",r)}var l=s.start.top||Math.round(b.height()/2),k=s.start.left||Math.round(b.width()/2);if(u){u=g(u);l=u.top;k=u.left}if(s.fixed){l-=b.scrollTop();k-=b.scrollLeft()}else{v.top+=b.scrollTop();v.left+=b.scrollLeft()}r.css({position:"absolute",top:l,left:k,width:0,zIndex:s.zIndex}).show();v.position=o;t.css(v);r.animate({top:t.css("top"),left:t.css("left"),width:q},s.speed,function(){t.css("zIndex",s.zIndex+1).fadeIn(s.fadeInSpeed,function(){h.isOpened()&&!a(this).index(t)?f.call():t.hide()})}).css("position",o)}function e(h){var i=this.getOverlay().hide(),k=this.getConf(),j=this.getTrigger();i=i.data("img");var f={top:k.start.top,left:k.start.left,width:0};j&&a.extend(f,g(j));k.fixed&&i.css({position:"absolute"}).animate({top:"+="+b.scrollTop(),left:"+="+b.scrollLeft()},0);i.animate(f,k.closeSpeed,h)}d.addEffect("apple",c,e)})(jQuery);(function(o){function h(p,d){return 32-(new Date(p,d,32)).getDate()}function i(p,d){p=""+p;for(d=d||2;p.length<d;){p="0"+p}return p}function m(v,u,w){var t=v.getDate(),d=v.getDay(),p=v.getMonth();v=v.getFullYear();var s={d:t,dd:i(t),ddd:c[w].shortDays[d],dddd:c[w].days[d],m:p+1,mm:i(p+1),mmm:c[w].shortMonths[p],mmmm:c[w].months[p],yy:String(v).slice(2),yyyy:v};u=u.replace(g,function(q){return q in s?s[q]:q.slice(1,q.length-1)});return f.html(u).html()}function a(d){return parseInt(d,10)}function n(p,d){return p.getFullYear()===d.getFullYear()&&p.getMonth()==d.getMonth()&&p.getDate()==d.getDate()}function e(p){if(p){if(p.constructor==Date){return p}if(typeof p=="string"){var d=p.split("-");if(d.length==3){return new Date(a(d[0]),a(d[1])-1,a(d[2]))}if(!/^-?\d+$/.test(p)){return}p=a(p)}d=new Date;d.setDate(d.getDate()+p);return d}}function b(R,Q){function y(r,q,p){F=r;ae=r.getFullYear();af=r.getMonth();ad=r.getDate();p=p||o.Event("api");p.type="change";V.trigger(p,[r]);if(!p.isDefaultPrevented()){R.val(m(r,q.format,q.lang));R.data("date",r);C.hide(p)}}function v(p){p.type="onShow";V.trigger(p);o(document).bind("keydown.d",function(s){if(s.ctrlKey){return true}var q=s.keyCode;if(q==8){R.val("");return C.hide(s)}if(q==27){return C.hide(s)}if(o(k).index(q)>=0){if(!x){C.show(s);return s.preventDefault()}var r=o("#"+S.weeks+" a"),z=o("."+S.focus),w=r.index(z);z.removeClass(S.focus);if(q==74||q==40){w+=7}else{if(q==75||q==38){w-=7}else{if(q==76||q==39){w+=1}else{if(q==72||q==37){w-=1}}}}if(w>41){C.addMonth();z=o("#"+S.weeks+" a:eq("+(w-42)+")")}else{if(w<0){C.addMonth(-1);z=o("#"+S.weeks+" a:eq("+(w+42)+")")}else{z=r.eq(w)}}z.addClass(S.focus);return s.preventDefault()}if(q==34){return C.addMonth()}if(q==33){return C.addMonth(-1)}if(q==36){return C.today()}if(q==13){o(s.target).is("select")||o("."+S.focus).click()}return o([16,17,18,9]).index(q)>=0});o(document).bind("click.d",function(r){var q=r.target;if(!o(q).parents("#"+S.root).length&&q!=R[0]&&(!Z||q!=Z[0])){C.hide(r)}})}var C=this,d=new Date,S=Q.css,t=c[Q.lang],B=o("#"+S.root),aa=B.find("#"+S.title),Z,W,T,ae,af,ad,F=R.attr("data-value")||Q.value||R.val(),P=R.attr("min")||Q.min,u=R.attr("max")||Q.max,x;if(P===0){P="0"}F=e(F)||d;P=e(P||Q.yearRange[0]*365);u=e(u||Q.yearRange[1]*365);if(!t){throw"Dateinput: invalid language: "+Q.lang}if(R.attr("type")=="date"){var X=o("<input/>");o.each("class,disabled,id,maxlength,name,readonly,required,size,style,tabindex,title,value".split(","),function(q,p){X.attr(p,R.attr(p))});R.replaceWith(X);R=X}R.addClass(S.input);var V=R.add(C);if(!B.length){B=o("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",S.root);B.children().eq(0).attr("id",S.head).end().eq(1).attr("id",S.body).children().eq(0).attr("id",S.days).end().eq(1).attr("id",S.weeks).end().end().end().find("a").eq(0).attr("id",S.prev).end().eq(1).attr("id",S.next);aa=B.find("#"+S.head).find("div").attr("id",S.title);if(Q.selectors){var ag=o("<select/>").attr("id",S.month),ac=o("<select/>").attr("id",S.year);aa.html(ag.add(ac))}for(var U=B.find("#"+S.days),Y=0;Y<7;Y++){U.append(o("<span/>").text(t.shortDays[(Y+Q.firstDay)%7]))}o("body").append(B)}if(Q.trigger){Z=o("<a/>").attr("href","#").addClass(S.trigger).click(function(p){C.show();return p.preventDefault()}).insertAfter(R)}var ab=B.find("#"+S.weeks);ac=B.find("#"+S.year);ag=B.find("#"+S.month);o.extend(C,{show:function(q){if(!(R.attr("readonly")||R.attr("disabled")||x)){q=q||o.Event();q.type="onBeforeShow";V.trigger(q);if(!q.isDefaultPrevented()){o.each(l,function(){this.hide()});x=true;ag.unbind("change").change(function(){C.setValue(ac.val(),o(this).val())});ac.unbind("change").change(function(){C.setValue(o(this).val(),ag.val())});W=B.find("#"+S.prev).unbind("click").click(function(){W.hasClass(S.disabled)||C.addMonth(-1);return false});T=B.find("#"+S.next).unbind("click").click(function(){T.hasClass(S.disabled)||C.addMonth();return false});C.setValue(F);var p=R.offset();if(/iPad/i.test(navigator.userAgent)){p.top-=o(window).scrollTop()}B.css({top:p.top+R.outerHeight({margins:true})+Q.offset[0],left:p.left+Q.offset[1]});if(Q.speed){B.show(Q.speed,function(){v(q)})}else{B.show();v(q)}return C}}},setValue:function(D,p,G){var w=a(p)>=-1?new Date(a(D),a(p),a(G||1)):D||F;if(w<P){w=P}else{if(w>u){w=u}}D=w.getFullYear();p=w.getMonth();G=w.getDate();if(p==-1){p=11;D--}else{if(p==12){p=0;D++}}if(!x){y(w,Q);return C}af=p;ae=D;G=new Date(D,p,1-Q.firstDay);G=G.getDay();var r=h(D,p),z=h(D,p-1),E;if(Q.selectors){ag.empty();o.each(t.months,function(I,H){P<new Date(D,I+1,-1)&&u>new Date(D,I,0)&&ag.append(o("<option/>").html(H).attr("value",I))});ac.empty();w=d.getFullYear();for(var A=w+Q.yearRange[0];A<w+Q.yearRange[1];A++){P<=new Date(A+1,-1,1)&&u>new Date(A,0,0)&&ac.append(o("<option/>").text(A))}ag.val(p);ac.val(D)}else{aa.html(t.months[p]+" "+D)}ab.empty();W.add(T).removeClass(S.disabled);A=!G?-7:0;for(var s,q;A<(!G?35:42);A++){s=o("<a/>");if(A%7===0){E=o("<div/>").addClass(S.week);ab.append(E)}if(A<G){s.addClass(S.off);q=z-G+A+1;w=new Date(D,p-1,q)}else{if(A>=G+r){s.addClass(S.off);q=A-r-G+1;w=new Date(D,p+1,q)}else{q=A-G+1;w=new Date(D,p,q);if(n(F,w)){s.attr("id",S.current).addClass(S.focus)}else{n(d,w)&&s.attr("id",S.today)}}}P&&w<P&&s.add(W).addClass(S.disabled);u&&w>u&&s.add(T).addClass(S.disabled);s.attr("href","#"+q).text(q).data("date",w);E.append(s)}ab.find("a").click(function(I){var H=o(this);if(!H.hasClass(S.disabled)){o("#"+S.current).removeAttr("id");H.attr("id",S.current);y(H.data("date"),Q,I)}return false});S.sunday&&ab.find(S.week).each(function(){var H=Q.firstDay?7-Q.firstDay:0;o(this).children().slice(H,H+1).addClass(S.sunday)});return C},setMin:function(q,p){P=e(q);p&&F<P&&C.setValue(P);return C},setMax:function(q,p){u=e(q);p&&F>u&&C.setValue(u);return C},today:function(){return C.setValue(d)},addDay:function(p){return this.setValue(ae,af,ad+(p||1))},addMonth:function(p){return this.setValue(ae,af+(p||1),ad)},addYear:function(p){return this.setValue(ae+(p||1),af,ad)},hide:function(p){if(x){p=o.Event();p.type="onHide";V.trigger(p);o(document).unbind("click.d").unbind("keydown.d");if(p.isDefaultPrevented()){return}B.hide();x=false}return C},getConf:function(){return Q},getInput:function(){return R},getCalendar:function(){return B},getValue:function(p){return p?m(F,p,Q.lang):F},isOpen:function(){return x}});o.each(["onBeforeShow","onShow","change","onHide"],function(q,p){o.isFunction(Q[p])&&o(C).bind(p,Q[p]);C[p]=function(r){r&&o(C).bind(p,r);return C}});R.bind("focus click",C.show).keydown(function(q){var p=q.keyCode;if(!x&&o(k).index(p)>=0){C.show(q);return q.preventDefault()}return q.shiftKey||q.ctrlKey||q.altKey||p==9?true:q.preventDefault()});e(R.val())&&y(F,Q)}o.tools=o.tools||{version:"1.2.5"};var l=[],j,k=[75,76,38,39,74,72,40,37],c={};j=o.tools.dateinput={conf:{format:"mm/dd/yy",selectors:false,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:undefined,max:undefined,trigger:false,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(p,d){o.each(d,function(s,r){d[s]=r.split(",")});c[p]=d}};j.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var g=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,f=o("<a/>");o.expr[":"].date=function(p){var d=p.getAttribute("type");return d&&d=="date"||!!o(p).data("dateinput")};o.fn.dateinput=function(p){if(this.data("dateinput")){return this}p=o.extend(true,{},j.conf,p);o.each(p.css,function(s,r){if(!r&&s!="prefix"){p.css[s]=(p.css.prefix||"")+(r||s)}});var d;this.each(function(){var q=new b(o(this),p);l.push(q);q=q.getInput().data("dateinput",q);d=d?d.add(q):q});return d?d:this}})(jQuery);(function(a){function d(e,j){j=Math.pow(10,j);return Math.round(e*j)/j}function b(e,j){if(j=parseInt(e.css(j),10)){return j}return(e=e[0].currentStyle)&&e.width&&parseInt(e.width,10)}function c(e){return(e=e.data("events"))&&e.onSlide}function f(O,M){function E(m,l,o,n){if(o===undefined){o=l/C*U}else{if(n){o-=M.min}}if(e){o=Math.round(o/e)*e}if(l===undefined||e){l=o*C/U}if(isNaN(o)){return N}l=Math.max(0,Math.min(l,C));o=l/C*U;if(n||!G){o+=M.min}if(G){if(n){l=C-l}else{o=M.max-o}}o=d(o,x);var k=m.type=="click";if(T&&K!==undefined&&!k){m.type="onSlide";S.trigger(m,[o,l]);if(m.isDefaultPrevented()){return N}}n=k?M.speed:0;k=k?function(){m.type="change";S.trigger(m,[o])}:null;if(G){L.animate({top:l},n,k);M.progress&&R.animate({height:C-l+L.width()/2},n)}else{L.animate({left:l},n,k);M.progress&&R.animate({width:l+L.width()/2},n)}K=o;P=l;O.val(o);return N}function J(){if(G=M.vertical||b(F,"height")>b(F,"width")){C=b(F,"height")-b(L,"height");y=F.offset().top+C}else{C=b(F,"width")-b(L,"width");y=F.offset().left}}function q(){J();N.setValue(M.value!==undefined?M.value:M.min)}var N=this,j=M.css,F=a("<div><div/><a href='#'/></div>").data("rangeinput",N),G,K,y,C,P;O.before(F);var L=F.addClass(j.slider).find("a").addClass(j.handle),R=F.find("div").addClass(j.progress);a.each("min,max,step,value".split(","),function(l,k){l=O.attr(k);if(parseFloat(l)){M[k]=parseFloat(l,10)}});var U=M.max-M.min,e=M.step=="any"?0:M.step,x=M.precision;if(x===undefined){try{x=e.toString().split(".")[1].length}catch(Q){x=0}}if(O.attr("type")=="range"){var r=a("<input/>");a.each("class,disabled,id,maxlength,name,readonly,required,size,style,tabindex,title,value".split(","),function(l,k){r.attr(k,O.attr(k))});r.val(M.value);O.replaceWith(r);O=r}O.addClass(j.input);var S=a(N).add(O),T=true;a.extend(N,{getValue:function(){return K},setValue:function(l,k){J();return E(k||a.Event("api"),undefined,l,true)},getConf:function(){return M},getProgress:function(){return R},getHandle:function(){return L},getInput:function(){return O},step:function(l,k){k=k||a.Event();var m=M.step=="any"?1:M.step;N.setValue(K+m*(l||1),k)},stepUp:function(k){return N.step(k||1)},stepDown:function(k){return N.step(-k||-1)}});a.each("onSlide,change".split(","),function(l,k){a.isFunction(M[k])&&a(N).bind(k,M[k]);N[k]=function(m){m&&a(N).bind(k,m);return N}});L.drag({drag:false}).bind("dragStart",function(){J();T=c(a(N))||c(O)}).bind("drag",function(l,k,m){if(O.is(":disabled")){return false}E(l,G?k:m)}).bind("dragEnd",function(k){if(!k.isDefaultPrevented()){k.type="change";S.trigger(k,[K])}}).click(function(k){return k.preventDefault()});F.click(function(l){if(O.is(":disabled")||l.target==L[0]){return l.preventDefault()}J();var k=L.width()/2;E(l,G?C-y-k+l.pageY:l.pageX-y-k)});M.keyboard&&O.keydown(function(l){if(!O.attr("readonly")){var k=l.keyCode,n=a([75,76,38,33,39]).index(k)!=-1,m=a([74,72,40,34,37]).index(k)!=-1;if((n||m)&&!(l.shiftKey||l.altKey||l.ctrlKey)){if(n){N.step(k==33?10:1,l)}else{if(m){N.step(k==34?-10:-1,l)}}return l.preventDefault()}}});O.blur(function(l){var k=a(this).val();k!==K&&N.setValue(k,l)});a.extend(O[0],{stepUp:N.stepUp,stepDown:N.stepDown});q();C||a(window).load(q)}a.tools=a.tools||{version:"1.2.5"};var g;g=a.tools.rangeinput={conf:{min:0,max:100,step:"any",steps:0,value:0,precision:undefined,vertical:0,keyboard:true,progress:false,speed:100,css:{input:"range",slider:"slider",progress:"progress",handle:"handle"}}};var h,i;a.fn.drag=function(e){document.ondragstart=function(){return false};e=a.extend({x:true,y:true,drag:true},e);h=h||a(document).bind("mousedown mouseup",function(q){var j=a(q.target);if(q.type=="mousedown"&&j.data("drag")){var l=j.position(),n=q.pageX-l.left,k=q.pageY-l.top,m=true;h.bind("mousemove.drag",function(o){var p=o.pageX-n;o=o.pageY-k;var r={};if(e.x){r.left=p}if(e.y){r.top=o}if(m){j.trigger("dragStart");m=false}e.drag&&j.css(r);j.trigger("drag",[o,p]);i=j});q.preventDefault()}else{try{i&&i.trigger("dragEnd")}finally{h.unbind("mousemove.drag");i=null}}});return this.data("drag",true)};a.expr[":"].range=function(e){var j=e.getAttribute("type");return j&&j=="range"||!!a(e).filter("input").data("rangeinput")};a.fn.rangeinput=function(e){if(this.data("rangeinput")){return this}e=a.extend(true,{},g.conf,e);var j;this.each(function(){var k=new f(a(this),a.extend(true,{},e));k=k.getInput().data("rangeinput",k);j=j?j.add(k):k});return j?j:this}})(jQuery);(function(a){function d(s,q,r){var t=s.offset().top,e=s.offset().left,o=r.position.split(/,?\s+/),h=o[0];o=o[1];t-=q.outerHeight()-r.offset[0];e+=s.outerWidth()+r.offset[1];if(/iPad/i.test(navigator.userAgent)){t-=a(window).scrollTop()}r=q.outerHeight()+s.outerHeight();if(h=="center"){t+=r/2}if(h=="bottom"){t+=r}s=s.outerWidth();if(o=="center"){e-=(s+q.outerWidth())/2}if(o=="left"){e-=s}return{top:t,left:e}}function n(h){function e(){return this.getAttribute("type")==h}e.key="[type="+h+"]";return e}function f(s,q,r){function t(p,u,v){if(!(!r.grouped&&p.length)){var w;if(v===false||a.isArray(v)){w=l.messages[u.key||u]||l.messages["*"];w=w[r.lang]||l.messages["*"].en;(u=w.match(/\$\d/g))&&a.isArray(v)&&a.each(u,function(x){w=w.replace(this,v[x])})}else{w=v[r.lang]||v}p.push(w)}}var e=this,o=q.add(e);s=s.not(":button, :image, :reset, :submit");a.extend(e,{getConf:function(){return r},getForm:function(){return q},getInputs:function(){return s},reflow:function(){s.each(function(){var p=a(this),u=p.data("msg.el");if(u){p=d(p,u,r);u.css({top:p.top,left:p.left})}});return e},invalidate:function(p,u){if(!u){var v=[];a.each(p,function(x,w){x=s.filter("[name='"+x+"']");if(x.length){x.trigger("OI",[w]);v.push({input:x,messages:[w]})}});p=v;u=a.Event()}u.type="onFail";o.trigger(u,[p]);u.isDefaultPrevented()||k[r.effect][0].call(e,p,u);return e},reset:function(p){p=p||s;p.removeClass(r.errorClass).each(function(){var u=a(this).data("msg.el");if(u){u.remove();a(this).data("msg.el",null)}}).unbind(r.errorInputEvent||"");return e},destroy:function(){q.unbind(r.formEvent+".V").unbind("reset.V");s.unbind(r.inputEvent+".V").unbind("change.V");return e.reset()},checkValidity:function(p,u){p=p||s;p=p.not(":disabled");if(!p.length){return true}u=u||a.Event();u.type="onBeforeValidate";o.trigger(u,[p]);if(u.isDefaultPrevented()){return u.result}var v=[];p.not(":radio:not(:checked)").each(function(){var y=[],x=a(this).data("messages",y),z=b&&x.is(":date")?"onHide.v":r.errorInputEvent+".v";x.unbind(z);a.each(c,function(){var B=this,A=B[0];if(x.filter(A).length){B=B[1].call(e,x,x.val());if(B!==true){u.type="onBeforeFail";o.trigger(u,[x,A]);if(u.isDefaultPrevented()){return false}var C=x.attr(r.messageAttr);if(C){y=[C];return false}else{t(y,A,B)}}}});if(y.length){v.push({input:x,messages:y});x.trigger("OI",[y]);r.errorInputEvent&&x.bind(z,function(A){e.checkValidity(x,A)})}if(r.singleError&&v.length){return false}});var w=k[r.effect];if(!w){throw'Validator: cannot find effect "'+r.effect+'"'}if(v.length){e.invalidate(v,u);return false}else{w[1].call(e,p,u);u.type="onSuccess";o.trigger(u,[p]);p.unbind(r.errorInputEvent+".v")}return true}});a.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),function(p,u){a.isFunction(r[u])&&a(e).bind(u,r[u]);e[u]=function(v){v&&a(e).bind(u,v);return e}});r.formEvent&&q.bind(r.formEvent+".V",function(p){if(!e.checkValidity(null,p)){return p.preventDefault()}});q.bind("reset.V",function(){e.reset()});s[0]&&s[0].validity&&s.each(function(){this.oninvalid=function(){return false}});if(q[0]){q[0].checkValidity=e.checkValidity}r.inputEvent&&s.bind(r.inputEvent+".V",function(p){e.checkValidity(a(this),p)});s.filter(":checkbox, select").filter("[required]").bind("change.V",function(p){var u=a(this);if(this.checked||u.is("select")&&a(this).val()){k[r.effect][1].call(e,u,p)}});var h=s.filter(":radio").change(function(p){e.checkValidity(h,p)});a(window).resize(function(){e.reflow()})}a.tools=a.tools||{version:"1.2.5"};var m=/\[type=([a-z]+)\]/,j=/^-?[0-9]*(\.[0-9]+)?$/,b=a.tools.dateinput,i=/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,6})$/i,g=/^(https?:\/\/)?[\da-z\.\-]+\.[a-z\.]{2,6}[#&+_\?\/\w \.\-=]*$/i,l;l=a.tools.validator={conf:{grouped:false,effect:"default",errorClass:"invalid",inputEvent:null,errorInputEvent:"keyup",formEvent:"submit",lang:"en",message:"<div/>",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:false,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(h,e){a.each(e,function(o,p){l.messages[o]=l.messages[o]||{};l.messages[o][h]=p})},localizeFn:function(h,e){l.messages[h]=l.messages[h]||{};a.extend(l.messages[h],e)},fn:function(o,e,h){if(a.isFunction(e)){h=e}else{if(typeof e=="string"){e={en:e}}this.messages[o.key||o]=e}if(e=m.exec(o)){o=n(e[1])}c.push([o,h])},addEffect:function(o,e,h){k[o]=[e,h]}};var c=[],k={"default":[function(h){var e=this.getConf();a.each(h,function(p,q){p=q.input;p.addClass(e.errorClass);var o=p.data("msg.el");if(!o){o=a(e.message).addClass(e.messageClass).appendTo(document.body);p.data("msg.el",o)}o.css({visibility:"hidden"}).find("p").remove();a.each(q.messages,function(s,r){a("<p/>").html(r).appendTo(o)});o.outerWidth()==o.parent().width()&&o.add(o.find("p")).css({display:"inline"});q=d(p,o,e);o.css({visibility:"visible",position:"absolute",top:q.top,left:q.left}).fadeIn(e.speed)})},function(h){var e=this.getConf();h.removeClass(e.errorClass).each(function(){var o=a(this).data("msg.el");o&&o.css({visibility:"hidden"})})}]};a.each("email,url,number".split(","),function(h,e){a.expr[":"][e]=function(o){return o.getAttribute("type")===e}});a.fn.oninvalid=function(e){return this[e?"bind":"trigger"]("OI",e)};l.fn(":email","Please enter a valid email address",function(h,e){return !e||i.test(e)});l.fn(":url","Please enter a valid URL",function(h,e){return !e||g.test(e)});l.fn(":number","Please enter a numeric value.",function(h,e){return j.test(e)});l.fn("[max]","Please enter a value smaller than $1",function(h,e){if(e===""||b&&h.is(":date")){return true}h=h.attr("max");return parseFloat(e)<=parseFloat(h)?true:[h]});l.fn("[min]","Please enter a value larger than $1",function(h,e){if(e===""||b&&h.is(":date")){return true}h=h.attr("min");return parseFloat(e)>=parseFloat(h)?true:[h]});l.fn("[required]","Please complete this mandatory field.",function(h,e){if(h.is(":checkbox")){return h.is(":checked")}return !!e});l.fn("[pattern]",function(h){var e=new RegExp("^"+h.attr("pattern")+"$");return e.test(h.val())});a.fn.validator=function(h){var e=this.data("validator");if(e){e.destroy();this.removeData("validator")}h=a.extend(true,{},l.conf,h);if(this.is("form")){return this.each(function(){var o=a(this);e=new f(o.find(":input"),o,h);o.data("validator",e)})}else{e=new f(this,this.eq(0).closest("form"),h);return this.data("validator",e)}}})(jQuery);var App=App||{};window.App=App;(function(b){App.Collapsible={init:function(){b(".collapsible").each(function(){var d=b(this).find(".collapsible-header");var c=b(this).find(".collapsible-content");c.hide();d.wrapInner('<a href="#"></a>').click(function(){b(this).parent().find(".collapsible-content:visible").not(b(this).next()).slideUp();b(this).next().slideToggle();b(this).parent().find(".expanded").removeClass("expanded");b(this).addClass("expanded");return false})})}};function a(){if("placeholder" in document.createElement("input")){return false}b("input,textarea").each(function(){var d=b(this),c=d.attr("placeholder");if(c&&c.length>0){d.addClass("placeholder").val(c).focus(function(){if(d.val()==c){d.val("").removeClass("placeholder")}}).blur(function(){if(d.val().length<1){d.val(c).addClass("placeholder")}})}})}b(document).ready(function(){App.Collapsible.init();b(".scrollable").scrollable({circular:true,speed:800}).autoscroll({interval:5000});if(b("#gallery").length){if(b("#gallery .items  a").length>5){b("#gallery").find(".next, .prev").show();b("#gallery").find(".gallery-scrollable").css({left:"23px"});b(".gallery-scrollable").scrollable({circular:true,speed:800})}if(b("#gallery .items  a").length==1){b("#gallery .thumbs").hide()}}if(b("#blueprints a").length){b("#blueprints a").lightBox({fixedNavigation:true})}b("#product-features").find(".tip").tooltip({offset:[10,0],position:"bottom center",layout:'<div><span class="arrow"></span></div>',predelay:200,effect:"slide",slideOffset:10,direction:"down",relative:true,bounce:true}).dynamic();b("#product-features1").find(".tip").tooltip({offset:[10,0],position:"bottom center",layout:'<div><span class="arrow"></span></div>',predelay:200,effect:"slide",slideOffset:10,direction:"down",relative:true,bounce:true}).dynamic();a()})})(window.jQuery);var App=App||{};window.App=App;(function(c){App.Campaign={img:[],rootElement:("onorientationchange" in window)?c(document):c(window),init:function(){this.bgContainer=c('<div id="campaign-bg" class="campaign-bg"></div>').appendTo("body");this.rootElement.resize(App.Campaign.resize);var d='<div id="campaign-tabs">';for(var e=0;e<c("#campaignarea .campaign").length;e++){d+='<a href="#"></a>'}d+="</div>";c(d).appendTo(c("#campaign-nav"));c("#campaign-thumbs").scrollable({circular:true,keyboard:false,vertical:false,speed:400,prev:null,next:null});this.thumbs=c("#campaign-thumbs").data("scrollable");c("#campaign-tabs").tabs("#campaigns > .campaign",{effect:"default",rotate:true}).slideshow({next:".next",prev:".prev",clickable:false,autoplay:true,autopause:true,interval:8000});this.api=c("#campaign-tabs").data("tabs");this.tabs=this.api.getTabs();this.panels=this.api.getPanes();c("#campaign-nav").hover(c("#campaign-tabs").data("slideshow").pause,c("#campaign-tabs").data("slideshow").play);this.preload(0);this.preload(1);this.preload(App.Campaign.panels.length-1);this.api.onBeforeClick(function(f,g){var h=g+1;if(h>App.Campaign.panels.length-1){h=0}App.Campaign.preload(h);h=(g-1<0)?App.Campaign.panels.length-1:g-1;App.Campaign.preload(h);App.Campaign.currBg=c("#campaign-img"+g);setTimeout(App.Campaign.doShowImage,10);App.Campaign.thumbs.next()})},doShowImage:function(){App.Campaign.resize(function(){App.Campaign.bgContainer.find(".current").removeClass("current");App.Campaign.currBg.addClass("current")})},resize:function(e){var f=App.Campaign.api.getIndex(),d=App.Campaign.rootElement;try{bgCSS={left:0,top:0};bgWidth=d.width();imgRatio=App.Campaign.img[f].ratio;bgHeight=bgWidth/imgRatio;if(bgHeight>=d.height()){bgOffset=(bgHeight-d.height())/2;c.extend(bgCSS,{top:"-"+bgOffset+"px"})}else{bgHeight=d.height();bgWidth=bgHeight*imgRatio;bgOffset=(bgWidth-d.width())/2;c.extend(bgCSS,{left:"-"+bgOffset+"px"})}c("#campaign-img"+f).width(bgWidth).height(bgHeight).css(bgCSS)}catch(g){}if(typeof e=="function"){e()}},preload:function(g){var d=c(this.panels[g]),e=g;if(c("#campaign-img"+e).length<1){var f=setTimeout(function(){var i=c("#loading");if(i.length<1){i=c('<div id="loading">Loading</div>').prependTo("body")}i.show()},500);App.Campaign.img[e]={};var h=c('<img id="campaign-img'+e+'" />').bind("load",function(i){if(f){clearTimeout(f);c("#loading").hide()}var j={w:i.target.width,h:i.target.height,ratio:i.target.width/i.target.height};App.Campaign.img[g]=j;var k=c(this);if(App.Campaign.api.getIndex()==e){k.addClass("current").hide().fadeIn(800)}App.Campaign.resize()}).appendTo(this.bgContainer);h.attr("src",d.data("background"))}}};c.backstretch=function(f,l,d){var e={id:"backstretch",centeredX:true,centeredY:true,speed:300},h=("onorientationchange" in window)?c(document):c(window),p,o,i,g,m,j;if(l&&typeof l=="object"){c.extend(e,l)}c(document).ready(n);return this;function n(){if(f){var q=c("<div />").attr("id",e.id).css({left:0,top:0,position:"fixed",overflow:"hidden",zIndex:-9999}),r=c("<img />").css({position:"relative",display:"none"}).bind("load",function(s){var t=c(this);p=c(s.target).width()/c(s.target).height();k(function(){t.fadeIn(e.speed,function(){if(typeof d=="function"){d()}})})}).appendTo(q);c("body").append(q);r.attr("src",f);c(window).smartresize(k)}}function k(q){try{j={left:0,top:0};i=h.width();g=i/p;if(g>=h.height()){m=(g-h.height())/2;if(e.centeredY){c.extend(j,{top:"-"+m+"px"})}}else{g=h.height();i=g*p;m=(i-h.width())/2;if(e.centeredX){c.extend(j,{left:"-"+m+"px"})}}c("#backstretch img").width(i).height(g).css(j)}catch(r){}if(typeof q=="function"){q()}}};
/*
	* smartresize: debounced resize event for jQuery
	*
	* Copyright (c) 2009 Louis-Rémi Babé
	* Licensed under the GPL license.
	* http://docs.jquery.com/License
	*
	*/
var b=c.event,a;b.special.smartresize={setup:function(){c(this).bind("resize",b.special.smartresize.handler)},teardown:function(){c(this).unbind("resize",b.special.smartresize.handler)},handler:function(e,f){var d=this,g=arguments;e.type="smartresize";if(a){clearTimeout(a)}a=setTimeout(function(){jQuery.event.handle.apply(d,g)},f==="execAsap"?0:100)}};c.fn.smartresize=function(d){return d?this.bind("smartresize",d):this.trigger("smartresize",["execAsap"])};c(document).ready(function(){if(typeof bgImage=="string"){c.backstretch(bgImage)}})})(window.jQuery);
