	function lib_bwcheck(){ //Browsercheck (needed)
	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.ie7
	this.mac=this.agent.indexOf("Mac")>-1
                     this.Firefox=this.agent.indexOf("Firefox")>-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.ie7 || this.dom)
	return this
}
var bw=new lib_bwcheck() //Making browsercheck object

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain"
oCMenu.useNS4links=1 	
oCMenu.checkselect=0
oCMenu.offlineUrl=""
oCMenu.onlineUrl=""


oCMenu.pagecheck=1
oCMenu.checkscroll=2
oCMenu.resizecheck=1 
oCMenu.wait=1000 

oCMenu.usebar=1 
oCMenu.barcolor="#DB8817" 
oCMenu.barwidth="100%" 
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary="menu"
oCMenu.barinheritborder=0 

oCMenu.rows=1
oCMenu.fromleft=200 
oCMenu.fromtop=80 
oCMenu.pxbetween=0

avail="100+((toppage.x2-180)/5)" 
oCMenu.menuplacement=new Array(40,160,avail+"*1.6",avail+"*2.5",avail+"*3.5",avail+"*4.8")

oCMenu.level[0]=new Array() 
oCMenu.level[0].width=110 
oCMenu.level[0].height=19 
oCMenu.level[0].bgcoloroff="transparent"
oCMenu.level[0].bgcoloron="transparent" 
oCMenu.level[0].textcolor="white"
oCMenu.level[0].hovercolor="white" 
oCMenu.level[0].style="font-family:arial,helvetica; font-size:12px; font-weight:bold"
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="arial,helvetica"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].NS4fontColor="white"
oCMenu.level[0].align="bottom" 

oCMenu.level[1]=new Array() 
oCMenu.level[1].width=145
oCMenu.level[1].height=22
oCMenu.level[1].bgcoloroff="#96BB00"
oCMenu.level[1].bgcoloron="#7D9D00"
oCMenu.level[1].textcolor="white"
oCMenu.level[1].hovercolor="white"
oCMenu.level[1].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#006699"
oCMenu.level[1].NS4font="arial,helvetica"
oCMenu.level[1].NS4fontSize="2"
oCMenu.level[1].NS4fontColor="black"

oCMenu.level[2]=new Array()
oCMenu.level[2].width=165
oCMenu.level[2].height=20
oCMenu.level[2].style="padding:2px; font-family:arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#7D9D00"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].NS4fontColor="black"
oCMenu.level[2].bgcoloroff="#0080D5"
oCMenu.level[2].bgcoloron="#005A94"
oCMenu.level[2].textcolor="white"
oCMenu.level[2].hovercolor="white"



oCMenu.makeMenu('top0','','&nbsp;Empresa','','')
	oCMenu.makeMenu('sub00','top0','La empresa','Empresa/laEmpresa/default.php')
//	oCMenu.makeMenu('sub01','top0','Su historia','Empresa/historia/default.php')
	oCMenu.makeMenu('sub01','top0','Clientes Actuales','Empresa/clientes/default.php')
//	oCMenu.makeMenu('sub02','top0','Misi?n','Empresa/mision/index.asp')
	oCMenu.makeMenu('sub02','top0','Ubicaci&oacute;n y Datos','Empresa/hubicacion/default.php')
//	oCMenu.makeMenu('sub04','top0','Prestaciones','Empresa/prestaciones/index.asp')
	oCMenu.makeMenu('sub03','top0','Horarios de trabajo','Empresa/Horario/default.php')

