function lib_bwcheck(){
    this.ver=navigator.appVersion; this.agent=navigator.userAgent
    this.dom=document.getElementById?1:0
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
    this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
    this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
    this.ie4=(document.all && !this.dom)?1:0;
    this.ie=this.ie4||this.ie5||this.ie6
    this.mac=this.agent.indexOf("Mac")>-1
    this.opera5=this.agent.indexOf("Opera 5")>-1
    this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4=(document.layers && !this.dom)?1:0;
    this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
    return this
}
var bw=new lib_bwcheck()

var mDebugging=2

oCMenu=new makeCoolMenu("oCMenu")
oCMenu.useframes=0
oCMenu.frame="frmMain"

oCMenu.useclick=0

oCMenu.useNS4links=1  

oCMenu.NS4padding=2 

oCMenu.checkselect=0

oCMenu.offlineUrl="/var/www/html/"
oCMenu.onlineUrl="http://www.belabraziv.ru"

oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1
oCMenu.wait=1000

//Background bar properties
oCMenu.usebar=0
oCMenu.barcolor="#ececec"
oCMenu.barwidth="menu"
oCMenu.barheight="menu"
oCMenu.barx=0
oCMenu.bary=0
oCMenu.barinheritborder=0

//Placement properties
oCMenu.rows=1
oCMenu.fromleft=0
oCMenu.fromtop=90
oCMenu.pxbetween=30

oCMenu.menuplacement=new Array('5','118','231','344','457','570') 

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array()
oCMenu.level[0].width=100
oCMenu.level[0].height=20
oCMenu.level[0].bgcoloroff="#a6caff"
oCMenu.level[0].bgcoloron="#ececec"
oCMenu.level[0].textcolor="#1d1578"
oCMenu.level[0].hovercolor=""
oCMenu.level[0].style="padding:2px; font-family:arial,helvetica; font-size:12px; text-align: center; font-weight:bold"
oCMenu.level[0].border=1
oCMenu.level[0].bordercolor="#768fb5"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=2
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=0
oCMenu.level[0].clippx=0
oCMenu.level[0].cliptim=0
oCMenu.level[0].filter=0

oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new Array()
oCMenu.level[1].width=162
oCMenu.level[1].height=22
oCMenu.level[1].bgcoloroff="#bdecff"
oCMenu.level[1].textcolor="#1d1578"
oCMenu.level[1].hovercolor="#990000"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:12px"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#768fb5"

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array()
oCMenu.level[2].width=155
oCMenu.level[2].height=20
oCMenu.level[2].bgcoloroff="#e6efff"
oCMenu.level[2].hovercolor="#990000"
oCMenu.level[2].style="padding:2px; font-family:arial,helvetica; font-size:12px"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#768fb5"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"

oCMenu.makeMenu('top0','','About us','/eng/history.shtml','','110')
    
oCMenu.makeMenu('top1','','Products','/eng/prod.html','','110')
    oCMenu.makeMenu('sub10','top1','Choice and application','','','130')
     oCMenu.makeMenu('sub110','sub10','Abrasive rolls','/eng/prod_shk.shtml','',220)
     oCMenu.makeMenu('sub111','sub10','Endless abrasive belts','/eng/prod_shl.shtml','',220)
     oCMenu.makeMenu('sub112','sub10','Flap wheels','/eng/prod_krug.shtml','',220)
     oCMenu.makeMenu('sub113','sub10','Flap discs','/eng/prod_krugtorc.shtml','',220)
     oCMenu.makeMenu('sub114','sub10','Abrasive discs, cylinders and cones','/eng/prod_disk.shtml','',220)
     oCMenu.makeMenu('sub115','sub10','Sheets','/eng/prod_list.shtml','',220)
//     oCMenu.makeMenu('sub115','sub10','товары народного потребления','/eng/prod_tnp.shtml','',220)
    oCMenu.makeMenu('sub11','top1','Your questions','/faq/index_eng.php?page=0','','130')
    
//oCMenu.makeMenu('top2','','Sales','','','110')
//    oCMenu.makeMenu('sub21','top2','Prices','','','110')
//     oCMenu.makeMenu('sub210','sub21','Coated abrasives','/eng/price_shk.shtml','',230)
//     oCMenu.makeMenu('sub211','sub21','Abrasive rolls, discs, endless belts, etc','/eng/price_izd.shtml','',230)
//     oCMenu.makeMenu('sub212','sub21','Abrasive rolls, state standard','/eng/price_bobgost.shtml','',230)
//     oCMenu.makeMenu('sub213','sub21','Endless belts, state standard','/eng/price_shlgost.shtml','',230)
//     oCMenu.makeMenu('sub214','sub21','Endless belts, technical condition','/eng/price_shltu.shtml','',230)
//     oCMenu.makeMenu('sub215','sub21','Endless belts for manual sanders','/eng/price_shlm.shtml','',230)
//     oCMenu.makeMenu('sub216','sub21','Flap wheels, state standard','/eng/price_kruggost.shtml','',230)
//     oCMenu.makeMenu('sub217','sub21','Flap wheels, technical condition','/eng/price_krugtu.shtml','',230)
//     oCMenu.makeMenu('sub218','sub21','Abrasive discs','/eng/price_disk.shtml','',230)
//     oCMenu.makeMenu('sub219','sub21','Fiber discs','/eng/price_fibrdisk.shtml','',230)
//     oCMenu.makeMenu('sub220','sub21','Household goods','/eng/price_tnp.shtml','',230)
//    oCMenu.makeMenu('sub22','top2','Discounts','/eng/discounts.shtml','','110')
    
oCMenu.makeMenu('top3','','Contact us','/eng/contact.shtml','','110')
//    oCMenu.makeMenu('sub30','top3','Details','/eng/rekvizit.html','','125')
//    oCMenu.makeMenu('sub31','top3','Схемы проезда','index1.shtml','','125')
//    oCMenu.makeMenu('sub32','top3','Гостевая книга','/cgi-bin/gb/guest.pl','','125')
    
//oCMenu.makeMenu('top5','','Партнерство','','','110')
//    oCMenu.makeMenu('sub50','top5','Наши партнеры','index1.shtml','','160')
//    oCMenu.makeMenu('sub51','top5','Предложение партнерства','index1.shtml','','160')
//    oCMenu.makeMenu('sub52','top5','Обмен ссылками','index1.shtml','','160')
    
oCMenu.makeMenu('top5','','Info','','','110')
    oCMenu.makeMenu('sub054','top5','All news','/eng/news.php','','135')
            
        
//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()

