function outputImageGalleryNav(sel_type,sel_sec,pre){if(!sel_type)sel_type=null;if(!sel_sec)sel_sec=null;if(!pre&&pre!='')pre='../';var out='';var has_sections=false;has_sections=true;out+=outputImageGalleryType((sel_type==1),has_sections,'images/gallery.php?g=1&s=0',1,'Imágenes de productos',pre);out+=outputImageGallerySection((sel_sec==1&&sel_type==1),'images/gallery.php?g=1&s=1','Sistemas elevados',pre);out+=outputImageGallerySection((sel_sec==5&&sel_type==1),'images/gallery.php?g=1&s=5','Automatización',pre);out+=outputImageGallerySection((sel_sec==7&&sel_type==1),'images/gallery.php?g=1&s=7','Limpiafondos',pre);out+=outputImageGallerySection((sel_sec==22&&sel_type==1),'images/gallery.php?g=1&s=22','Filtros',pre);out+=outputImageGallerySection((sel_sec==28&&sel_type==1),'images/gallery.php?g=1&s=28','Calentadores y bombas de calor',pre);out+=outputImageGallerySection((sel_sec==33&&sel_type==1),'images/gallery.php?g=1&s=33','Iluminación',pre);out+=outputImageGallerySection((sel_sec==40&&sel_type==1),'images/gallery.php?g=1&s=40','Equipos de mantenimiento y seguridad',pre);out+=outputImageGallerySection((sel_sec==42&&sel_type==1),'images/gallery.php?g=1&s=42','Bombas',pre);out+=outputImageGallerySection((sel_sec==95&&sel_type==1),'images/gallery.php?g=1&s=95','Desinfectantes',pre);out+=outputImageGallerySection((sel_sec==51&&sel_type==1),'images/gallery.php?g=1&s=51','Válvulas',pre);out+=outputImageGallerySection((sel_sec==53&&sel_type==1),'images/gallery.php?g=1&s=53','Accesorios para el agua',pre);out+=outputImageGallerySection((sel_sec==94&&sel_type==1),'images/gallery.php?g=1&s=94','Articulos de línea blancos',pre);if(has_sections)out+='\n';has_sections=false;out+=outputImageGalleryType((sel_type==3),has_sections,'images/gallery.php?g=3&s=0',3,'Logotipos',pre);if(has_sections)out+='\n';return out;} function outputImageGalleryType(sel,hassecs,href,type_id,type_name,pre){var out='';if(sel){out+='
'+type_name+''+(hassecs?' [–]':'')+'
\n';if(hassecs)out+='
\n'}else{out+='
\n';out+='

'+type_name+'';if(hassecs)out+=' [+]';out+='

\n';out+='\n';if(hassecs)out+='