var d=document;function fnGetElement(a){return d.getElementById(a)}var Popup={open:function(e,b,c,a){this.options={url:e,width:b,height:c,left:screen.width/2-(b/2),top:screen.height/2-(c/2),scrollbars:a};window.open(this.options.url,"","location=yes, resizable=yes, width="+this.options.width+",height="+this.options.height+",scrollbars="+this.options.scrollbars+",left="+this.options.left+",top="+this.options.top)}};function fnOpenWindow(){var c=d.getElementsByTagName("a");for(var e=0;e<c.length;e++){if(c[e].getAttribute("rel")=="external"){var f=screen.availWidth;var b=screen.availHeight;c[e].onclick=function(){Popup.open(this.href,f,b,1);return false}}}}function fnAddEvent(f,e,b,a){if(f.addEventListener){f.addEventListener(e,b,a);return true}else{if(f.attachEvent){var c=f.attachEvent("on"+e,b);return c}else{elm["on"+e]=b}}}function fnInitMouseOvers(e){if(fnGetElement(e)==null||fnGetElement(e)=="undefined"){return false}var f=d.getElementById(e);var a=f.getElementsByTagName("img");for(var b=0;b<a.length;b++){var c=a[b].src.substring(0,a[b].src.lastIndexOf("."));c+="_O.gif";a[b].moSrc=c;a[b].orgSrc=a[b].src;a[b].onmouseover=function(){this.src=this.moSrc};a[b].onmouseout=function(){this.src=this.orgSrc}}}fnAddEvent(window,"load",fnCheckFlashVersion);fnAddEvent(window,"load",fnOpenWindow);fnAddEvent(window,"load",fnStripeUL);fnAddEvent(window,"load",fnDownloads);fnAddEvent(window,"load",function(){fnInitMouseOvers("id-Header")});fnAddEvent(window,"load",function(){fnInitMouseOvers("id-CourseMouseOvers")});function fnCheckFlashVersion(){if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var h=navigator.plugins["Shockwave Flash"].description;if(h){var l=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var m=parseInt(l.replace(/^(.*)\..*$/,"$1"));var n=parseInt(l.replace(/^.*r(.*)$/,"$1"));var a=parseFloat(m+"."+n)}else{m=7}}else{if(window.ActiveXObject){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");var h=c.GetVariable("$version");if(h){var f=h.replace(/^\S+\s+(.*)$/,"$1").split(",");var m=parseInt(f[0]);var n=parseInt(f[2]);var a=parseFloat(m+"."+n)}}catch(k){m=7}}}if(m<8){var b=document.createElement("div");var g=document.createElement("a");var j=document.createTextNode("This website requires at least Flash player 8: please click here to download");b.style.backgroundColor="#000000";b.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=80)";b.style.MozOpacity=0.8;b.style.position="absolute";b.style.top="0px";b.style.width="100%";b.style.height="100%";b.style.textAlign="center";b.style.color="#FFFFFF";b.style.fontWeight="bold";b.style.paddingTop="5px";b.style.paddingBottom="5px";document.getElementsByTagName("html")[0].style.height="100%";document.getElementsByTagName("body")[0].style.height="100%";document.getElementsByTagName("html")[0].style.overflow="hidden";document.getElementsByTagName("body")[0].style.overflow="hidden";g.href="/Assets/install_flash_player_active_x.msi";g.style.color="#FFFFFF";g.style.display="block";g.style.width="380px";g.style.marginTop="25%";g.style.fontSize="120%";if(navigator.appName=="Netscape"){g.style.position="relative";g.style.left="50%";g.style.marginLeft="-190px"}g.appendChild(j);b.appendChild(g);document.getElementsByTagName("body")[0].appendChild(b)}}function fnStripeUL(){if(fnGetElement("id-Youth-VWP1")==null||fnGetElement("id-Youth-VWP1")=="undefined"){return false}var c=fnGetElement("id-Youth-VWP1");var b=c.getElementsByTagName("LI");var f="even";for(i=0;i<b.length;i++){if(f=="odd"){f="even"}else{if(f=="even"){b[i].style.backgroundColor="#00a0c6";b[i].style.color="#FFFFFF";f="odd"}}}var g=fnGetElement("id-Youth-VWP2");var e=g.getElementsByTagName("LI");var a="even";for(i=0;i<e.length;i++){if(a=="odd"){a="even"}else{if(a=="even"){e[i].style.backgroundColor="#00a0c6";e[i].style.color="#FFFFFF";a="odd"}}}}function fnSetupToggle(){if(fnGetElement("id-Youth-Qualifications")==null||fnGetElement("id-Youth-Qualifications")=="undefined"){return false}var g=fnGetElement("id-Youth-Qualifications");var b=g.getElementsByTagName("li");g.style.listStyle="none";g.style.margin="0px";g.style.padding="0px";switch(document.getElementsByTagName("body")[0].getAttribute("className")){case null:var c="class";break;case"":var c="className";break;default:var c="className";break}for(var f=0;f<b.length;f++){if(b[f].getAttribute(c)=="cls-TopLevel"){b[f].firstChild.style.cursor="pointer";b[f].firstChild.style.display="block";b[f].firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")';b[f].firstChild.style.backgroundPosition="left top";b[f].firstChild.style.backgroundRepeat="repeat-x";b[f].firstChild.style.backgroundColor="#a9deec";b[f].firstChild.style.color="#FFFFFF";b[f].firstChild.style.width="95%";b[f].firstChild.style.borderBottom="1px solid #FFFFFF";b[f].firstChild.style.padding="3px";b[f].firstChild.onmouseover=function(){this.style.color="#FFFFFF";this.style.backgroundImage='url("/Assets/Images/Youth-LinkBg_O.jpg")';this.style.backgroundPosition="left top";this.style.backgroundRepeat="repeat-x";this.style.backgroundColor="#a9deec"};b[f].firstChild.onmouseout=function(){this.style.color="#FFFFFF";this.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")';this.style.backgroundPosition="left top";this.style.backgroundRepeat="repeat-x";this.style.backgroundColor="#a9deec"};b[f].onclick=function(){fnToggleContent(this)};var a=b[f].getElementsByTagName("ul");for(var e=0;e<a.length;e++){a[e].style.display="none"}}}}function fnToggleContent(b){switch(document.getElementsByTagName("body")[0].getAttribute("className")){case null:var a="class";break;case"":var a="className";break;default:var a="className";break}var c=b.firstChild.nextSibling.nextSibling;if(c.style.display=="none"){c.style.display="block";c.style.marginTop="1em";c.style.marginBottom="1em";c.style.listStyle="none";c.style.marginLeft="5px";c.style.paddingLeft="5px";b.firstChild.onmouseover=null;b.firstChild.onmouseout=null;b.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg_O.jpg")';b.firstChild.style.backgroundPosition="left top";b.firstChild.style.backgroundRepeat="repeat-x";b.firstChild.style.backgroundColor="#a9deec"}else{c.style.display="none";b.firstChild.onmouseover=function(){b.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg_O.jpg")';b.firstChild.style.backgroundPosition="left top";b.firstChild.style.backgroundRepeat="repeat-x";b.firstChild.style.backgroundColor="#a9deec"};b.firstChild.onmouseout=function(){b.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")';b.firstChild.style.backgroundPosition="left top";b.firstChild.style.backgroundRepeat="repeat-x";b.firstChild.style.backgroundColor="#a9deec"}}}function fnDownloads(){if(fnGetElement("id-Downloads")==null||fnGetElement("id-Downloads")=="undefined"){return false}var e=fnGetElement("id-Downloads");var g=fnGetElement("id-Downloads1");var f=fnGetElement("id-Downloads2");var l=e.getElementsByTagName("li");var k=g.getElementsByTagName("li");var h=f.getElementsByTagName("li");e.style.listStyle="none";e.style.margin="0px";e.style.padding="0px";g.style.listStyle="none";g.style.margin="0px";g.style.padding="0px";f.style.listStyle="none";f.style.margin="0px";f.style.padding="0px";switch(document.getElementsByTagName("body")[0].getAttribute("className")){case null:var m="class";break;case"":var m="className";break;default:var m="className";break}for(var c=0;c<l.length;c++){if(l[c].getAttribute(m)=="cls-TopLevel"){l[c].firstChild.style.cursor="pointer";l[c].firstChild.style.display="block";l[c].firstChild.style.backgroundColor="#01a0c7";l[c].firstChild.style.color="#FFFFFF";l[c].firstChild.style.width="95%";l[c].firstChild.style.border="1px solid #4ebdd7";l[c].firstChild.style.marginBottom="1px";l[c].firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")';l[c].firstChild.style.backgroundRepeat="repeat-x";l[c].firstChild.style.padding="3px";l[c].firstChild.onmouseover=function(){this.style.backgroundColor="#9ad9e9";this.style.backgroundImage='url("/Assets/Images/Youth-LinkBg_O.jpg")'};l[c].firstChild.onmouseout=function(){this.style.backgroundColor="#01a0c7";this.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")'};l[c].onclick=function(){fnDownloadToggle(this,1)};var a=l[c].getElementsByTagName("ul");for(var b=0;b<a.length;b++){a[b].style.display="none";a[b].style.listStyle="disc"}}}for(var c=0;c<k.length;c++){if(k[c].getAttribute(m)=="cls-TopLevel"){k[c].firstChild.style.cursor="pointer";k[c].firstChild.style.display="block";k[c].firstChild.style.backgroundColor="#ff8000";k[c].firstChild.style.color="#FFFFFF";k[c].firstChild.style.width="95%";k[c].firstChild.style.border="1px solid #ff8000";k[c].firstChild.style.marginBottom="1px";k[c].firstChild.style.backgroundImage='url("/Assets/Images/Adult-LinkBg.jpg")';k[c].firstChild.style.backgroundRepeat="repeat-x";k[c].firstChild.style.padding="3px";k[c].firstChild.onmouseover=function(){this.style.backgroundColor="#fdcc8a";this.style.backgroundImage='url("/Assets/Images/Adult-LinkBg_O.jpg")'};k[c].firstChild.onmouseout=function(){this.style.backgroundColor="#ff8000";this.style.backgroundImage='url("/Assets/Images/Adult-LinkBg.jpg")'};k[c].onclick=function(){fnDownloadToggle(this,2)};var a=k[c].getElementsByTagName("ul");for(var b=0;b<a.length;b++){a[b].style.display="none";a[b].style.listStyle="disc"}}}for(var c=0;c<h.length;c++){if(h[c].getAttribute(m)=="cls-TopLevel"){h[c].firstChild.style.cursor="pointer";h[c].firstChild.style.display="block";h[c].firstChild.style.backgroundColor="#918f90";h[c].firstChild.style.color="#FFFFFF";h[c].firstChild.style.width="95%";h[c].firstChild.style.border="1px solid #918f90";h[c].firstChild.style.marginBottom="1px";h[c].firstChild.style.backgroundImage='url("/Assets/Images/Additional-LinkBg.jpg")';h[c].firstChild.style.backgroundRepeat="repeat-x";h[c].firstChild.style.padding="3px";h[c].firstChild.onmouseover=function(){this.style.backgroundColor="#d3d2d3";this.style.backgroundImage='url("/Assets/Images/Additional-LinkBg_O.jpg")'};h[c].firstChild.onmouseout=function(){this.style.backgroundColor="#918f90";this.style.backgroundImage='url("/Assets/Images/Additional-LinkBg.jpg")'};h[c].onclick=function(){fnDownloadToggle(this,3)};var a=h[c].getElementsByTagName("ul");for(var b=0;b<a.length;b++){a[b].style.display="none";a[b].style.listStyle="disc"}}}}function fnDownloadToggle(c,b){switch(document.getElementsByTagName("body")[0].getAttribute("className")){case null:var a="class";break;case"":var a="className";break;default:var a="className";break}var f=c.firstChild.nextSibling.nextSibling;if(f.style.display=="none"){f.style.display="block";f.style.marginTop="1em";f.style.marginBottom="1.5em";c.firstChild.onmouseover=null;c.firstChild.onmouseout=null;if(b==1){c.firstChild.style.backgroundColor="#aadeec";c.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg_O.jpg")'}else{if(b==2){c.firstChild.style.backgroundColor="#fdd1ac";c.firstChild.style.backgroundImage='url("/Assets/Images/Adult-LinkBg_O.jpg")'}else{if(b==3){c.firstChild.style.backgroundColor="#d1d1d1";c.firstChild.style.backgroundImage='url("/Assets/Images/Additional-LinkBg_O.jpg")'}}}}else{f.style.display="none";if(b==1){c.firstChild.onmouseover=function(){c.firstChild.style.backgroundColor="#aadeec";c.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg_O.jpg")'};c.firstChild.onmouseout=function(){c.firstChild.style.backgroundColor="#01a0c7";c.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")'};c.firstChild.style.color="#FFFFFF";c.firstChild.style.backgroundColor="#01a0c7";c.firstChild.style.backgroundImage='url("/Assets/Images/Youth-LinkBg.jpg")'}else{if(b==2){c.firstChild.onmouseover=function(){c.firstChild.style.backgroundColor="#fdd1ac";c.firstChild.style.backgroundImage='url("/Assets/Images/Adult-LinkBg_O.jpg")'};c.firstChild.onmouseout=function(){c.firstChild.style.backgroundColor="#ff8000";c.firstChild.style.backgroundImage='url("/Assets/Images/Adult-LinkBg.jpg")'};c.firstChild.style.color="#FFFFFF";c.firstChild.style.backgroundColor="#ff8000";c.firstChild.style.backgroundImage='url("/Assets/Images/Adult-LinkBg.jpg")'}else{if(b==3){c.firstChild.onmouseover=function(){c.firstChild.style.backgroundColor="#d3d2d3";c.firstChild.style.backgroundImage='url("/Assets/Images/Additional-LinkBg_O.jpg")'};c.firstChild.onmouseout=function(){c.firstChild.style.backgroundColor="#918f90";c.firstChild.style.backgroundImage='url("/Assets/Images/Additional-LinkBg.jpg")'};c.firstChild.style.color="#FFFFFF";c.firstChild.style.backgroundColor="#918f90";c.firstChild.style.backgroundImage='url("/Assets/Images/Additional-LinkBg.jpg")'}}}}}function toggle(e){var b=["mapWestcliff","mapCanvey","mapGrays","mapSouthendA","mapSouthendB","mapLeigh"];for(var c=0,a=b.length;c<a;c++){document.getElementById(b[c]).style.display="none"}document.getElementById(e).style.display="block"};