// get all existing "GET" variables, and store them in the get_vars array
(function() {
  jQuery.query = get_vars = {};
  var q = location.search;
  q = q.replace(/^\?/,'');
  q = q.replace(/\&$/,'');
  jQuery.each(q.split('&'), function(){
    var key = this.split('=')[0];
    var val = this.split('=')[1];
    if (/^[0-9.]+$/.test(val)) val = parseFloat(val);
    if(val) get_vars[key] = val;
  });
})();