										
									$(document).ready(function() {
										$("#items1").show();
										$('.boxes').keypress(function(e){
      									if(e.which == 13){
										   e.preventDefault();
										   doSearch();
										   }
										 });
									});
									
									function resetBP()
									{
									$('.boxes').keypress(function(e){
      									if(e.which == 13){
										   e.preventDefault();
										   doSearch();
										   }
										 });	
									}
									
									function showFirstShows() {
										$("#items1").show();
										$("#theHoverZone").removeAttr('onmouseover');
										$("#wkSelect").change(function() {
											var theId = $("#wkSelect option:selected").val();
											$(".items").hide();
											$("#items" + theId).show();
										});
									}
									
									
									function changeDate() {
									document.getElementById('topic').selectedIndex = 0;
									var theMonth = $("#month option:selected").val();
									var theYear = $("#year option:selected").val();
									$.ajax({
										url:"/?action=date_search_post&month=" + theMonth + "&year=" + theYear,
										success:function(data){
											$("#results").html(data);	
										}
									});
									}
									
									function changeShow(theSlug) {
										$.ajax({
											url:"/?action=ajax_post&id="+ theSlug,
											success:function(data){
												var jso = jQuery.parseJSON(data);
												$("#the-main-link").attr('href', jso.permalink);
												$("#share_linky").remove();
												$("#share_linky_li").append('<span id="share_span"><a>Share</a></span>');
												stWidget.addEntry({
													"service":"sharethis",
													"element":document.getElementById('share_span'),
													"title":"" + jso.title + "",
													"url":"" + jso.permalink + ""
												});
												$("#the-main-title").html(jso.title);
												$("#current-show-date").html(jso.thedate);
												$("#the-main-subtitle").html(jso.subtitle);
												$("#the-main-content").html('<p>' + jso.content + '</p>');
												$("#downloadLink").attr('href', jso.audio);
												$(".the-facebook-link").attr('href', 'http://www.facebook.com/sharer.php?u=' + jso.permalink);
												$(".the-twitter-link").attr('href', 'http://twitter.com/home?status=Currently listening to Generations Radio: ' + jso.permalink);
												$("#listenLink").click(function() { playShow(jso.audio, jso.title); return false; });
											}
										});
									}
									
									function changeCat()
									{
										document.getElementById('month').selectedIndex = 0;
										document.getElementById('year').selectedIndex = 0;
										var cat = $("#topic option:selected").val();
										
										$.ajax({
											type: "post",
											url:'/?&action=catSearch&category=' + cat,	
											success:function(data) {
												$("#results").html(data);
											}
										});
									}
									
									function doSearch() {
										var inputString = $("#keywrd").val();
										
										$.ajax({
											type: "post",
											url:'/?s=' +  inputString + '&post_type=radios',
											success:function(data) {
												$("#results").html(data);
											}
										});
									}
									
									
									

