<!--
/*---------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).toLowerCase();
document.write('<table width="900" height="116" BORDER="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('	<td rowspan="3"><a href="' + global_file_loc + 'default.aspx"><img src="' + global_file_loc + 'images/topnav_01.jpg" width="128" height="116" border="0" title="Pearson Professional Learning"></a></td>');
document.write('	<td rowspan="3"><img src="' + global_file_loc + 'images/topnav_02.jpg" width="259" height="116"></td>');
document.write('	<td colspan="6"><img src="' + global_file_loc + 'images/topnav_03.jpg" width="513" height="68"></td>');
document.write(' </tr>');
document.write(' <tr>');

if (cur_file == "about.htm")
  document.write('  <td><img src="' + global_file_loc + 'images/topnav_04_ov.jpg" name="about" title="About us" border="0"></td>');
else  
	document.write('  <td><a href="' + global_file_loc + 'about.htm" onMouseOver="MM_swapImage(\'about\',\'\',\'images/topnav_04_ov.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + global_file_loc + 'images/topnav_04.jpg" name="about" title="About us" border="0"></a></td>');

if (cur_file == "professional.htm")
	document.write('	<td><img src="' + global_file_loc + 'images/topnav_05_ov.jpg" name="profdev" title="Professional development" border="0"></td>');
else
  document.write('	<td><a href="' + global_file_loc + 'professional.htm" onMouseOver="MM_swapImage(\'profdev\',\'\',\'images/topnav_05_ov.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + global_file_loc + 'images/topnav_05.jpg" name="profdev" title="Professional development" border="0"></a></td>');

if (cur_file == "presenters.aspx")
  document.write('	<td><img src="' + global_file_loc + 'images/topnav_06_ov.jpg"  name="presenter" title="Presenters" border="0"></td>');
else
	document.write('	<td><a href="' + global_file_loc + 'presenters.aspx" onMouseOver="MM_swapImage(\'presenter\',\'\',\'images/topnav_06_ov.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + global_file_loc + 'images/topnav_06.jpg"  name="presenter" title="Presenters" border="0"></a></td>');

if (cur_file == "calendar.aspx")
	document.write('	<td><img src="' + global_file_loc + 'images/topnav_07_ov.jpg" name="calendar" title="Calendar" border="0"></td>');
else
  document.write('	<td><a href="' + global_file_loc + '' + global_file_loc + 'calendar.aspx" onMouseOver="MM_swapImage(\'calendar\',\'\',\'images/topnav_07_ov.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + global_file_loc + 'images/topnav_07.jpg" name="calendar" title="Click here to see calendar of events" border="0"></a></td>');

if (cur_file == "contact.htm")
  document.write('	<td><img src="' + global_file_loc + 'images/topnav_08_ov.jpg" name="contact" title="Contact us" border="0"></td>');
else
	document.write('	<td><a href="' + global_file_loc + 'contact.htm" onMouseOver="MM_swapImage(\'contact\',\'\',\'images/topnav_08_ov.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + global_file_loc + 'images/topnav_08.jpg" name="contact" title="Contact us" border="0"></a></td>');

if (cur_file != "default.aspx" && cur_file!='')
	document.write('  <td><a href="' + global_file_loc + 'default.aspx" onMouseOver="MM_swapImage(\'home\',\'\',\'images/topnav_09_ov.jpg\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + global_file_loc + 'images/topnav_09.jpg" name="home" title="Home" border="0"></a></td>');      	
else
  document.write('  <td><img src="' + global_file_loc + 'images/topnav_09_ov.jpg" name="home" title="Home" border="0"></td>');      	

document.write(' </tr>');
document.write(' <tr>');
document.write('	<td colspan="6"><img src="images/topnav.jpg" width="513" height="24"></td>');
document.write(' </tr>');
document.write(' </table>');

-->
