//Extra code to find position:
function findPos2(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu2.pageX
    y = document.layers.layerMenu2.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu2"]:document.getElementById("divMenu2");
    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
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos2()

/*** 
This is the menu creation code.
**/

//Menu object creation
subNavMenu2=new makeCM("subNavMenu2"); //Making the menu object. Argument: menuname

//Menu properties   
subNavMenu2.pxBetween=0;

subNavMenu2.fromLeft=pos[0]
subNavMenu2.fromTop=pos[1]

//We also need to "re place" the menu on resize. So:
subNavMenu2.onresize="pos = findPos2(); subNavMenu2.fromLeft=pos[0]; subNavMenu2.fromTop=pos[1]"

subNavMenu2.rows=0; 
subNavMenu2.menuPlacement="left";
                                                             
subNavMenu2.offlineRoot="";
subNavMenu2.onlineRoot=""; 
subNavMenu2.resizeCheck=1; 
subNavMenu2.wait=500; 
subNavMenu2.zIndex=0;

//Level properties - ALL properties have to be spesified in level 0
subNavMenu2.level[0]=new cm_makeLevel(); //Add this for each new level
subNavMenu2.level[0].width=224;
subNavMenu2.level[0].height=27;
subNavMenu2.level[0].regClass="subNavLevel0";
subNavMenu2.level[0].overClass="subNavLevel0Over";
subNavMenu2.level[0].borderX=0;
subNavMenu2.level[0].borderY=0;
subNavMenu2.level[0].borderClass="subNavLevel0Border";
subNavMenu2.level[0].offsetX=1;
subNavMenu2.level[0].offsetY=0;
subNavMenu2.level[0].rows=0;
subNavMenu2.level[0].arrow=0;
subNavMenu2.level[0].arrowWidth=0;
subNavMenu2.level[0].arrowHeight=0;
subNavMenu2.level[0].align="bottom";


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
subNavMenu2.level[1]=new cm_makeLevel(); //Add this for each new level (adding one to the number)
subNavMenu2.level[1].width=222;
subNavMenu2.level[1].height=19;
subNavMenu2.level[1].regClass="subNavLevel1";
subNavMenu2.level[1].overClass="subNavLevel1Over";
subNavMenu2.level[1].borderX=2;
subNavMenu2.level[1].borderY=0;
subNavMenu2.level[1].align="right" 
subNavMenu2.level[1].offsetX=-(subNavMenu2.level[0].width-2)/2+20;
subNavMenu2.level[1].offsetY=0;
subNavMenu2.level[1].borderClass="subNavLevel1Border";


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

subNavMenu2.makeMenu('caseStudy', '', '', '', '', 224, 27, 'images/pixel.gif', 'images/pixel.gif', '', '' , '', '', '', '', "changeImages('sideCSBut', 'images/Casestudies_side-over.gif')", "changeImages('sideCSBut', 'images/Casestudies_side.gif')");
  subNavMenu2.makeMenu( 'csDiv0', 'caseStudy', '', '', '', 221, 1, 'images/pixel.gif', 'images/pixel.gif', '', '', '', '', true);
  subNavMenu2.makeMenu( 'csSub1', 'caseStudy', 'Health Care', 'cs_health_care.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub2', 'caseStudy', 'Legal', 'cs_legal.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub3', 'caseStudy', 'Manufacturing', 'cs_manufacturing.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub4', 'caseStudy', 'Mortgage', 'cs_mortgage.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub5', 'caseStudy', 'Government', 'cs_government.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub6', 'caseStudy', 'Pharmaceuticals', 'cs_pharma.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub7', 'caseStudy', 'Schools', 'cs_schools.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub8', 'caseStudy', 'Human Relations', 'cs_hr.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csSub9', 'caseStudy', 'Financial', 'cs_financial.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'csDiv2', 'caseStudy', '', '', '', 221, 2, 'images/pixel.gif', 'images/pixel.gif', '', '', '', '', true);

subNavMenu2.makeMenu('advantagesMenu', '', '', '', '', 224, 27, 'images/pixel.gif', 'images/pixel.gif', '', '' , '', '', '', '', "changeImages('sideAdvBut', 'images/Advantages_side-over.gif')", "changeImages('sideAdvBut', 'images/Advantages_side.gif')");
  subNavMenu2.makeMenu( 'adDiv0', 'advantagesMenu', '', '', '', 221, 1, 'images/pixel.gif', 'images/pixel.gif', '', '', '', '', true);
  subNavMenu2.makeMenu( 'adSub1', 'advantagesMenu', 'Customized Solutions', 'customized_solutions.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'adSub2', 'advantagesMenu', 'VFR', 'vfr.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'adSub3', 'advantagesMenu', 'Expert Technical Consulting', 'expert_technical_consulting.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'adSub4', 'advantagesMenu', 'Lowest Prices -<br>Satisfaction Gauranteed', 'lowest_price.htm', '', 221, 32);
  //subNavMenu2.makeMenu( 'adSub5', 'advantagesMenu', 'Satisfaction Guaranteed', 'lowest_price.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'adSub6', 'advantagesMenu', 'Testimonials', 'testimonials.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'adSub7', 'advantagesMenu', 'Free On-site Demo', 'demo.htm', '', 221, 0);
  subNavMenu2.makeMenu( 'adDiv2', 'advantagesMenu', '', '', '', 221, 2, 'images/pixel.gif', 'images/pixel.gif', '', '', '', '', true);

//Leave this line - it constructs the menu
subNavMenu2.construct();

