(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(!g.colorInit){g.start=c(g.elem,e);g.end=b(g.end);g.colorInit=true}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
(function(){function f(a,b){if(b)for(var c in b)if(b.hasOwnProperty(c))a[c]=b[c];return a}function l(a,b){var c=[];for(var d in a)if(a.hasOwnProperty(d))c[d]=b(a[d]);return c}function m(a,b,c){if(e.isSupported(b.version))a.innerHTML=e.getHTML(b,c);else if(b.expressInstall&&e.isSupported([6,65]))a.innerHTML=e.getHTML(f(b,{src:b.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title});else{if(!a.innerHTML.replace(/\s/g,"")){a.innerHTML="<h2>Flash version "+b.version+
" or greater is required</h2><h3>"+(g[0]>0?"Your version is "+g:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+k+"'>here</a></p>");if(a.tagName=="A")a.onclick=function(){location.href=k}}if(b.onFail){var d=b.onFail.call(this);if(typeof d=="string")a.innerHTML=d}}if(i)window[b.id]=document.getElementById(b.id);f(this,{getRoot:function(){return a},getOptions:function(){return b},getConf:function(){return c},
getApi:function(){return a.firstChild}})}var i=document.all,k="http://www.adobe.com/go/getflashplayer",n=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,j={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});
window.flashembed=function(a,b,c){if(typeof a=="string")a=document.getElementById(a.replace("#",""));if(a){if(typeof b=="string")b={src:b};return new m(a,f(f({},j),b),c)}};var e=f(window.flashembed,{conf:j,getVersion:function(){var a,b;try{b=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(c){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&a.GetVariable("$version")}catch(d){try{b=(a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&a.GetVariable("$version")}catch(h){}}}return(b=
o.exec(b))?[b[1],b[3]]:[0,0]},asString:function(a){if(a===null||a===undefined)return null;var b=typeof a;if(b=="object"&&a.push)b="array";switch(b){case "string":a=a.replace(new RegExp('(["\\\\])',"g"),"\\$1");a=a.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+a+'"';case "array":return"["+l(a,function(d){return e.asString(d)}).join(",")+"]";case "function":return'"function()"';case "object":b=[];for(var c in a)a.hasOwnProperty(c)&&b.push('"'+c+'":'+e.asString(a[c]));return"{"+b.join(",")+"}"}return String(a).replace(/\s/g,
" ").replace(/\'/g,'"')},getHTML:function(a,b){a=f({},a);var c='<object width="'+a.width+'" height="'+a.height+'" id="'+a.id+'" name="'+a.id+'"';if(a.cachebusting)a.src+=(a.src.indexOf("?")!=-1?"&":"?")+Math.random();c+=a.w3c||!i?' data="'+a.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';c+=">";if(a.w3c||i)c+='<param name="movie" value="'+a.src+'" />';a.width=a.height=a.id=a.w3c=a.src=null;a.onFail=a.version=a.expressInstall=null;for(var d in a)if(a[d])c+=
'<param name="'+d+'" value="'+a[d]+'" />';a="";if(b){for(var h in b)if(b[h]){d=b[h];a+=h+"="+(/function|object/.test(typeof d)?e.asString(d):d)+"&"}a=a.slice(0,-1);c+='<param name="flashvars" value=\''+a+"' />"}c+="</object>";return c},isSupported:function(a){return g[0]>a[0]||g[0]==a[0]&&g[1]>=a[1]}}),g=e.getVersion();if(n){jQuery.tools=jQuery.tools||{version:"1.2.4"};jQuery.tools.flashembed={conf:j};jQuery.fn.flashembed=function(a,b){return this.each(function(){$(this).data("flashembed",flashembed(this,
a,b))})}}})();
jQuery.noConflict();function passwordField(){var a=jQuery("#password-field");if(a.length>0){a.hide();a.before('<label><a href="#" id="ShowChangePassword" class="button">Change password</a></label>');jQuery("#ShowChangePassword").click(function(b){b.preventDefault();a.slideToggle()})}}function searchFilterForm(){var a=jQuery("#search-form");if(a.length>0){a.hide();a.before('<p><a href="#" id="ShowSearchForm" class="button">Filter courses</a></p>');jQuery("#ShowSearchForm").click(function(){a.slideToggle()})}}function validateForms(){var a='<span class="error empty">This field cannot be left empty</label>';var b='<span class="error invalid">This value is invalid</label>';jQuery('form input[type="email"]').blur(function(){var c=jQuery(this).val();if(c.length>0&&(c.indexOf("@")==-1||c.indexOf(".")==-1||c.length<7)){showError(jQuery(this).parent(),"span.error.invalid",b)}else{hideError(jQuery(this).parent(),"span.error.invalid")}});jQuery('form input[type="tel"]').blur(function(){var c=jQuery(this).val().replace(/[^\d\.-]/g,"");jQuery(this).val(c)});jQuery('form input[type="date"]').blur(function(){var c=/^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$/;if(c.test(jQuery(this).val())==false){showError(jQuery(this).parent(),"span.error",b)}else{hideError(jQuery(this).parent(),"span.error")}});jQuery('form *[required="required"]').blur(function(){var c=jQuery(this).val();if(jQuery(this).is("select")){c=jQuery(this).children("option:selected").text();if(c=="Choose"){c=""}}if(c.length==0){showError(jQuery(this).parent(),"span.error",a)}else{hideError(jQuery(this).parent(),"span.error")}})}function showError(a,c,b){hideError(a,c);a.append(b).fadeIn()}function hideError(a,b){a.find(b).fadeOut().remove()}jQuery.extend(jQuery.easing,{easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a}});jQuery(document).ready(function(){if(jQuery(".feature").length>1){jQuery("body").addClass("home")}(function(){jQuery(".flash-banner div").each(function(c,e){var d=jQuery(e).parent();var b=d.attr("data-url");var f="/external/"+jQuery.param({linkurl:d.attr("data-link"),bannerid:d.attr("data-bannerid")});jQuery(e).html("").css("text-indent",0);flashembed(e,{src:b,version:[8,0],width:jQuery(e).width(),height:jQuery(e).height(),allowfullscreen:false,wmode:"opaque"},{clickTAG:f,clickTag:f,ClickTAG:f,ClickTag:f})})})();jQuery("ul.lightbox li a:has(img)").fancybox({titlePosition:"over"});if(jQuery("#fl-lofted_pass").length>0){flashembed("#fl-lofted_pass",{src:"/flash/loftedpass.swf",width:510,height:357});flashembed("#fl-finishing",{src:"/flash/finishing.swf",width:510,height:357});flashembed("#fl-dribbling",{src:"/flash/dribbling.swf",width:510,height:357});flashembed("#fl-shortpassing",{src:"/flash/shortpassing.swf",width:510,height:357})}flashembed("#fl-keepyuppy",{src:"/flash/games/keepy-uppy.swf",width:770,height:490,bgcolor:"#F0F0F0"});flashembed("#fl-memorygame",{src:"/flash/games/memory.swf",width:770,height:490,bgcolor:"#F0F0F0"});passwordField();searchFilterForm();jQuery(".features").each(function(e,l){var c=jQuery(l).find(".feature");var b;var f=1;var d=jQuery('<ul class="navigation"></ul>').appendTo(l);c.each(function(i,m){d.append(jQuery("<li>"+jQuery(m).find("h1").text()+"</li>"))});var k=d.find("li");jQuery(k[0]).addClass("selected").css({backgroundColor:"#1a1a1a"});var g=function(i){if(c.length<=i){i=0}c.stop().animate({left:-3330},500,"easeInBack");if(jQuery(c[i]).css("left")=="-3330px"){jQuery(c[i]).css("left",3330)}jQuery(c[i]).stop().animate({left:0},500,"easeInBack");k.removeClass("selected").stop().animate({backgroundColor:"#ec1c24"},125);jQuery(k[i]).addClass("selected").stop().animate({backgroundColor:"#1a1a1a"},125);f=i+1};k.css({width:Math.floor(817/k.length)-17}).bind({mouseenter:function(){jQuery(this).stop().animate({backgroundColor:"#1a1a1a"},125)},mouseleave:function(){var i=jQuery(this);if(!i.hasClass("selected")){i.stop().animate({backgroundColor:"#ec1c24"},125)}}}).each(function(i,m){jQuery(m).click(function(){g(i)})});var j=function(){b=setInterval(function(){g(f)},4000)};var h=function(){clearInterval(b)};jQuery(l).bind({mouseenter:h,mouseleave:j});j()});(function(){var b=jQuery(".latest-news-feature").each(function(e,d){var c=jQuery(d).find("li");var f=function(g){c.not(g).stop().fadeTo(250,0.4);jQuery(g).stop().fadeTo(250,1)};f(c.first());c.bind({click:function(){window.location=jQuery(this).find("a").first().attr("href")},mouseenter:function(){f(this)}})})})();jQuery("fieldset.hidenext").each(function(c,b){var e=jQuery(b).next();var d=jQuery(b).find("input[value=1]");if(!jQuery(d).attr("checked")){e.hide()}jQuery(b).find("input").bind("change",function(){if(jQuery(d).attr("checked")){e.show(250)}else{e.hide(250)}})});jQuery("ul.lightbox li a:has(img)").fancybox({titlePosition:"over"});if(jQuery.browser.msie&&parseInt(jQuery.browser.version)==6){jQuery("button").click(function(){var b=jQuery(this);b.closest("form").find("button").attr("disabled","disabled");b.attr("disabled",false);this.value=b.attr("value")})}});
