
function AnchorPosition_getPageOffsetLeft(el)
{
	var ol=el.offsetLeft;
	while ((el=el.offsetParent) != null)
	{
		ol += el.offsetLeft;
	}
	return ol;
}


function ShowMenu(MenuNum)
{
	var xpos;
	var o;
	
	switch(MenuNum)
	{
		case 1:
		o=document.getElementById("learning_programmes");
		xpos = AnchorPosition_getPageOffsetLeft(o);
		MM_showMenu(window.window.mm_menu_1000000001,xpos,81);
		break;
		
		case 2:
		o=document.getElementById("clients");
		xpos = AnchorPosition_getPageOffsetLeft(o);		
		MM_showMenu(window.mm_menu_1000000002,xpos,81);
		break;
		
		case 3:
		o=document.getElementById("success_stories");
		xpos = AnchorPosition_getPageOffsetLeft(o);
		MM_showMenu(window.window.mm_menu_1000000003,xpos,81);
		break;
		
		case 4:
		o=document.getElementById("resources");
		xpos = AnchorPosition_getPageOffsetLeft(o);
		MM_showMenu(window.window.mm_menu_1000000004,xpos,81);
		break;
		
		case 5:
		o=document.getElementById("products");
		xpos = AnchorPosition_getPageOffsetLeft(o);
		MM_showMenu(window.window.mm_menu_1000000005,xpos,81);
		break;
		
		case 6:
		o=document.getElementById("about_us");
		xpos = AnchorPosition_getPageOffsetLeft(o);
		MM_showMenu(window.window.mm_menu_1000000006,xpos,81);
		break;
	}
	
	
}


function DisplayHeader(strPath)
{
	document.write('  <tr>');
	document.write('    <td height="30" bgcolor="#FF6600"><img src="' + strPath + '/images2/transparent.gif" width="5" height="30"></td>');
	document.write('    <td height="30" align="right" valign="bottom" bgcolor="#FF6600">');
	document.write('      <table border="0" cellspacing="0" cellpadding="0">');
	document.write('        <tr>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/topSquareSelected.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a href="' + strPath + '/index.htm" class="topButs">Home</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a href="' + strPath + '/consultncy/consultancy.htm" class="topButs">Consultancy</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="learning_programmes" href="' + strPath + '/learning_programmes/business.htm" onMouseOver="ShowMenu(1);" onClick="return false;" class="topButs">Learning Programmes </a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="clients" href="' + strPath + '/clients/business.htm" onMouseOver="ShowMenu(2);" onClick="return false;" class="topButs">Clients</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="success_stories" href="' + strPath + '/success_stories/' + strPath + '/story1.htm" onMouseOver="ShowMenu(3);" onClick="return false;" class="topButs">Success Stories</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="resources" href="' + strPath + '/resources/resources.htm" onMouseOver="ShowMenu(4);" onClick="return false;" class="topButs">Resources</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="products" href="' + strPath + '/products/index.htm" onMouseOver="ShowMenu(5);" onClick="return false;" class="topButs">Products</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="about_us" href="' + strPath + '/about_us/our_people.htm" onMouseOver="ShowMenu(6);" onClick="return false;" class="topButs">About Us</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a href="' + strPath + '/contact_us/contact_us.htm" class="topButs">Contact Us</a>&nbsp;</td>');
	document.write('        </tr>');
	document.write('      </table></td>');
	document.write('  </tr>');
}

function DisplayHeaderCU(strPath)
{
	document.write('  <tr>');
	document.write('    <td height="30" bgcolor="#FF6600"><img src="' + strPath + '/images2/transparent.gif" width="5" height="30"></td>');
	document.write('    <td height="30" align="right" valign="bottom" bgcolor="#FF6600">');
	document.write('      <table border="0" cellspacing="0" cellpadding="0">');
	document.write('        <tr>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/topSquareSelected.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a href="' + strPath + '/index.htm" class="topButs">Home</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a href="' + strPath + '/consultncy/consultancy.htm" class="topButs">Consultancy</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="learning_programmes" href="' + strPath + '/learning_programmes/business.htm" onMouseOver="ShowMenu(1);" onClick="return false;" class="topButs">Learning Programmes </a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="clients" href="' + strPath + '/clients/business.htm" onMouseOver="ShowMenu(2);" onClick="return false;" class="topButs">Clients</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="success_stories" href="' + strPath + '/success_stories/' + strPath + '/story1.htm" onMouseOver="ShowMenu(3);" onClick="return false;" class="topButs">Success Stories</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="resources" href="' + strPath + '/resources/resources.htm" onMouseOver="ShowMenu(4);" onClick="return false;" class="topButs">Resources</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="products" href="' + strPath + '/products/index.htm" onMouseOver="ShowMenu(5);" onClick="return false;" class="topButs">Products</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a id="about_us" href="' + strPath + '/about_us/our_people.htm" onMouseOver="ShowMenu(6);" onClick="return false;" class="topButs">About Us</a>&nbsp;</td>');
	document.write('          <td align="center" valign="bottom"><img src="' + strPath + '/images2/whiteSquare.gif" width="3" height="10" hspace="3"></td>');
	document.write('          <td><a href="' + strPath + '/contact_us/contact_us.htm" class="topButs">Contact Us</a>&nbsp;</td>');
	document.write('        </tr>');
	document.write('      </table></td>');
	document.write('  </tr>');
}

