var menu_lnk = new Array()
var menu_txt = new Array()

var main_lnk = new Array("coaching.html","coachingholidays/","selfcoach.html","values.html","coachingsupport.html","resources.html","aboutus.html")

//Coaching
menu_txt[0] = new Array("What is Coaching?","What can I expect?","The Value of Coaching","What is NLP?","Engaging a coach","Ongoing Coaching","Guarantee","Coaching Fees")
menu_lnk[0] = new Array("whatiscoaching.html","expectfromcoaching.html","valuefromcoaching.html","nlp.html","engagingcoaches.html","ongoingcoaching.html","guarantee.html","coachingfees.html")

//coaching holidays
menu_txt[1] = new Array("Your Holiday Schedule","Your Holiday Activities","Your Holiday Environment","Coaches Holiday","Become an Associate NLP Coach","Holiday Prices","Directions & FAQ's","Terms & Conditions")
menu_lnk[1] = new Array("coachingholidays/schedule.html","coachingholidays/activities.html","coachingholidays/dumgal.html","coachingholidays/busmans.html","coachingholidays/holidayassociate.html","coachingholidays/holiday_prices.html","coachingholidays/directions.html","coachingholidays/terms.html")

//Self Coaching
menu_txt[2] = new Array("Daily Habits","Tools","Courses","Attitude","About You","The Balance Wheel","Be your Own Coach","Coaching Holidays")
menu_lnk[2] = new Array("habits.html","tools.html","coachingcourses.html","usefulattitudes.html","aboutyou.html","balance.html","owncoach.html","coachingholidays/")

//Values
menu_txt[3] = new Array("Values for Coaching","ICF Competences","ICF Philosophy","Our Values","Quality Assurance")
menu_lnk[3] = new Array("coachingvalues.html","icfcompetences.html","icfdefinitions.html","myvalues.html","quality.html")

//Support Area
menu_txt[4] = new Array("Log in","Coaching Forms","FAQ's","The Balance Wheel","Fees","Feedback","Be your Own Coach")
menu_lnk[4] = new Array("login.html","coachingforms.html","coachingfaq.html","balance.html","coachingfees.html","feedback.html","owncoach.html")

//Resource Area
menu_txt[5] = new Array("Links Directory","Tools","Courses","Books","For NLP Coaches","For Coaches","Link to Us","Other Business","Other Links")
menu_lnk[5] = new Array("linkbox/linkdirectory.html","tools.html","coachingcourses.html","coachingbooks.html","nlpcoaches.html","coachingring.html","links.html","otherbiz.html","linkbox/linkdirectory.html")

//About Us
menu_txt[6] = new Array("Alix Martin","Clare Bannister","Living & Working in Scotland","Join Us for a Coaching Holiday","Our Mission","References","Associates")
menu_lnk[6] = new Array("aboutalix.html","aboutclare.html","scotland.html","coachingholidays/","mission.html","references.html","ourassociates.html")

var onat_it = 7;
var width_it =0;
var blt_it =false;
var z=0;

function shw_it(wha)
{
if(blt_it==false)return;

var too_it = 0;
if(wha>=0 && wha<=7 && !this.argg1)too_it=wha;else 
if(this.argg1>=0 && this.argg1<=7)too_it=this.argg1; else alert('there was an error in the page, please report this');

if(onat_it==wha)return;
onat_it=too_it;
if(too_it>=7)document.getElementById('back_up').style.width='0'; else document.getElementById('back_up').style.width='100%';
for(a=0;a<=6;a++)
  {
    if(a==too_it && document.getElementById('tab_'+a).style.visibility=='hidden')
      document.getElementById('tab_'+a).style.visibility='visible';
    if(a!=too_it && document.getElementById('tab_'+a).style.visibility=='visible')
      document.getElementById('tab_'+a).style.visibility='hidden';
  }
//check table width
if(width_it != document.getElementById('main_tab').offsetWidth)figure_it();
}


function d_min(wha,whaa)
{window.location.href='http://www.coachingnotes.com/'+menu_lnk[wha][whaa];}

//main table
function o_min(wha)
{window.location.href='http://www.coachingnotes.com/'+main_lnk[wha];}

//drop down tables
function s_min(wha)
{

window.location.href=menu_lnk[this.arg1][this.arg2];
}

function figure_it()
{
if(blt_it==false)build_it();

var top_it  = document.getElementById('main_tab').offsetTop+document.getElementById('pannel').offsetHeight+5;
var left_it = document.getElementById('main_tab').offsetLeft;
width_it= document.getElementById('main_tab').offsetWidth;
var devide = new Array(12,19,15,11,15,16,12)


var sect_w = width_it/100;
var buff_w = left_it;
for(a=0;a<=6;a++)
 {
  document.getElementById('tab_'+a).style.position='absolute';
  document.getElementById('tabb_'+a).style.width=sect_w*devide[a]+3;
  document.getElementById('tab_'+a).style.width=sect_w*devide[a]+3;
  document.getElementById('tab_'+a).style.top=top_it;
  document.getElementById('tab_'+a).style.left=buff_w;
  document.getElementById('tab_'+a).style.visibility='hidden';
   buff_w+=sect_w*devide[a]-.5;
 }


//check with again (for NS) z error check too//

if(width_it != document.getElementById('main_tab').offsetWidth && z<7)
 {z++; figure_it();}
if(z>7)alert("Warning, the auto size script can not complete its actions, please report this error");
z=0;
}


