<!--
var agent = navigator.userAgent;
var MSfive =  (agent.indexOf("MSIE 5") != -1);
var handy = 'pointer';
if (MSfive) {
   handy='hand';
   }  

function highlight(el) {
// el.style.backgroundColor='#d6bbbb';
   el.style.backgroundImage='url(images/buttonbghi.gif)';
   el.style.color='#000000';
   el.style.cursor=handy;
}

function lowlight(el) {
// el.style.backgroundColor='#ffffff';
   el.style.backgroundImage='';
   el.style.color='#999999';
}

function subhighlight(el) {
// el.style.backgroundColor='#d6bbbb';
   el.style.backgroundImage='url(images/buttonbghi.gif)';
   el.style.color='#000000';
   el.style.cursor=handy;
}

function sublowlight(el) {
// el.style.backgroundColor=menuColor;
   el.style.backgroundImage='';
   el.style.color='#999999';
   }

function buthighlight(el) {
// el.style.backgroundColor='#d6bbbb';
   el.style.backgroundImage='url(images/buttonbghi.gif)';
   el.style.cursor=handy;
   el.style.color='#000000';
}

function butlowlight(el) {
// el.style.backgroundColor=menuColor;
   el.style.backgroundImage='';
   el.style.color='#999999';
   }

function mhighlight(el) {
//    el.style.backgroundColor=menuColor;
   el.style.backgroundColor='#ffea93';
   el.style.cursor=handy;
   el.style.borderColor='#ffcc00';
}

function mlowlight(el) {
   el.style.backgroundColor='#ffffff';
   el.style.borderColor='#ffffff';
   }   
   
function omhighlight(el) {
   el.style.backgroundColor=menuColor;
   el.style.cursor=handy;
   el.style.borderColor='#cccccc';
}

function omlowlight(el) {
   el.style.backgroundColor='#ffffff';
   el.style.borderColor='#ffffff';
   }  

var selectedBullet = [];
var menuColor = "#eeeeee";
var currArea = 0;
var visible = 'visible';
var show = 'show';
var hidden = 'hidden';
var showing = 0;
var qu = String.fromCharCode(34);
var nav = navigator.appName;
var nver = navigator.appVersion;
var hasLayers = (document.layers) ? true : false;
var MSfiveplus =  (agent.indexOf("MSIE 5") != -1 || agent.indexOf("MSIE 6") != -1);
var NSsix = (nav.indexOf("Netscape") !=1 && parseInt(nver) >= 5);
var clearCount=0;
var y=131;
var x1=118;
var x2=x1+83;
var x3=x2+83;
var x4=x3+83;
var x5=x4+83;
var x6=x5+83;
var mWidth=150;
var allSelected=false;



preload=new Image()
preload.src='images/buttonbghi.gif';


preload2=new Image()
preload2.src='images/mbuttonbghi.gif';



//Menu 1

var mCode= '<table width="'+mWidth+'" cellspacing="0" cellpadding="0" border="0" bgcolor='+menuColor+' onmouseover="resetCount()" onmouseout="hidemenu(1)">';
mCode = mCode + '';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'chambers.asp\'">Home</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'welcome.asp\'">Welcome</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'news.asp\'">News</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'adrsuite.asp\'">ADR Suite</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'tour.asp\'">Tour</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'history.asp\'">History</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'about.asp\'">Working practices</td></tr>';
mCode = mCode + '';
mCode = mCode + '</table>';

if(hasLayers) document.write('<layer id="menu1" visibility="hide" position="absolute" top="'+(y+3)+'" left="'+(x1+1)+'">' + mCode + '</layer>');
if(MSfiveplus || NSsix) document.write('<div id="menu1" style="visibility:hidden; position:absolute; top:'+(y)+'; left:'+(x1)+';">' + mCode + '</div>');


//Menu 2

var mCode= '<table width="'+mWidth+'" cellspacing="0" cellpadding="0" border="0" bgcolor='+menuColor+' onmouseover="resetCount()" onmouseout="hidemenu(2)">';
mCode = mCode + '';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'praccomm.asp\'">Commercial</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'pracpers.asp\'">PI &amp; Medical</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'pracprop.asp\'">Property</td></tr>';
mCode = mCode + '';
mCode = mCode + '</table>';

if(hasLayers) document.write('<layer id="menu2" visibility="hide" position="absolute" top="'+(y+3)+'" left="'+(x2+1)+'">' + mCode + '</layer>');
if(MSfiveplus || NSsix) document.write('<div id="menu2" style="visibility:hidden; position:absolute; top:'+(y)+'; left:'+(x2)+';">' + mCode + '</div>');



//Menu 3

var mCode= '<table width="'+mWidth+'" cellspacing="0" cellpadding="0" border="0" bgcolor='+menuColor+' onmouseover="resetCount()" onmouseout="hidemenu(3)">';
mCode = mCode + '';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'members.asp\'">Members</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'members.asp?page=1\'">&nbsp;&nbsp;Commercial</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'members.asp?page=2\'">&nbsp;&nbsp;PI &amp; Medical</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'members.asp?page=3\'">&nbsp;&nbsp;Property</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'homerecr.asp\'">Recruitment</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'admin.asp\'">Administration</td></tr>';
mCode = mCode + '';
mCode = mCode + '</table>';

