# HG changeset patch
# User Arseniy Terekhin <senyai@gmail.com>
# Date 1366555337 -14400
#      Sun Apr 21 18:42:17 2013 +0400
# Branch extradoc
# Node ID 3ce1961ea849a9068c90cace100e16fce9ec1de8
# Parent  760313371d05799b4189f1ce5facacda6c6839c1
Removed useless script (detect.js)

diff --git a/js/detect.js b/js/detect.js
deleted file mode 100644
--- a/js/detect.js
+++ /dev/null
@@ -1,25 +0,0 @@
-
-$(document).ready(function() {
-    var download_url, download_text;
-    var base = 'https://bitbucket.org/pypy/pypy/downloads/';
-    if (navigator.platform.indexOf('Linux') != -1) {
-        if (navigator.platform.indexOf('64') != -1) {
-            download_url = base + 'pypy-1.7-linux64.tar.bz2';
-            download_text = 'Download linux x86-64 bin';
-        } else {
-            download_url = base + 'pypy-1.7-linux.tar.bz2';
-            download_text = 'Download linux x86 bin (32 bit)';
-        }
-    } else if (navigator.platform.indexOf('Win') != -1) {
-        download_url = base + 'pypy-1.7-win32.zip';
-        download_text = 'Download Windows x86 bin (BETA)';
-    } else if (navigator.platform.indexOf('Mac') != 1) {
-        download_url = base + 'pypy-1.7-osx64.tar.bz2';
-        download_text = 'Download Mac OS X 10.6 bin (64 bit)';
-    } else {
-        download_url = "download.html";
-        download_text = "Download page";
-    }
-    $("#main_download").attr('href', download_url);
-    $("#main_download").text(download_text);
-});
diff --git a/source/_layouts/site.genshi b/source/_layouts/site.genshi
--- a/source/_layouts/site.genshi
+++ b/source/_layouts/site.genshi
@@ -46,7 +46,6 @@
 	</py:if>
 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="js/jquery-ui-1.8.14.custom.min.js"/>
-  <script type="text/javascript" src="js/detect.js"></script>
   <script type="text/javascript" src="js/script2.js?bust=1"></script>
 </head>
 <body>