jQuery.fn.extend({everyTime:function(b,c,d,e,a){return this.each(function(){jQuery.timer.add(this,b,c,d,e,a)})},oneTime:function(a,b,c){return this.each(function(){jQuery.timer.add(this,a,b,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseInt(a[1],10);var d=this.powers[a[2]]||1;return b*d}else{return c}},add:function(e,c,d,g,h,b){var a=0;if(jQuery.isFunction(d)){if(!h){h=g}g=d;d=c}c=jQuery.timer.timeParse(c);if(typeof c!="number"||isNaN(c)||c<=0){return}if(h&&h.constructor!=Number){b=!!h;h=0}h=h||0;b=b||false;if(!e.$timers){e.$timers={}}if(!e.$timers[d]){e.$timers[d]={}}g.$timerID=g.$timerID||this.guid++;var f=function(){if(b&&this.inProgress){return}this.inProgress=true;if((++a>h&&h!==0)||g.call(e,a)===false){jQuery.timer.remove(e,d,g)}this.inProgress=false};f.$timerID=g.$timerID;if(!e.$timers[d][g.$timerID]){e.$timers[d][g.$timerID]=window.setInterval(f,c)}if(!this.global[d]){this.global[d]=[]}this.global[d].push(e)},remove:function(c,b,d){var e=c.$timers,a;if(e){if(!b){for(b in e){this.remove(c,b,d)}}else{if(e[b]){if(d){if(d.$timerID){window.clearInterval(e[b][d.$timerID]);delete e[b][d.$timerID]}}else{for(var d in e[b]){window.clearInterval(e[b][d]);delete e[b][d]}}for(a in e[b]){break}if(!a){a=null;delete e[b]}}}for(a in e){break}if(!a){c.$timers=null}}}}});if(jQuery.browser.msie){jQuery(window).one("unload",function(){var d=jQuery.timer.global;for(var a in d){var c=d[a],b=c.length;while(--b){jQuery.timer.remove(c[b],a)}}})}(function(a){a.fn.vAlign=function(){return this.each(function(d){var b=a(this).height();var e=a(this).parent().height();var c=(e-b)/2;a(this).css("margin-top",c)})}})(jQuery);(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);$(document).ready(function(){$.fn.add_layer=function(a,b){$(this).each(function(){s=$(this).extend({},b||{});$last=($(this).find(".add_background:last").length>0?$(this).find(".add_background:last"):$(this));$last.html('<div class="add_background"><div>'+$last.html()+"</div></div>");$last=$(this).find(".add_background:last");$last.css({background:a,width:"100%",height:"100%"});$last=$(this).find(".add_background div:last");if(s.insideCss){$last.css(s.insideCss)}if(s.insideClass){$last.addClass(s.insideClass)}})}});(function(a){a.ajaxHistory=new function(){var k="historyReset";var c=location.hash;var j=null;var h;this.update=function(){};var g=function(){a(".remote-output").empty()};a(document).bind(k,g);if(a.browser.msie){var i,d=false;a(function(){i=a('<iframe style="display: none;"></iframe>').appendTo(document.body).get(0);var m=i.contentWindow.document;m.open();m.close();if(c&&c!="#"){m.location.hash=c.replace("#","")}});this.update=function(n){c=n;var m=i.contentWindow.document;m.open();m.close();m.location.hash=n.replace("#","")};h=function(){var n=i.contentWindow.document;var m=n.location.hash;if(m!=c){c=m;if(m&&m!="#"){a('a[@href$="'+m+'"]').click();location.hash=m}else{if(d){location.hash="";a(document).trigger(k)}}}d=true}}else{if(a.browser.mozilla||a.browser.opera){this.update=function(m){c=m};h=function(){if(location.hash){if(c!=location.hash){c=location.hash;a('a[@href$="'+c+'"]').click()}}else{if(c){c="";a(document).trigger(k)}}}}else{if(a.browser.safari){var l,b,f;a(function(){l=[];l.length=history.length;b=[]});var e=false,d=false;f=function(m){l.push(m);b.length=0;e=false};this.update=function(m){c=m;f(c)};h=function(){var m=history.length-l.length;if(m){e=false;if(m<0){for(var n=0;n<Math.abs(m);n++){b.unshift(l.pop())}}else{for(var n=0;n<m;n++){l.push(b.shift())}}var o=l[l.length-1];a('a[@href$="'+o+'"]').click();c=location.hash}else{if(l[l.length-1]==undefined&&!e){if(document.URL.indexOf("#")>=0){a('a[@href$="#'+document.URL.split("#")[1]+'"]').click()}else{if(d){a(document).trigger(k)}}e=true}}d=true}}}}this.initialize=function(m){if(typeof m=="function"){a(document).unbind(k,g).bind(k,m)}if(location.hash&&typeof f=="undefined"){a('a[@href$="'+location.hash+'"]').trigger("click")}if(h&&j==null){j=setInterval(h,200)}}};a.fn.remote=function(b,c,e){e=e||function(){};if(typeof c=="function"){e=c}c=a.extend({hashPrefix:"remote-"},c||{});var d=a(b).size()&&a(b)||a("<div></div>").appendTo("body");d.addClass("remote-output");return this.each(function(h){var g=this.href,j="#"+(this.title&&this.title.replace(/\s/g,"_")||c.hashPrefix+(h+1)),f=this;this.href=j;a(this).click(function(i){if(!d.locked){if(i.clientX){a.ajaxHistory.update(j)}d.load(g,function(){d.locked=null;e.apply(f)})}})})};a.fn.history=function(b){return this.click(function(c){if(c.clientX){if(this.hash==location.hash){return false}a.ajaxHistory.update(this.hash)}if(typeof b=="function"){b.call(this)}})}})(jQuery);(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(d){d.tools=d.tools||{};d.tools.scrollable={version:"1.1.2",conf:{size:5,vertical:false,speed:400,keyboard:true,keyboardSteps:null,disabledClass:"disabled",hoverClass:null,clickable:true,activeClass:"active",easing:"swing",loop:false,items:".items",item:null,prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",api:false}};var f;function e(t,v){var a=this,c=d(this),E=!v.vertical,D=t.children(),x=0,z;if(!f){f=a}d.each(v,function(h,g){if(d.isFunction(g)){c.bind(h,g)}});if(D.length>1){D=d(v.items,t)}function w(g){var h=d(g);return v.globalNav?h:t.parent().find(g)}t.data("finder",w);var C=w(v.prev),A=w(v.next),B=w(v.prevPage),u=w(v.nextPage);d.extend(a,{getIndex:function(){return x},getClickIndex:function(){var g=a.getItems();return g.index(g.filter("."+v.activeClass))},getConf:function(){return v},getSize:function(){return a.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/v.size)},getPageIndex:function(){return Math.ceil(x/v.size)},getNaviButtons:function(){return C.add(A).add(B).add(u)},getRoot:function(){return t},getItemWrap:function(){return D},getItems:function(){return D.children(v.item)},getVisibleItems:function(){return a.getItems().slice(x,x+v.size)},seekTo:function(l,h,k){if(l<0){l=0}if(x===l){return a}if(d.isFunction(h)){k=h}if(l>a.getSize()-v.size){return v.loop?a.begin():this.end()}var j=a.getItems().eq(l);if(!j.length){return a}var i=d.Event("onBeforeSeek");c.trigger(i,[l]);if(i.isDefaultPrevented()){return a}if(h===undefined||d.isFunction(h)){h=v.speed}function g(){if(k){k.call(a,l)}c.trigger("onSeek",[l])}if(E){D.animate({left:-j.position().left},h,v.easing,g)}else{D.animate({top:-j.position().top},h,v.easing,g)}f=a;x=l;i=d.Event("onStart");c.trigger(i,[l]);if(i.isDefaultPrevented()){return a}C.add(B).toggleClass(v.disabledClass,l===0);A.add(u).toggleClass(v.disabledClass,l>=a.getSize()-v.size);return a},move:function(g,h,i){z=g>0;return this.seekTo(x+g,h,i)},next:function(g,h){return this.move(1,g,h)},prev:function(g,h){return this.move(-1,g,h)},movePage:function(g,h,i){z=g>0;var k=v.size*g;var j=x%v.size;if(j>0){k+=(g>0?-j:v.size-j)}return this.move(k,h,i)},prevPage:function(g,h){return this.movePage(-1,g,h)},nextPage:function(g,h){return this.movePage(1,g,h)},setPage:function(h,g,i){return this.seekTo(h*v.size,g,i)},begin:function(g,h){z=false;return this.seekTo(0,g,h)},end:function(h,i){z=true;var g=this.getSize()-v.size;return g>0?this.seekTo(g,h,i):a},reload:function(){c.trigger("onReload");return a},focus:function(){f=a;return a},click:function(j){var i=a.getItems().eq(j),l=v.activeClass,k=v.size;if(j<0||j>=a.getSize()){return a}if(k==1){if(v.loop){return a.next()}if(j===0||j==a.getSize()-1){z=(z===undefined)?true:!z}return z===false?a.prev():a.next()}if(k==2){if(j==x){j--}a.getItems().removeClass(l);i.addClass(l);return a.seekTo(j,time,fn)}if(!i.hasClass(l)){a.getItems().removeClass(l);i.addClass(l);var g=Math.floor(k/2);var h=j-g;if(h>a.getSize()-k){h=a.getSize()-k}if(h!==j){return a.seekTo(h)}}return a},bind:function(h,g){c.bind(h,g);return a},unbind:function(g){c.unbind(g);return a}});d.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(h,g){a[g]=function(i){return a.bind(g,i)}});C.addClass(v.disabledClass).click(function(){a.prev()});A.click(function(){a.next()});u.click(function(){a.nextPage()});if(a.getSize()<v.size){A.add(u).addClass(v.disabledClass)}B.addClass(v.disabledClass).click(function(){a.prevPage()});var y=v.hoverClass,b="keydown."+Math.random().toString().substring(10);a.onReload(function(){if(y){a.getItems().hover(function(){d(this).addClass(y)},function(){d(this).removeClass(y)})}if(v.clickable){a.getItems().each(function(g){d(this).unbind("click.scrollable").bind("click.scrollable",function(h){if(d(h.target).is("a")){return}return a.click(g)})})}if(v.keyboard){d(document).unbind(b).bind(b,function(h){if(h.altKey||h.ctrlKey){return}if(v.keyboard!="static"&&f!=a){return}var g=v.keyboardSteps;if(E&&(h.keyCode==37||h.keyCode==39)){a.move(h.keyCode==37?-g:g);return h.preventDefault()}if(!E&&(h.keyCode==38||h.keyCode==40)){a.move(h.keyCode==38?-g:g);return h.preventDefault()}return true})}else{d(document).unbind(b)}});a.reload()}d.fn.scrollable=function(c){var b=this.eq(typeof c=="number"?c:0).data("scrollable");if(b){return b}var a=d.extend({},d.tools.scrollable.conf);c=d.extend(a,c);c.keyboardSteps=c.keyboardSteps||c.size;this.each(function(){b=new e(d(this),c);d(this).data("scrollable",b)});return c.api?b:this}})(jQuery);(function(c){var d=c.tools.scrollable;d.plugins=d.plugins||{};d.plugins.circular={version:"0.5.1",conf:{api:false,clonedClass:"cloned"}};c.fn.circular=function(a){var b=c.extend({},d.plugins.circular.conf),f;c.extend(b,a);this.each(function(){var t=c(this).scrollable(),e=t.getItems(),q=t.getConf(),w=t.getItemWrap(),r=0;if(t){f=t}if(e.length<q.size){return false}e.slice(0,q.size).each(function(g){c(this).clone().appendTo(w).click(function(){t.click(e.length+g)}).addClass(b.clonedClass)});var p=c.makeArray(e.slice(-q.size)).reverse();c(p).each(function(g){c(this).clone().prependTo(w).click(function(){t.click(-g-1)}).addClass(b.clonedClass)});var o=w.children(q.item);var u=q.hoverClass;if(u){o.hover(function(){c(this).addClass(u)},function(){c(this).removeClass(u)})}function v(h){var g=o.eq(h);if(q.vertical){w.css({top:-g.position().top})}else{w.css({left:-g.position().left})}}v(q.size);c.extend(t,{move:function(i,j,l,k){var g=r+i+q.size;var h=g>t.getSize()-q.size;if(g<=0||h){var m=r+q.size+(h?-e.length:e.length);v(m);g=m+i}if(k){o.removeClass(q.activeClass).eq(g+Math.floor(q.size/2)).addClass(q.activeClass)}if(g===r+q.size){return self}return t.seekTo(g,j,l)},begin:function(g,h){return this.seekTo(q.size,g,h)},end:function(g,h){return this.seekTo(e.length,g,h)},click:function(j,h,i){if(!q.clickable){return self}if(q.size==1){return this.next()}var g=j-r,k=q.activeClass;g-=Math.floor(q.size/2);return this.move(g,h,i,true)},getIndex:function(){return r},setPage:function(h,g,i){return this.seekTo(h*q.size+q.size,g,i)},getPageAmount:function(){return Math.ceil(e.length/q.size)},getPageIndex:function(){if(r<0){return this.getPageAmount()-1}if(r>=e.length){return 0}var g=(r+q.size)/q.size-1;return g},getVisibleItems:function(){var g=r+q.size;return o.slice(g,g+q.size)}});t.onStart(function(g,h){r=h-q.size;return false});t.getNaviButtons().removeClass(q.disabledClass)});return b.api?f:this}})(jQuery);(function(c){var d=c.tools.scrollable;d.plugins=d.plugins||{};d.plugins.navigator={version:"1.0.2",conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};c.fn.navigator=function(b){var a=c.extend({},d.plugins.navigator.conf),f;if(typeof b=="string"){b={navi:b}}b=c.extend(a,b);this.each(function(){var o=c(this).scrollable(),r=o.getRoot(),e=r.data("finder").call(null,b.navi),q=null,m=o.getNaviButtons();if(o){f=o}o.getNaviButtons=function(){return m.add(e)};function n(){if(!e.children().length||e.data("navi")==o){e.empty();e.data("navi",o);for(var g=0;g<o.getPageAmount();g++){e.append(c("<"+(b.naviItem||"a")+"/>"))}q=e.children().each(function(i){var h=c(this);h.click(function(j){o.setPage(i);return j.preventDefault()});if(b.indexed){h.text(i)}if(b.idPrefix){h.attr("id",b.idPrefix+i)}})}else{q=b.naviItem?e.find(b.naviItem):e.children();q.each(function(i){var h=c(this);h.click(function(j){o.setPage(i);return j.preventDefault()})})}q.eq(0).addClass(b.activeClass)}o.onStart(function(h,i){var g=b.activeClass;q.removeClass(g).eq(o.getPageIndex()).addClass(g)});o.onReload(function(){n()});n();var p=q.filter("[href="+location.hash+"]");if(p.length){o.move(q.index(p))}});return b.api?f:this}})(jQuery);(function(d){d.tools=d.tools||{};d.tools.expose={version:"1.0.5",conf:{maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false}};function e(){if(d.browser.msie){var a=d(document).height(),b=d(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-b<20?b:a]}return[d(window).width(),d(document).height()]}function f(c,k){var m=this,a=d(this),n=null,l=false,b=0;d.each(k,function(h,g){if(d.isFunction(g)){a.bind(h,g)}});d(window).resize(function(){m.fit()});d.extend(this,{getMask:function(){return n},getExposed:function(){return c},getConf:function(){return k},isLoaded:function(){return l},load:function(j){if(l){return m}b=c.eq(0).css("zIndex");if(k.maskId){n=d("#"+k.maskId)}if(!n||!n.length){var h=e();n=d("<div/>").css({position:"absolute",top:0,left:0,width:h[0],height:h[1],display:"none",opacity:0,zIndex:k.zIndex});if(k.maskId){n.attr("id",k.maskId)}d("body").append(n);var i=n.css("backgroundColor");if(!i||i=="transparent"||i=="rgba(0, 0, 0, 0)"){n.css("backgroundColor",k.color)}if(k.closeOnEsc){d(document).bind("keydown.unexpose",function(p){if(p.keyCode==27){m.close()}})}if(k.closeOnClick){n.bind("click.unexpose",function(p){m.close(p)})}}j=j||d.Event();j.type="onBeforeLoad";a.trigger(j);if(j.isDefaultPrevented()){return m}d.each(c,function(){var p=d(this);if(!/relative|absolute|fixed/i.test(p.css("position"))){p.css("position","relative")}});c.css({zIndex:Math.max(k.zIndex+1,b=="auto"?0:b)});var g=n.height();if(!this.isLoaded()){n.css({opacity:0,display:"block"}).fadeTo(k.loadSpeed,k.opacity,function(){if(n.height()!=g){n.css("height",g)}j.type="onLoad";a.trigger(j)})}l=true;return m},close:function(g){if(!l){return m}g=g||d.Event();g.type="onBeforeClose";a.trigger(g);if(g.isDefaultPrevented()){return m}n.fadeOut(k.closeSpeed,function(){g.type="onClose";a.trigger(g);c.css({zIndex:d.browser.msie?b:null})});l=false;return m},fit:function(){if(n){var g=e();n.css({width:g[0],height:g[1]})}},bind:function(h,g){a.bind(h,g);return m},unbind:function(g){a.unbind(g);return m}});d.each("onBeforeLoad,onLoad,onBeforeClose,onClose".split(","),function(h,g){m[g]=function(i){return m.bind(g,i)}})}d.fn.expose=function(c){var b=this.eq(typeof c=="number"?c:0).data("expose");if(b){return b}if(typeof c=="string"){c={color:c}}var a=d.extend({},d.tools.expose.conf);c=d.extend(a,c);this.each(function(){b=new f(d(this),c);d(this).data("expose",b)});return c.api?b:this}})(jQuery);