function build_it()
{
var tabb = "";
 for(a=0;a<=6;a++)
  {
 var tav = document.createElement("div");
     tav.style.zIndex=4;
     tav.setAttribute('id','tab_'+a);
     tav.style.backgroundColor='white';
      document.body.appendChild(tav);

 var tabb = document.createElement("TABLE");
     tabb.style.zIndex=4;
      tav.appendChild(tabb);
     tabb.setAttribute('id','tabb_'+a);
     tabb.setAttribute('border','1');

 var thead = document.createElement('THEAD');
    tabb.appendChild(thead);

 var tbody = document.createElement('TBODY');
    tabb.appendChild(tbody);

    for(b=0;b<menu_txt[a].length;b++)
     {
 var tr = document.createElement('TR');
    thead.appendChild(tr);
     tr.style.backgroundColor='#003366';

 var td = document.createElement('TD');
     td.setAttribute('id','tb_'+a+'_'+b)
     td.arg1=a;
     td.arg2=b;
     td.onclick=s_min;
     tr.appendChild(td);

 var lnk = document.createElement('A');
     td.appendChild(lnk);
     lnk.setAttribute('href','javascript:d_min('+a+','+b+')');
     lnk.className='main_lnk';

 var txt = document.createTextNode(menu_txt[a][b]);
     lnk.appendChild(txt);
     }
   }
//create the blank image (for role up)

 var imge = document.createElement('img');
     imge.setAttribute('src','http://www.coachingnotes.com/blnk.gif');
     imge.setAttribute('id','back_up');
     imge.argg1=7;
     imge.style.position='absolute';
     imge.style.top=0;
     imge.style.left=0;
     imge.style.height='100%';
     imge.style.width=0;
     imge.style.zIndex=2;
     imge.onmouseover=shw_it;
      document.body.appendChild(imge);

blt_it=true;
}



<!-- Web Site:  http://www.dynamicdrive.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var menuskin = "skin1"; // skin0, or skin1
var display_url = 0; // Show URLs in status bar?
function showmenuie5() {
var rightedge = document.body.clientWidth-event.clientX;
var bottomedge = document.body.clientHeight-event.clientY;
if (rightedge < ie5menu.offsetWidth)
ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetWidth;
else
ie5menu.style.left = document.body.scrollLeft + event.clientX;
if (bottomedge < ie5menu.offsetHeight)
ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetHeight;
else
ie5menu.style.top = document.body.scrollTop + event.clientY;
ie5menu.style.visibility = "visible";
return false;
}
function hidemenuie5() {
ie5menu.style.visibility = "hidden";
}
function highlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "highlight";
event.srcElement.style.color = "white";
if (display_url)
window.status = event.srcElement.url;
   }
}
function lowlightie5() {
if (event.srcElement.className == "menuitems") {
event.srcElement.style.backgroundColor = "";
event.srcElement.style.color = "black";
window.status = "";
   }
}
function jumptoie5() {
if (event.srcElement.className == "menuitems") {
if (event.srcElement.getAttribute("target") != null)
window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
else
window.location = event.srcElement.url;
   }
}
//  End -->
///THE LIVETALK THING~~~~~~~

function initialize()
{

if(!document.getElementById("staticbr"))
  {
//div to hold all link info~~
    var tmpObj = document.createElement("div");
        tmpObj.setAttribute('id','staticbr');
        tmpObj.setAttribute('align','center');
        tmpObj.style.position='absolute';
        tmpObj.style.left=0;
        tmpObj.style.top=0;
        tmpObj.style.visibility='hidden';
//create the image~~ & that image link + combine
    var tmpSrc = document.createElement("img");
        tmpSrc.setAttribute('src','http://server.iad.liveperson.net/hc/7069300/?cmd=repstate&site=7069300&imageUrl=http://www.coachingnotes.com/images&ver=1');
        tmpSrc.setAttribute('border','0');
        tmpSrc.setAttribute('width','156');
        tmpSrc.setAttribute('height','128');
    var tmpHrf = document.createElement("a");
        tmpHrf.href='http://server.iad.liveperson.net/hc/7069300/?cmd=file&file=visitorWantsToChat&site=7069300&byhref=1';
        tmpHrf.setAttribute('target','chat7069300');
        tmpHrf.onclick=liveper
        tmpHrf.appendChild(tmpSrc);

//add both to div & insert div into page~~
        tmpObj.appendChild(tmpHrf);
    var brratt = document.createElement("br");
        tmpObj.appendChild(brratt);
         document.body.appendChild(tmpObj);

  }
 comboobj=document.getElementById("staticbr");

  windowwidth=window.innerWidth? window.innerWidth-30 : document.body.clientWidth-20
  windowheight=window.innerHeight? window.innerHeight : document.body.clientHeight
  
combowidth=comboobj.offsetWidth;
comboheight=comboobj.offsetHeight+5;
setInterval("staticit_dom()",50);
comboobj.style.visibility="visible";
}

function liveper()
{javascript:window.open('http://server.iad.liveperson.net/hc/7069300/?cmd=file&file=visitorWantsToChat&site=7069300&referrer='+document.location,'chat7069300','width=472,height=320');return false;}

function staticit_dom(){
var pageoffsetx=document.all? document.body.scrollLeft : window.pageXOffset
var pageoffsety=document.all? document.body.scrollTop : window.pageYOffset

comboobj.style.left=pageoffsetx+windowwidth-combowidth
comboobj.style.top=pageoffsety+windowheight-comboheight
}

var HelpLoadMe;
if(HelpLoadMe==true){initialize(); figure_it(); alight_wheel(); set_visi('a');}


//end