// JavaScript Document
<!--

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// image preloader

menu01 = new Image();
menu01.src ='../images/pgfx/tab_nav_01_on.gif'

menu02 = new Image();
menu02.src = '../images/pgfx/tab_nav_02_on.gif'

menu03 = new Image();
menu03.src = '../images/pgfx/tab_nav_03_on.gif'

menu04 = new Image();
menu04.src = '../images/pgfx/tab_nav_04_on.gif'

menu05 = new Image();
menu05.src = '../images/pgfx/tab_nav_05_on.gif'

menu06 = new Image();
menu06.src = '../images/pgfx/tab_nav_01_off.gif'

menu07 = new Image();
menu07.src = '../images/pgfx/tab_nav_02_off.gif'

menu08 = new Image();
menu08.src = '../images/pgfx/tab_nav_03_off.gif'

menu09 = new Image();
menu09.src = '../images/pgfx/tab_nav_04_off.gif'

menu10 = new Image();
menu10.src = '../images/pgfx/tab_nav_05_off.gif'

// swap menu images per page

function checkloc(){
// Weekend Schools
//if(document.location.href.indexOf('/index.asp?dir=108&Page=weekend+schools') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=88&Page=ages+3+to+6') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=89&Page=ages+7+to+18') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=91&Page=times+and+locations') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=91') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=115&Page=teachers') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=111&Page=performances') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=110&Page=certificates') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=114&Page=uniform') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=107&Page=fees') != -1){
//document.Image52.src="../images/pgfx/tab_nav_01_off.gif";
//}





// Holiday Schemes
//if(document.location.href.indexOf('/index.asp?dir=90&Page=holiday+schemes') != -1){
//document.Image53.src="../images/pgfx/tab_nav_02_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=118&Page=times+and+locations') != -1){
//document.Image53.src="../images/pgfx/tab_nav_02_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=117&Page=activities') != -1){
//document.Image53.src="../images/pgfx/tab_nav_02_off.gif";
//}

//if(document.location.href.indexOf('/index.asp?dir=116&Page=shows') != -1){
//document.Image53.src="../images/pgfx/tab_nav_02_off.gif";
//}




// Youth THeatre
//if(document.location.href.indexOf('/index.asp?dir=119&Page=youth+theatre') != -1){
//document.Image55.src="../images/pgfx/tab_nav_03_off.gif";
//}
// How to book 
if(document.location.href.indexOf('/index.asp?dir=92&Page=how+to+book') != -1){
document.Image56.src="../images/pgfx/tab_nav_04_off.gif";
}

if(document.location.href.indexOf('/index.asp?dir=92') != -1){
document.Image56.src="../images/pgfx/tab_nav_04_off.gif";
}

// Contact US 
if(document.location.href.indexOf('/index.asp?dir=55&Page=contact+us') != -1){
document.Image57.src="../images/pgfx/tab_nav_05_off.gif";
}

if(document.location.href.indexOf('/index.asp?dir=55') != -1){
document.Image57.src="../images/pgfx/tab_nav_05_off.gif";
}
}

function popup(article) {
	window.open('schools.asp?d=no&loc=' + article, "print", "location=0,menubar=1,resizable=1,scrollbars=1,status=1,height=400,width=630");
}

//-->