
      function mapAttributes(attributes) {
        var attrs = attributes.split('&');
        var attrsMap = {};
        
        for(var i in attrs) {
          var keyval = attrs[i].split('=');
          attrsMap[keyval[0]] = keyval[1];
        }
        
        return attrsMap;
      }
      
      function openTip() {
        //window.open('http://' + window.location.host + '/remote_todo' + window.location.search,
		window.open('http://foursquare.com' + '/remote_todo?vid=14490560' + window.location.search,
                      '_blank',
                      'toolbar=0,status=0,height=380,width=650,scrollbars=no,resizable=no');
      }
      
      function getColor(attrs) {
	    var color = attrs.color;
        if(typeof attrs.color == 'undefined') { color = 'white'; }
        if(color != 'white' && color != 'dark' && color != 'blue') { color = 'white'; }
        return color;
      }
      
    //  (function(){
     //   var attrs = mapAttributes(window.location.search.substr(1));
    //    document.getElementById('sq4Button').className = getColor(attrs);
     // })();

