
$(function(){
 
  
   $("div.hinweis").hide();
   var text = "<strong>2 Klicks</strong> f&uuml;r mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie k&ouml;nnen Ihre Empfehlung senden. Schon beim Aktivieren werden Daten an Dritte &uuml;bertragen";
   $('div.hinweis').html(text);
   
   $('.fbConnect').mouseover(function(){
    
   //aktion beim over
   
   $(this).prev('div.hinweis').show();
   
   return false;
    
  }).mouseout(function(){
  
    $(this).prev("div.hinweis").hide();
	
  });
  
  $('.twConnect').mouseover(function(){
    
      $(this).prev('div.hinweis').show();
    
  }).mouseout(function(){
  
    $(this).prev("div.hinweis").hide();
	
  });
  
    $('.gConnect').mouseover(function(){
    
      //aktion beim over
      $(this).prev('div.hinweis').show();
    
  }).mouseout(function(){
  
    $(this).prev("div.hinweis").hide();
	
  });
  
 
  $('.twConnect').click(function()
  {
      var link    =  $(this).children('span').text();
      
      var twtext = '<a href="https://twitter.com/share" class="twitter-share-button" data-url="'+ link +'" data-count="horizontal">Tweet</a>'
      
      $(this).next().html(twtext);
      $(this).hide();
      $(this).parent().prepend('<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>'); //
     
      return false;
    
  });
  

  

$('.fbConnect').click(function(){
	var link    =  $(this).children('span').text();
	var fbText ='<iframe src="http://www.facebook.com/widgets/like.php?href='+ link +'&amp;layout=button_count&amp;width=110&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:105px; height:22px;" allowTransparency="true"></iframe>'
   $(this).next().html(fbText);
   $(this).hide();
 
   return false;
    
  });
      
   $('.gConnect').click(function()
   {
      var link    =  $(this).children('span').text();
      
      var gtext = '<iframe src="https://plusone.google.com/u/0/_/+1/fastbutton?url='+ link +'&amp;size=medium&amp;count=true&amp;lang=de" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:60px; height:24px;" align="left"></iframe>';
      $(this).next().html(gtext);
      $(this).hide();
      
      return false;
    
  });
   

});  
		


