--- HEAD
+++ Modified In Working Tree
@@ -20,8 +20,10 @@
 
   if (google_cse_validate_request()) {
     drupal_add_js($variables['path'] . '/google_cse_results.js', array('scope' => 'footer'));
-    drupal_add_js('https://www.google.com/afsonline/show_afs_search.js', array(
-      'type' => 'external',
+    $afscode = drupal_http_request('http://www.google.com/afsonline/show_afs    _search.js')->data;
+    $afscode = preg_replace('~http:\/\/~i', '//', $afscode);
+    drupal_add_js($afscode, array(
+      'type' => 'inline',
       'scope' => 'footer',
     ));
   }
