<!--


self.name="main";

browsver = parseInt(navigator.appVersion);

IE = document.all;
NS4 = document.layers;
NS6 = document.getElementById;

if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;
 }


function NSfixfunk() {
  if (innerWidth != origWidth || innerHeight != origHeight) 
 location.reload();
  }

if (NS4) onResize = NSfixfunk;


if (NS4)
{
document.write("<link rel='stylesheet' href='/academicresources/lib/hplayout_ns.css'>");
}


var ro_tutors_n = "images_hp/nav_ro_tutors_n.gif";
var ro_academics_n = "images_hp/nav_ro_academics_n.gif";
var ro_about_n = "images_hp/nav_ro_about_n.gif";
var ro_resources_n = "images_hp/nav_ro_resources_n.gif";

var ro_tutors_u = "images_hp/nav_ro_tutors_u.gif";
var ro_academics_u = "images_hp/nav_ro_academics_u.gif";
var ro_about_u = "images_hp/nav_ro_about_u.gif";
var ro_resources_u = "images_hp/nav_ro_resources_u.gif";

var nullimg_nullpos = "images/spacer.gif";


tutors_u = new Image(), tutors_u.src = ro_tutors_u;
academics_u = new Image(), academics_u.src = ro_academics_u;
about_u = new Image(), about_u.src = ro_about_u;
resources_u = new Image(), resources_u.src = ro_resources_u;



function swapfunk(seethis,atpos)
{
  if (browsver < 3) {}
else if (NS6 && !IE){
theimage = document.getElementById(seethis);
var samepos = eval(seethis + "_" + atpos);
document.getElementById('ro_tutors').src = ro_tutors_n;
document.getElementById('ro_academics').src = ro_academics_n;
document.getElementById('ro_about').src = ro_about_n;
document.getElementById('ro_resources').src = ro_resources_n;

theimage.src=samepos;

}

else {
theimage = eval("document." + seethis);
 samepos = eval(seethis + "_" + atpos);
document.ro_tutors.src = ro_tutors_n;
document.ro_academics.src = ro_academics_n;
document.ro_about.src = ro_about_n;
document.ro_resources.src = ro_resources_n;

theimage.src=samepos;
    }
}





function showhidefunk(showthis)
{
  if (document.all || document.getElementById)
{
thislayer = document.getElementById? document.getElementById(showthis):document.all(showthis);

thatlayer = document.getElementById? document.getElementById('tutorsnav'):document.all('tutorsnav');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('academicsnav'):document.all('academicsnav');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('aboutnav'):document.all('aboutnav');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('resourcesnav'):document.all('resourcesnav');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('barcdiv2'):document.all('barcdiv2');
thatlayer.style.visibility='hidden';

thislayer.style.visibility='visible';
}

 else if (document.layers)
{thislayer = eval("document." + showthis);
document.tutorsnav.visibility="hidden";
document.academicsnav.visibility="hidden";
document.aboutnav.visibility="hidden";
document.resourcesnav.visibility="hidden";
document.barcdiv2.visibility="hidden";

thislayer.visibility="visible";
}

}


//-->