/******************* MENU NUMBER 2 - Products **********************************/

/***
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Extra code to find position:
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
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos()

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

//Menu properties
oCMenu2.pxBetween=0
//Using the cm_page object to place the menu ----
oCMenu2.fromLeft=pos[0]
oCMenu2.fromTop=pos[1]
//We also need to "re place" the menu on resize. So:
oCMenu2.onresize="pos = findPos(); oCMenu2.fromLeft=pos[0]; oCMenu2.fromTop=pos[1]"

oCMenu2.rows=0
oCMenu2.menuPlacement=0

oCMenu2.offlineRoot="file:///C|/Documents and Settings/customer/My Documents/My Web Sites/donorquest"
oCMenu2.onlineRoot=""
oCMenu2.resizeCheck=1
oCMenu2.wait=0
oCMenu2.fillImg="cm_fill.gif"
oCMenu2.zIndex=0

//Background bar properties
oCMenu2.useBar=0
oCMenu2.barWidth="menu"
oCMenu2.barHeight="menu"
oCMenu2.barClass="cl2Bar"
oCMenu2.barX="menu"
oCMenu2.barY="menu"
oCMenu2.barBorderX=0
oCMenu2.barBorderY=0
oCMenu2.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu2.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu2.level[0].width=170
oCMenu2.level[0].height=30
oCMenu2.level[0].regClass="cl2Level0"
oCMenu2.level[0].overClass="cl2Level0over"
oCMenu2.level[0].borderX=0
oCMenu2.level[0].borderY=1
oCMenu2.level[0].borderClass="cl2Level0border"
oCMenu2.level[0].offsetX=0
oCMenu2.level[0].offsetY=0
oCMenu2.level[0].rows=0
oCMenu2.level[0].arrow=0
oCMenu2.level[0].arrowWidth=0
oCMenu2.level[0].arrowHeight=0
oCMenu2.level[0].align="left"

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

oCMenu2.makeMenu('top1','','Screenshots','/screenshots.htm','')

oCMenu2.makeMenu('top2','','Web Demo Video','/WebDemo.htm','')

oCMenu2.makeMenu('top3','','Install Free Trial Version','/WebEvaluationInstall.htm','')

oCMenu2.makeMenu('top4','','Pricing','/pricing.htm')

oCMenu2.makeMenu('top5','','Evaluation Kit By Mail','/eval.htm')

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