jQuery(document).ready(function() {
    var oldBox = $('#passwordlogin');
    newBox = $('<input id="clone" class="autofill pass" type="text" rel="Password"/>');
    newBox.insertBefore(oldBox);
    oldBox.hide(); 
    setInputs();
});
var setInputs = function(){	
$('.autofill').not('#passwordlogin').each(function(){$(this).val($(this).attr('rel'));});
$('.autofill').focus(function(){if( $(this).attr("id") == "clone"  ){$(this).hide();$('#passwordlogin').show().focus();}if( $(this).val() == $(this).attr('rel')  ){$(this).val( '' );}});
$('.autofill').blur(function(){if( $(this).val() == '' ){if( $(this).attr("id") == "passwordlogin"  ){ $(this).hide();  $('#clone').show().val($('#clone').attr('rel'));} else {	$(this).val( '' );$(this).val(  $(this).attr('rel') ) ;}}});}

