//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();

var oM=new makeCM("oM")
oM.pxBetween =0
//oM.fromTop=171
//oM.fromLeft=0

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


oM.menuPlacement="left"
oM.wait=600
oM.fillImg="/images/spacer.gif"
oM.zIndex=2000 
oM.resizeCheck=1 

oM.onlineRoot=""
oM.offlineRoot=""

oM.rows=1

//Background bar properties
oM.useBar=0
oM.barWidth="100%" 
oM.barHeight="menu"
oM.barX=0
oM.barY="menu"
oM.barClass="clBar" 
oM.barBorderX=0
oM.barBorderY=2
oM.barBorderClass="clB3"


//Level properties
//Syntax for fast creation (advanced users only)
//oM.level[1]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)

oM.level[0]=new cm_makeLevel()
oM.level[0].width=100
oM.level[0].height=27
oM.level[0].regClass="clT" 
oM.level[0].overClass="clTover"  
oM.level[0].borderX=0
oM.level[0].borderY=0
oM.level[0].borderClass="clB2" 
oM.level[0].rows=0
oM.level[0].align="bottom"
oM.level[0].offsetX=12
oM.level[0].offsetY=0
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0


oM.level[1]=new cm_makeLevel()
oM.level[1].width=180
oM.level[1].height=30
oM.level[1].regClass="clS" 
oM.level[1].overClass="clSover" 
oM.level[1].borderX=1
oM.level[1].borderY=1
oM.level[1].borderClass="clB1"
oM.level[1].align="top"
oM.level[1].rows=0
oM.level[1].arrow=0
oM.level[1].align="right"
oM.level[1].offsetX=-80
oM.level[1].offsetY=5
oM.level[1].arrowWidth=0
oM.level[1].arrowHeight=0

oM.level[2]=new cm_makeLevel()
oM.level[2].width=180
oM.level[2].height=30
oM.level[2].regClass="clS" 
oM.level[2].overClass="clSover" 
oM.level[2].borderX=1
oM.level[2].borderY=1
oM.level[2].borderClass="clB1"
oM.level[2].align="top"
oM.level[2].rows=1
oM.level[2].arrow="/images/spacer.gif"
oM.level[2].arrowWidth=0
oM.level[2].arrowHeight=0


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


imgPath = "http://www.absolutelysafe.com/cutup/images/";

oM.makeMenu('top0','','','index.html','','68','27',imgPath+'absafe_web_02.gif',imgPath+'absafe_web_02_roll.gif');
oM.makeMenu('top1','','','#','','226','27',imgPath+'absafe_web_03_sub.gif',imgPath+'absafe_web_03_sub.gif');
oM.makeMenu('top2','','','#','','77','27',imgPath+'absafe_web_04.gif',imgPath+'absafe_web_04_roll.gif');
	oM.makeMenu('sub20','top2','Synopsis','synopsis.html');
	oM.makeMenu('sub21','top2','Meet the Characters','characters.html');
	oM.makeMenu('sub22','top2','Meet the Director','director.html');
	oM.makeMenu('sub23','top2','Credits ','credits.html');
	oM.makeMenu('sub24','top2','Funders','funders.html');
	oM.makeMenu('sub25','top2','Trailer','trailer.html');
	oM.makeMenu('sub26','top2','Buy the Film - Individuals','buy_individuals.html');
	oM.makeMenu('sub27','top2','Buy the Film - Educators','buy_educators.html');
	oM.makeMenu('sub28','top2','Contact Us','contact.html'); 

oM.makeMenu('top3','','','#','','165','27',imgPath+'absafe_web_05.gif',imgPath+'absafe_web_05_roll.gif');
	oM.makeMenu('sub30','top3','What is the Controversy?','controversy.html');  
	oM.makeMenu('sub31','top3','FDA Regulation','fdaregulation.html');   
	oM.makeMenu('sub32','top3','The Data Debate','datadebate.html');   
	oM.makeMenu('sub33','top3','Platinum Salt Theory','platinumsalttheory.html'); 
	oM.makeMenu('sub34','top3','Pregnancy and Breastfeeding','pregnancy.html'); 
	oM.makeMenu('sub35','top3','Silicone vs. Saline','siliconvssaline.html');  

oM.makeMenu('top4','','','#','','98','27',imgPath+'absafe_web_06.gif',imgPath+'absafe_web_06_roll.gif');
	oM.makeMenu('sub40','top4','Who Gets Implants?','whogetsimplants.html'); 
	oM.makeMenu('sub41','top4','Informed Choices','informedchoices.html');   
	oM.makeMenu('sub42','top4','Losing a Breast','losingabreast.html');  
	oM.makeMenu('sub43','top4','Media’s Power','mediaspower.html'); 
	oM.makeMenu('sub44','top4','Self-Esteem','selfesteem.html'); 
	
oM.makeMenu('top5','','','#','','101','27',imgPath+'absafe_web_07.gif',imgPath+'absafe_web_07_roll.gif');
	oM.makeMenu('sub50','top5','Informed Consent Campaign','informedconsent.html');    
	oM.makeMenu('sub51','top5','Tell A Friend','tellafriend.html');    
	oM.makeMenu('sub52','top5','Redefine Beauty','redefinebeauty.html');   
	oM.makeMenu('sub53','top5','Talk Back','talkback.html');  
	oM.makeMenu('sub54','top5','Educational Outreach','outreach.html'); 

oM.makeMenu('top6','','','#','','65','27',imgPath+'absafe_web_08.gif',imgPath+'absafe_web_08_roll.gif');
	oM.makeMenu('sub60','top6','Carol’s Blog','http://www.absolutelysafe.blogspot.com');
	oM.makeMenu('sub61','top6','Screenings','screenings.html');    
	oM.makeMenu('sub62','top6','Airdates','airdates.html');    
	oM.makeMenu('sub63','top6','Reviews','reviews.html');     
	oM.makeMenu('sub64','top6','Buy the Film - Individuals','buy_individuals.html');
	oM.makeMenu('sub65','top6','Buy the Film - Educators','buy_educators.html');   
	
	//oM.makeMenu('sub00','top0','','company.html','','','','http://www.syzygy3.com/images/syzygy3_aboutdrop_01.gif','http://www.syzygy3.com/images/syzygy3_aboutdrop_01_roll.gif');
	//oM.makeMenu('sub01','top0','','principals.html','','','','http://www.syzygy3.com/images/syzygy3_aboutdrop_02.gif','http://www.syzygy3.com/images/syzygy3_aboutdrop_02_roll.gif');
	//oM.makeMenu('sub02','top0','','contact.html','','','','http://www.syzygy3.com/images/syzygy3_aboutdrop_03.gif','http://www.syzygy3.com/images/syzygy3_aboutdrop_03_roll.gif');	
	

oM.construct();
