$(document).ready(function(){   
						       $("#local_nav_list").accordion({ active: false, collapsible: true, alwaysOpen: false });

	$("#tabs a").click(function () { 
  	  if ($(this).not(".active")) {
  	  	$(".active").removeClass("active");
  	  	$(this).addClass("active");
  	  	var ref = $(this).attr("href");
  	  	$(".showblock").removeClass("showblock");
  	  	$(ref).addClass("showblock");
  	  }
    });

	// Searchbox
	function searchFocus() {
		if (jQuery("#searchinput").value == 'Search CPSE') {
			jQuery("#searchinput").value = '';
			jQuery("#searchinput").style.color = '#666';
			jQuery("#searchinput").style.fontStyle = 'normal';
		}
	}
	
	function searchBlur() {
		if (jQuery("#searchinput").value == '') {
			jQuery("#searchinput").value = 'Search CPSE';
			jQuery("#searchinput").style.color = '#999';
			jQuery("#searchinput").style.fontStyle = 'italic';
		}
	}


  });

