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,'',1,'Product Images',sel_sec,pre);out+=outputImageGallerySection((sel_sec==1),'image_gallery/gallery.php?g=1&s=1','Aboveground Systems',pre);out+=outputImageGallerySection((sel_sec==5),'image_gallery/gallery.php?g=1&s=5','Automation',pre);out+=outputImageGallerySection((sel_sec==7),'image_gallery/gallery.php?g=1&s=7','Cleaners',pre);out+=outputImageGallerySection((sel_sec==14),'image_gallery/gallery.php?g=1&s=14','Commercial',pre);out+=outputImageGallerySection((sel_sec==22),'image_gallery/gallery.php?g=1&s=22','Filters',pre);out+=outputImageGallerySection((sel_sec==28),'image_gallery/gallery.php?g=1&s=28','Heaters & Heat Pumps',pre);out+=outputImageGallerySection((sel_sec==33),'image_gallery/gallery.php?g=1&s=33','Lighting',pre);out+=outputImageGallerySection((sel_sec==40),'image_gallery/gallery.php?g=1&s=40','Maintenance & Safety Equipment',pre);out+=outputImageGallerySection((sel_sec==42),'image_gallery/gallery.php?g=1&s=42','Pumps',pre);out+=outputImageGallerySection((sel_sec==51),'image_gallery/gallery.php?g=1&s=51','Valves',pre);out+=outputImageGallerySection((sel_sec==53),'image_gallery/gallery.php?g=1&s=53','Water Features',pre);out+=outputImageGallerySection((sel_sec==94),'image_gallery/gallery.php?g=1&s=94','White Goods',pre);out+=outputImageGallerySection((sel_sec==95),'image_gallery/gallery.php?g=1&s=95','Sanitizers',pre);if(has_sections)out+='\n';has_sections=false;out+=outputImageGalleryType((sel_type==3),has_sections,'image_gallery/gallery.php?g=3&s=0',3,'Logos',sel_sec,pre);if(has_sections)out+='\n';has_sections=false;out+=outputImageGalleryType((sel_type==4),has_sections,'image_gallery/gallery.php?g=4&s=0',4,'Replacement Parts',sel_sec,pre);if(has_sections)out+='\n';return out;} function outputImageGalleryType(sel,has_secs,href,type_id,type_name,sel_sec,pre){var out='';out+='

';else if(sel_sec==null){out+=' ';if(href!='')out+='';}else if(href=='')out+=' ';else out+=' ';out+=type_name+((has_secs&&href!='')?'':'');if(has_secs)out+=' ';if(href!='')out+=''+type_name+'';else out+=type_name;if(has_secs)out+=' 