

function conFlecha(flecha, estado, text, nivel) {
	
	switch(nivel){
		case 1:
			var res='<div>'+text+'</div>'
			var estilo=''
			if(estado==true){
				estilo='m1_actv';
				if(flecha==true){
					estilo='m1_actv flecha_1';
				}
			} else {
				estilo='m1_defaut';
				if(flecha==true){
					estilo='m1_defaut flecha_0' 
				}
			}
			res='<div  class="'+estilo+'" >'+text+'</div>';
			break;

		default:
			var res='<div>'+text+'</div>'
			var estilo='m2_defaut'

			if(flecha==true){
				estilo='m2_defaut flecha_1_2' 
			}
			res='<div  class="'+estilo+'" >'+text+'</div>';
			break;
	}
  return res;
}