oCMenu.makeMenu('top1','','&nbsp;Departamentos','')
//archivos
	oCMenu.makeMenu('sub10','top1','Archivo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     >','departamentos/index.php?depid=1&dep=Archivo')
		oCMenu.makeMenu('sub100','sub10','Archiveros','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=1')
		oCMenu.makeMenu('sub101','sub10','Carpetas','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=2')
		oCMenu.makeMenu('sub102','sub10','Clasificaci&oacute;n','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=3')
		oCMenu.makeMenu('sub103','sub10','Encuadernaci&oacute;n','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=4')
		oCMenu.makeMenu('sub104','sub10','Folders','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=5')
		oCMenu.makeMenu('sub105','sub10','Folders Colgantes','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=6')
		oCMenu.makeMenu('sub106','sub10','Registradores','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=7')
		oCMenu.makeMenu('sub107','sub10','Tarjeteros','departamentos/categorias/index.php?depid=1&dep=Archivo&catid=8')

	oCMenu.makeMenu('sub11','top1','Art&iacute;culos de Escritorio&nbsp;&nbsp;     >','departamentos/index.php?depid=5&dep=escritorio')
		oCMenu.makeMenu('sub110','sub11','Clips y Sujetadores','departamentos/categorias/index.php?depid=5&dep=escritorio&catid=9')
		oCMenu.makeMenu('sub111','sub11','Charolas y Organizadores','departamentos/categorias/index.php?depid=5&dep=escritorio&catid=10')
		oCMenu.makeMenu('sub112','sub11','Engrapadoras','departamentos/categorias/index.php?depid=5&dep=escritorio&catid=11')
		oCMenu.makeMenu('sub113','sub11','Notas Autoadheribles','departamentos/categorias/index.php?depid=5&dep=escritorio&catid=12')
		oCMenu.makeMenu('sub114','sub11','Perforadoras','departamentos/categorias/index.php?depid=5&dep=escritorio&catid=13')
		oCMenu.makeMenu('sub115','sub11','Varios','departamentos/categorias/index.php?depid=5&dep=escritorio&catid=14')

	oCMenu.makeMenu('sub12','top1',' Art&iacute;culos de Escritura &nbsp;&nbsp;  >','departamentos/index.php?depid=6&dep=escritura')
		oCMenu.makeMenu('sub120','sub12','Boligrafos','departamentos/categorias/index.php?depid=6&dep=escritura&catid=15')
		oCMenu.makeMenu('sub121','sub12','Correctores','departamentos/categorias/index.php?depid=6&dep=escritura&catid=16')
		oCMenu.makeMenu('sub122','sub12','Gomas y Borradores','departamentos/categorias/index.php?depid=6&dep=escritura&catid=17')
		oCMenu.makeMenu('sub123','sub12','L&aacute;pices y Lapiceros','departamentos/categorias/index.php?depid=6&dep=escritura&catid=19')
		oCMenu.makeMenu('sub124','sub12','Marcadores','departamentos/categorias/index.php?depid=6&dep=escritura&catid=20')
		oCMenu.makeMenu('sub125','sub12','Plumones','departamentos/categorias/index.php?depid=6&dep=escritura&catid=21')
		oCMenu.makeMenu('sub126','sub12','Resaltadores','departamentos/categorias/index.php?depid=6&dep=escritura&catid=22')

	oCMenu.makeMenu('sub13','top1','Art&iacute;culos de Oficina &nbsp; &nbsp; &nbsp;  >','departamentos/index.php?depid=8&dep=Aoficina')
		oCMenu.makeMenu('sub130','sub13','Cestos de Basura','departamentos/categorias/index.php?depid=8&dep=Aoficina&catid=24')
		oCMenu.makeMenu('sub131','sub13','Guillotinas','departamentos/categorias/index.php?depid=8&dep=Aoficina&catid=25')
		oCMenu.makeMenu('sub132','sub13','M&aacute;quinas de Escribir','departamentos/categorias/index.php?depid=8&dep=Aoficina&catid=26')
		oCMenu.makeMenu('sub133','sub13','Pilas','departamentos/categorias/index.php?depid=8&dep=Aoficina&catid=27')
		oCMenu.makeMenu('sub134','sub13','Pizarrones y Rotafolios','departamentos/categorias/index.php?depid=8&dep=Aoficina&catid=28')

	oCMenu.makeMenu('sub14','top1','Art&iacute;culos de Papeler&iacute;a &nbsp;  >','departamentos/index.php?depid=9&dep=Apapeleria')
		oCMenu.makeMenu('sub140','sub14','Cintas Adhesivas','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=29')
		oCMenu.makeMenu('sub141','sub14','Cuadernos y Libretas','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=30')
		oCMenu.makeMenu('sub142','sub14','Etiquetas','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=31')
		oCMenu.makeMenu('sub143','sub14','Pegamentos','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=32')
		oCMenu.makeMenu('sub144','sub14','Sellos, Foliadores y Cojines','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=33')
		oCMenu.makeMenu('sub145','sub14','Tijeras y Navajas','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=34')
		oCMenu.makeMenu('sub146','sub14','Varios','departamentos/categorias/index.php?depid=9&dep=Apapeleria&catid=35')

	oCMenu.makeMenu('sub15','top1','Audio Visual &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     >','departamentos/index.php?depid=2&dep=audioV')
		oCMenu.makeMenu('sub150','sub15','Pantallas y Retroproyectores','departamentos/categorias/index.php?depid=2&dep=audioV&catid=36')
		oCMenu.makeMenu('sub151','sub15','Papel y Acetatos','departamentos/categorias/index.php?depid=2&dep=audioV&catid=37')

	oCMenu.makeMenu('sub16','top1','Cafeter&iacute;a &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     >','departamentos/index.php?depid=3&dep=cafe')
		oCMenu.makeMenu('sub160','sub16','Bebidas','departamentos/categorias/index.php?depid=3&dep=cafe&catid=47')
		oCMenu.makeMenu('sub161','sub16','Caf&eacute; y t&eacute;','departamentos/categorias/index.php?depid=3&dep=cafe&catid=48')
		oCMenu.makeMenu('sub163','sub16','Desechables','departamentos/categorias/index.php?depid=3&dep=cafe&catid=49')
		oCMenu.makeMenu('sub164','sub16','Endulzantes y Cremas','departamentos/categorias/index.php?depid=3&dep=cafe&catid=50')
		oCMenu.makeMenu('sub165','sub16','Galletas','departamentos/categorias/index.php?depid=3&dep=cafe&catid=51')
		oCMenu.makeMenu('sub166','sub16','Varios','departamentos/categorias/index.php?depid=3&dep=cafe&catid=52')

	oCMenu.makeMenu('sub17','top1','C&oacute;mputo &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     >','departamentos/index.php?depid=4&dep=computo')
		oCMenu.makeMenu('sub170','sub17','Accesorios','departamentos/categorias/index.php?depid=4&dep=computo&catid=38')
		oCMenu.makeMenu('sub171','sub17','Cartuchos y Toners','departamentos/categorias/index.php?depid=4&dep=computo&catid=40')
		oCMenu.makeMenu('sub172','sub17','Cintas y Discos','departamentos/categorias/index.php?depid=4&dep=computo&catid=39')
		oCMenu.makeMenu('sub173','sub17','Mantenimiento','departamentos/categorias/index.php?depid=4&dep=computo&catid=57')

	oCMenu.makeMenu('sub18','top1','Electr&oacute;nicos &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  >','departamentos/index.php?depid=10&dep=electronicos')
		oCMenu.makeMenu('sub180','sub18','Agendas Electr&oacute;nicas','departamentos/categorias/index.php?depid=10&dep=electronicos&catid=59')
		oCMenu.makeMenu('sub181','sub18','Calculadoras y Sumadoras','departamentos/categorias/index.php?depid=10&dep=electronicos&catid=23')
		oCMenu.makeMenu('sub182','sub18','Cintas y Etiquetas','departamentos/categorias/index.php?depid=10&dep=electronicos&catid=42')
		oCMenu.makeMenu('sub183','sub18','Rotuladores','departamentos/categorias/index.php?depid=10&dep=electronicos&catid=41')

	oCMenu.makeMenu('sub19','top1','Especiales y Novedades','departamentos/index.php?depid=12&dep=espaciales')

	oCMenu.makeMenu('sub20','top1','Limpieza  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     >','departamentos/index.php?depid=7&dep=limpieza')
		oCMenu.makeMenu('sub200','sub20','Aromatizantes','departamentos/categorias/index.php?depid=7&dep=limpieza&catid=53')
		oCMenu.makeMenu('sub201','sub20','Desinfectantes','departamentos/categorias/index.php?depid=7&dep=limpieza&catid=61')
		oCMenu.makeMenu('sub202','sub20','Higi&eacute;nicos','departamentos/categorias/index.php?depid=7&dep=limpieza&catid=54')
		oCMenu.makeMenu('sub203','sub20','Jarcieria','departamentos/categorias/index.php?depid=7&dep=limpieza&catid=55')
		oCMenu.makeMenu('sub204','sub20','Limpiadores','departamentos/categorias/index.php?depid=7&dep=limpieza&catid=56')
		oCMenu.makeMenu('sub205','sub20','Touch-FREE','departamentos/categorias/index.php?depid=7&dep=limpieza&catid=62')
		
	oCMenu.makeMenu('sub21','top1','Papel &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  >','departamentos/index.php?depid=11&dep=papel')
		oCMenu.makeMenu('sub210','sub21','Extendidos','departamentos/categorias/index.php?depid=11&dep=papel&catid=60')
		oCMenu.makeMenu('sub211','sub21','Fax y Sumadoras','departamentos/categorias/index.php?depid=11&dep=papel&catid=44')
		oCMenu.makeMenu('sub212','sub21','Impresi&oacute;n','departamentos/categorias/index.php?depid=11&dep=papel&catid=46')
		oCMenu.makeMenu('sub213','sub21','Papel Bond','departamentos/categorias/index.php?depid=11&dep=papel&catid=43')
		oCMenu.makeMenu('sub214','sub21','Sobres','departamentos/categorias/index.php?depid=11&dep=papel&catid=45')

	

