// this is our bold/un-bold style switcher for the text
// above the main search bar.
// do not remove!  this will break the bold/un-bold effect!



		function changeOne(s)
		{
			document.getElementById(s).style.fontWeight = "bold";
			document.getElementById("two").style.fontWeight = "normal";
			document.getElementById("three").style.fontWeight = "normal";
			document.getElementById("four").style.fontWeight = "normal";
			document.getElementById("five").style.fontWeight = "normal";
			document.getElementById("six").style.fontWeight = "normal";
			// document.getElementById("seven").style.fontWeight = "normal";
			document.pdForm.aff.value="";
 
		}

		function changeTwo(s)
		{
			document.getElementById(s).style.fontWeight = "bold";
			document.getElementById("one").style.fontWeight = "normal";
			document.getElementById("three").style.fontWeight = "normal";
			document.getElementById("four").style.fontWeight = "normal";
			document.getElementById("five").style.fontWeight = "normal";
			document.getElementById("six").style.fontWeight = "normal";
			// document.getElementById("seven").style.fontWeight = "normal";
			document.pdForm.aff.value="1";

		}
		
		function changeThree(s)
		{
			document.getElementById(s).style.fontWeight = "bold";
			document.getElementById("one").style.fontWeight = "normal";
			document.getElementById("two").style.fontWeight = "normal";
			document.getElementById("four").style.fontWeight = "normal";
			document.getElementById("five").style.fontWeight = "normal";
			document.getElementById("six").style.fontWeight = "normal";
			// document.getElementById("seven").style.fontWeight = "normal";
			document.pdForm.aff.value="8";
		}
		
		function changeFour(s)
		{
			document.getElementById(s).style.fontWeight = "bold";
			document.getElementById("one").style.fontWeight = "normal";
			document.getElementById("two").style.fontWeight = "normal";
			document.getElementById("three").style.fontWeight = "normal";
			document.getElementById("five").style.fontWeight = "normal";
			document.getElementById("six").style.fontWeight = "normal";
			// document.getElementById("seven").style.fontWeight = "normal";
			document.pdForm.aff.value="3";
		}
		
		function changeFive(s)
		{
			document.getElementById(s).style.fontWeight = "bold";
			document.getElementById("one").style.fontWeight = "normal";
			document.getElementById("two").style.fontWeight = "normal";
			document.getElementById("three").style.fontWeight = "normal";
			document.getElementById("four").style.fontWeight = "normal";
			document.getElementById("six").style.fontWeight = "normal";
			// document.getElementById("seven").style.fontWeight = "normal";
			document.pdForm.aff.value="9";
		
		}
		
		function changeSix(s)
		{
			document.getElementById(s).style.fontWeight = "bold";
			document.getElementById("one").style.fontWeight = "normal";
			document.getElementById("two").style.fontWeight = "normal";
			document.getElementById("three").style.fontWeight = "normal";
			document.getElementById("four").style.fontWeight = "normal";
			document.getElementById("five").style.fontWeight = "normal";
			// document.getElementById("seven").style.fontWeight = "normal";
			document.pdForm.aff.value="2";

		}
		
		//function changeSeven(s)
		//{
		//	document.getElementById(s).style.fontWeight = "bold";
		//	document.getElementById("one").style.fontWeight = "normal";
		//	document.getElementById("two").style.fontWeight = "normal";
		//	document.getElementById("three").style.fontWeight = "normal";
		//	document.getElementById("four").style.fontWeight = "normal";
		//	document.getElementById("five").style.fontWeight = "normal";
		//	document.getElementById("six").style.fontWeight = "normal";
		//
		//}




// this is our class and style switcher for the tabbed ENTERTAINMENT MENU
// do not remove!  this will break the tabbed menu!

