function animater(amount,elem,data){$('div#passchange div#formBox div#infoContainer').data('elm',elem);$('div#passchange div#formBox div#arrowLeft').animate({top:amount},400);$('div#passchange div#formBox div#info').fadeOut('fast',function(){$(this).html(data).fadeIn('fast');});}
var usernameInfo='<h3>Username</h3><p><b>In this field enter your network username.</b></p><p>This is the one that you use to log onto a college PC and log into your webmail.  The standard learner Username has the following format...</p><p><b>Username</b> = initials + id number (see your ID card e.g. <b>hg746293</b>)</p>';var mobnoInfo='<h3>Mobile Phone Number</h3><p><b>Enter the last 5 digits of your mobile phone number (eg. 63788).</b></p><p>This must be the same number entered into your Moodle user profile.</p><p>If your password is reset successfully then a text message will be sent to this number.</p>';var altEmail='<h3>Alternative Email</h3><p><b>Enter your alternative email address.</b></p><p>This is the same as entered into your Moodle user profile.</p><p>If this matches then your new password will also be sent to this email address in addition to your Mobile phone.</p>';$(document).ready(function(){$('div#passchange div#formBox div#infoContainer').data('elm','username');$('div#info').html(usernameInfo);var domPath=$('div#passchange div#formBox');var focusElm;domPath.find('input#username').click(function(){$(focusElm).removeClass('focused');focusElm='input#username';$(this).addClass('focused');if(domPath.find('div#infoContainer').data('elm')!='username'){animater("9px","username",usernameInfo);};});domPath.find('input#mobno').click(function(){$(focusElm).removeClass('focused');focusElm='input#mobno';$(this).addClass('focused');if(domPath.find('div#infoContainer').data('elm')!='mobno'){animater("49px","mobno",mobnoInfo);};});domPath.find('input#altemail').click(function(){$(focusElm).removeClass('focused');focusElm='input#altemail';$(this).addClass('focused');if(domPath.find('div#infoContainer').data('elm')!='altemail'){animater("120px","altemail",altEmail);};});});
