function outputOrderNav(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+=outputOrderType((sel_type==1),has_sections,'marketing_materials/select_materials.php?d=1&s=0',1,'Data Sheets / Brochures',sel_sec,pre);out+=outputOrderSection((sel_sec==1),'marketing_materials/select_materials.php?d=1&s=1','Aboveground Systems',pre);out+=outputOrderSection((sel_sec==5),'marketing_materials/select_materials.php?d=1&s=5','Automation',pre);out+=outputOrderSection((sel_sec==7),'marketing_materials/select_materials.php?d=1&s=7','Cleaners',pre);out+=outputOrderSection((sel_sec==14),'marketing_materials/select_materials.php?d=1&s=14','Commercial',pre);out+=outputOrderSection((sel_sec==22),'marketing_materials/select_materials.php?d=1&s=22','Filters',pre);out+=outputOrderSection((sel_sec==28),'marketing_materials/select_materials.php?d=1&s=28','Heaters & Heat Pumps',pre);out+=outputOrderSection((sel_sec==33),'marketing_materials/select_materials.php?d=1&s=33','Lighting',pre);out+=outputOrderSection((sel_sec==42),'marketing_materials/select_materials.php?d=1&s=42','Pumps',pre);out+=outputOrderSection((sel_sec==49),'marketing_materials/select_materials.php?d=1&s=49','Skimmers',pre);out+=outputOrderSection((sel_sec==51),'marketing_materials/select_materials.php?d=1&s=51','Valves',pre);out+=outputOrderSection((sel_sec==53),'marketing_materials/select_materials.php?d=1&s=53','Water Features',pre);out+=outputOrderSection((sel_sec==54),'marketing_materials/select_materials.php?d=1&s=54','Water Maintenance',pre);if(has_sections)out+='\n';has_sections=false;out+=outputOrderType((sel_type==4),has_sections,'marketing_materials/select_materials.php?d=4&s=0',4,'Dealer Materials',sel_sec,pre);if(has_sections)out+='\n';has_sections=true;out+=outputOrderType((sel_type==11),has_sections,'',11,'Green Materials',sel_sec,pre);out+=outputOrderSection((sel_sec==1),'marketing_materials/select_materials.php?d=11&s=1','Data Sheets / Brochures',pre);out+=outputOrderSection((sel_sec==4),'marketing_materials/select_materials.php?d=11&s=4','Dealer Materials',pre);out+=outputOrderSection((sel_sec==7),'marketing_materials/select_materials.php?d=11&s=7','Hangers',pre);out+=outputOrderSection((sel_sec==9),'marketing_materials/select_materials.php?d=11&s=9','Point of Purchase',pre);if(has_sections)out+='\n';has_sections=false;out+=outputOrderType((sel_type==7),has_sections,'marketing_materials/select_materials.php?d=7&s=0',7,'Hangers',sel_sec,pre);if(has_sections)out+='\n';has_sections=false;out+=outputOrderType((sel_type==9),has_sections,'marketing_materials/select_materials.php?d=9&s=0',9,'Point of Purchase',sel_sec,pre);if(has_sections)out+='\n';has_sections=false;out+=outputOrderType((sel_type==8),has_sections,'marketing_materials/select_materials.php?d=8&s=0',8,'Postcards',sel_sec,pre);if(has_sections)out+='\n';has_sections=false;out+=outputOrderType((sel_type==3),has_sections,'marketing_materials/select_materials.php?d=3&s=0',3,'Rebates',sel_sec,pre);if(has_sections)out+='\n';return out;} function outputOrderType(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+=' 