// Google Analytics Hash to Querystring script
// Copyright 2007 by André Scholten
// http://andrescholten.nl
//
// Feel free to copy and use this script, a link would be appreciated

var t4u_page = location;
if (t4u_page.hash)
{
  t4u_hash = t4u_page.href.substring(t4u_page.href.indexOf('#') + 1);
  t4u_href = t4u_page.href.substring(0, t4u_page.href.indexOf('#'));
  var t4u_connect = "?";
  if (t4u_href.indexOf("?") > -1) { t4u_connect = "&" }
  t4u_page = t4u_href + t4u_connect + t4u_hash
}
_udl = "";

function make_udl()
{
  this.search = t4u_page.substring(t4u_page.indexOf('?'));
  this.href = t4u_page;
  this.hash = "";
  this.protocol = location.protocol;
  this.hostname = location.hostname
  this.port = location.port;
  this.pathname = location.pathname;
  this.host = location.host
}
_udl = new make_udl();