function selectmenu (option) {
    var tabs = new Array ("hot", "calendar", "tv", "movies");
    var option_info ;
    var query;
    var query_value;
    var previous_query;
    var previous_query_value;
             
    for (var i=0; i < tabs.length; i++) {
       document.getElementById(tabs[i]).className = "searchTab";
       option_info = tabs[i] + "_TAB";
       document.getElementById(option_info).className = "off";
    }
     
    document.getElementById(option).className = "searchTab activeTab";
    option_info = option + "_TAB";
    document.getElementById(option_info).className = "on";
    //query = option + "_QUERY"; 
    //for (var i=0; i < tabs.length; i++) {
    //    if (option != tabs[i]) {
    //        previous_query = tabs[i] + "_QUERY";
    //        previous_query_value = document.getElementById(previous_query).value;
    //        if (previous_query_value != "") {
    //              query_value = previous_query_value;
    //             document.getElementById(query).value = query_value;
    //              document.getElementById(previous_query).value = "";
    //        }
    //    }
    //}
    //document.getElementById(query).focus();
}




// this is our class and style switcher for the tabbed SPOTTED IN WNY MENU
// do not remove!  this will break the tabbed menu!

function spottedmenu (option) {
    var tabs = new Array ("featured", "upload", "galleries", "help");
    var option_info ;
    var query;
    var query_value;
    var previous_query;
    var previous_query_value;
             
    for (var i=0; i < tabs.length; i++) {
       document.getElementById(tabs[i]).className = "searchTab";
       option_info = tabs[i] + "_TAB";
       document.getElementById(option_info).className = "off";
    }
     
    document.getElementById(option).className = "searchTab activeTab";
    option_info = option + "_TAB";
    document.getElementById(option_info).className = "on";
    //query = option + "_QUERY"; 
    //for (var i=0; i < tabs.length; i++) {
    //    if (option != tabs[i]) {
    //        previous_query = tabs[i] + "_QUERY";
    //        previous_query_value = document.getElementById(previous_query).value;
    //        if (previous_query_value != "") {
    //              query_value = previous_query_value;
    //              document.getElementById(query).value = query_value;
    //              document.getElementById(previous_query).value = "";
    //        }
    //    }
    //}
    //document.getElementById(query).focus();
}






// this is our class and style switcher for the tabbed YOURHUB MENU
// do not remove!  this will break the tabbed menu!

function yourhubmenu (option) {
    var tabs = new Array ("stories", "blogs", "events");
    var option_info ;
    var query;
    var query_value;
    var previous_query;
    var previous_query_value;
             
    for (var i=0; i < tabs.length; i++) {
       document.getElementById(tabs[i]).className = "searchTab";
       option_info = tabs[i] + "_TAB";
       document.getElementById(option_info).className = "off";
    }
     
    document.getElementById(option).className = "searchTab activeTab";
    option_info = option + "_TAB";
    document.getElementById(option_info).className = "on";
    //query = option + "_QUERY"; 
    //for (var i=0; i < tabs.length; i++) {
    //    if (option != tabs[i]) {
    //        previous_query = tabs[i] + "_QUERY";
    //        previous_query_value = document.getElementById(previous_query).value;
    //        if (previous_query_value != "") {
    //              query_value = previous_query_value;
    //              document.getElementById(query).value = query_value;
    //              document.getElementById(previous_query).value = "";
    //        }
    //    }
    //}
    //document.getElementById(query).focus();
}




// this is our class and style switcher for the tabbed BLOGS MENU
// do not remove!  this will break the tabbed menu!

function blogsmenu (option) {
    var tabs = new Array ("newsb", "yourb", "buffalob");
    var option_info ;
    var query;
    var query_value;
    var previous_query;
    var previous_query_value;
             
    for (var i=0; i < tabs.length; i++) {
       document.getElementById(tabs[i]).className = "searchTab";
       option_info = tabs[i] + "_TAB";
       document.getElementById(option_info).className = "off";
    }
     
    document.getElementById(option).className = "searchTab activeTab";
    option_info = option + "_TAB";
    document.getElementById(option_info).className = "on";
    //query = option + "_QUERY"; 
    //for (var i=0; i < tabs.length; i++) {
    //    if (option != tabs[i]) {
    //        previous_query = tabs[i] + "_QUERY";
    //        previous_query_value = document.getElementById(previous_query).value;
    //        if (previous_query_value != "") {
    //              query_value = previous_query_value;
    //              document.getElementById(query).value = query_value;
    //              document.getElementById(previous_query).value = "";
    //        }
    //    }
    //}
    //document.getElementById(query).focus();
}

		