//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
BlueSteam=new makeCM("BlueSteam") //Making the menu object. Argument: menuname

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

BlueSteam.rows=1
BlueSteam.menuPlacement=0
                                                             
BlueSteam.offlineRoot="file:///C|/Program Files/Apache Group/Apache2/htdocs/bluesteam/"
BlueSteam.onlineRoot="http://www.bluesteam.net/" 
BlueSteam.resizeCheck=1
BlueSteam.wait=300
BlueSteam.fillImg="cm_fill.gif"
BlueSteam.zIndex=0

//Background bar properties
BlueSteam.useBar=1
BlueSteam.barWidth="menu"
BlueSteam.barHeight="menu"
BlueSteam.barClass="clBar"
BlueSteam.barX="menu"
BlueSteam.barY="menu"
BlueSteam.barBorderX=0
BlueSteam.barBorderY=0
BlueSteam.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
BlueSteam.level[0]=new cm_makeLevel() //Add this for each new level
BlueSteam.level[0].width=147
BlueSteam.level[0].height=18
BlueSteam.level[0].regClass="clLevel0"
BlueSteam.level[0].overClass="clLevel0over"
BlueSteam.level[0].borderX=0
BlueSteam.level[0].borderY=0
BlueSteam.level[0].borderClass="clLevel0border"
BlueSteam.level[0].offsetX=0
BlueSteam.level[0].offsetY=0
BlueSteam.level[0].arrow=0
BlueSteam.level[0].arrowWidth=0
BlueSteam.level[0].arrowHeight=0
BlueSteam.level[0].rows=0
BlueSteam.level[0].align="bottom"
BlueSteam.level[0].roundBorder=1
BlueSteam.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"

BlueSteam.level[1]=new cm_makeLevel() //Add this for each new level
BlueSteam.level[1].borderX=0
BlueSteam.level[1].borderY=0
BlueSteam.level[1].offsetX=-10
BlueSteam.level[1].offsetY=0
BlueSteam.level[1].arrow="images/menu_arrow.gif?"
BlueSteam.level[1].arrowWidth=11
BlueSteam.level[1].arrowHeight=9
BlueSteam.level[1].rows=0
BlueSteam.level[1].align="right"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
BlueSteam.makeMenu('top0','','&nbsp;Home','http://www.bluesteam.net/','','','','images/buttons/btnhome.gif','images/buttons/btnhomeover.gif')

BlueSteam.makeMenu('top1','','&nbsp;Products','','','','','images/buttons/btnproducts.gif','images/buttons/btnproductsover.gif')
	BlueSteam.makeMenu('sub10','top1','Hosting Packages','packages.html')
	BlueSteam.makeMenu('sub11','top1','Buy Now!!','https://admin.bluesteam.net/signup.php')
	
BlueSteam.makeMenu('top2','','&nbsp;Support','','','','','images/buttons/btnsupport.gif','images/buttons/btnsupportover.gif')
  BlueSteam.makeMenu('sub20','top2','Log a ticket','https://admin.bluesteam.net/index.php?frmClientID=0&fuse=support&view=ViewSubmitTicketForm&public=1')
  BlueSteam.makeMenu('sub21','top2','cPanel Manuals','http://www.cpanel.net/docs/cpanel/','_blank')
  BlueSteam.makeMenu('sub23','top2','Knowledge Base')
  	BlueSteam.makeMenu('sub220','sub23','Getting Started','kb/kb_main.html')
  	BlueSteam.makeMenu('sub221','sub23','Billing','kb/kb_billing.html')
  	BlueSteam.makeMenu('sub222','sub23','Domains & DNS\'s','kb/kb_domainsdns.html')
  	BlueSteam.makeMenu('sub223','sub23','cPanel','kb/kb_cpanel.html')
  	BlueSteam.makeMenu('sub224','sub23','FTP','kb/kb_ftp.html')
  	BlueSteam.makeMenu('sub225','sub23','Email','kb/kb_email.html')
  	BlueSteam.makeMenu('sub226','sub23','FrontPage','kb/kb_frontpage.html')
  	BlueSteam.makeMenu('sub227','sub23','CGI & Perl','kb/kb_cgiperl.html')
  	BlueSteam.makeMenu('sub228','sub23','PHP & MySQL','kb/kb_phpmysql.html')

BlueSteam.makeMenu('top3','','&nbsp;Information','','','','','images/buttons/btninformation.gif','images/buttons/btninformationover.gif')
	BlueSteam.makeMenu('sub30','top3','About BlueSteam','about.html')
	BlueSteam.makeMenu('sub31','top3','AUP','aup.html')
	BlueSteam.makeMenu('sub32','top3','Services Agreement','services.html')
	BlueSteam.makeMenu('sub33','top3','UCE / SPAM Policy','uce_spam.html')
	BlueSteam.makeMenu('sub34','top3','Privacy Policy','privacy.html')
	BlueSteam.makeMenu('sub35','top3','CGI Abuse Policy','cgi.html')
  BlueSteam.makeMenu('sub36','top3','Our Guarentee','guarentee.html')
	
BlueSteam.makeMenu('top4','','&nbsp;Contact Us','https://server27.sslserver2.net/~blue5/contact.html','','','','images/buttons/btncontactus.gif','images/buttons/btncontactusover.gif')
	
BlueSteam.construct()