<!-- 
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent; 
	x+=temp.offsetLeft;
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft + 1
    y+=el.offsetTop
  }
  //Returning the x and y as an array, iain-numbers below position absolute menu

function getInternetExplorerVersion() {

    var rv = -1; // Return value assumes failure.

    if (navigator.appName == 'Microsoft Internet Explorer') {

        var ua = navigator.userAgent;

        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");

        if (re.exec(ua) != null)

            rv = parseFloat(RegExp.$1);

    }

    return rv;

}

if (bw.moz) { y = y -1; x = x - 8; }
 var browser=navigator.appName; 
 var version = getInternetExplorerVersion();
  if ((browser=="Microsoft Internet Explorer") && (version>=8)){
	    return [x-10,y-11] <!-- for ie8 specific-->
  }else{
	   return [x-1,y-11]
  }

//return [258, 116];
}

pos = findPos() ;
		
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]
//We also need to "re place" the menu on resize. So:
oCMenu.onresize="pos = findPos();oCMenu.fromLeft=pos[0];oCMenu.fromTop=pos[1];"
 
//Menu properties   
oCMenu.pxBetween=1;
oCMenu.rows=1;
oCMenu.menuPlacement=0;                                                        
oCMenu.offlineRoot="/" ;
oCMenu.onlineRoot="";
oCMenu.resizeCheck=1;
oCMenu.wait=500;
oCMenu.fillImg="/images/menu/cm_fill.gif";
oCMenu.zIndex=0;
 
//Background bar properties
oCMenu.useBar=1;
oCMenu.barWidth=740;
oCMenu.barHeight=23;
oCMenu.barClass="clBar";
oCMenu.barX="menu";
oCMenu.barY="menu";
oCMenu.barBorderX=0;
oCMenu.barBorderY=0;
oCMenu.barBorderClass="";
 
//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel(); //Add this for each new level - offset - change this to align submenus
oCMenu.level[0].width=120;
oCMenu.level[0].height=23;
oCMenu.level[0].regClass="clLevel0";
oCMenu.level[0].overClass="clLevel0over";
oCMenu.level[0].borderX=1;
oCMenu.level[0].borderY=1;
oCMenu.level[0].borderClass="clLevel0border";
oCMenu.level[0].offsetX=-2;
oCMenu.level[0].offsetY=-2;
oCMenu.level[0].rows=0;
oCMenu.level[0].align="bottom";	// Alignment of child menu
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.4)";
//oCMenu.level[0].slidepx=10;
//oCMenu.level[0].slidetim=10;
 
oCMenu.level[1]=new cm_makeLevel(); //Add this for each new level
oCMenu.level[1].width=120;
oCMenu.level[1].height=20;
oCMenu.level[1].regClass="clLevel1";
oCMenu.level[1].overClass="clLevel1over";
oCMenu.level[1].borderClass="clLevel1border";
oCMenu.level[1].align="right";	// Alignment of child menu
oCMenu.level[1].offsetX=-20;
oCMenu.level[1].offsetY=-1;
oCMenu.level[1].arrow="/images/menu/menu_arrow.gif";
oCMenu.level[1].arrowWidth=5;
oCMenu.level[1].arrowHeight=5;

oCMenu.makeMenu('top1','','Home','/default.php','',91)

oCMenu.makeMenu('top2','','About Us','/about/default.php','',104)
  oCMenu.makeMenu('sub20','top2','The Team','/about/default.php#team','',140)
  oCMenu.makeMenu('sub21','top2','Henry Brookman Profile','/about/about_henry.php','',140)
  oCMenu.makeMenu('sub22','top2','News & Press Releases','/news/default.php','',140)
  oCMenu.makeMenu('sub23','top2','Our Fees','/about/fees.php','',140)

oCMenu.makeMenu('top3','','Areas of Law','/areas_of_law/default.php','',125)
  oCMenu.makeMenu('sub31','top3','Divorce','/areas_of_law/divorce.php','',154)
  oCMenu.makeMenu('sub30','top3','International Divorce','/areas_of_law/international_divorce.php','',154)
  oCMenu.makeMenu('sub34','top3','Fathers&rsquo; &amp; Mothers&rsquo; Rights','/areas_of_law/fathers_and_mothers_rights.php','',154)
  oCMenu.makeMenu('sub33','top3','Childrens Issues','/areas_of_law/children.php','',154)
  oCMenu.makeMenu('sub32','top3','Financial Settlements','/areas_of_law/finance_settle.php','',154)
  oCMenu.makeMenu('sub35','top3','International Marriages','/areas_of_law/int_marriage.php','',154)
  oCMenu.makeMenu('sub36','top3','International Abduction','/areas_of_law/int_abduction.php','',154)
  oCMenu.makeMenu('sub37','top3','International Property','/areas_of_law/int_property.php','',154)
  oCMenu.makeMenu('sub38','top3','Mediation','/areas_of_law/mediation.php','',154)
  oCMenu.makeMenu('sub39','top3','Separation','/areas_of_law/separation.php','',154)
  oCMenu.makeMenu('sub310','top3','Australian Law','/areas_of_law/aussie_law.php','',154)
  oCMenu.makeMenu('sub311','top3','Co-Habitation','/areas_of_law/cohab.php','',154)
  oCMenu.makeMenu('sub312','top3','Pensions','/areas_of_law/pensions.php','',154)
  oCMenu.makeMenu('sub313','top3','Spousal Maintenance','/areas_of_law/spousal_main.php','',154)
  oCMenu.makeMenu('sub314','top3','Pre-nuptial Contracts','/areas_of_law/prenup.php','',154)
  
oCMenu.makeMenu('top4','','Advice & Info','/advice/default.php','',138)
  oCMenu.makeMenu('sub40','top4','Finding a Divorce Lawyer','/advice/finding_lawyer.php','',148)
  oCMenu.makeMenu('sub41','top4','Scenarios','/advice/scenario_analysis_home.php','',148)
  oCMenu.makeMenu('sub42','top4','FAQs','/advice/faq.php','',148)
  
oCMenu.makeMenu('top5','','Client Comments','/client_comments/default.php','',155)  

oCMenu.makeMenu('top6','','Contact Us','/contact/default.php','',92) 
 
//Leave this line - it constructs the menu
oCMenu.construct();
//-->

