/*
-------------------------------------------------------- 
The Fabler - Login specific js
Author: Sam Lu
Author URI: http://samlu.ca

-------------------------------------------------------- 
*/

// Functions

var Forms = {
	init: function() {
		$("#login-form").append('<input type="text" name="fakepassword" value="password" class="input-largetext" id="fakepassword" /><input type="password" name="password" value="" class="input-largetext" id="password" /><p><input type="submit" title="Sign In" class="sign_in" value="" /></p>');
		
		$(".input-largetext").focus(function(){
			this.value = "";			
			$(this).css('color', '#000000');
			
			if(this.id == "fakepassword") {
				$(this).hide();
				$("#password").show();
				$("#password").focus();
			}	
		});
		
		if($("#username").val() != "username/email")
			$("#username").css("color", "#000000");
	}
}

$(document).ready(function(){
	Forms.init();
});