if(hasLayers) document.write('<layer id="menu3" visibility="hide" position="absolute" top="'+(y+3)+'" left="'+(x3+1)+'">' + mCode + '</layer>');
if(MSfiveplus || NSsix) document.write('<div id="menu3" style="visibility:hidden; position:absolute; top:'+(y)+'; left:'+(x3)+';">' + mCode + '</div>');



//Menu 4

var mCode= '<table width="'+mWidth+'" cellspacing="0" cellpadding="0" border="0" bgcolor='+menuColor+' onmouseover="resetCount()" onmouseout="hidemenu(4)">';
mCode = mCode + '';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'artifull.asp\'">Articles</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'articomm.asp\'">Commercial Bulletin</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'artirece.asp\'">Recent publications</td></tr>';
mCode = mCode + '';
mCode = mCode + '</table>';

if(hasLayers) document.write('<layer id="menu4" visibility="hide" position="absolute" top="'+(y+3)+'" left="'+(x4+1)+'">' + mCode + '</layer>');
if(MSfiveplus || NSsix) document.write('<div id="menu4" style="visibility:hidden; position:absolute; top:'+(y)+'; left:'+(x4)+';">' + mCode + '</div>');


//Menu 5

var mCode= '<table width="'+mWidth+'" cellspacing="0" cellpadding="0" border="0" bgcolor='+menuColor+' onmouseover="resetCount()" onmouseout="hidemenu(5)">';
mCode = mCode + '';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'links.asp?page=1\'">Legal resources</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'links.asp?page=2\'">Other useful links</td></tr>';
mCode = mCode + '';
mCode = mCode + '</table>';

if(hasLayers) document.write('<layer id="menu5" visibility="hide" position="absolute" top="'+(y+3)+'" left="'+(x5+1)+'">' + mCode + '</layer>');
if(MSfiveplus || NSsix) document.write('<div id="menu5" style="visibility:hidden; position:absolute; top:'+(y)+'; left:'+(x5)+';">' + mCode + '</div>');



//Menu 6

var mCode= '<table width="'+mWidth+'" cellspacing="0" cellpadding="0" border="0" bgcolor='+menuColor+' onmouseover="resetCount()" onmouseout="hidemenu(6)">';
mCode = mCode + '';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'contcont.asp\'">Contact details</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'contform.asp\'">Contact form</td></tr>';
mCode = mCode + '<tr height="20"><td valign="middle" class="menu" height="20" onmouseover="subhighlight(this)" onmouseout="sublowlight(this)" onclick="window.location=\'contmaps.asp\'">Getting to chambers</td></tr>';
mCode = mCode + '';
mCode = mCode + '</table>';

if(hasLayers) document.write('<layer id="menu6" visibility="hide" position="absolute" top="'+(y+3)+'" left="'+(x6+1)+'" STYLE="z-index: 2">' + mCode + '</layer>');
if(MSfiveplus || NSsix) document.write('<div id="menu6" style="visibility:hidden; position:absolute; top:'+(y)+'; left:'+(x6)+'; z-index: 2;">' + mCode + '</div>');



function setshowing(num) {
   currArea = num;
}


function showmenu(menu) {
   resetCount();
   if (showing!=0) {
      clearmenu(showing);
   }
   showing = menu;
      var domenu = 'menu' + menu;
      if (MSfiveplus)  {
         document.all[domenu].style.visibility = "visible";
      }
      if (NSsix)  {
         document.getElementById(domenu).style.visibility = "visible";
         }
      if (hasLayers)  {
         document.layers[domenu].visibility = "show";
         }
}

function initialise(menu) {
   shown = menu;
}

function hidemenu(menu) {
   temp="clearmenu("+menu+")";
   clearCount=setTimeout(temp,500);
}

function resetCount() {
   clearTimeout(clearCount);
}

function clearmenu(menu) {
      var domenu = 'menu' + menu;
      if (MSfiveplus)  {
         document.all[domenu].style.visibility = "hidden";     
      }
      if (NSsix)  {
         document.getElementById(domenu).style.visibility = "hidden";
         }
      if (hasLayers)  {
         document.layers[domenu].visibility = "hide";
         }
   showing = 0;
}

//-----------------------------------
//Swap bullet images and selections
//in member list pages
//-----------------------------------

function bulletswap(inits,fieldnum) {
   if (selectedBullet[fieldnum] != inits) {
      document.getElementById('bullet_'+fieldnum).src='images/bulltick.gif';
      document.getElementById('field_'+fieldnum).value=inits;
      selectedBullet[fieldnum]=inits;
   } else {
      document.getElementById('bullet_'+fieldnum).src='images/bullnotick.gif';
      document.getElementById('field_'+fieldnum).value='';
      selectedBullet[fieldnum]='';
   }
}  

function selectAll() {
   if (allSelected==false) {
      allSelected=true;
      document.getElementById('allSelector').src='images/bulltick.gif';
      var t=0;
      while (document.getElementById('field_'+t)) {
         document.getElementById('bullet_'+t).src='images/bulltick.gif';
         inits=document.getElementById('bullet_'+t).name;
         document.getElementById('field_'+t).value=inits;
         selectedBullet[t]=inits;
         t++;
      }
   } else {
      allSelected=false;
      document.getElementById('allSelector').src='images/bullnotick.gif';
      var t=0;
      while (document.getElementById('field_'+t)) {
         document.getElementById('bullet_'+t).src='images/bullnotick.gif';
         document.getElementById('field_'+t).value='';
         selectedBullet[t]='';
         t++;
      }
   }
}
// -->
