(function(j){function l(a){var b=a.replace(".html","");return b.replace("#","")}function k(a){if(a.xorigin=="left"){a.xorigin=0}else{if(a.xorigin=="middle"||a.xorigin=="centre"||a.xorigin=="center"){a.xorigin=0.5}else{if(a.xorigin=="right"){a.xorigin=1}}}if(a.yorigin=="top"){a.yorigin=0}else{if(a.yorigin=="middle"||a.yorigin=="centre"||a.yorigin=="center"){a.yorigin=0.5}else{if(a.yorigin=="bottom"){a.yorigin=1}}}}function n(c,d,b){var a={x:0,y:0,sum:0};if(!c.ontarget){a.x=b.x-d.x;a.y=b.y-d.y;a.sum=Math.sqrt(a.x*a.x+a.y*a.y);b.x=d.x+a.x*c.takeoverFactor;b.y=d.y+a.y*c.takeoverFactor;if(a.sum<c.takeoverThresh&&a.sum>c.takeoverThresh*-1){c.ontarget=true}}else{b.x=d.x;b.y=d.y}}function o(c,b){var a=b.element.offset();j.extend(c,{width:c.element.width(),height:c.element.height()});j.extend(b,{width:b.element.width(),height:b.element.height(),top:a.top,left:a.left})}function p(e,c,b){var a;var d;if(typeof(e)==="string"){if(e.search(/^\d+\s?px$/)!=-1){e=e.replace("px","");e=parseInt(e,10);a=c*(b-e);d=c*100+"%";return{travel:e,travelpx:true,offset:a,cssPos:d}}else{if(e.search(/^\d+\s?%$/)!=-1){e.replace("%","");e=parseInt(e,10)/100}else{e=1}}}a=c*(1-e);return{travel:e,travelpx:false,offset:a}}function q(c,d,e){var f;var b;var a={};c[d]=j.extend({},{width:c[d].element.width(),height:c[d].element.height()},c[d]);f=p(c[d].xtravel,c[d].xorigin,c[d].width);b=p(c[d].ytravel,c[d].yorigin,c[d].height);j.extend(c[d],{diffxrat:e.width/(c[d].width-e.width),diffyrat:e.height/(c[d].height-e.height),xtravel:f.travel,ytravel:b.travel,xtravelpx:f.travelpx,ytravelpx:b.travelpx,xoffset:f.offset,yoffset:b.offset});if(f.travelpx){a.left=f.cssPos}if(b.travelpx){a.top=b.cssPos}if(f.travelpx||b.travelpx){c[d].element.css(a)}}function m(a,b,d){var c;j.extend(a[b],{content:[]});for(var e=0;e<a[b].element.children().length;e++){if(!a[b].content[e]){a[b].content[e]={}}if(!a[b].content[e].element){a[b].content[e]["element"]=a[b].element.children().eq(e)}if(!a[b].content[e].anchor&&a[b].content[e].element.children("a").attr("name")){a[b].content[e]["anchor"]=a[b].content[e].element.children("a").attr("name")}if(a[b].content[e].anchor){c=a[b].content[e].element.offset();j.extend(a[b].content[e],{width:a[b].content[e].element.width(),height:a[b].content[e].element.height(),x:c.left-d.left,y:c.top-d.top});j.extend(a[b].content[e],{posxrat:(a[b].content[e].x+a[b].content[e].width/2)/a[b].width,posyrat:(a[b].content[e].y+a[b].content[e].height/2)/a[b].height})}}}function r(b,f,g){var d;var e;var a;for(var c=0;c<b.length;c++){d=b[c].xtravel*f+b[c].xoffset;e=b[c].ytravel*g+b[c].yoffset;a={};if(b[c].xparallax){if(b[c].xtravelpx){a.marginLeft=d*-1+"px"}else{a.left=d*100+"%";a.marginLeft=d*b[c].width*-1+"px"}}if(b[c].yparallax){if(b[c].ytravelpx){a.marginTop=e*-1+"px"}else{a.top=e*100+"%";a.marginTop=e*b[c].height*-1+"px"}}b[c].element.css(a)}}j.fn.jparallax=function(b){var a=j().extend({},j.fn.jparallax.settings,b);var f={xparallax:a.xparallax,yparallax:a.yparallax,xorigin:a.xorigin,yorigin:a.yorigin,xtravel:a.xtravel,ytravel:a.ytravel};var d={element:a.mouseport,takeoverFactor:a.takeoverFactor,takeoverThresh:a.takeoverThresh};if(a.mouseport){d.element=a.mouseport}var e=[];for(var c=1;c<arguments.length;c++){e.push(j.extend({},f,arguments[c]))}return this.each(function(){var z={x:0.5,y:0.5};var h={x:0.5,y:0.5};var g={running:false,frame:a.frameDuration,fire:function(t,s){n(i,z,h);r(x,h.x,h.y);this.running=setTimeout(function(){if(z.x!=t||z.y!=s||!i.ontarget){g.fire(z.x,z.y)}else{if(g.running){g.running=false}}},g.frame)}};var B={element:j(this)};var i=j.extend({},{element:B.element},d,{xinside:false,yinside:false,active:false,ontarget:false});var x=[];function A(D,v,u){for(var t=0;t<D.length;t++){var s=false;for(var w=0;w<D[t].content.length;w++){if(D[t].content[w].anchor==v){u(t,w);return[t,w]}}}return false}o(B,i);for(var y=0;y<B.element.children().length;y++){x[y]=j.extend({},f,e[y],{element:B.element.children("*:eq("+y+")")});q(x,y,i);if(a.triggerResponse){m(x,y,B.element.offset())}}B.element.children().css("position","absolute");r(x,0.5,0.5);if(a.mouseResponse){j().mousemove(function(s){i.xinside=(s.pageX>=i.left&&s.pageX<i.width+i.left)?true:false;i.yinside=(s.pageY>=i.top&&s.pageY<i.height+i.top)?true:false;if(i.xinside&&i.yinside&&!i.active){i.ontarget=false;i.active=true}if(i.active){if(i.xinside){z.x=(s.pageX-i.left)/i.width}else{z.x=(s.pageX<i.left)?0:1}if(i.yinside){z.y=(s.pageY-i.top)/i.height}else{z.y=(s.pageY<i.top)?0:1}}if(i.xinside&&i.yinside){if(!g.running){g.fire(z.x,z.y)}}else{if(i.active){i.active=false}}})}if(a.triggerResponse){B.element.bind("jparallax",function(t,s){s=l(s);A(x,s,function(v,u){z.x=x[v].content[u].posxrat*(x[v].diffxrat+1)-(0.5*x[v].diffxrat);z.y=x[v].content[u].posyrat*(x[v].diffyrat+1)-(0.5*x[v].diffyrat);if(!a.triggerExposesEdges){if(z.x<0){z.x=0}if(z.x>1){z.x=1}if(z.y<0){z.y=0}if(z.y>1){z.y=1}}i.ontarget=false;if(!g.running){g.fire(z.x,z.y)}})})}j(window).resize(function(){o(B,i);for(var s=0;s<x.length;s++){q(x,s,i)}})})};j.fn.jparallax.settings={mouseResponse:true,mouseActiveOutside:false,triggerResponse:true,triggerExposesEdges:false,xparallax:true,yparallax:true,xorigin:0.5,yorigin:0.5,xtravel:1,ytravel:1,takeoverFactor:0.65,takeoverThresh:0.002,frameDuration:25};k(j.fn.jparallax.settings);j(function(){})})(jQuery);(function(c){c.dimensions={version:"1.2"};c.each(["Height","Width"],function(a,b){c.fn["inner"+b]=function(){if(!this[0]){return}var g=b=="Height"?"Top":"Left",h=b=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+b]:d(this,b.toLowerCase())+d(this,"padding"+g)+d(this,"padding"+h)};c.fn["outer"+b]=function(k){if(!this[0]){return}var i=b=="Height"?"Top":"Left",l=b=="Height"?"Bottom":"Right";k=c.extend({margin:false},k||{});var j=this.is(":visible")?this[0]["offset"+b]:d(this,b.toLowerCase())+d(this,"border"+i+"Width")+d(this,"border"+l+"Width")+d(this,"padding"+i)+d(this,"padding"+l);return j+(k.margin?(d(this,"margin"+i)+d(this,"margin"+l)):0)}});c.each(["Left","Top"],function(a,b){c.fn["scroll"+b]=function(f){if(!this[0]){return}return f!=undefined?this.each(function(){this==window||this==document?window.scrollTo(b=="Left"?f:c(window)["scrollLeft"](),b=="Top"?f:c(window)["scrollTop"]()):this["scroll"+b]=f}):this[0]==window||this[0]==document?self[(b=="Left"?"pageXOffset":"pageYOffset")]||c.boxModel&&document.documentElement["scroll"+b]||document.body["scroll"+b]:this[0]["scroll"+b]}});c.fn.extend({position:function(){var b=0,j=0,k=this[0],a,n,l,m;if(k){l=this.offsetParent();a=this.offset();n=l.offset();a.top-=d(k,"marginTop");a.left-=d(k,"marginLeft");n.top+=d(l,"borderTopWidth");n.left+=d(l,"borderLeftWidth");m={top:a.top-n.top,left:a.left-n.left}}return m},offsetParent:function(){var a=this[0].offsetParent;while(a&&(!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static")){a=a.offsetParent}return c(a)}});function d(b,a){return parseInt(c.curCSS(b.jquery?b[0]:b,a,true))||0}})(jQuery);(function(n){var o=n.browser.mozilla&&/gecko/i.test(navigator.userAgent);var p=n.browser.safari&&n.browser.version>=3;var l=n.browser.msie&&(function(){var a=document.createElement("div");try{a.style.setExpression("width","0+0")}catch(b){return false}return true})();function m(b,a){return parseInt(n.css(b,a))||0}function i(a){var a=parseInt(a).toString(16);return(a.length<2)?"0"+a:a}function k(a){for(;a&&a.nodeName.toLowerCase()!="html";a=a.parentNode){var c=n.css(a,"backgroundColor");if(c=="rgba(0, 0, 0, 0)"){continue}if(c.indexOf("rgb")>=0){var b=c.match(/\d+/g);return"#"+i(b[0])+i(b[1])+i(b[2])}if(c&&c!="transparent"){return c}}return"#ffffff"}function j(a,c,b){switch(a){case"round":return Math.round(b*(1-Math.cos(Math.asin(c/b))));case"cool":return Math.round(b*(1+Math.cos(Math.asin(c/b))));case"sharp":return Math.round(b*(1-Math.cos(Math.acos(c/b))));case"bite":return Math.round(b*(Math.cos(Math.asin((b-c-1)/b))));case"slide":return Math.round(b*(Math.atan2(c,b/c)));case"jut":return Math.round(b*(Math.atan2(b,(b-c-1))));case"curl":return Math.round(b*(Math.atan(c)));case"tear":return Math.round(b*(Math.cos(c)));case"wicked":return Math.round(b*(Math.tan(c)));case"long":return Math.round(b*(Math.sqrt(c)));case"sculpt":return Math.round(b*(Math.log((b-c-1),b)));case"dog":return(c&1)?(c+1):b;case"dog2":return(c&2)?(c+1):b;case"dog3":return(c&3)?(c+1):b;case"fray":return(c%2)*b;case"notch":return b;case"bevel":return c+1}}n.fn.corner=function(c){if(this.length==0){if(!n.isReady&&this.selector){var b=this.selector,a=this.context;n(function(){n(b,a).corner(c)})}return this}return this.each(function(T){var V=n(this);var g=(c||V.attr(n.fn.corner.defaults.metaAttr)||"").toLowerCase();var M=/keep/.test(g);var J=((g.match(/cc:(#[0-9a-f]+)/)||[])[1]);var Y=((g.match(/sc:(#[0-9a-f]+)/)||[])[1]);var U=parseInt((g.match(/(\d+)px/)||[])[1])||10;var e=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;var W=((g.match(e)||["round"])[0]);var X={T:0,B:1};var N={TL:/top|tl|left/.test(g),TR:/top|tr|right/.test(g),BL:/bottom|bl|left/.test(g),BR:/bottom|br|right/.test(g)};if(!N.TL&&!N.TR&&!N.BL&&!N.BR){N={TL:1,TR:1,BL:1,BR:1}}if(n.fn.corner.defaults.useNative&&W=="round"&&(o||p)&&!J&&!Y){if(N.TL){V.css(o?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",U+"px")}if(N.TR){V.css(o?"-moz-border-radius-topright":"-webkit-border-top-right-radius",U+"px")}if(N.BL){V.css(o?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",U+"px")}if(N.BR){V.css(o?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",U+"px")}return}var S=document.createElement("div");S.style.overflow="hidden";S.style.height="1px";S.style.backgroundColor=Y||"transparent";S.style.borderStyle="solid";var h={T:parseInt(n.css(this,"paddingTop"))||0,R:parseInt(n.css(this,"paddingRight"))||0,B:parseInt(n.css(this,"paddingBottom"))||0,L:parseInt(n.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!M){this.style.border="none"}S.style.borderColor=J||k(this.parentNode);var d=n.curCSS(this,"height");for(var R in X){var P=X[R];if((P&&(N.BL||N.BR))||(!P&&(N.TL||N.TR))){S.style.borderStyle="none "+(N[R+"R"]?"solid":"none")+" none "+(N[R+"L"]?"solid":"none");var f=document.createElement("div");n(f).addClass("jquery-corner");var L=f.style;P?this.appendChild(f):this.insertBefore(f,this.firstChild);if(P&&d!="auto"){if(n.css(this,"position")=="static"){this.style.position="relative"}L.position="absolute";L.bottom=L.left=L.padding=L.margin="0";if(l){L.setExpression("width","this.parentNode.offsetWidth")}else{L.width="100%"}}else{if(!P&&n.browser.msie){if(n.css(this,"position")=="static"){this.style.position="relative"}L.position="absolute";L.top=L.left=L.right=L.padding=L.margin="0";if(l){var K=m(this,"borderLeftWidth")+m(this,"borderRightWidth");L.setExpression("width","this.parentNode.offsetWidth - "+K+'+ "px"')}else{L.width="100%"}}else{L.position="relative";L.margin=!P?"-"+h.T+"px -"+h.R+"px "+(h.T-U)+"px -"+h.L+"px":(h.B-U)+"px -"+h.R+"px -"+h.B+"px -"+h.L+"px"}}for(var O=0;O<U;O++){var Q=Math.max(0,j(W,O,U));var w=S.cloneNode(false);w.style.borderWidth="0 "+(N[R+"R"]?Q:0)+"px 0 "+(N[R+"L"]?Q:0)+"px";P?f.appendChild(w):f.insertBefore(w,f.firstChild)}}}})};n.fn.uncorner=function(){if(o||p){this.css(o?"-moz-border-radius":"-webkit-border-radius",0)}n("div.jquery-corner",this).remove();return this};n.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);jQuery.fn.gradient=function(b){this.each(function(){var w=$(this);try{var A=w.outerHeight();var y=w.outerWidth();var e=w.offset();var C=e.top;var r=e.left}catch(c){var y=parseInt(w.css("width"));var A=parseInt(w.css("height"));var C=parseInt(w.css("top"));var r=parseInt(w.css("left"))}if(y==0||A==0){return}b=jQuery.extend({rightcolor:"#000000",leftcolor:"#ffffff",topcolor:"#000000",bottomcolor:"#ffffff",horizontal:true,opacity:false},b||{});if(b.horizontal){var z=[parseInt(b.rightcolor.substr(1,2),16),parseInt(b.rightcolor.substr(3,2),16),parseInt(b.rightcolor.substr(5,2),16)];var l=[parseInt(b.leftcolor.substr(1,2),16),parseInt(b.leftcolor.substr(3,2),16),parseInt(b.leftcolor.substr(5,2),16)];var a=[(z[0]-l[0])/y,(z[1]-l[1])/y,(z[2]-l[2])/y];var B=y}else{var z=[parseInt(b.bottomcolor.substr(1,2),16),parseInt(b.bottomcolor.substr(3,2),16),parseInt(b.bottomcolor.substr(5,2),16)];var l=[parseInt(b.topcolor.substr(1,2),16),parseInt(b.topcolor.substr(3,2),16),parseInt(b.topcolor.substr(5,2),16)];var a=[(z[0]-l[0])/y,(z[1]-l[1])/y,(z[2]-l[2])/y];var B=A}if(b.opacity){var d="opacity:"+b.opacity/100+";filter:alpha(opacity="+b.opacity+");-moz-opacity: "+Math.round(b.opacity/10)/10+";"}for(var i=0;i<B;i++){var D=[Math.floor(l[0]+i*a[0]),Math.floor(l[1]+i*a[1]),Math.floor(l[2]+i*a[2])];var x='<div style="font-size: 1px; display: block; position: absolute;top: '+(b.horizontal?C:C+i)+"px;left: "+(b.horizontal?r+i:r)+"px;width: "+(b.horizontal?"1":y)+"px;height: "+(b.horizontal?A:"1")+"px;"+(b.opacity?d:"")+"background-color: rgb("+D[0]+","+D[1]+","+D[2]+');" ></div>';$("body").prepend(x)}});return this};(function(b){b.fn.shadowEnable=function(){return b(this).find("+ .fx-shadow").show().end()};b.fn.shadowDisable=function(){return b(this).find("+ .fx-shadow").hide().end()};b.fn.shadowDestroy=function(){return b(this).find("+ .fx-shadow").remove().end()};b.fn.shadow=function(a){a=b.extend({offset:1,opacity:0.2,color:"#000",monitor:false},a||{});a.offset-=1;return this.each(function(){var h=b(this).shadowDestroy(),g=b("<div class='fx-shadow' style='position: relative;'></div>").insertAfter(h);baseWidth=h.outerWidth(),baseHeight=h.outerHeight(),position=h.position(),zIndex=parseInt(h.css("zIndex"))||0;b('<div class="fx-shadow-color fx-shadow-layer-1"></div>').css({position:"absolute",opacity:a.opacity-0.05,left:a.offset,top:a.offset,width:baseWidth+1,height:baseHeight+1}).appendTo(g);b('<div class="fx-shadow-color fx-shadow-layer-2"></div>').css({position:"absolute",opacity:a.opacity-0.1,left:a.offset+2,top:a.offset+2,width:baseWidth,height:baseHeight-3}).appendTo(g);b('<div class="fx-shadow-color fx-shadow-layer-3"></div>').css({position:"absolute",opacity:a.opacity-0.1,left:a.offset+2,top:a.offset+2,width:baseWidth-3,height:baseHeight}).appendTo(g);b('<div class="fx-shadow-color fx-shadow-layer-4"></div>').css({position:"absolute",opacity:a.opacity,left:a.offset+1,top:a.offset+1,width:baseWidth-1,height:baseHeight-1}).appendTo(g);b("div.fx-shadow-color",g).css("background-color",a.color);h.css({zIndex:zIndex+1,position:(h.css("position")=="static"?"relative":"")});g.css({position:"absolute",zIndex:zIndex,top:position.top+"px",left:position.left+"px",width:baseWidth,height:baseHeight,marginLeft:h.css("marginLeft"),marginRight:h.css("marginRight"),marginBottom:h.css("marginBottom"),marginTop:h.css("marginTop")});if(a.monitor){function f(){var d=b(this),c=d.next();c.css({top:parseInt(d.css("top"))+"px",left:parseInt(d.css("left"))+"px"});b(">*",c).css({height:this.offsetHeight+"px",width:this.offsetWidth+"px"})}h.bind("DOMAttrModified",f);if(g[0].style.setExpression){g[0].style.setExpression("top","parseInt(this.previousSibling.currentStyle.top ) + 'px'");g[0].style.setExpression("left","parseInt(this.previousSibling.currentStyle.left) + 'px'")}}})}})(jQuery);