
(function(c){c.address=function(){var v=function(a){c(c.address).trigger(c.extend(c.Event(a),function(){for(var b={},g=c.address.parameterNames(),h=0,q=g.length;h<q;h++)b[g[h]]=c.address.parameter(g[h]);return{value:c.address.value(),path:c.address.path(),pathNames:c.address.pathNames(),parameterNames:g,parameters:b,queryString:c.address.queryString()}}.call(c.address)))},w=function(a,b,g){c(c.address).bind(a,b,g);return c.address},p=function(){var a=d.href.indexOf("#");return a!=-1?W(J(t(d.href.substr(a+
1),j))):""},X=function(a,b){if(i.strict)a=b?a.substr(0,1)!="/"?"/"+a:a:a==""?"/":a;return a},K=function(a,b){return u&&d.protocol=="file:"?b?f.replace(/\?/,"%3F"):f.replace(/%253F/,"?"):a},t=function(a,b){if(i.crawlable&&b)return(a!=""?"!":"")+a;return a.replace(/^\!/,"")},x=function(a,b){return parseInt(a.css(b),10)},Y=function(a){for(var b,g,h=0,q=a.childNodes.length;h<q;h++){if(a.childNodes[h].src)b=String(a.childNodes[h].src);if(g=Y(a.childNodes[h]))b=g}return b},H=function(){if(!L){var a=p(),
b=f!=a;if(y&&m<523){if(D!=F.length){D=F.length;if(typeof z[D-1]!=A)f=z[D-1];G(j)}}else if(u&&m<7&&b)d.reload();else if(b){f=a;G(j)}}},G=function(a){v(Z);v(a?$:aa);E(ba,10)},ba=function(){var a=(d.pathname+(/\/$/.test(d.pathname)?"":"/")+(c.address?c.address.value():"")).replace(/\/\//,"/").replace(/^\/$/,""),b=n[i.tracker];if(typeof b==M)b(a);else if(typeof urchinTracker==M)urchinTracker(a);else if(typeof pageTracker!=A&&typeof pageTracker._trackPageview==M)pageTracker._trackPageview(a);else typeof _gaq!=
A&&typeof _gaq.push==M&&_gaq.push(["_trackPageview",a])},ca=function(){var a=l.contentWindow.document;a.open();a.write("<html><head><title>"+k.title+"</title><script>var "+o+' = "'+p()+'";<\/script></head></html>');a.close()},ea=function(){if(!da){da=e;var a=c("body").ajaxComplete(function(){ia.call(this)}).trigger("ajaxComplete");if(i.wrap){c("body > *").wrapAll('<div style="padding:'+(x(a,"marginTop")+x(a,"paddingTop"))+"px "+(x(a,"marginRight")+x(a,"paddingRight"))+"px "+(x(a,"marginBottom")+x(a,
"paddingBottom"))+"px "+(x(a,"marginLeft")+x(a,"paddingLeft"))+'px;" />').parent().wrap('<div id="'+o+'" style="height:100%; overflow:auto;'+(y?window.statusbar.visible&&!/chrome/i.test(O)?"":" resize:both;":"")+'" />');c("html, body").css({height:"100%",margin:0,padding:0,overflow:"hidden"});y&&c('<style type="text/css" />').appendTo("head").text("#"+o+"::-webkit-resizer { background-color: #fff; }")}if(u&&m<8){a=k.getElementsByTagName("frameset")[0];l=k.createElement((a?"":"i")+"frame");if(a){a.insertAdjacentElement("beforeEnd",
l);a[a.cols?"cols":"rows"]+=",0";l.src="javascript:"+j;l.noResize=e;l.frameBorder=l.frameSpacing=0}else{l.src="javascript:"+j;l.style.display="none";k.body.insertAdjacentElement("afterBegin",l)}E(function(){c(l).bind("load",function(){var b=l.contentWindow;f=typeof b[o]!=A?b[o]:"";if(f!=p()){G(j);d.hash=K(t(f,e),e)}});typeof l.contentWindow[o]==A&&ca()},50)}else if(y){if(m<418){c(k.body).append('<form id="'+o+'" style="position:absolute;top:-9999px;" method="get"></form>');P=k.getElementById(o)}if(typeof d[o]==
A)d[o]={};if(typeof d[o][d.pathname]!=A)z=d[o][d.pathname].split(",")}E(function(){v("init");G(j)},1);if(u&&m>7||!u&&"on"+I in n)if(n.addEventListener)n.addEventListener(I,H,false);else n.attachEvent&&n.attachEvent("on"+I,H);else ja(H,50);c("a").filter("[rel*=address:]").address()}},ka=function(){if(n.removeEventListener)n.removeEventListener(I,H,false);else n.detachEvent&&n.detachEvent("on"+I,H)},ia=function(){var a=d.pathname.replace(/\/$/,"");c("body").html().indexOf("_escaped_fragment_")!=-1&&
c("a[href]:not([href^=http])",this).each(function(){var b=c(this).attr("href").replace(RegExp(a+"/?$"),"");if(b==""||b.indexOf("_escaped_fragment_")!=-1)c(this).attr("href","#"+decodeURIComponent(b.replace(/\/(.*)\?_escaped_fragment_=(.*)$/,"!$2")))})},o="jQueryAddress",M="function",A="undefined",I="hashchange",Z="change",$="internalChange",aa="externalChange",e=true,j=false,i={autoUpdate:e,crawlable:j,history:e,strict:e,wrap:j},r=c.browser,m=parseFloat(c.browser.version),fa=r.mozilla,u=r.msie,s=
r.opera,y=r.safari,Q=j,n;try{n=top.document!==undefined?top:window}catch(la){n=window}var k=n.document,F=n.history,d=n.location,ja=setInterval,E=setTimeout,J=decodeURI,W=encodeURI,O=navigator.userAgent,l,P,B=Y(document),ga=B?B.indexOf("?"):-1,R=k.title,D=F.length,L=j,da=j,S=e,ha=e,N=j,z=[],f=p();if(u){m=parseFloat(O.substr(O.indexOf("MSIE")+4));if(k.documentMode&&k.documentMode!=m)m=k.documentMode!=8?7:8;c(document).bind("propertychange",function(){if(k.title!=R&&k.title.indexOf("#"+p())!=-1)k.title=
R})}if(Q=fa&&m>=1||u&&m>=6||s&&m>=9.5||y&&m>=312){for(r=1;r<D;r++)z.push("");z.push(f);if(u&&d.hash!=f)d.hash="#"+K(t(f,e),e);if(s)history.navigationMode="compatible";if(B&&ga!=-1){B=B.substr(ga+1).split("&");for(r=0;r<B.length;r++){s=B[r].split("=");if(/^(autoUpdate|crawlable|history|strict|wrap)$/.test(s[0]))i[s[0]]=isNaN(s[1])?/^(true|yes)$/i.test(s[1]):parseInt(s[1],10)!==0;if(/^tracker$/.test(s[0]))i[s[0]]=s[1]}}document.readyState=="complete"&&ea();c(ea);c(window).bind("unload",ka)}else if(!Q&&
p()!=""||y&&m<418&&p()!=""&&d.search!=""){k.open();k.write('<html><head><meta http-equiv="refresh" content="0;url='+encodeURI(d.href.substr(0,d.href.indexOf("#")))+'" /></head></html>');k.close()}else ba();return{bind:function(a,b,g){return w(a,b,g)},init:function(a){return w("init",a)},change:function(a){return w(Z,a)},internalChange:function(a){return w($,a)},externalChange:function(a){return w(aa,a)},baseURL:function(){var a=d.href;if(a.indexOf("#")!=-1)a=a.substr(0,a.indexOf("#"));if(/\/$/.test(a))a=
a.substr(0,a.length-1);return a},autoUpdate:function(a){if(a!==undefined){i.autoUpdate=a;return this}return i.autoUpdate},crawlable:function(a){if(a!==undefined){i.crawlable=a;return this}return i.crawlable},history:function(a){if(a!==undefined){i.history=a;return this}return i.history},strict:function(a){if(a!==undefined){i.strict=a;return this}return i.strict},tracker:function(a){if(a!==undefined){i.tracker=a;return this}return i.tracker},wrap:function(a){if(a!==undefined){i.wrap=a;return this}return i.wrap},
update:function(){N=e;this.value(f);N=j;return this},title:function(a){if(a!==undefined){a=J(a);E(function(){R=k.title=a;if(ha&&l&&l.contentWindow&&l.contentWindow.document){l.contentWindow.document.title=a;ha=j}if(!S&&fa)d.replace(d.href.indexOf("#")!=-1?d.href:d.href+"#");S=j},50);return this}return k.title},value:function(a){if(a!==undefined){a=W(J(X(a,e)));if(a=="/")a="";if(f==a&&!N)return;S=e;f=a;if(i.autoUpdate||N){L=e;G(e);z[F.length]=f;if(y)if(i.history){d[o][d.pathname]=z.toString();D=F.length+
1;if(m<418){if(d.search==""){P.action="#"+t(f,e);P.submit()}}else if(m<523||f==""){a=k.createEvent("MouseEvents");a.initEvent("click",e,e);var b=k.createElement("a");b.href="#"+t(f,e);b.dispatchEvent(a)}else d.hash="#"+t(f,e)}else d.replace("#"+t(f,e));else if(f!=p())if(i.history)d.hash="#"+K(t(f,e),e);else d.replace("#"+t(f,e));u&&m<8&&i.history&&E(ca,50);if(y)E(function(){L=j},1);else L=j}return this}if(!Q)return null;return J(X(K(f,j),j))},path:function(a){if(a!==undefined){var b=this.queryString(),
g=this.hash();this.value(a+(b?"?"+b:"")+(g?"#"+g:""));return this}return this.value().split("#")[0].split("?")[0]},queryString:function(a){if(a!==undefined){var b=this.hash();this.value(this.path()+(a?"?"+a:"")+(b?"#"+b:""));return this}a=this.value().split("?");return a.slice(1,a.length).join("?").split("#")[0]},parameter:function(a,b,g){var h,q;if(b!==undefined){var T=this.parameterNames();q=[];for(h=0;h<T.length;h++){var U=T[h],C=this.parameter(U);if(typeof C=="string")C=[C];if(U==a)C=b===null||
b===""?[]:g?C.concat([b]):[b];for(var V=0;V<C.length;V++)q.push(U+"="+C[V])}c.inArray(a,T)==-1&&b!==null&&b!==""&&q.push(a+"="+b);this.queryString(q.join("&"));return this}if(b=this.queryString()){q=b.split("&");b=[];for(h=0;h<q.length;h++){g=q[h].split("=");g[0]==a&&b.push(g[1])}if(b.length!==0)return b.length!=1?b:b[0]}},pathNames:function(){var a=this.path(),b=a.replace(/\/{2,9}/g,"/").split("/");if(a.substr(0,1)=="/"||a.length===0)b.splice(0,1);a.substr(a.length-1,1)=="/"&&b.splice(b.length-1,
1);return b},parameterNames:function(){var a=this.queryString(),b=[];if(a&&a.indexOf("=")!=-1){a=a.split("&");for(var g=0;g<a.length;g++){var h=a[g].split("=")[0];c.inArray(h,b)==-1&&b.push(h)}}return b},hash:function(a){if(a!==undefined){this.value(this.value().split("#")[0]+(a?"#"+a:""));return this}a=this.value().split("#");return a.slice(1,a.length).join("#")}}}();c.fn.address=function(v){var w=function(){if(c(this).is("a")){var p=v?v.call(this):/address:/.test(c(this).attr("rel"))?c(this).attr("rel").split("address:")[1].split(" ")[0]:
c(this).attr("href").replace(/^#\!?/,"");c.address.value(p);return false}};c(this).click(w).live("click",w);c(this).live("submit",function(){if(c(this).is("form")){var p=v?v.call(this):c(this).attr("action")+"?"+c(this).serialize();c.address.value(p);return false}});return this}})(jQuery);
(function(c){function j(){var a;a=this;a=c(a);if(!a.data("timeago")){a.data("timeago",{datetime:f.datetime(a)});var b=c.trim(a.text());b.length>0&&a.attr("title",b)}a=a.data("timeago");isNaN(a.datetime)||c(this).text(g(a.datetime));return this}function g(a){return f.inWords((new Date).getTime()-a.getTime())}function d(a,b){return(c.isFunction(a)?a(b):a).replace(/%d/i,b)}c.timeago=function(a){return a instanceof Date?g(a):typeof a=="string"?g(c.timeago.parse(a)):g(c.timeago.datetime(a))};var f=c.timeago;
c.extend(c.timeago,{settings:{refreshMillis:6E4,allowFuture:false,strings:{prefixAgo:"vor",prefixFromNow:null,suffixAgo:null,suffixFromNow:"from now",ago:null,fromNow:null,seconds:"weniger als einer Minute",minute:"etwa einer Minute",minutes:"%d Minuten",hour:"etwa einer Stunde",hours:"ungef\u00e4hr %d Stunden",day:"einem Tag",days:"%d Tagen",month:"einem Monat",months:"%d Monat",year:"einem Jahr",years:"%d Jahren"}},inWords:function(a){var b=this.settings.strings,k=b.prefixAgo,l=b.suffixAgo||b.ago;
if(this.settings.allowFuture){if(a<0){k=b.prefixFromNow;l=b.suffixFromNow||b.fromNow}a=Math.abs(a)}a=a/1E3;var h=a/60,i=h/60,e=i/24,m=e/365;b=a<45&&d(b.seconds,Math.round(a))||a<90&&d(b.minute,1)||h<45&&d(b.minutes,Math.round(h))||h<90&&d(b.hour,1)||i<24&&d(b.hours,Math.round(i))||i<48&&d(b.day,1)||e<30&&d(b.days,Math.floor(e))||e<60&&d(b.month,1)||e<365&&d(b.months,Math.floor(e/30))||m<2&&d(b.year,1)||d(b.years,Math.floor(m));return c.trim([k,b,l].join(" "))},parse:function(a){a=c.trim(a);a=a.replace(/-/,
"/").replace(/-/,"/");a=a.replace(/T/," ").replace(/Z/," UTC");a=a.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(a)},datetime:function(a){a=c(a).get(0).tagName.toLowerCase()=="time"?c(a).attr("datetime"):c(a).attr("title");return f.parse(a)}});c.fn.timeago=function(){var a=this;a.each(j);var b=f.settings;b.refreshMillis>0&&setInterval(function(){a.each(j)},b.refreshMillis);return a};document.createElement("abbr");document.createElement("time")})(jQuery);
(function(h){h.format=function(){var d=function(c){switch(c){case "Jan":return"01";case "Feb":return"02";case "Mar":return"03";case "Apr":return"04";case "May":return"05";case "Jun":return"06";case "Jul":return"07";case "Aug":return"08";case "Sep":return"09";case "Oct":return"10";case "Nov":return"11";case "Dec":return"12";default:return c}},m=function(c){c=c;if(c.indexOf(".")!=-1)c=c.substring(0,c.indexOf("."));var e=c.split(":");if(e.length==3){hour=e[0];minute=e[1];second=e[2];return{time:c,hour:hour,
minute:minute,second:second}}else return{time:"",hour:"",minute:"",second:""}};return{date:function(c,e){try{var a=c.split(" "),j=null,k=null,l=null,f=null;switch(a.length){case 6:j=a[5];k=d(a[1]);l=a[2];f=m(a[3]);break;case 2:var b=a[0].split("-");j=b[0];k=b[1];l=b[2];f=m(a[1]);break;default:return c}b=a="";for(i=0;i<e.length;i++){var g=e.charAt(i);a+=g;switch(a){case "dd":b+=l;a="";break;case "MM":b+=k;a="";break;case "yyyy":b+=j;a="";break;case "HH":b+=f.hour;a="";break;case "hh":b+=f.hour;a="";
break;case "mm":b+=f.minute;a="";break;case "ss":b+=f.second;a="";break;case " ":b+=g;a="";break;case "/":b+=g;a="";break;case ":":b+=g;a="";break;default:if(a.length==2&&a.indexOf("y")!=0){b+=a.substring(0,1);a=a.substring(1,2)}else if(a.length==3&&a.indexOf("yyy")==-1)a=""}}return b}catch(n){return c}}}}()})(jQuery);
$(document).ready(function(){$(".shortDateFormat").each(function(h,d){$(d).is(":input")?$(d).val($.format.date($(d).val(),"dd/MM/yyyy")):$(d).text($.format.date($(d).text(),"dd/MM/yyyy"))});$(".longDateFormat").each(function(h,d){$(d).is(":input")?$(d).val($.format.date($(d).val(),"dd/MM/yyyy hh:mm:ss")):$(d).text($.format.date($(d).text(),"dd/MM/yyyy hh:mm:ss"))})});
(function(){$.widget("ui.welSlider",{options:{navigationClass:"slideshow-nav",wrapperClass:"slideshow",autoSlide:0,slidingDuration:1E3,showNavigation:true,showControls:true,easing:"swing"},_create:function(){this._wrapper=this._createWrapper();if(this.options.showNavigation){this._createNavigation();this.options.showControls&&this._createControls()}this.index=0;this.count=this.element.find("> li").length},_createWrapper:function(){return this.element.wrap($("<div />",{"class":this.options.wrapperClass})).parent()},
_createNavigation:function(){var a=this;this._wrapper.append($("<div />",{"class":this.options.navigationClass}).append($("<a />",{"class":"previous",href:"#",click:function(){a.previous();return false}})).append($("<a />",{"class":"next",href:"#",click:function(){a.next();return false}})))},_createControls:function(){var a=this,c=this._wrapper.find("."+this.options.navigationClass),d=$("<ul />",{"class":"controls"}).appendTo(c);$(this.element.find("> li")).each(function(b){d.append($("<li />",{"class":b===
0?"active":"",click:function(){a.gotoEl(b);return false}}))})},_selectDot:function(a){this._wrapper.find(".controls").find(".active").removeClass("active").end().find("li").eq(a).addClass("active")},startAutoslide:function(){var a=this;this.options.autoSlide&&this.element.data("autoslideInterval",window.setInterval(function(){a.next()},this.options.autoSlide))},stopAutoslide:function(){window.clearInterval(this.element.data("autoslideInterval"))},resetAutoslide:function(){this.stopAutoslide();this.startAutoslide()},
previous:function(){this.index>0?this.gotoEl(this.index-1):this.gotoEl(this.count-1)},next:function(){this.index<this.count-1?this.gotoEl(this.index+1):this.gotoEl(0)},gotoEl:function(a){this.resetAutoslide();this.index=a;this.element.animate({"margin-left":-1*a*this.element.find("li").eq(0).innerWidth()},{queue:false,easing:this.options.easing},this.options.slidingDuration);this._selectDot(a)}})})();
(function(d){d.ExpandingBox=function(f,g){var a=this;a.$el=d(f);a.el=f;a.step={step:0};a.$el.data("ExpandingBox",a);a.init=function(){a.options=d.extend({},d.ExpandingBox.defaultOptions,g);a.$target=a.$el.find(a.options.target);a.$trigger=a.options.trigger===null?a.$el:d(a.options.trigger);if(a.options.mask!==null){a.$mask=d(a.options.mask);a.hasMask=true;a.$target.css("opacity",0)}a.easing=typeof a.options.easing=="object"?a.options.easing:{ease_in:a.options.easing,ease_out:a.options.easing};a.updateLocations();
a.$trigger.hover(function(){a.openTransformation()},function(){a.closeTransformation()})};a.updateLocations=function(){a.locations=a.getLocations();a.end_locations=a.getLocations();a.end_locations.target.top=0;a.end_locations.target.left=0;a.end_locations.box={top:a.locations.box.top+a.locations.target.top,left:a.locations.box.left+a.locations.target.left,width:a.locations.target.width,height:a.locations.target.height};a.differences={box:{top:a.end_locations.box.top-a.locations.box.top,left:a.end_locations.box.left-
a.locations.box.left,width:a.end_locations.box.width-a.locations.box.width,height:a.end_locations.box.height-a.locations.box.height},target:{top:a.end_locations.target.top-a.locations.target.top,left:a.end_locations.target.left-a.locations.target.left,width:a.end_locations.target.width-a.locations.target.width,height:a.end_locations.target.height-a.locations.target.height}}};a.getLocations=function(){var b={};b.target=a.getDimAsHash(a.$target);b.box=a.getDimAsHash(a.$el);return b};a.getDimAsHash=
function(b){var c=b.position();return{top:c.top,left:c.left,width:b.width(),height:b.height()}};a.baseTransformation=function(b,c){var e=a.hasMask?a.animationWithMask:a.animationWithoutMask;d(a.step).stop().animate({step:b},{duration:a.options.speed,step:e,complete:e,easing:c})};a.openTransformation=function(){a.baseTransformation(a.options.time,a.easing.ease_in)};a.closeTransformation=function(){a.baseTransformation(0,a.easing.ease_out)};a.animationWithoutMask=function(){a.updateObject(a.$el,"box");
a.updateObject(a.$target,"target")};a.animationWithMask=function(){var b=a.percent();if(b===1)a.$mask.hide();else b<1&&a.$mask.filter(":hidden").show();a.$mask.css("opacity",1-b);a.$target.css("opacity",b);a.updateObject(a.$el,"box");a.updateObject(a.$target,"target")};a.calculateLocations=function(){};a.percent=function(){return a.step.step/a.options.time};a.updateObject=function(b,c){var e=a.percent();b.css({top:Math.round(a.locations[c].top+a.differences[c].top*e),left:Math.round(a.locations[c].left+
a.differences[c].left*e),width:Math.round(a.locations[c].width+a.differences[c].width*e),height:Math.round(a.locations[c].height+a.differences[c].height*e)})};a.init()};d.ExpandingBox.defaultOptions={mask:null,trigger:null,target:":first",speed:200,easing:"swing",time:200};d.fn.expandingBox=function(f){return this.each(function(){new d.ExpandingBox(this,f)})}})(jQuery);
(function(c){function o(b){return typeof b=="object"?b:{top:b,left:b}}var m=c.scrollTo=function(b,g,a){c(window).scrollTo(b,g,a)};m.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};m.window=function(){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){if(!(!this.nodeName||c.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1))return this;var b=(this.contentWindow||this).document||this.ownerDocument||this;return c.browser.safari||
b.compatMode=="BackCompat"?b.body:b.documentElement})};c.fn.scrollTo=function(b,g,a){if(typeof g=="object"){a=g;g=0}if(typeof a=="function")a={onAfter:a};if(b=="max")b=9E9;a=c.extend({},m.defaults,a);g=g||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)g/=2;a.offset=o(a.offset);a.over=o(a.over);return this._scrollable().each(function(){function i(n){j.animate(e,g,a.easing,n&&function(){n.call(this,b,a)})}var k=this,j=c(k),d=b,p,e={},t=j.is("html,body");switch(typeof d){case "number":case "string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(d)){d=
o(d);break}d=c(d,this);case "object":if(d.is||d.style)p=(d=c(d)).offset()}c.each(a.axis.split(""),function(n,q){var h=q=="x"?"Left":"Top",l=h.toLowerCase(),f="scroll"+h,r=k[f],s=m.max(k,q);if(p){e[f]=p[l]+(t?0:r-j.offset()[l]);if(a.margin){e[f]-=parseInt(d.css("margin"+h))||0;e[f]-=parseInt(d.css("border"+h+"Width"))||0}e[f]+=a.offset[l]||0;if(a.over[l])e[f]+=d[q=="x"?"width":"height"]()*a.over[l]}else{h=d[l];e[f]=h.slice&&h.slice(-1)=="%"?parseFloat(h)/100*s:h}if(/^\d+$/.test(e[f]))e[f]=e[f]<=0?
0:Math.min(e[f],s);if(!n&&a.queue){r!=e[f]&&i(a.onAfterFirst);delete e[f]}});i(a.onAfter)}).end()};m.max=function(b,g){var a=g=="x"?"Width":"Height",i="scroll"+a;if(!c(b).is("html,body"))return b[i]-c(b)[a.toLowerCase()]();a="client"+a;var k=b.ownerDocument.documentElement,j=b.ownerDocument.body;return Math.max(k[i],j[i])-Math.min(k[a],j[a])}})(jQuery);
jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var b="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*24*60*60*1E3)}else b=a.expires;b="; expires="+b.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!=
""){a=document.cookie.split(";");for(b=0;b<a.length;b++){e=jQuery.trim(a[b]);if(e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}}return c}};
window.innerShiv=function(){var b,c;return function(e,f){if(!b){b=document.createElement("div");c=document.createDocumentFragment()}var a=b.cloneNode(true);a.innerHTML=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(f===false)return a.childNodes;for(var d=c.cloneNode(true),g=a.childNodes.length;g--;)d.appendChild(a.firstChild);return d}}();
(function(){jQuery.WelLog=function(a,e){function h(j){return function(){var d=c.apply(arguments);return jQuery.WelLog.apply(null,[j].concat(d))}}var g=a||"log",b={},c=Array.prototype.slice,f=c.apply(arguments,[1]);window.console!==undefined&&e&&g in window.console&&window.console[g].apply(window.console,f);$(["log","info","error","assert","debug","warn","time","timeEnd"]).each(function(){b[this]=h(this)});return b};jQuery.log=new jQuery.WelLog;$.entourage=function(){var a=function(){function b(){$("nav ul").css("visibility",
"visible").show("slide",{direction:"left",easing:"easeOutElastic"},1200)}function c(){$("header#top").one("mouseover",b)}function f(){k=false;l.hide("slide",{directly:"left"},800);c()}function j(){$.log.debug("next() triggered.");var i=l.find("li.active").next();i.length||(i=l.find("li:first"));i.find("a").click();return false}var d={},l=$("nav ul"),k=false,m=0;d.update=function(i){$.log.debug("Searching for menu entry with URL ",i);i=i.split("?")[0];var n=$("nav a[href='"+i+"']");$.log.debug("Searching for entry with URL ",
i);if(n.length){$("nav li.active").removeClass("active");$.log.debug("Found menu entry: ",n);n.parent().addClass("active")}};d.init=function(){$(document).one("mouseover",function(){$("nav,.media-icons").fadeIn()});c();$("header#top").mouseout(function(){if(k){window.clearTimeout(m);m=window.setTimeout(f,1500)}}).mouseover(function(){window.clearTimeout(m)}).find("h1 a").click(j).end().find("li a").click(function(){k=true});$("#top").headerScroller()};return d}(),e=function(){function b(d){var l=
f[d];l||window.alert("404.");j.html(innerShiv(l,false));a.update(d)}var c={},f={},j=$("#content-wrapper");c.load=function(d){$.log.debug("Loading URL %s.",d);if(f[d]!==undefined){$.log.debug("Cache hit: %s",d);return b(d)}$.log.debug("Cache miss: %s",d);$.get(d,function(l){$.log.debug("Data received for: %s",d);f[d]=l;b(d)})};return c}(),h=function(){function b(j){var d=$("<div/>").addClass("wrapper twitter");$.each(j,function(l,k){var m=$("<p>"),i=k.text.replace(/http:\/\/(www\.)?fb\.me\/[\w]+/,
"");i=$("<a>",{text:i,href:i===k.text?"http://twitter.com/entourage_/status/"+k.id_str:"http://facebook.com/entourage"});var n=$.format.date(k.created_at,"yyyy-MM-ddThh:mm:ssZ");i.prepend($("<abbr>").addClass("timeago").attr("title",n).html(n));m.append(i);d.append(m)});$("#megaphone .wrapper.twitter").remove();d.insertAfter("#megaphone h2.twitter");jQuery("abbr.timeago").timeago()}var c={},f;c.load=function(){f?b(f):$.ajax({url:"http://api.twitter.com/1/statuses/user_timeline/entourage_.json?count=5",type:"GET",
dataType:"jsonp",timeout:1E3,error:function(){},success:function(j){f=j;b(f)}})};return c}(),g=function(){function b(j){var d=$("<div/>").addClass("wrapper github");$.each(j,function(l,k){var m=$("<p>");m.append(k);d.append(m)});$("#megaphone .wrapper.github").remove();d.insertAfter("#megaphone h2.github");jQuery("abbr.timeago").timeago()}var c={},f;c.load=function(){f?b(f):$.getJSON("/github",function(j){f=j.links;b(f)})};return c}();$(".info").click(function(){$("#megaphone > div").hide();$("#info > div").toggle(400);
return false});$(".megaphone").click(function(){h.load();g.load();$("#info > div").hide();$("#megaphone > div").toggle(400);return false});$(".close").click(function(){$(this).parent().hide();return false});a.init();(function(){var b=false;$.address.crawlable(true);$().address();$.address.init(function(c){if(c.value!=="/")b=true;else a.update("/")}).change(function(c){if(b){c=c.path+="?ajax";e.load(c)}else b=true})})()};$.widget("ui.projectExpander",{_init:function(){var a=this;this.element.find("a.expand,.logo").click(function(){var e=
$(this).closest("li");a._expand(e);return false})},collapseAll:function(){var a=this;this.element.parent().find("li.expanded").each(function(){$.log.debug("Calling collapse on %o.",this);a._collapse($(this))})},_expand:function(a){var e,h=$("#main-content .projects"),g=$("#main-content .projects-spinner"),b;e=window.innerHeight?window.innerWidth/2:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth/2:0;this.collapseAll();a.find(".logo,.expand").hide();
a.addClass("expanded",1E3,function(){a.find(".collapsed").fadeIn();b=a.offset().left+a.width()/2;e-=b;h.projectSpinner("stopScrolling");h.projectSpinner("startScrolling","left",parseFloat(g.css("marginLeft"))+e);jQuery.scrollTo("max",500,{axis:"y"})});a.find(".screenshots").welSlider("startAutoslide")},_collapse:function(a){a.removeClass("expanded",500).find(".collapsed").fadeOut(function(){a.find(".logo,.expand").show()});a.find(".screenshots").welSlider("stopAutoslide")}});$.widget("ui.projectSpinner",
{options:{showArrows:true,scrollDuration:5E3,slideshow:true,helpTheStupid:5E3},_init:function(){this._scrolled=false;this.options.showArrows&&this._initArrows();this._initScrolling();this._initSlideshow();this._initExpander();$.log.debug("Initialized ui.projectSpinner.")},_initArrows:function(){this.element.find(".shade").mouseenter(function(){$(this).find(".arrow").animate({opacity:1},{queue:false})}).mouseleave(function(){$(this).find(".arrow").animate({opacity:0},{queue:false})});this._initDumbHelper()},
_getDirectionFromElement:function(a){if(a.hasClass("right"))return"right";return"left"},_initScrolling:function(){var a=this;this.scrollingInterval=null;this.element.find(".shade").mouseenter(function(){var e=a._getDirectionFromElement($(this));a.stopScrolling();a.startScrolling(e)}).mouseleave(function(){a.stopScrolling()})},_initDumbHelper:function(){var a=this;this.options.helpTheStupid&&window.setTimeout(function(){a._scrolled||a.element.find(".shade .arrow").stop().animate({opacity:1}).animate({opacity:0})},
this.options.helpTheStupid)},_initExpander:function(){this.element.find("li").projectExpander()},_initSlideshow:function(){this.element.find(".screenshots").welSlider({autoSlide:1E4})},startScrolling:function(a,e){var h=this.element.find("> ul"),g=h.find("li:visible"),b=$("body").innerWidth()/2,c=-1*(g.outerWidth()*g.length-b/2)-b/2,f=b+c*-1;this._scrolled=true;g=a==="right"?-1*e||c:e||b;$.log.debug("scrollMaxLeft %o, scrollMaxRight %o",b,c);$.log.debug("Target marginLeft: ",g).debug("Current marginLeft: ",
h.css("margin-left"));b=Math.abs((g-parseFloat(h.css("margin-left")))/f*this.options.scrollDuration);$.log.debug("Calculated remaining duration as ",b);h.animate({"margin-left":g},{queue:false,duration:b,easing:"linear"})},stopScrolling:function(){this.element.find("> ul").stop()}});$.widget("ui.teamList",{_create:function(){this.element.find("li").each(function(){var a=$(this),e=a.find("details"),h=a.find(".open");e.expandingBox({mask:h,trigger:a})})}});$.widget("ui.aboutText",{_create:function(){this.element.one("mouseover",
function(){$("header#top").mouseover()})}});$.widget("ui.contactForm",{_create:function(){var a=$("#message");this.element.bind("submit",function(){if(!$.trim(a.val())||a.val()==="Bitte geben Sie eine Nachricht ein."){a.val("Bitte geben Sie eine Nachricht ein.");a.one("focus",function(){a.val("");a.removeClass("error")});a.addClass("error");return false}})}})})();

