- $class = 'menu'; \r
- switch($n){\r
- case 1: $imagen = '<img src="/MECON/images/arbol_bullet_1.gif" width="7" height="10">';\r
- $class = 'menu1'; \r
- break;\r
- case 2: $imagen = '<img src="/MECON/images/arbol_bullet_2.gif" width="13" height="10">';\r
- $class = 'menu1'; \r
- break;\r
- case 3: $imagen = '<img src="/MECON/images/arbol_bullet3.gif" width="20" height="10">';\r
- $class = 'menu2'; \r
- break;\r
- }\r
+ $class = 'menu';\r
+ $bullets = array('', '/MECON/images/arbol_bullet_1.gif', '/MECON/images/arbol_bullet_2.gif', '/MECON/images/arbol_bullet3.gif');\r
+ $tabulaciones = array(0, 7, 13, 20);\r
+ $classes = array('menu', 'menu1', 'menu1', 'menu2');\r
+ $imagen = '<img src="'.$bullets[$n].'"\r
+ width="'.$tabulados[$n].'"\r
+ height="10">';\r