oCMenu.makeMenu('top3','','&nbsp;Pedidos','')
	oCMenu.makeMenu('sub31','top3','Por Fax','pedidos/fax.php')
	oCMenu.makeMenu('sub32','top3','Por Internet','door/')

//oCMenu.makeMenu('top4','','&nbsp;Inscr?bete','FormaClientes/forma.php')

oCMenu.makeMenu('top4','','&nbsp;Dile a un amigo','amigo/default.asp')

oCMenu.makeMenu('top5','','&nbsp;Principal','/')


oCMenu.makeStyle(); oCMenu.construct()		

function cm_checkScrolled(obj){
	if(bw.ns4 || bw.ns6) obj.scrolledY=obj.win.pageYOffset
	else obj.scrolledY=obj.win.document.body.scrollTop
	if(obj.scrolledY!=obj.lastScrolled){
		if(!obj.useframes){
			self.status=obj.scrolledY
			if(obj.scrolledY>119){
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.scrolledY)}
				if(obj.usebar) obj.oBar.moveY(obj.scrolledY)
			}else{
				for(i=0;i<obj.l[0].num;i++){var sobj=obj.l[0].o[i].oBorder; sobj.moveY(obj.fromtop)}
				if(obj.usebar) obj.oBar.moveY(obj.fromtop)
			}

		}
		obj.lastScrolled=obj.scrolledY; page.y=obj.scrolledY; page.y2=page.y2orig+obj.scrolledY
		if(!obj.useframes || bw.ie){ clearTimeout(obj.tim); obj.isover=0; obj.hideSubs(1,0)}
	}
	if((bw.ns4 || bw.ns6) && !obj.useframes) setTimeout("cm_checkScrolled("+obj.name+")",200)
}