function mmLoadMenus(strPath)
{
  var backColour = "#FFF2EA";
  var backHighColour = "#FFF2EA";
  var TextColour = "#000000";
  var TextColourOver = "#FF6600";

  if (window.mm_menu_1000000001) return;

    window.mm_menu_1000000001 = new Menu("Learning Programmes",160,20,"Arial, Helvetica, sans-serif",12,TextColour,TextColourOver,backColour,backHighColour,"left","middle",5,0,1000,0,0,true,false,true,0,true,true);
    mm_menu_1000000001.addMenuItem("Business Programmes","window.open('" + strPath + "/learning_programmes/business.htm', '_self');");
    mm_menu_1000000001.addMenuItem("Academic Programmes","window.open('" + strPath + "/learning_programmes/academic.htm', '_self');");
     mm_menu_1000000001.fontWeight="normal";
     mm_menu_1000000001.hideOnMouseOut=false;
     mm_menu_1000000001.childMenuIcon=strPath + "/images2/menu/arrows.gif";
     mm_menu_1000000001.menuBorder=0;
     mm_menu_1000000001.menuLiteBgColor='#ffffff';
     mm_menu_1000000001.menuBorderBgColor='#ffffff';
     mm_menu_1000000001.bgColor='#FF6600';

    window.mm_menu_1000000002 = new Menu("Clients",120,20,"Arial, Helvetica, sans-serif",12,TextColour,TextColourOver,backColour,backHighColour,"left","middle",5,0,1000,0,0,true,false,true,0,true,true);
    mm_menu_1000000002.addMenuItem("Business Clients","window.open('" + strPath + "/clients/business.htm', '_self');");
    mm_menu_1000000002.addMenuItem("Academic Clients","window.open('" + strPath + "/clients/academic.htm', '_self');");
     mm_menu_1000000002.fontWeight="normal";
     mm_menu_1000000002.hideOnMouseOut=false;
     mm_menu_1000000002.childMenuIcon=strPath + "/images2/menu/arrows.gif";
     mm_menu_1000000002.menuBorder=0;
     mm_menu_1000000002.menuLiteBgColor='#ffffff';
     mm_menu_1000000002.menuBorderBgColor='#ffffff';
     mm_menu_1000000002.bgColor='#FF6600';

    window.mm_menu_1000000003 = new Menu("Success Stories",175,20,"Arial, Helvetica, sans-serif",12,TextColour,TextColourOver,backColour,backHighColour,"left","middle",5,0,1000,0,0,true,false,true,0,true,true);
    mm_menu_1000000003.addMenuItem("Diageo","window.open('" + strPath + "/success_stories/story1.htm', '_self','menubar=0,toolbar=0,statusbar=0,width=800,height=525');");
    mm_menu_1000000003.addMenuItem("KCC Health Care","window.open('" + strPath + "/success_stories/story2.htm', '_self','menubar=0,toolbar=0,statusbar=0,width=800,height=525');");
    mm_menu_1000000003.addMenuItem("Global Manufacturing Co.","window.open('" + strPath + "/success_stories/story3.htm', '_self','menubar=0,toolbar=0,statusbar=0,width=800,height=525');");
    mm_menu_1000000003.addMenuItem("Kimberly-Clark","window.open('" + strPath + "/success_stories/story4.htm', '_self','menubar=0,toolbar=0,statusbar=0,width=800,height=525');");
    mm_menu_1000000003.addMenuItem("Global Drinks Co.","window.open('" + strPath + "/success_stories/story5.htm', '_self','menubar=0,toolbar=0,statusbar=0,width=800,height=525');");
    mm_menu_1000000003.addMenuItem("Global Oil Co.","window.open('" + strPath + "/success_stories/story6.htm', '_self','menubar=0,toolbar=0,statusbar=0,width=800,height=525');");
     mm_menu_1000000003.fontWeight="normal";
     mm_menu_1000000003.hideOnMouseOut=false;
     mm_menu_1000000003.childMenuIcon=strPath + "/images2/menu/arrows.gif";
     mm_menu_1000000003.menuBorder=0;
     mm_menu_1000000003.menuLiteBgColor='#ffffff';
     mm_menu_1000000003.menuBorderBgColor='#ffffff';
     mm_menu_1000000003.bgColor='#FF6600';

    window.mm_menu_1000000004 = new Menu("Resources",130,20,"Arial, Helvetica, sans-serif",12,TextColour,TextColourOver,backColour,backHighColour,"left","middle",5,0,1000,0,0,true,false,true,0,true,true);
    mm_menu_1000000004.addMenuItem("Resources","window.open('" + strPath + "/resources/resources.htm', '_self');");
    mm_menu_1000000004.addMenuItem("Books","window.open('" + strPath + "/resources/books.htm', '_self');");
    mm_menu_1000000004.addMenuItem("Music","window.open('" + strPath + "/resources/music.htm', '_self');");
    mm_menu_1000000004.addMenuItem("Learning Template","window.open('" + strPath + "/resources/learning_template.htm', '_self');");
    mm_menu_1000000004.addMenuItem("Positive Posters","window.open('" + strPath + "/resources/positive_posters.htm', '_self');");
//    mm_menu_1000000004.addMenuItem("What's New","window.open('" + strPath + "/resources/whats_new.htm', '_self');");
     mm_menu_1000000004.fontWeight="normal";
     mm_menu_1000000004.hideOnMouseOut=false;
     mm_menu_1000000004.childMenuIcon=strPath + "/images2/menu/arrows.gif";
     mm_menu_1000000004.menuBorder=0;
     mm_menu_1000000004.menuLiteBgColor='#ffffff';
     mm_menu_1000000004.menuBorderBgColor='#ffffff';
     mm_menu_1000000004.bgColor='#FF6600';

    window.mm_menu_1000000005 = new Menu("Products",70,20,"Arial, Helvetica, sans-serif",12,TextColour,TextColourOver,backColour,backHighColour,"left","middle",5,0,1000,0,0,true,false,true,0,true,true);
    mm_menu_1000000005.addMenuItem("Products","window.open('" + strPath + "/products/index.htm', '_self');");
    mm_menu_1000000005.addMenuItem("Book","window.open('" + strPath + "/products/book_page.htm', '_self');");
    mm_menu_1000000005.addMenuItem("CD","window.open('" + strPath + "/products/CD_page.htm', '_self');");
     mm_menu_1000000005.fontWeight="normal";
     mm_menu_1000000005.hideOnMouseOut=false;
     mm_menu_1000000005.childMenuIcon=strPath + "/images2/menu/arrows.gif";
     mm_menu_1000000005.menuBorder=0;
     mm_menu_1000000005.menuLiteBgColor='#ffffff';
     mm_menu_1000000005.menuBorderBgColor='#ffffff';
     mm_menu_1000000005.bgColor='#FF6600';

    window.mm_menu_1000000006 = new Menu("About Us",130,20,"Arial, Helvetica, sans-serif",12,TextColour,TextColourOver,backColour,backHighColour,"left","middle",5,0,1000,0,0,true,false,true,0,true,true);
    mm_menu_1000000006.addMenuItem("Our People");
    mm_menu_1000000006.addMenuItem("&nbsp;&nbsp;&nbsp;&nbsp;Stretch Learning","window.open('" + strPath + "/about_us/our_people.htm', '_self');");
    mm_menu_1000000006.addMenuItem("&nbsp;&nbsp;&nbsp;&nbsp;Stretch Coaching","window.open('http://www.stretchcoaching.com', '_self');");
    mm_menu_1000000006.addMenuItem("Learning Partners","window.open('" + strPath + "/about_us/learning_partners.htm', '_self');");
     mm_menu_1000000006.fontWeight="normal";
     mm_menu_1000000006.hideOnMouseOut=false;
     mm_menu_1000000006.childMenuIcon=strPath + "/images2/menu/arrows.gif";
     mm_menu_1000000006.menuBorder=0;
     mm_menu_1000000006.menuLiteBgColor='#ffffff';
     mm_menu_1000000006.menuBorderBgColor='#ffffff';
     mm_menu_1000000006.bgColor='#FF6600';

  mm_menu_1000000001.writeMenus();
} // mmLoadMenus()
