/*! http://mths.be/placeholder v1.8.5 by @mathias */
(function(g,a,h){var f="placeholder" in a.createElement("input"),b="placeholder" in a.createElement("textarea");if(f&&b){h.fn.placeholder=function(){return this};h.fn.placeholder.input=h.fn.placeholder.textarea=true}else{h.fn.placeholder=function(){return this.filter((f?"textarea":":input")+"[placeholder]").bind("focus.placeholder",c).bind("blur.placeholder",e).trigger("blur.placeholder").end()};h.fn.placeholder.input=f;h.fn.placeholder.textarea=b;h(function(){h("form").bind("submit.placeholder",function(){var i=h(".placeholder",this).each(c);setTimeout(function(){i.each(e)},10)})});h(g).bind("unload.placeholder",function(){h(".placeholder").val("")})}function d(j){var i={},k=/^jQuery\d+$/;h.each(j.attributes,function(m,l){if(l.specified&&!k.test(l.name)){i[l.name]=l.value}});return i}function c(){var i=h(this);if(i.val()===i.attr("placeholder")&&i.hasClass("placeholder")){if(i.data("placeholder-password")){i.hide().next().show().focus().attr("id",i.removeAttr("id").data("placeholder-id"))}else{i.val("").removeClass("placeholder")}}}function e(){var m,l=h(this),i=l,k=this.id;if(l.val()===""){if(l.is(":password")){if(!l.data("placeholder-textinput")){try{m=l.clone().attr({type:"text"})}catch(j){m=h("<input>").attr(h.extend(d(this),{type:"text"}))}m.removeAttr("name").data("placeholder-password",true).data("placeholder-id",k).bind("focus.placeholder",c);l.data("placeholder-textinput",m).data("placeholder-id",k).before(m)}l=l.removeAttr("id").hide().prev().attr("id",k).show()}l.addClass("placeholder").val(l.attr("placeholder"))}else{l.removeClass("placeholder")}}}(this,document,jQuery));(function(c){function a(){c("#carousel").each(function(){var i=c(this);var h=i.find("li");var k=0;h.slice(1).hide();function e(l){if(l!=k){h.eq(k).css("z-index",5).fadeOut();d.eq(k).removeClass("active");k=l;h.eq(k).css("z-index",10).fadeIn();d.eq(k).addClass("active")}}function g(){if(k<h.length-1){e(k+1)}else{e(0)}}var f=setInterval(g,7000);var j=c("<div/>",{id:"carousel-nav"}).appendTo(i);h.each(function(m){var l=c("<div/>").appendTo(j);l.click(function(){e(m);clearTimeout(f)});c("<div/>",{"class":"overlay"}).appendTo(c(this))});var d=j.find("div");d.eq(0).addClass("active")})}function b(){c("#programme-slides").each(function(){var h=c(this);var g=h.find("li");var i=0;g.slice(1).hide();function d(j){if(j!=i){g.eq(i).css("z-index",5).fadeOut();i=j;g.eq(i).css("z-index",10).fadeIn()}}function f(){if(i<g.length-1){d(i+1)}else{d(0)}}var e=setInterval(f,7000)})}c(function(){a();b();c("input[placeholder]").placeholder()})}(jQuery));(function(a){a(function(){a("#nav-content").each(function(){var c=a(this);var b=c.find("a");b.bind("show",function(){var d=a(this);d.addClass("here");a(d.attr("href")).show();b.not(d).trigger("hide")});b.bind("hide",function(){var d=a(this);a(d.attr("href")).hide();d.removeClass("here")});b.click(function(){a(this).trigger("show");return false});b.each(function(){var d=a(this);a("a[href="+d.attr("href")+"]").click(function(){d.trigger("show");return false})});b.eq(0).trigger("show")})})}(jQuery));
