function new_add_fb_login_form()
{
    ?>
  <script type="text/javascript">
  if(jQuery.type(has_social_form) === "undefined"){
    var has_social_form = false;
    var socialLogins = null;
  }
  jQuery(document).ready(function(){
    (function($) {
      if(!has_social_form){
        has_social_form = true;
        var loginForm = $('#loginform,#registerform,#front-login-form');
        socialLogins = $('<div class="newsociallogins" style="text-align: center;"><div style="clear:both;"></div></div>');
        if(loginForm.find('input').length > 0)
          loginForm.prepend("<h3 style='text-align:center;'>OR</h3>");
        loginForm.prepend(socialLogins);
        socialLogins = loginForm.find('.newsociallogins');
      }
      if(!window.fb_added){
        socialLogins.prepend('<?php 
    echo addslashes(preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', new_fb_sign_button()));
    ?>
');
        window.fb_added = true;
      }
    }(jQuery));
  });
  </script>
  <?php 
}
function new_add_fb_login_form()
{
    ?>
  <script type="text/javascript">
  if(jQuery.type(has_social_form) === "undefined"){
    var has_social_form = false;
    var socialLogins = null;
  }
  jQuery(document).ready(function(){
    (function($) {
      if(!has_social_form){
        has_social_form = true;
        var loginForm = $.merge($('#loginform'),$('#registerform'));
        socialLogins = $('<div class="newsociallogins inline-block"></div>');
        if(loginForm.find('input').length > 0)
          loginForm.prepend("<h3 class=\"inline-block oroption\">OR</h3>");
        loginForm.prepend(socialLogins);
      }
      if(!window.fb_added){
        socialLogins.prepend('<?php 
    echo addslashes(preg_replace('/^\\s+|\\n|\\r|\\s+$/m', '', new_fb_sign_button()));
    ?>
');
        window.fb_added = true;
      }
    }(jQuery));
  });
  </script>
  <?php 
}