# HG changeset patch
# User Maciej Fijalkowski <fijall@gmail.com>
# Date 1309522764 -7200
#      Fri Jul 01 14:19:24 2011 +0200
# Branch extradoc
# Node ID b760bec188027c3427e6745ca9760f9e41f5685b
# Parent  a5734e608e4167034fd0fd5485264785623a38a5
update urls (also fix the typo, thank you flymake

diff --git a/js/detect.js b/js/detect.js
--- a/js/detect.js
+++ b/js/detect.js
@@ -1,20 +1,21 @@
 
 $(document).ready(function() {
     var download_url, download_text;
+    var base = 'http://bitbucket.org/pypy/pypy/downloads/';
     if (navigator.platform.indexOf('Linux') != -1) {
         if (navigator.platform.indexOf('64') != -1) {
-            download_url = 'download/pypy-1.5-linux64.tar.bz2';
+            download_url = base + 'pypy-1.5-linux64.tar.bz2';
             download_text = 'Download linux x86-64 bin';
         } else {
-            download_url = 'download/pypy-1.5-linux.tar.bz2';
+            download_url = base + 'pypy-1.5-linux.tar.bz2';
             download_text = 'Download linux x86 bin (32 bit)';
         }
     } else if (navigator.platform.indexOf('Win') != -1) {
-        download_url = 'download/pypy-1.5-win32.zip';
+        download_url = base + 'pypy-1.5-win32.zip';
         download_text = 'Download Windows x86 bin';
     } else if (navigator.platform.indexOf('Mac') != 1) {
-        download_url = 'download/pypy-1.5-osx64.tar.bz2';
-        downloat_text = 'Download Mac OS X 10.6 bin (64 bit)';
+        download_url = base + 'pypy-1.5-osx64.tar.bz2';
+        download_text = 'Download Mac OS X 10.6 bin (64 bit)';
     } else {
         download_url = "download.html";
         download_text = "Download page";