function searchNewsForQuery(c){$.ajax({type:"GET",url:"/news/search/",data:"q="+c,beforeSend:function(a,b){$("div.searchResultsContent").empty().append('<div class="AsyncProgressViewDark" style="position: static;"></div>')},success:function(a){if(a){$("div.searchResultsContent").empty().append(a)}else{$("div.searchResultsContent").empty().append('<p id="searchInstructions" style="font-size: 23px;">No Results Were Found</p>')}},error:function(a,b){if(a.status===0){$("div.searchResultsContent").empty().append('<div id="errorAlertView" class="ui-widget" style="display: block;"><div class="ui-state-error ui-corner-all" style="padding: 5px;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Request Error:</strong> You are Offline!</p></div></div>').show("bounce","fast")}else if(a.status===500){$("div.searchResultsContent").empty().append('<div id="errorAlertView" class="ui-widget" style="display: block;"><div class="ui-state-error ui-corner-all" style="padding: 5px;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Request Error:</strong> 500 Internal Server Error!</p></div></div>').show("bounce","fast")}else if(a.status===404){$("div.searchResultsContent").empty().append('<div id="errorAlertView" class="ui-widget" style="display: block;"><div class="ui-state-error ui-corner-all" style="padding: 5px;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Request Error:</strong> 404 Not Found!</p></div></div>').show("bounce","fast")}else if(b==='timeout'){$("div.searchResultsContent").empty().append('<div id="errorAlertView" class="ui-widget" style="display: block;"><div class="ui-state-error ui-corner-all" style="padding: 5px;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Request Error:</strong> Connection Timeout!</p></div></div>').show("bounce","fast")}else{$("div.searchResultsContent").empty().append('<div id="errorAlertView" class="ui-widget" style="display: block;"><div class="ui-state-error ui-corner-all" style="padding: 5px;"><p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span><strong>Request Error:</strong> Unknown!</p></div></div>').show("bounce","fast")}}})}

