jQuery(document).ready(function($){
	
	jQuery.fn.fadeIn = function(speed, callback) { 
		return this.animate({opacity: 'show'}, speed, function() { 
			if (jQuery.browser.msie)  
				this.style.removeAttribute('filter');  
			if (jQuery.isFunction(callback)) 
				callback();  
		}); 
	}; 
	$('.img').animate({opacity: '1'}, {duration:50, complete: function(){$('.MailLoginBoxContainer, .SystemLoginBoxContainer').fadeIn(250);}});
	uiFormSwapValue('.system-login-input');
	$('span.helpmelink').click(function(){
		switch($(this).attr('id')){
			case "Help_Account":
				$('div.helpmebox').empty().append('<h2 class="ui-margin-bottom-5 ui-padding-bottom-0 ui-font-family-arial">What is my account ID?</h2><p>Your account ID is your website name (domain name). For example, if your domain name is &lsquo;www.yourwebsite.com&rsquo;, your account ID will be &lsquo;yourwebsite.com&rsquo;.</p>');
			break;
			case "Help_Password":
				$('div.helpmebox').empty().append('<h2 class="ui-margin-bottom-5 ui-padding-bottom-0 ui-font-family-arial">What is my password?</h2><p><strong>Your password will either be:</strong></p><ul class="ui-list-standard ui-margin-top-5"><li><p>Your original Mr Site activation code – this looks like, for example, BLUECAR123354. Always remember to use UPPER CASE</p></li><li><p>You may have changed your password inside your account. If you have done this but can’t remember what it is, click on ‘Click for a reminder’</p></li></ul>');
			break;
		}
	});
	
// /DOM
});
