/*
 * Modernizr JavaScript library 1.5
 * http://www.modernizr.com/
 *
 * Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
 * Dual-licensed under the BSD and MIT licenses.
 * http://www.modernizr.com/license/
 *
 * Featuring major contributions by
 * Paul Irish  - http://paulirish.com
 */
window.Modernizr=function(i,e,I){function C(a,b){for(var c in a){if(m[a[c]]!==I&&(!b||b(a[c],D))){return true}}}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return !!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++){J[a[b]]=!!(a[b] in n)}return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!=="text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c]){return b[c]}h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};d.canvas=function(){return !!e.createElement("canvas").getContext};d.canvastext=function(){return !!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return !!navigator.geolocation};d.crosswindowmessaging=function(){return !!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a){try{a=!!openDatabase("testdb","1.0","html5 test db",200000)}catch(b){a=false}}return a};d.indexedDB=function(){return !!i.indexedDB};d.hashchange=function(){return u("hashchange",i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return !!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket" in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==-1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return !!C(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(
/*@cc_on@if(@_jscript_version>=5)!@end@*/
0){a=true}else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+(a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage" in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage" in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return !!i.Worker};d.applicationCache=function(){var a=i.applicationCache;return !!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return !!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return !!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return !!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","clipPath")))};for(var z in d){if(O(d,z)){N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase())}}j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f]){o[f].styleSheet.cssText+=k}else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;){if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}}h(b.styleSheets,"all")});a.attachEvent("onafterprint",function(){for(var f=-1,k;++f<p.length;){p[f][1].parentNode.replaceChild(p[f][0],p[f][1])}for(k in o){t[G].removeChild(o[k])}o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);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,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/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.scrollFollow=function(f,d){f=a(f);var b=f.css("position");function c(){f.queue([]);var h=parseInt(a(window).height());var k=parseInt(a(document).scrollTop());var l=parseInt(f.cont.offset().top);var j=parseInt(f.cont.attr("offsetHeight"));var m=parseInt(f.attr("offsetHeight")+(parseInt(f.css("marginTop"))||0)+(parseInt(f.css("marginBottom"))||0));var g;if(e){if(d.relativeTo=="top"){if(f.initialOffsetTop>=(k+d.offset)){g=f.initialTop}else{g=Math.min((Math.max((-l),(k-f.initialOffsetTop+f.initialTop))+d.offset),(j-m-f.paddingAdjustment))}}else{if(d.relativeTo=="bottom"){if((f.initialOffsetTop+m)>=(k+d.offset+h)){g=f.initialTop}else{g=Math.min((k+h-m-d.offset),(j-m))}}}if((new Date().getTime()-f.lastScroll)>=(d.delay-20)){f.animate({top:g},d.speed,d.easing)}}}var e=true;if(a.cookie!=undefined){if(a.cookie("scrollFollowSetting"+f.attr("id"))=="false"){var e=false;a("#"+d.killSwitch).text(d.offText).toggle(function(){e=true;a(this).text(d.onText);a.cookie("scrollFollowSetting"+f.attr("id"),true,{expires:365,path:"/"});c()},function(){e=false;a(this).text(d.offText);f.animate({top:f.initialTop},d.speed,d.easing);a.cookie("scrollFollowSetting"+f.attr("id"),false,{expires:365,path:"/"})})}else{a("#"+d.killSwitch).text(d.onText).toggle(function(){e=false;a(this).text(d.offText);f.animate({top:f.initialTop},0);a.cookie("scrollFollowSetting"+f.attr("id"),false,{expires:365,path:"/"})},function(){e=true;a(this).text(d.onText);a.cookie("scrollFollowSetting"+f.attr("id"),true,{expires:365,path:"/"});c()})}}if(d.container==""){f.cont=f.parent()}else{f.cont=a("#"+d.container)}f.initialOffsetTop=parseInt(f.offset().top);f.initialTop=parseInt(f.css("top"))||0;if(f.css("position")=="relative"){f.paddingAdjustment=parseInt(f.cont.css("paddingTop"))+parseInt(f.cont.css("paddingBottom"))}else{f.paddingAdjustment=0}a(window).scroll(function(){a.fn.scrollFollow.interval=setTimeout(function(){c()},d.delay);f.lastScroll=new Date().getTime()});a(window).resize(function(){a.fn.scrollFollow.interval=setTimeout(function(){c()},d.delay);f.lastScroll=new Date().getTime()});f.lastScroll=0;c()};a.fn.scrollFollow=function(b){b=b||{};b.relativeTo=b.relativeTo||"top";b.speed=b.speed||500;b.offset=b.offset||0;b.easing=b.easing||"swing";b.container=b.container||this.parent().attr("id");b.killSwitch=b.killSwitch||"killSwitch";b.onText=b.onText||"Turn Slide Off";b.offText=b.offText||"Turn Slide On";b.delay=b.delay||0;this.each(function(){new a.scrollFollow(this,b)});return this}})(jQuery);(function(c){var a=c.scrollTo=function(d,f,g){c(window).scrollTo(d,f,g)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var o=this,m=c(o),n=f,k,l={},h=m.is("html,body");switch(typeof n){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=b(n);break}n=c(n,this);case"object":if(n.is||n.style){k=(n=c(n)).offset()}}c.each(d.axis.split(""),function(q,r){var t=r=="x"?"Left":"Top",s=t.toLowerCase(),v="scroll"+t,p=o[v],g=a.max(o,r);if(k){l[v]=k[s]+(h?0:p-m.offset()[s]);if(d.margin){l[v]-=parseInt(n.css("margin"+t))||0;l[v]-=parseInt(n.css("border"+t+"Width"))||0}l[v]+=d.offset[s]||0;if(d.over[s]){l[v]+=n[r=="x"?"width":"height"]()*d.over[s]}}else{var u=n[s];l[v]=u.slice&&u.slice(-1)=="%"?parseFloat(u)/100*g:u}if(/^\d+$/.test(l[v])){l[v]=l[v]<=0?0:Math.min(l[v],g)}if(!q&&d.queue){if(p!=l[v]){j(d.onAfterFirst)}delete l[v]}});j(d.onAfter);function j(g){m.animate(l,e,d.easing,g&&function(){g.call(this,f,d)})}}).end()};a.max=function(g,j){var n=j=="x"?"Width":"Height",k="scroll"+n;if(!c(g).is("html,body")){return g[k]-c(g)[n.toLowerCase()]()}var o="client"+n,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[k],d[k])-Math.min(f[o],d[o])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(d){var a=location.href.replace(/#.*/,"");var c=d.localScroll=function(e){d("body").localScroll(e)};c.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true};c.hash=function(f){if(location.hash){f=d.extend({},c.defaults,f);f.hash=false;if(f.reset){var g=f.duration;delete f.duration;d(f.target).scrollTo(0,f);f.duration=g}b(0,location,f)}};d.fn.localScroll=function(e){e=d.extend({},c.defaults,e);return e.lazy?this.bind(e.event,function(g){var h=d([g.target,g.target.parentNode]).filter(f)[0];if(h){b(g,h,e)}}):this.find("a,area").filter(f).bind(e.event,function(g){b(g,this,e)}).end().end();function f(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==a&&(!e.filter||d(this).is(e.filter))}};function b(l,q,g){var r=q.hash.slice(1),p=document.getElementById(r)||document.getElementsByName(r)[0];if(!p){return}if(l){l.preventDefault()}var o=d(g.target);if(g.lock&&o.is(":animated")||g.onBefore&&g.onBefore.call(g,l,p,o)===false){return}if(g.stop){o.stop(true)}if(g.hash){var n=p.id==r?"id":"name",m=d("<a> </a>").attr(n,r).css({position:"absolute",top:d(window).scrollTop(),left:d(window).scrollLeft()});p[n]="";d("body").prepend(m);location=q.hash;m.remove();p[n]=r}o.scrollTo(p,g).trigger("notify.serialScroll",[p])}})(jQuery);(function(p,q,x){var o,n=p.event.special,w="location",v="hashchange",m="href",t=p.browser,s=document.documentMode,r=t.msie&&(s===x||s<8),u="on"+v in q&&!r;function y(a){a=a||q[w][m];return a.replace(/^[^#]*#?(.*)$/,"$1")}p[v+"Delay"]=100;n[v]=p.extend(n[v],{setup:function(){if(u){return false}p(o.start)},teardown:function(){if(u){return false}p(o.stop)}});o=(function(){var a={},b,f,e,c;function d(){e=c=function(g){return g};if(r){f=p('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;c=function(){return y(f.document[w][m])};e=function(g,j){if(g!==j){var h=f.document;h.open().close();h[w].hash="#"+g}};e(y())}}a.start=function(){if(b){return}var g=y();e||d();(function h(){var j=y(),k=c(g);if(j!==g){e(g=j,k);p(q).trigger(v)}else{if(k!==g){q[w][m]=q[w][m].replace(/#.*/,"")+"#"+k}}b=setTimeout(h,p[v+"Delay"])})()};a.stop=function(){if(!f){b&&clearTimeout(b);b=0}};return a})()})(jQuery,this);(function(a){a.belowthefold=function(c,d){var b=a(window).height()+a(window).scrollTop();return b<=a(c).offset().top-d.threshold};a.abovethetop=function(b,c){var d=a(window).scrollTop();return d>=a(b).offset().top+a(b).height()-c.threshold};a.rightofscreen=function(c,d){var b=a(window).width()+a(window).scrollLeft();return b<=a(c).offset().left-d.threshold};a.leftofscreen=function(b,c){var d=a(window).scrollLeft();return d>=a(b).offset().left+a(b).width()-c.threshold};a.inviewport=function(b,c){return !a.rightofscreen(b,c)&&!a.leftofscreen(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)};a.extend(a.expr[":"],{"below-the-fold":function(c,d,b){return a.belowthefold(c,{threshold:0})},"above-the-top":function(c,d,b){return a.abovethetop(c,{threshold:0})},"left-of-screen":function(c,d,b){return a.leftofscreen(c,{threshold:0})},"right-of-screen":function(c,d,b){return a.rightofscreen(c,{threshold:0})},"in-viewport":function(c,d,b){return a.inviewport(c,{threshold:0})}})})(jQuery);function prettyDate(d){var b=new Date((d||"").replace(/-/g,"/").replace(/[TZ]/g," ")),c=(((new Date()).getTime()-b.getTime())/1000),a=Math.floor(c/86400);if(isNaN(a)||a<0||a>=31){return}return a==0&&(c<60&&"just now"||c<120&&"1 minute ago"||c<3600&&Math.floor(c/60)+" minutes ago"||c<7200&&"1 hour ago"||c<86400&&Math.floor(c/3600)+" hours ago")||a==1&&"Yesterday"||a<7&&a+" days ago"||a<31&&Math.ceil(a/7)+" weeks ago"}if(typeof jQuery!="undefined"){jQuery.fn.prettyDate=function(){return this.each(function(){var a=prettyDate(this.title);if(a){jQuery(this).text(a)}})}}(function(a){a.fn.bingSlide=function(b){return this.each(function(){var d={auto:0,time:750,easing:"easeOutQuint"};b=a.extend(d,b);var g=a(this);var m=false;var f=a("li",g).length;g.css("width",g.width()*f+"px");function h(n,o){return o<0?Math.round(n*o)/o:Math.round(n/o)*o}function j(r){var n=g.width();var o=n/f;var q=parseInt(g.css("margin-left").replace("px",""));var p=h(r>0?q-o:q+o,o);if(p<n*-1+o){p=0}else{if(p>0){p=n*-1+o}}g.stop().animate({marginLeft:p+"px"},b.time,b.easing);if(b.callback){b.callback(r)}}function e(){j(1)}function c(){j(-1)}function l(){if(!m){m=setInterval(e,b.auto)}}function k(){clearInterval(m);m=false}if(b.next){a(b.next).click(function(){e();return false})}if(b.prev){a(b.prev).click(function(){c();return false})}if(b.auto){l();g.mouseenter(function(){k();a(document).bind("mousemove",{that:a(this).parent()},function(n){var p=n.data.that.offset();p.right=p.left+n.data.that.width();p.bottom=p.top+n.data.that.height();if(n.pageX<p.left||n.pageX>p.right||n.pageY<p.top||n.pageY>p.bottom){a(this).unbind("mousemove");l()}})})}})}})(jQuery);(function(a){a.fn.lightbox_me=function(b){return this.each(function(){var e=a.extend({},a.fn.lightbox_me.defaults,b),l=a('<div class="'+e.classPrefix+'_overlay"/>'),k=a(this),m=a('<iframe id="foo" style="z-index: '+(e.zIndex+1)+'; display: none; border: none; margin: 0; padding: 0; position: absolute; width: 100%; height: 100%; top: 0; left: 0;"/>'),g=(a.browser.msie&&a.browser.version<7);if(g){var d=/^https/i.test(window.location.href||"")?"javascript:false":"about:blank";m.attr("src",d);a("body").append(m)}a("body").append(k).append(l);c();k.css({left:"50%",marginLeft:(k.outerWidth()/2)*-1,zIndex:(e.zIndex+3)});h();l.css({position:"absolute",width:"100%",top:0,left:0,right:0,bottom:0,zIndex:(e.zIndex+2),display:"none"}).css(e.overlayCSS);l.fadeIn(e.overlaySpeed,function(){k[e.appearEffect](e.lightboxSpeed,function(){h();e.onLoad()})});a(window).resize(h).resize(c).scroll(c).keypress(f);k.find(e.closeSelector).add(l).click(function(){j();return false});k.bind("close",j);k.bind("resize",c);function j(){if(e.destroyOnClose){k.add(l).remove()}else{k.add(l).hide()}m.remove();a(window).unbind("resize",h);a(window).unbind("resize",c);e.onClose()}function f(n){if(n.keyCode==27||(n.DOM_VK_ESCAPE==27&&n.which==0)){j()}}function h(){if(a(window).height()<a(document).height()){l.css({height:a(document).height()+"px"})}else{l.css({height:"100%"});if(g){a("html,body").css("height","100%")}}}function c(){var o=k[0].style;if((k.height()+80>=a(window).height())&&(k.css("position")!="absolute"||g)){var n=a(document).scrollTop()+40;k.css({position:"absolute",top:n+"px",marginTop:0});if(g){o.removeExpression("top")}}else{if(k.height()+80<a(window).height()){if(g){o.position="absolute";if(e.centered){o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');o.marginTop=0}else{var p=(e.modalCSS&&e.modalCSS.top)?parseInt(e.modalCSS.top):0;o.setExpression("top","((blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+p+') + "px"')}}else{if(e.centered){k.css({position:"fixed",top:"50%",marginTop:(k.outerHeight()/2)*-1})}else{k.css({position:"fixed"}).css(e.modalCSS)}}}}}})};a.fn.lightbox_me.defaults={appearEffect:"fadeIn",overlaySpeed:300,lightboxSpeed:"fast",closeSelector:".close",closeClick:true,closeEsc:true,destroyOnClose:false,onLoad:function(){},onClose:function(){},classPrefix:"lb",zIndex:999,centered:false,modalCSS:{top:"40px"},overlayCSS:{background:"black",opacity:0.6}}})(jQuery);(function(a){a.fn.simplyCountable=function(b){b=a.extend({counter:"#counter",countType:"words",maxCount:140,strictMax:false,countDirection:"up",safeClass:"safe",overClass:"over",thousandSeparator:","},b);a.fn.simplyCountable.countCheck=function(d){var d=a(d);var f=null;if(b.countType==="words"){f=b.maxCount-d.val().split(/[\s]+/).length;if(d.val()===""){f+=1}}else{f=b.maxCount-d.val().length}if(b.strictMax&&f<=0){var e=d.val();if(b.countType==="words"){d.val(e.split(/[\s]+/).slice(0,b.maxCount).join(" "))}else{d.val(e.substring(0,b.maxCount))}f=0}if(!a(b.counter).hasClass(b.safeClass)&&!a(b.counter).hasClass(b.overClass)){if(f<0){a(b.counter).addClass(b.overClass)}else{a(b.counter).addClass(b.safeClass)}}else{if(f<0&&a(b.counter).hasClass(b.safeClass)){a(b.counter).removeClass(b.safeClass).addClass(b.overClass)}else{if(f>=0&&a(b.counter).hasClass(b.overClass)){a(b.counter).removeClass(b.overClass).addClass(b.safeClass)}}}if(b.countDirection==="up"){f=f-(f*2)+b.maxCount}if(b.thousandSeparator){f=f.toString();for(var c=f.length-3;c>0;c-=3){f=f.substr(0,c)+b.thousandSeparator+f.substr(c)}}a(b.counter).text(f)};return a(this).each(function(){a.fn.simplyCountable.countCheck(this);a(this).keyup(function(){a.fn.simplyCountable.countCheck(this)})})}})(jQuery);(function(f){if(f.support==undefined){f.support={boxModel:f.boxModel}}var e=false;f(window).one("load",function(){e=true});f.fx.prototype.originalUpdate=f.fx.prototype.update;f.fx.prototype.update=false;f.fx.prototype.update=function(){if(!this.options.inline){return this.originalUpdate.call(this)}if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this)};var d=function(a){this.dom=a;this.o=f(a);this.opt={auto:true,animate:100,easing:null,min:false,max:false,restore:false,step:false};this.enabled=this.dummy=this.busy=this.initial=this.sizeRelated=this.prevH=this.firstH=false};d.prototype={toggle:function(a){if((a=="disable"||a===false)&&this.enabled){return this.setEvents("off")}if((a=="enable"||a===true)&&!this.enabled){return this.setEvents("on")}return this},setEvents:function(a){var b=this.o,l=this.opt,c=this,m=false;if(a=="on"&&!this.enabled){var k=b.height()==0?true:false;if(!k||e){f(function(){c.prepareSizeRelated()})}else{f(window).one("load",function(){c.prepareSizeRelated()})}if(l.auto){b.bind("keyup.growfield",function(g){c.keyUp(g);return true});b.bind("focus.growfield",function(g){c.focus(g);return true});b.bind("blur.growfield",function(g){c.blur(g);return true});m={overflow:b.css("overflow"),cssResize:b.css("resize")};if(f.browser.safari){b.css("resize","none")}this.initial=m;b.css({overflow:"hidden"});if(!k||e){f(function(){c.createDummy()})}else{f(window).one("load",function(){c.createDummy()})}}else{b.bind("keydown.growfield",function(g){c.manualKeyUp(g);return true});b.css("overflow-y","auto");if(!k||e){f(function(){c.update(b.height())})}else{f(window).one("load",function(){c.update(b.height())})}}b.addClass("growfield");this.enabled=true}else{if(a=="off"&&this.enabled){if(this.dummy){this.dummy.remove();this.dummy=false}b.unbind(".growfield").css("overflow",this.initial.overflow);if(f.browser.safari){b.css("resize",this.initial.cssResize)}this.enabled=false}}return this},setOptions:function(c){var b=this.opt,a=this.o;f.extend(b,c);if(!f.easing){b.easing=null}},update:function(a,t){var w=this.sizeRelated,o=this.o.val(),u=this.opt,b=this.dom,s=this.o,v=this,h=this.prevH;var r=!u.auto,c=u.auto;a=this.convertHeight(Math.round(a),"inner");a=u.min>a?u.min:u.max&&a>u.max?u.max:u.auto&&!o?u.min:a;if(u.max&&u.auto){if(h!=u.max&&a==u.max){s.css("overflow-y","scroll");if(!u.animate){s.focus()}r=true;c=false}if(h==u.max&&a<u.max){s.css("overflow-y","hidden");if(!u.animate){s.focus()}c=false}}if(a==h){return true}this.prevH=a;if(t){v.busy=true;s.animate({height:a},{duration:u.animate,easing:u.easing,overflow:null,inline:true,complete:function(){if(!r){s.css("overflow","hidden")}if(!c){s.focus()}v.busy=false},queue:false})}else{b.style.height=a+"px"}},manualKeyUp:function(a){if(!a.ctrlKey){return}if(a.keyCode!=38&&a.keyCode!=40){return}this.update(this.o.outerHeight()+(this.opt.step*(a.keyCode==38?-1:1)),this.opt.animate)},keyUp:function(a){if(this.busy){return true}if(f.inArray(a.keyCode,[37,38,39,40])!=-1){return true}this.update(this.getDummyHeight(),this.opt.animate)},focus:function(a){if(this.busy){return true}if(this.opt.restore){this.update(this.getDummyHeight(),this.opt.animate)}},blur:function(a){if(this.busy){return true}if(this.opt.restore){this.update(0,false)}},getDummyHeight:function(){var a=this.o.val(),c=0,h=this.sizeRelated,b="\n111\n111";if(f.browser.safari){a=a.substring(0,a.length-1)}if(!h.lh||!h.fs){a+=b}this.dummy.val(a);if(f.browser.msie){this.dummy[0].style.height=this.dummy[0].scrollHeight+"px"}c=this.dummy[0].scrollHeight;if(h.lh&&h.fs){c+=h.lh>h.fs?h.lh+h.fs:h.fs*2}if(f.browser.msie){this.dummy[0].style.height="20px"}return c},createDummy:function(){var a=this.o,b=this.o.val();var c=a.clone().addClass("growfieldDummy").attr("name","").attr("tabindex",-9999).css({position:"absolute",left:-9999,top:0,height:"20px",resize:"none"}).insertBefore(a).show();if(!b){c.val("")}this.dummy=c;this.update(!jQuery.trim(b)?0:this.getDummyHeight(),false)},convertHeight:function(c,a){var h=this.sizeRelated,k=(a=="inner"?-1:1),b=f.support.boxModel;return c+(b?h.bt:0)*k+(b?h.bb:0)*k+(b?h.pt:0)*k+(b?h.pb:0)*k},prepareSizeRelated:function(){var a=this.o,c=this.opt;if(!c.min){c.min=parseInt(a.css("min-height"),10)||this.firstH||parseInt(a.height(),10)||20;if(c.min<=0){c.min=20}if(!this.firstH){this.firstH=c.min}}if(!c.max){c.max=parseInt(a.css("max-height"),10)||false;if(c.max<=0){c.max=false}}if(!c.step){c.step=parseInt(a.css("line-height"),10)||parseInt(a.css("font-size"),10)||20}var b={pt:parseInt(a.css("paddingTop"),10)||0,pb:parseInt(a.css("paddingBottom"),10)||0,bt:parseInt(a.css("borderTopWidth"),10)||0,bb:parseInt(a.css("borderBottomWidth"),10)||0,lh:parseInt(a.css("lineHeight"),10)||false,fs:parseInt(a.css("fontSize"),10)||false};this.sizeRelated=b}};f.fn.growfield=function(b){if("destroy"==b){return this.each(function(){var c=f(this).data("growfield");if(c==undefined){return true}c.toggle(false);f(this).removeData("growfield");return true})}if("restart"==b){return this.each(function(){var c=f(this).data("growfield");if(c==undefined){return true}c.toggle(false).toggle(true)})}var a=typeof b;return this.each(function(){if(!/textarea/i.test(this.tagName)||f(this).hasClass("growfieldDummy")){return true}var o=false,c=f(this),m=c.data("growfield");if(m==undefined){o=true;c.data("growfield",new d(this));m=c.data("growfield")}if(o){var n=f.extend({},f.fn.growfield.defaults,b);m.setOptions(n)}if(!o&&(!b||a=="object")){m.setOptions(b)}if(a=="string"){if(b.indexOf("!")==0&&f.fn.growfield.presets[b.substr(1)]){c.unbind("."+i+"."+b.substr(1))}else{if(f.fn.growfield.presets[b]){var l=f.fn.growfield.presets[b];m.setOptions(l,b)}}}if(o&&!n.skipEnable){m.toggle(true)}if(!o&&(a=="boolean"||b=="enable"||b=="disable")){m.toggle(b)}})};f.fn.growfield.defaults={};f.fn.growfield.presets={}})(jQuery);$(document).ready(function(){var c=document.createElement("input");if("placeholder" in c){return}var b=function(f){return $(f).attr("realType")=="password"};var a=function(f){return f.value==$(f).attr("placeholder")};var e=function(f,h){if(f.value==""||(h&&a(f))){if(b(f)){try{f.setAttribute("type","input")}catch(g){}}f.value=$(f).attr("placeholder");$(f).addClass("placeholder")}};var d=function(f){if(a(f)&&$(f).hasClass("placeholder")){if(b(f)){try{f.setAttribute("type","password");f.focus()}catch(g){}}f.value="";$(f).removeClass("placeholder")}};$(":text[placeholder],:password[placeholder]").each(function(f){if($(this).attr("type")=="password"){$(this).attr("realType","password")}e(this,true);$(this).focus(function(){d(this)});$(this).blur(function(){e(this,false)})})});
