var s = '';
	 BitlyCB.shortenResponse = function(data) {
                var first_result;
                // Results are keyed by longUrl, so we need to grab the first one.
                for     (var r in data.results) {
                        first_result = data.results[r]; break;
                }
               var i=0;
                for (var key in first_result) {
	       if(i==2)
                        	s = first_result[key].toString();
                        i++;
                }
        }
function makeLinkShare(whometoshare, title){
    switch(whometoshare){
        case 'myspace':
                        url='http://www.myspace.com/Modules/PostTo/Pages/?l=3&u='+s+'&t='+title;
                        break;
        case 'facebook':
                        url='http://www.facebook.com/share.php?u='+s+'&t='+title;
                        break;
        case 'mail':
                        url='mailto:?SUBJECT=GoSeeDo Event&BODY=Hi here is the link for the event '+title+' '+s;
                        break;
        
    }
    window.location=url;
}