var shareUrl = self.location.href;
var shareTitle = document.title;
var share_services_active = true;
var share_services_headline = "Jetzt mitteilen:";
var share_services = new Array();
share_services[0] = new Array('delicious','http://delicious.com/save?url={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/delicious.gif');
share_services[1] = new Array('Digg','http://digg.com/submit?phase=2&url={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/digg.gif');
share_services[2] = new Array('facebook','http://www.facebook.com/sharer.php?u={#share_url}&t={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/facebook.gif');
share_services[3] = new Array('Google','http://www.google.com/bookmarks/mark?op=edit&bkmk={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/google.gif');
share_services[4] = new Array('Google Buzz','http://www.google.com/buzz/post?url={#share_url}&message={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/google_buzz.png');
share_services[5] = new Array('meinVZ','http://www.meinvz.net/Link/Share/?url={#share_url}&bm_description={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/meinvz.gif');
share_services[6] = new Array('Mister Wong','http://www.mister-wong.com/index.php?action=addurl&bm_url={#share_url}&bm_description={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/mrwong.gif');
share_services[7] = new Array('myspace','http://www.myspace.com/Modules/PostTo/Pages/?u={#share_url}&t={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/myspace.gif');
share_services[8] = new Array('Reddit','http://www.reddit.com/submit?url={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/reddit.gif');
share_services[9] = new Array('studiVZ','http://www.studivz.net/Link/Share/?url={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/studivz.gif');
share_services[10] = new Array('StumbleUpon','http://www.stumbleupon.com/submit?url={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/stumbleupon.gif');
share_services[11] = new Array('Twitter','http://twitter.com/home/?status={#share_url}','http://www.akleptik.de/contenido/cms/images/share_icons/twitter.gif');
share_services[12] = new Array('Windows Live','https://favorites.live.com/quickadd.aspx?url={#share_url}&title={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/windowslive.gif');
share_services[13] = new Array('Yahoo!Buzz','http://buzz.yahoo.com/submit/?submitUrl={#share_url}&submitHeadline={#share_title}','http://www.akleptik.de/contenido/cms/images/share_icons/yahoobuzz.gif');
share_services[14] = new Array('Yammer','https://www.yammer.com/home?status={#share_url}','http://www.akleptik.de/contenido/cms/images/share_icons/yammer.gif');
share_services[15] = new Array('Email','mailto:?subject=Eine Empfehlung zu {#share_title}&body=URL: {#share_url}','http://www.akleptik.de/contenido/cms/images/share_icons/email.gif');

function shareThis(url,service) {
  var currentShareUrl = shareUrl;
  url = url.replace("{#share_url}", escape(currentShareUrl));
  url = url.replace("{#share_title}", escape(shareTitle));
  if(url.indexOf("mailto:")==-1) 
    window.open(url,"share");
  else
    location.href=url;
  return false;
}

function shareContent(){
  var strBuffer = '<div id="shareDialog" onmouseover="setVisibility(\'shareDialog\',1);setVisibility(\'formsearch\',0)" onmouseout="setVisibility(\'shareDialog\',0);setVisibility(\'formsearch\',1)">';
  strBuffer += '<img src="images/1x1_trans.gif" width="100%" height="30" alt="Empfehlen">';//share_services_headline;
  strBuffer += '<table border="0" cellpadding="2" cellspacing="0" width="100%">';
  strBuffer += '<tr><td></td><td rowspan="99">&nbsp;&nbsp;</td><td></td></tr>';
  for (i=0; i<share_services.length; i++) {
    if(i%2==0) strBuffer += '<tr>';
    strBuffer += '<td><a href="javascript://" onclick="javascript:shareThis(\''+share_services[i][1]+'\');"><img src="'+share_services[i][2]+'" class="shareIcon"><img alt="" src="images/1x1_trans.gif" class="arrow">'+share_services[i][0]+'</a></td>';
    if(i%2==1) strBuffer += '</tr>';
  }
  strBuffer += '</table></div>';
  document.write(strBuffer);
}

