jQuery(document).ready(function(){function b(){if(jQuery("#country").val()=="International"){jQuery("#other-state-email").val(["International"]);jQuery("#state-dropdown").hide();jQuery("#state-other").show();jQuery("#state-dropdown select").val(["---"]);jQuery("#country-dropdown").hide();jQuery("#country-other").show()}if(jQuery("#country-switcher").val()=="United States"){jQuery("#other-state-email").val([""]);jQuery("#state-dropdown").show();jQuery("#state-other").hide();jQuery("#state-other select").val([""]);jQuery("#country-dropdown").show();jQuery("#country-other").hide();jQuery("#country-switcher").val(["* Country:"]);jQuery("#country").val(["United States"])}}function a(){var a=jQuery(".state-selection:visible select").val();jQuery("#name_of_state").val([a]);if(jQuery("#area-of-interest").val()=="Scrap"){jQuery("#scrap_state").val([a]);jQuery(".state-selection").hide();jQuery("#scrap-state").show();jQuery(".state-selection select[id!=scrap_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Solid Waste"){jQuery("#waste_state").val([a]);jQuery(".state-selection").hide();jQuery("#waste-state").show();jQuery(".state-selection select[id!=waste_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Scrap Newsletter"){jQuery("#scrap_news_state").val([a]);jQuery(".state-selection").hide();jQuery("#scrap-news-state").show();jQuery(".state-selection select[id!=scrap_news_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Solid Waste Newsletter"){jQuery("#waste_news_state").val([a]);jQuery(".state-selection").hide();jQuery("#waste-news-state").show();jQuery(".state-selection select[id!=waste_news_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="International Inquiries"){jQuery("#international_state").val([a]);jQuery(".state-selection").hide();jQuery("#international-state").show();jQuery(".state-selection select[id!=international_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Parts"){jQuery("#parts_state").val([a]);jQuery(".state-selection").hide();jQuery("#parts-state").show();jQuery(".state-selection select[id!=parts_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Service"){jQuery("#service_state").val([a]);jQuery(".state-selection").hide();jQuery("#service-state").show();jQuery(".state-selection select[id!=service_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Compaction 600 Game"){jQuery("#game_state").val([a]);jQuery(".state-selection").hide();jQuery("#game-state").show();jQuery(".state-selection select[id!=game_state]").val(["---"])}if(jQuery("#area-of-interest").val()=="Other"){jQuery("#other_interest").val([a]);jQuery(".state-selection").hide();jQuery("#other-interest").show();jQuery(".state-selection select[id!=other_interest]").val(["---"])}}jQuery("#rotation").cycle({next:"#overlay",speed:500,timeout:5e3,pause:"true"});jQuery('.lightbox a,.post a[href*=".jpg"]').attr("rel","lightbox");jQuery('.lightbox a,.post a[href*=".jpg"]').fancybox({zoomSpeedIn:500,zoomSpeedOut:300,overlayOpacity:.7});jQuery("#contact-loading").hide("slow");jQuery("#area-of-interest,.state-selection").change(a);jQuery("#country,#country-switcher").change(b)})
