1jQuery(function(){ 2 var $sfAuth = jQuery('.sfauth'); 3 var $dwAuth = jQuery('#dw__login'); 4 if(!$sfAuth.length) return; 5 6 var link = document.createElement('a'); 7 link.className = 'switch'; 8 link.href = '#'; 9 link.innerHTML = LANG.plugins.sfauth.switch; 10 11 link.onclick = function() { 12 $dwAuth.dw_toggle(); 13 }; 14 15 $sfAuth.append(link); 16 $dwAuth.hide(); 17});