var celda_seleccionada="";

function iluminaover(cell,st){
	if(st==1)
		cell.style.backgroundColor='#242222';
	else
		if(cell != celda_seleccionada)
		cell.style.backgroundColor='';
}

function pointer(id,st){
   if(st==1){
         eval("document.getElementById('pointer"+id+"')").style.visibility='visible';
 
   }
   if(st==0){
         eval("document.getElementById('pointer"+id+"')").style.visibility='hidden';
   }

}

function gestionamenu(idmenu,page,selected,pag,catfab){
    destino=page+"?idmenu="+idmenu;
	if(selected)
		destino +="&selected="+selected
   if(pag)
		destino +="&page="+pag
   if(catfab)
        destino +="&catfab="+catfab
	location.href=destino;

}

function iluminaovercats(cell,st,id){
   if(st==1){
		cell.style.backgroundColor='#242222';
		eval("document.getElementById('itemcat"+id+"')").src="imgs/px.gif";
		eval("document.getElementById('cellcat"+id+"')").className="mnucatover";
   }else{
		if(cell != celda_seleccionada){
			cell.style.backgroundColor='';
			eval("document.getElementById('itemcat"+id+"')").src="imgs/itemcat.gif";
			eval("document.getElementById('cellcat"+id+"')").className="mnucat";
		}
   }
}



