﻿(function(a){a.fn.jCarouselLite=function(e){e=a.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},e||{});return this.each(function(){var n=false,f=e.vertical?"top":"left",o=e.vertical?"height":"width";var h=a(this),r=a("ul",h),q=a("li",r),p=q.size(),t=e.visible;if(e.circular){r.prepend(q.slice(p-t-1+1).clone()).append(q.slice(0,t).clone());e.start+=t}var l=a("li",r),k=l.size(),g=e.start;h.css("visibility","visible");l.css({overflow:"hidden","float":e.vertical?"none":"left"});r.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});h.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var m=e.vertical?c(l):d(l);var s=m*k;var i=m*t;l.css({width:l.width(),height:l.height()});r.css(o,s+"px").css(f,-(g*m));h.css(o,i+"px");if(e.btnPrev){a(e.btnPrev).click(function(){return j(g-e.scroll)})}if(e.btnNext){a(e.btnNext).click(function(){return j(g+e.scroll)})}if(e.btnGo){a.each(e.btnGo,function(v,w){a(w).click(function(){return j(e.circular?e.visible+v:v)})})}if(e.mouseWheel&&h.mousewheel){h.mousewheel(function(w,v){return v>0?j(g-e.scroll):j(g+e.scroll)})}if(e.auto){setInterval(function(){j(g+e.scroll)},e.auto+e.speed)}function u(){return l.slice(g).slice(0,t)}function j(v){if(!n){if(e.beforeStart){e.beforeStart.call(this,u())}if(e.circular){if(v<=e.start-t-1){r.css(f,-((k-(t*2))*m)+"px");g=v==e.start-t-1?k-(t*2)-1:k-(t*2)-e.scroll}else{if(v>=k-t+1){r.css(f,-((t)*m)+"px");g=v==k-t+1?t+1:t+e.scroll}else{g=v}}}else{if(v<0||v>k-t){return}else{g=v}}n=true;r.animate(f=="left"?{left:-(g*m)}:{top:-(g*m)},e.speed,e.easing,function(){if(e.afterEnd){e.afterEnd.call(this,u())}n=false});if(!e.circular){a(e.btnPrev+","+e.btnNext).removeClass("disabled");a((g-e.scroll<0&&e.btnPrev)||(g+e.scroll>k-t&&e.btnNext)||[]).addClass("disabled")}}return false}})};function b(e,f){return parseInt(a.css(e[0],f))||0}function d(e){return e[0].offsetWidth+b(e,"marginLeft")+b(e,"marginRight")}function c(e){return e[0].offsetHeight+b(e,"marginTop")+b(e,"marginBottom")}})(jQuery);var animatedcollapse={divholders:{},divgroups:{},lastactiveingroup:{},preloadimages:[],show:function(a){if(typeof a=="object"){for(var b=0;b<a.length;b++){this.showhide(a[b],"show")}}else{this.showhide(a,"show")}},hide:function(a){if(typeof a=="object"){for(var b=0;b<a.length;b++){this.showhide(a[b],"hide")}}else{this.showhide(a,"hide")}},toggle:function(a){if(typeof a=="object"){a=a[0]}this.showhide(a,"toggle")},addDiv:function(b,a){this.divholders[b]=({id:b,$divref:null,attrs:a});this.divholders[b].getAttr=function(d){var c=new RegExp(d+"=([^,]+)","i");return(c.test(this.attrs)&&parseInt(RegExp.$1)!=0)?RegExp.$1:null};this.currentid=b;return this},showhide:function(c,b){var a=this.divholders[c].$divref;if(this.divholders[c]&&a.length==1){var d=this.divgroups[a.attr("groupname")];if(a.attr("groupname")&&d.count>1&&(b=="show"||b=="toggle"&&a.css("display")=="none")){if(d.lastactivedivid&&d.lastactivedivid!=c){this.slideengine(d.lastactivedivid,"hide")}this.slideengine(c,"show");d.lastactivedivid=c}else{this.slideengine(c,b)}}},slideengine:function(e,c){var a=this.divholders[e].$divref;var b=this.divholders[e].$togglerimage;if(this.divholders[e]&&a.length==1){var d={height:c};if(a.attr("fade")){d.opacity=c}a.animate(d,a.attr("speed")?parseInt(a.attr("speed")):500,function(){if(b){b.attr("src",(a.css("display")=="none")?b.data("srcs").closed:b.data("srcs").open)}if(animatedcollapse.ontoggle){try{animatedcollapse.ontoggle(jQuery,a.get(0),a.css("display"))}catch(f){alert('An error exists inside your "ontoggle" function:\n\n'+f+"\n\nAborting execution of function.")}}});return false}},generatemap:function(){var b={};for(var a=0;a<arguments.length;a++){if(arguments[a][1]!=null){b[arguments[a][0]]=arguments[a][1]}}return b},init:function(){var a=this;jQuery(document).ready(function(b){animatedcollapse.ontoggle=animatedcollapse.ontoggle||null;var f=animatedcollapse.urlparamselect();var e=a.getCookie("acopendivids");var d=a.getCookie("acgroupswithpersist");if(e!=null){e=(e=="nada")?[]:e.split(",")}d=(d==null||d=="nada")?[]:d.split(",");jQuery.each(a.divholders,function(){this.$divref=b("#"+this.id);if((this.getAttr("persist")||jQuery.inArray(this.getAttr("group"),d)!=-1)&&e!=null){var g=(jQuery.inArray(this.id,e)!=-1)?"block":"none"}else{var g=this.getAttr("hide")?"none":null}if(f[0]=="all"||jQuery.inArray(this.id,f)!=-1){g="block"}else{if(f[0]=="none"){g="none"}}this.$divref.css(a.generatemap(["height",this.getAttr("height")],["display",g]));this.$divref.attr(a.generatemap(["groupname",this.getAttr("group")],["fade",this.getAttr("fade")],["speed",this.getAttr("speed")]));if(this.getAttr("group")){var h=a.divgroups[this.getAttr("group")]||(a.divgroups[this.getAttr("group")]={});h.count=(h.count||0)+1;if(jQuery.inArray(this.id,f)!=-1){h.lastactivedivid=this.id;h.overridepersist=1}if(!h.lastactivedivid&&this.$divref.css("display")!="none"||g=="block"&&typeof h.overridepersist=="undefined"){h.lastactivedivid=this.id}this.$divref.css({display:"none"})}});jQuery.each(a.divgroups,function(){if(this.lastactivedivid&&f[0]!="none"){a.divholders[this.lastactivedivid].$divref.show()}});if(animatedcollapse.ontoggle){jQuery.each(a.divholders,function(){animatedcollapse.ontoggle(jQuery,this.$divref.get(0),this.$divref.css("display"))})}var c=b("a[rel]").filter('[rel^="collapse["], [rel^="expand["], [rel^="toggle["]');c.each(function(){this._divids=this.getAttribute("rel").replace(/(^\w+)|(\s+)/g,"").replace(/[\[\]']/g,"");if(this.getElementsByTagName("img").length==1&&a.divholders[this._divids]){animatedcollapse.preloadimage(this.getAttribute("data-openimage"),this.getAttribute("data-closedimage"));$togglerimage=b(this).find("img").eq(0).data("srcs",{open:this.getAttribute("data-openimage"),closed:this.getAttribute("data-closedimage")});a.divholders[this._divids].$togglerimage=b(this).find("img").eq(0);a.divholders[this._divids].$togglerimage.attr("src",(a.divholders[this._divids].$divref.css("display")=="none")?$togglerimage.data("srcs").closed:$togglerimage.data("srcs").open)}b(this).click(function(){var h=this.getAttribute("rel");var g=(this._divids=="")?[]:this._divids.split(",");if(g.length>0){animatedcollapse[/expand/i.test(h)?"show":/collapse/i.test(h)?"hide":"toggle"](g);return false}})});b(window).bind("unload",function(){a.uninit()})})},uninit:function(){var b="",a="";jQuery.each(this.divholders,function(){if(this.$divref.css("display")!="none"){b+=this.id+","}if(this.getAttr("group")&&this.getAttr("persist")){a+=this.getAttr("group")+","}});b=(b=="")?"nada":b.replace(/,$/,"");a=(a=="")?"nada":a.replace(/,$/,"");this.setCookie("acopendivids",b);this.setCookie("acgroupswithpersist",a)},getCookie:function(a){var b=new RegExp(a+"=[^;]*","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(c,d,a){if(typeof a!="undefined"){var b=new Date();b.setDate(b.getDate()+a);document.cookie=c+"="+d+"; path=/; expires="+b.toGMTString()}else{document.cookie=c+"="+d+"; path=/"}},urlparamselect:function(){window.location.search.match(/expanddiv=([\w\-_,]+)/i);return(RegExp.$1!="")?RegExp.$1.split(","):[]},preloadimage:function(){var b=this.preloadimages;for(var a=0;a<arguments.length;a++){if(arguments[a]&&arguments[a].length>0){b[b.length]=new Image();b[b.length-1].src=arguments[a]}}}};var tb_pathToImage="files/205/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(a){$(a).click(function(){var d=this.title||this.name||null;var b=this.href||this.alt;var c=this.rel||false;tb_show(d,b,c);this.blur();return false})}function tb_show(b,h,d){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(b===null){b=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var a;if(h.indexOf("?")!==-1){a=h.substr(0,h.indexOf("?"))}else{a=h}var i=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var j=a.toLowerCase().match(i);if(j==".jpg"||j==".jpeg"||j==".png"||j==".gif"||j==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(d){TB_TempArray=$("a[@rel="+d+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var k=TB_TempArray[TB_Counter].href.toLowerCase().match(i);if(!(TB_TempArray[TB_Counter].href==h)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var o=tb_getPageSize();var p=o[0]-150;var q=o[1]-150;var n=imgPreloader.width;var m=imgPreloader.height;if(n>p){m=m*(p/n);n=p;if(m>q){n=n*(q/m);m=q}}else{if(m>q){n=n*(q/m);m=q;if(n>p){m=m*(p/n);n=p}}}TB_WIDTH=n+30;TB_HEIGHT=m+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+h+"' width='"+n+"' height='"+m+"' alt='"+b+"'/></a><div id='TB_caption'>"+b+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function l(){if($(document).unbind("click",l)){$(document).unbind("click",l)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,d);return false}$("#TB_prev").click(l)}if(!(TB_NextHTML==="")){function e(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,d);return false}$("#TB_next").click(e)}document.onkeydown=function(r){if(r==null){keycode=event.keyCode}else{keycode=r.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";e()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";l()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=h}else{var g=h.replace(/^[^\?]+\??/,"");var f=tb_parseQuery(g);TB_WIDTH=(f.width*1)+30||630;TB_HEIGHT=(f.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(h.indexOf("TB_iframe")!=-1){urlNoQuery=h.split("TB_");$("#TB_iframeContent").remove();if(f.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+b+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(f.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+b+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(b)}}$("#TB_closeWindowButton").click(tb_remove);if(h.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+f.inlineId).children());$("#TB_window").unload(function(){$("#"+f.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(h.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(h+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!f.modal){document.onkeyup=function(l){if(l==null){keycode=event.keyCode}else{keycode=l.which}if(keycode==27){tb_remove()}}}}catch(c){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(f){var e={};if(!f){return e}var d=f.split(/[;&]/);for(var a=0;a<d.length;a++){var c=d[a].split("=");if(!c||c.length!=2){continue}var b=unescape(c[0]);var g=unescape(c[1]);g=g.replace(/\+/g," ");e[b]=g}return e}function tb_getPageSize(){var a=document.documentElement;var c=window.innerWidth||self.innerWidth||(a&&a.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(a&&a.clientHeight)||document.body.clientHeight;arrayPageSize=[c,b];return arrayPageSize}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}}animatedcollapse.init();
