function GetIcons3() {
this.domain=location.href+'/';
this.domain=this.domain.substr(this.domain.indexOf('://')+3);
this.domain=this.domain.substr(0,this.domain.indexOf('/'));
this.location=false;
this.selection=function() {
var sel;
if (window.getSelection) sel=window.getSelection();
else if (document.selection) sel=document.selection.createRange();
else sel='';
if (sel.text) sel=sel.text;
return encodeURIComponent(sel);
}
this.url=function(system) {
var title=encodeURIComponent(document.title);
var url=encodeURIComponent(location.href);

switch (system) {
  case 1: return 'http://www.facebook.com/sharer.php?u='+url+'&t='+title;
  case 2: return 'http://twitter.com/home?status='+title+' '+url;
  case 3: return 'http://del.icio.us/post?url='+url+'&&title='+title;
  case 4: return 'http://www.stumbleupon.com/submit?url='+url+'&&title='+title;
  case 5: return 'http://www.myspace.com/Modules/PostTo/Pages/?l=3&u='+url;
  case 6: return 'http://identi.ca/?action=newnotice&status_textarea=%E2%80%9C'+title+'%E2%80%9D%3a%20'+url;
  case 7: return 'http://www.reddit.com/login?dest=%2Fsubmit%3Furl%3D'+url+'%26title%3D'+title;
  case 8: return 'http://digg.com/submit?phase=2&url='+url+'&title='+title;
  case 9: return 'http://www.google.com/buzz/post?url='+url;
  case 10: return 'http://google.com/bookmarks/mark?op=add&bkmk='+url+'&title='+title;
  case 11: return 'http://www.blogger.com/blog_this.pyra?t&u='+url+'&n='+title+'&pli=1';
  case 12: return 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+url+'$t='+title;
  case 13: return 'http://www.linkedin.com/shareArticle?mini=true&url='+url+'&title='+title+'&ro=false&summary=&source=';
  case 14: return 'ping.fm';
  case 15: return 'squidoo';
  case 16: return 'wordpress';
  case 17: return 'yammer';
}
}

this.redirect=function() {
if (this.location) location.href=this.location;
this.location=false;
}

this.init=function() {
var titles=new Array('Facebook','Twitter','Delicious','StumbleUpon','MySpace','Identi.ca','Reddit','Digg','Google Buzz','Google','Blogger','Friend Feed','LinkedIn','','');
var html='';
for (i=0;i<13;i++) {
html+='<a target=_blank href="'+this.url(i+1)+'" onclick="return socialIcons3.go('+(i+1)+');"><img src="/img/blank.gif" width="16" height="16" alt=" #" title="'+titles[i]+'" style="border:0;padding:0;margin:0 4px 0 0;background:url(/img/panel_en.png) no-repeat -0px -'+(i*16)+'px"/></a> ';
}
html = '<div class="small_social">' + html + '</div>';
document.write(html);
}
}
socialIcons3=new GetIcons3();
socialIcons3.init();

