function show_advanced_search() { if(track_adv_box == "showing"){ document.getElementById('advanced_search').style.display='none'; document.getElementById('giant_search_box').className ="giant_search_box_small"; track_adv_box = "hidden"; }else{ document.getElementById('advanced_search').style.display=''; document.getElementById('giant_search_box').className = "giant_search_box_tall"; track_adv_box = "showing"; } } // Track Menu Tabs track_tab_1 = "off"; track_tab_2 = "off"; track_tab_3 = "off"; track_tab_4 = "off"; track_tab_5 = "off"; track_tab_6 = "off"; function switch_tabs(which_one) { if( which_one == "1" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short_on"; document.getElementById('search_tab_2').className = "tab_short"; document.getElementById('search_tab_3').className = "tab_short"; document.getElementById('search_tab_4').className = "tab_ex_wide"; document.getElementById('search_tab_5').className = "tab_short"; document.getElementById('search_tab_6').className = "tab_wide"; // selects the categor from the menu document.getElementById("search_cat").value = menu_link_1; } if( which_one == "2" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short"; document.getElementById('search_tab_2').className = "tab_short_on"; document.getElementById('search_tab_3').className = "tab_short"; document.getElementById('search_tab_4').className = "tab_ex_wide"; document.getElementById('search_tab_5').className = "tab_short"; document.getElementById('search_tab_6').className = "tab_wide"; // selects the categor from the menu document.getElementById("search_cat").value = menu_link_2; } if( which_one == "3" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short"; document.getElementById('search_tab_2').className = "tab_short"; document.getElementById('search_tab_3').className = "tab_short_on"; document.getElementById('search_tab_4').className = "tab_ex_wide"; document.getElementById('search_tab_5').className = "tab_short"; document.getElementById('search_tab_6').className = "tab_wide"; // selects the categor from the menu document.getElementById("search_cat").value = menu_link_3; } if( which_one == "4" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short"; document.getElementById('search_tab_2').className = "tab_short"; document.getElementById('search_tab_3').className = "tab_short"; document.getElementById('search_tab_4').className = "tab_ex_wide_on"; document.getElementById('search_tab_5').className = "tab_short"; document.getElementById('search_tab_6').className = "tab_wide"; // selects the categor from the menu document.getElementById("search_cat").value = menu_link_4; } if( which_one == "5" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short"; document.getElementById('search_tab_2').className = "tab_short"; document.getElementById('search_tab_3').className = "tab_short"; document.getElementById('search_tab_4').className = "tab_ex_wide"; document.getElementById('search_tab_5').className = "tab_short_on"; document.getElementById('search_tab_6').className = "tab_wide"; // selects the categor from the menu document.getElementById("search_cat").value = menu_link_5; } if( which_one == "6" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short"; document.getElementById('search_tab_2').className = "tab_short"; document.getElementById('search_tab_3').className = "tab_short"; document.getElementById('search_tab_4').className = "tab_ex_wide"; document.getElementById('search_tab_5').className = "tab_short"; document.getElementById('search_tab_6').className = "tab_wide_on"; // selects the categor from the menu document.getElementById("search_cat").value = menu_link_6; } if( which_one == "clear" ){ // sets all the styles document.getElementById('search_tab_1').className = "tab_short"; document.getElementById('search_tab_2').className = "tab_short"; document.getElementById('search_tab_3').className = "tab_short"; document.getElementById('search_tab_4').className = "tab_ex_wide"; document.getElementById('search_tab_5').className = "tab_short"; document.getElementById('search_tab_6').className = "tab_wide"; // selects the categor from the menu document.getElementById("search_cat").value = "0"; } }