﻿// Copyright 2009 Google Inc.
// All Rights Reserved.
/**
 * @fileoverview Functions modifying presentation of elements on the page
 * @author Michal Drewniak
 */

/**
 * Extracts variables from the url based on the specified delimeter
 * @return{Object} object with variables from the url
 */        
function parseURLVar() {
  var DELIMETER = '#';
  var url = document.URL;
  var arrURL = url.split(DELIMETER);
  var vars = Object();
  var tempVar = Array();

  for (var i = 1; i < arrURL.length; i++) {
    tempVar = arrURL[i].split('=');
    vars[tempVar[0]] = tempVar[1];
  }
  return vars;
}
