var Application =  {
	 lastId: 0,
	
    getNewId: function() {
	   Application.lastId++;
	   return "window_id_" + Application.lastId;
    },

	addCreateProfileWindow: function(theme, modal) {
	 var idButton = theme + '_theme_button';
		var html = "<a class=\"darkGrayUnderline seventy\" style=\"font-size: 100%;\" onclick=\"Application.openThemeWindow('" + theme + "')\">create your profile</a>";
	document.write(html)
	},
	
	addLoginWindow: function(theme, modal) {
	 var idButton = theme + '_theme_button';
		var html = "<span class='login' onclick=\"Application.openLoginWindow('" + theme + "')\">Login</span>";
	document.write(html)
	},
	
	openThemeWindow: function(theme, modal) {
	  var win = new Window(Application.getNewId(), {className: theme, width:300, height:200, resizable: false, minimizable: false, maximizable: false, title: "<span style='color: #ffffff; font-size: 12px; font-weight: bold;'>Create a Profile</span>"});
	  win.getContent().innerHTML= "<p style='margin: 15px 0 15px 0; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px;' align='center'>Enter your email, username, and password to create a profile.</p><table cellpadding='5' cellspacing='5' style='margin-left: 13px;'><tr><td class='createProfile' width='100'>Email</td><td><input class='signInTextbox' type='text' name='email' id='emailTxt' /></td></tr><tr><td colspan='2'><div style='height: 4px; display: block;'></div></td></tr><tr><td class='createProfile'>Username</td><td><input class='signInTextbox' type='text' name='username' id='usernameTxt' /></td></tr><tr><td colspan='2'><div style='height: 4px; display: block;'></div></td></tr><tr><td class='createProfile'>Password</td><td><input class='signInTextbox' type='password' name='password' id='passwordTxt' /></td></tr><tr><td colspan='2'><div style='height: 8px; display: block'></div></td></tr><tr><td></td><td><input type='submit' class='button' value='Create Profile' name='create' id='createBtn' /></td></tr></table>";
	  win.showCenter(modal);
	},
		
	addRightColumn: function() {
	document.write();    
	
	setTimeout(Application.moveFrame, 100);
	},
	

}
