--- trunk2/out/js/highlight.js 2004/07/22 19:00:27 396 +++ trunk2/out/js/highlight.js 2004/07/22 19:07:16 397 @@ -1,93 +1,91 @@ -// -// google.js -// Google Highlighter -// -// Copyright(C)2001 - 2003 -// Cal Henderson -// -// Thanks to Ian Beveridge for bugfixes -// -// This code may be freely redistributed, -// providing this message remains intact. -// - -var google_text_color = '#000000'; - -var google_link_colors = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff'); - -function init_google(){ - var pattern = /query=/i; - var url_args; - - //alert("referer: "+document.referrer+" location.search: "+location.search.substring(1)); - - if (pattern.exec(document.referrer) != null) { - var url_parts = document.referrer.split('?'); - if (url_parts[1]) url_args = url_parts[1]; - } else if (pattern.exec(location.search.substring(1)) != null) { - url_args = location.search.substring(1); - alert(url_args); - } - - if (url_args){ - var url_args = url_args.split('&'); - for(var i=0; i +// +// Thanks to Ian Beveridge for bugfixes +// +// This code may be freely redistributed, +// providing this message remains intact. +// + +var google_text_color = '#000000'; + +var google_link_colors = new Array('#ffff66','#a0ffff','#99ff99','#ff9999','#ff66ff'); + +function init_google(){ + var pattern = /query=/i; + var url_args; + + if (pattern.exec(document.referrer) != null) { + var url_parts = document.referrer.split('?'); + if (url_parts[1]) url_args = url_parts[1]; + } else if (pattern.exec(location.search.substring(1)) != null) { + url_args = location.search.substring(1); + } + + if (url_args){ + var url_args = url_args.split('&'); + for(var i=0; i