(function(a){a("html").addClass("stylish-select");if(!Array.prototype.indexOf){Array.prototype.indexOf=function(d){if(this===void 0||this===null){throw new TypeError()}var e=Object(this);var b=e.length>>>0;if(b===0){return -1}var f=0;if(arguments.length>0){f=Number(arguments[1]);if(f!==f){f=0}else{if(f!==0&&f!==(1/0)&&f!==-(1/0)){f=(f>0||-1)*Math.floor(Math.abs(f))}}}if(f>=b){return -1}var c=f>=0?f:Math.max(b-Math.abs(f),0);for(;c<b;c++){if(c in e&&e[c]===d){return c}}return -1}}a.fn.extend({getSetSSValue:function(b){if(b){a(this).val(b).change();return this}else{return a(this).find(":selected").val()}},resetSS:function(){var b=a(this).data("ssOpts");$this=a(this);$this.next().remove();$this.unbind(".sSelect").sSelect(b)}});a.fn.sSelect=function(b){return this.each(function(){var n={defaultText:"Please select",animationSpeed:0,ddMaxHeight:"",containerClass:""};var q=a.extend(n,b),f=a(this),o=a('<div class="selectedTxt"></div>'),w=a('<div class="newListSelected '+q.containerClass+'"></div>'),m=a('<div class="SSContainerDivWrapper" style="visibility:hidden;"></div>'),E=a('<ul class="newList"></ul>'),y=-1,e=-1,l=-1,r=[],B=false,A=false,C;a(this).data("ssOpts",b);w.insertAfter(f);w.attr("tabindex",f.attr("tabindex")||"0");o.prependTo(w);E.appendTo(w);E.wrap(m);m=E.parent();f.hide();o.data("ssReRender",!o.is(":visible"));if(f.children("optgroup").length==0){f.children().each(function(G){var H=a(this).html();var F=a(this).val();r.push(H.charAt(0).toLowerCase());if(a(this).attr("selected")=="selected"||a(this).attr("selected")==true){q.defaultText=H;e=l=G}E.append(a('<li><a href="JavaScript:void(0);">'+H+"</a></li>").data("key",F))});C=E.children().children()}else{f.children("optgroup").each(function(){var F=a(this).attr("label"),H=a('<li class="newListOptionTitle">'+F+"</li>"),G=a("<ul></ul>");H.appendTo(E);G.appendTo(H);a(this).children().each(function(){++y;var J=a(this).html();var I=a(this).val();r.push(J.charAt(0).toLowerCase());if(a(this).attr("selected")=="selected"||a(this).attr("selected")==true){q.defaultText=J;e=l=y}G.append(a('<li><a href="JavaScript:void(0);">'+J+"</a></li>").data("key",I))})});C=E.find("ul li a")}var t=E.height(),s=w.height(),D=C.length;if(e!=-1){k(e)}else{o.text(q.defaultText)}function u(){var G=w.offset().top,F=a(window).height(),H=a(window).scrollTop();if(t>parseInt(q.ddMaxHeight)){t=parseInt(q.ddMaxHeight)}G=G-H;if(G+t>=F){E.css({height:t});m.css({top:"-"+t+"px",height:t});f.onTop=true}else{E.css({height:t});m.css({top:s+"px",height:t});f.onTop=false}}u();a(window).bind("resize.sSelect scroll.sSelect",u);function x(){w.css("position","relative")}function d(){w.css({position:"static"})}o.bind("click.sSelect",function(F){F.stopPropagation();if(a(this).data("ssReRender")){t=E.height("").height();m.height("");s=w.height();a(this).data("ssReRender",false);u()}a(".SSContainerDivWrapper").not(a(this).next()).hide().parent().css("position","static").removeClass("newListSelFocus");m.toggle();x();if(e==-1){e=0}C.eq(e).focus()});function c(G,F){if(G==true){l=e;f.change()}if(F==true){e=l;k(e)}m.hide();d()}C.bind("click.sSelect",function(G){var F=a(G.target);e=C.index(F);A=true;k(e,true);c()});C.bind("mouseenter.sSelect",function(G){var F=a(G.target);F.addClass("newListHover")}).bind("mouseleave.sSelect",function(G){var F=a(G.target);F.removeClass("newListHover")});function k(F,J){if(F==-1){o.text(q.defaultText);C.removeClass("hiLite")}else{C.removeClass("hiLite").eq(F).addClass("hiLite");var I=C.eq(F).text(),H=C.eq(F).parent().data("key");try{f.val(H)}catch(G){f[0].selectedIndex=F}o.text(I);if(J==true){l=F;f.change()}if(m.is(":visible")){C.eq(F).focus()}}}f.bind("change.sSelect",function(G){var F=a(G.target);if(A==true){A=false;return false}var H=F.find(":selected");e=F.find("option").index(H);k(e)});function v(F){a(F).unbind("keydown.sSelect").bind("keydown.sSelect",function(I){var H=I.which;A=true;switch(H){case 40:case 39:z();return false;break;case 38:case 37:p();return false;break;case 33:case 36:h();return false;break;case 34:case 35:g();return false;break;case 13:case 27:c(true);return false;break}keyPressed=String.fromCharCode(H).toLowerCase();var G=r.indexOf(keyPressed);if(typeof G!="undefined"){++e;e=r.indexOf(keyPressed,e);if(e==-1||e==null||B!=keyPressed){e=r.indexOf(keyPressed)}k(e);B=keyPressed;return false}})}function z(){if(e<(D-1)){++e;k(e)}}function p(){if(e>0){--e;k(e)}}function h(){e=0;k(e)}function g(){e=D-1;k(e)}w.bind("click.sSelect",function(F){F.stopPropagation();v(this)});w.bind("focus.sSelect",function(){a(this).addClass("newListSelFocus");v(this)});w.bind("blur.sSelect",function(){a(this).removeClass("newListSelFocus")});a(document).bind("click.sSelect",function(){w.removeClass("newListSelFocus");if(m.is(":visible")){c(false,true)}else{c(false)}});o.bind("mouseenter.sSelect",function(G){var F=a(G.target);F.parent().addClass("newListSelHover")}).bind("mouseleave.sSelect",function(G){var F=a(G.target);F.parent().removeClass("newListSelHover")});m.css({left:"0",display:"none",visibility:"visible"})})}})(jQuery);(function(a){a.fn.kwicks=function(b){var c={isVertical:false,sticky:false,defaultKwick:0,event:"mouseover",spacing:0,duration:500};var e=a.extend(c,b);var f=(e.isVertical?"height":"width");var d=(e.isVertical?"top":"left");return this.each(function(){container=a(this);var k=container.children("li");var h=k.eq(0).css(f).replace(/px/,"");if(!e.max){e.max=(h*k.size())-(e.min*(k.size()-1))}else{e.min=((h*k.size())-e.max)/(k.size()-1)}if(e.isVertical){container.css({width:k.eq(0).css("width"),height:(h*k.size())+(e.spacing*(k.size()-1))+"px"})}else{container.css({width:(h*k.size())+(e.spacing*(k.size()-1))+"px",height:k.eq(0).css("height")})}var g=[];for(i=0;i<k.size();i++){g[i]=[];for(j=1;j<k.size()-1;j++){if(i==j){g[i][j]=e.isVertical?j*e.min+(j*e.spacing):j*e.min+(j*e.spacing)}else{g[i][j]=(j<=i?(j*e.min):(j-1)*e.min+e.max)+(j*e.spacing)}}}k.each(function(l){var m=a(this);if(l===0){m.css(d,"0px")}else{if(l==k.size()-1){m.css(e.isVertical?"bottom":"right","0px")}else{if(e.sticky){m.css(d,g[e.defaultKwick][l])}else{m.css(d,(l*h)+(l*e.spacing))}}}if(e.sticky){if(e.defaultKwick==l){m.css(f,e.max+"px");m.addClass("active")}else{m.css(f,e.min+"px")}}m.css({margin:0,position:"absolute"});m.bind(e.event,function(){var p=[];var r=[];k.stop().removeClass("active");for(j=0;j<k.size();j++){p[j]=k.eq(j).css(f).replace(/px/,"");r[j]=k.eq(j).css(d).replace(/px/,"")}var o={};o[f]=e.max;var q=e.max-p[l];var n=p[l]/q;m.addClass("active").animate(o,{step:function(t){var s=q!=0?t/q-n:1;k.each(function(u){if(u!=l){k.eq(u).css(f,p[u]-((p[u]-e.min)*s)+"px")}if(u>0&&u<k.size()-1){k.eq(u).css(d,r[u]-((r[u]-g[l][u])*s)+"px")}})},duration:e.duration,easing:e.easing})})});if(!e.sticky){container.bind("mouseleave",function(){var m=[];var n=[];k.removeClass("active").stop();for(i=0;i<k.size();i++){m[i]=k.eq(i).css(f).replace(/px/,"");n[i]=k.eq(i).css(d).replace(/px/,"")}var l={};l[f]=h;var o=h-m[0];k.eq(0).animate(l,{step:function(q){var p=o!=0?(q-m[0])/o:1;for(i=1;i<k.size();i++){k.eq(i).css(f,m[i]-((m[i]-h)*p)+"px");if(i<k.size()-1){k.eq(i).css(d,n[i]-((n[i]-((i*h)+(i*e.spacing)))*p)+"px")}}},duration:e.duration,easing:e.easing})})}})}})(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,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l))+e},easeOutElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m)==1){return e+n}if(!l){l=m*0.3}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}return g*Math.pow(2,-10*h)*Math.sin((h*m-k)*(2*Math.PI)/l)+n+e},easeInOutElastic:function(f,h,e,n,m){var k=1.70158;var l=0;var g=n;if(h==0){return e}if((h/=m/2)==2){return e+n}if(!l){l=m*(0.3*1.5)}if(g<Math.abs(n)){g=n;var k=l/4}else{var k=l/(2*Math.PI)*Math.asin(n/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*m-k)*(2*Math.PI)/l)*0.5+n+e},easeInBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}return k*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}return k*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,k,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return k/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return k/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(a){a.fn.lightBox=function(r){r=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"images/css/lightbox-ico-loading.gif",imageBtnPrev:"images/css/lightbox-btn-prev.gif",imageBtnNext:"images/css/lightbox-btn-next.gif",imageBtnClose:"images/css/lightbox-btn-close.gif",imageBlank:"images/css/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},r);var k=this;function t(){q(this,k);return false}function q(x,w){a("embed, object, select").css({visibility:"hidden"});c();r.imageArray.length=0;r.activeImage=0;if(w.length==1){r.imageArray.push(new Array(x.getAttribute("href"),x.getAttribute("title")))}else{for(var v=0;v<w.length;v++){r.imageArray.push(new Array(w[v].getAttribute("href"),w[v].getAttribute("title")))}}while(r.imageArray[r.activeImage][0]!=x.getAttribute("href")){r.activeImage++}n()}function c(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+r.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose" class="closePopup"></a></div></div></div></div>');var v=f();a("#jquery-overlay").css({backgroundColor:r.overlayBgColor,opacity:r.overlayOpacity,width:v[0],height:v[1]}).fadeIn();var w=h();a("#jquery-lightbox").css({top:w[1]+(v[3]/10),left:w[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){b()});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){b();return false});a(window).resize(function(){var x=f();a("#jquery-overlay").css({width:x[0],height:x[1]});var y=h();a("#jquery-lightbox").css({top:y[1]+(x[3]/10),left:y[0]})})}function n(){a("#lightbox-loading").show();if(r.fixedNavigation){a("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var v=new Image();v.onload=function(){a("#lightbox-image").attr("src",r.imageArray[r.activeImage][0]);l(v.width,v.height);v.onload=function(){}};v.src=r.imageArray[r.activeImage][0]}function l(y,B){var v=a("#lightbox-container-image-box").width();var A=a("#lightbox-container-image-box").height();var z=(y+(r.containerBorderSize*2));var x=(B+(r.containerBorderSize*2));var w=v-z;var C=A-x;a("#lightbox-container-image-box").animate({width:z,height:x},r.containerResizeSpeed,function(){g()});if((w==0)&&(C==0)){if(a.browser.msie){p(250)}else{p(100)}}a("#lightbox-container-image-data-box").css({width:y});a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:B+(r.containerBorderSize*2)})}function g(){a("#lightbox-loading").hide();a("#lightbox-image").fadeIn(function(){m();u()});s()}function m(){a("#lightbox-container-image-data-box").slideDown("fast");a("#lightbox-image-details-caption").hide();if(r.imageArray[r.activeImage][1]){a("#lightbox-image-details-caption").html(r.imageArray[r.activeImage][1]).show()}if(r.imageArray.length>1){a("#lightbox-image-details-currentNumber").html(r.txtImage+" "+(r.activeImage+1)+" "+r.txtOf+" "+r.imageArray.length).show()}}function u(){a("#lightbox-nav").show();a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+r.imageBlank+") no-repeat"});if(r.activeImage!=0){if(r.fixedNavigation){a("#lightbox-nav-btnPrev").css({background:"url("+r.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){r.activeImage=r.activeImage-1;n();return false})}else{a("#lightbox-nav-btnPrev").unbind().hover(function(){a(this).css({background:"url("+r.imageBtnPrev+") left 15% no-repeat"})},function(){a(this).css({background:"transparent url("+r.imageBlank+") no-repeat"})}).show().bind("click",function(){r.activeImage=r.activeImage-1;n();return false})}}if(r.activeImage!=(r.imageArray.length-1)){if(r.fixedNavigation){a("#lightbox-nav-btnNext").css({background:"url("+r.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){r.activeImage=r.activeImage+1;n();return false})}else{a("#lightbox-nav-btnNext").unbind().hover(function(){a(this).css({background:"url("+r.imageBtnNext+") right 15% no-repeat"})},function(){a(this).css({background:"transparent url("+r.imageBlank+") no-repeat"})}).show().bind("click",function(){r.activeImage=r.activeImage+1;n();return false})}}o()}function o(){a(document).keydown(function(v){d(v)})}function e(){a(document).unbind()}function d(v){if(v==null){keycode=event.keyCode;escapeKey=27}else{keycode=v.keyCode;escapeKey=v.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==r.keyToClose)||(key=="x")||(keycode==escapeKey)){b()}if((key==r.keyToPrev)||(keycode==37)){if(r.activeImage!=0){r.activeImage=r.activeImage-1;n();e()}}if((key==r.keyToNext)||(keycode==39)){if(r.activeImage!=(r.imageArray.length-1)){r.activeImage=r.activeImage+1;n();e()}}}function s(){if((r.imageArray.length-1)>r.activeImage){objNext=new Image();objNext.src=r.imageArray[r.activeImage+1][0]}if(r.activeImage>0){objPrev=new Image();objPrev.src=r.imageArray[r.activeImage-1][0]}}function b(){a("#jquery-lightbox").remove();a("#jquery-overlay").fadeOut(function(){a("#jquery-overlay").remove()});a("embed, object, select").css({visibility:"visible"})}function f(){var x,v;if(window.innerHeight&&window.scrollMaxY){x=window.innerWidth+window.scrollMaxX;v=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){x=document.body.scrollWidth;v=document.body.scrollHeight}else{x=document.body.offsetWidth;v=document.body.offsetHeight}}var w,y;if(self.innerHeight){if(document.documentElement.clientWidth){w=document.documentElement.clientWidth}else{w=self.innerWidth}y=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){w=document.documentElement.clientWidth;y=document.documentElement.clientHeight}else{if(document.body){w=document.body.clientWidth;y=document.body.clientHeight}}}if(v<y){pageHeight=y}else{pageHeight=v}if(x<w){pageWidth=x}else{pageWidth=w}arrayPageSize=new Array(pageWidth,pageHeight,w,y);return arrayPageSize}function h(){var w,v;if(self.pageYOffset){v=self.pageYOffset;w=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){v=document.documentElement.scrollTop;w=document.documentElement.scrollLeft}else{if(document.body){v=document.body.scrollTop;w=document.body.scrollLeft}}}arrayPageScroll=new Array(w,v);return arrayPageScroll}function p(x){var w=new Date();v=null;do{var v=new Date()}while(v-w<x)}return this.unbind("click").click(t)}})(jQuery);
