function do_sbm(){	
	var __imgdir="/sbm/";
	var __title = encodeURIComponent(document.title);
	var __url = encodeURIComponent(document.URL);
	_do_sbm('delicious', 'del.icio.us', 'http://del.icio.us/post?url=' + __url + '&amp;title=' + __title);
	_do_sbm('digg', 'Digg This', 'http://digg.com/submit?phase=2' + __url + '&amp;title=' + __title);
	_do_sbm('facebook', 'Facebook', 'http://www.facebook.com/share.php?u=' + __url);  
}
function _do_sbm(icon, name, url) {document.write('<a href="' + url + '" title="Add to ' + name +'"><img src="/sbm/' + icon + '.gif" border=0 alt="' + name + ' icon" /></a> ');}
do_sbm();

function _twitteradd() {
    var xfgd  = 'wirelesswatch';
    var fdsr = 'R_429bcd826de33858da5f5e2d148529ad';
    api = 'http://api.bit.ly/shorten' + '?version=2.0.1' + '&format=json' + '&callback=Callback' + '&login=' + xfgd + '&apiKey=' + fdsr + '&longUrl=';        
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = api + encodeURIComponent(location.href);
    document.body.appendChild(script);
}

function Callback(json) {
    var _url = 'http://twitter.com/home/?status=' + encodeURIComponent( document.title+' '+json.results[location.href]['shortUrl']);
        location.href = _url;
}