// extract google search string from referrer url and set it in a cookie
var r = new String(document.referrer);
if (r.search('google.co') != -1) {
	var re = /q=([^&]*)/;
	var s = r.match(re);
	if (s[1]) {
		document.cookie = "google_search_cookie="+s[1]+";";
	}
}
