// Rollover code for IELTS Units
<!--
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_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 flvFTL1(){// v1.0
// Copyright 2003, Marja Ribbers (FlevOOware.nl)
var v1=arguments,v2,v3,v4,v5;
for (v3=0;v3<v1.length;v3++){
	v2=MM_findObj(v1[v3]);
if (v2)
{
	if (document.layers){v4=v2;v5="show";
	}
else 
{v4=v2.style;v5="visible";
}v4.visibility=(v4.visibility==v5)?"hidden":"visible";
}
}
}
//-->
// *************************
// ON Off layer
// *************************
function OnOffFB(whichItem)
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichItem );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichItem];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichItem];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
     vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
     vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
