function loginbox() { document.write('  Login'); document.write(' |  Registrati'); } $(document).ready(function(){ $('a[rel*=logindialog]').click( function() { if ($(this).hasClass('delosid-open')) { $('#logindialog').slideUp(); $(this).removeClass('delosid-open') } else { $('#logindialog').load($(this).attr('href')); $('#logindialog').slideDown(); $(this).addClass('delosid-open') } return false; }); }); function logincancel() { $('#logindialog').slideUp(); return false; } function logindone() { if (window.location.hash) { var newlocation = window.location.href.replace(/\#.*/, ''); window.location.replace(newlocation); } else window.location.reload(); }