<!--
/*---------other functions---------*/
function CountLevel(s){    
    var temp = s.split('/');
    var counter = parseInt(temp.length)-1;
    return counter;
}
/*******************************************************************************************************/

var g_fileloc = window.location.toString();
g_fileloc = g_fileloc.substr(g_fileloc.indexOf(':')+3);
var level = CountLevel(g_fileloc);
//-- exception for my local project----
if (g_fileloc.substr(0,g_fileloc.indexOf('/')) == 'localhost')
   level = parseInt(level) - 1;    

var global_file_loc = '';

if (parseInt(level) ==3)
    global_file_loc = '../';

var cur_file = g_fileloc.substr(g_fileloc.lastIndexOf('/')+1);

document.write('<TABLE WIDTH=767 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('<TR>');
document.write('  <TD valign=top>');
document.write('  <a href="' + global_file_loc + 'default.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'topHome\',\'\',\'' + global_file_loc + 'images/topbanner_01_ov.jpg\',1)"><IMG name="topHome" SRC="' + global_file_loc + 'images/topbanner_01.jpg" WIDTH=381 HEIGHT=87 ALT="ABC Education Resources" border=0></a>');
document.write('  </TD>');
document.write('	<TD valign=top><IMG SRC="' + global_file_loc + 'images/topbanner_02.jpg" WIDTH=205 HEIGHT=87></TD>');
document.write('	<TD COLSPAN=4 valign=top><a href="http://www.rigby.com.au"><IMG SRC="' + global_file_loc + 'images/topbanner_03.jpg" WIDTH=181 HEIGHT=87 border=0></a></TD>');
document.write('</TR>');
document.write('</TABLE>');
document.write('<TABLE WIDTH=767 BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.write('<TR>');
document.write('	<TD><img src="' + global_file_loc + 'images/topbanner_09.jpg" name="topHelp" width="60" height="25" border="0"><IMG SRC="' + global_file_loc + 'images/topbanner_04.jpg" WIDTH=381 HEIGHT=25></TD>');

if (cur_file == "about.htm")
		document.write('	<TD><img src="' + global_file_loc + 'images/topbanner_05_ov.jpg" width="205" height="25" border="0" alt="About ABC Education Resources"></TD>');
else
		document.write('	<TD><a href="' + global_file_loc + 'about.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'topAbout\',\'\',\'' + global_file_loc + 'images/topbanner_05_ov.jpg\',1)"><img src="' + global_file_loc + 'images/topbanner_05.jpg" name="topAbout" width="205" height="25" border="0" alt="About ABC Education Resources"></a></TD>');

document.write('	<TD><IMG SRC="' + global_file_loc + 'images/topbanner_06.jpg" WIDTH=22 HEIGHT=25 ALT=""></TD>');

if (cur_file == "contact.htm")
		document.write('	<TD><img src="' + global_file_loc + 'images/topbanner_07_ov.jpg" width="70" height="25" border="0" alt="Contact Us"></TD>');
else
		document.write('	<TD><a href="' + global_file_loc + 'contact.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'topContact\',\'\',\'' + global_file_loc + 'images/topbanner_07_ov.jpg\',1)"><img src="' + global_file_loc + 'images/topbanner_07.jpg" name="topContact" width="70" height="25" border="0" alt="Contact Us"></a></TD>');

document.write('	<TD><IMG SRC="' + global_file_loc + 'images/topbanner_08.jpg" WIDTH=24 HEIGHT=25 ALT=""></TD>');
document.write('	<TD><img src="' + global_file_loc + 'images/topbanner_09.jpg" name="topHelp" width="5" height="25" border="0"></TD>');


document.write('</TR>');
document.write('</TABLE>');




-->