/*globals ProfileUser, ProfileBit, ProfileUserEdit, ProfileBitEdit, doNifty */
var Profile = function() {
	var self = {
		loadWhichProfile: function(which) {
			if (which === 'user') { self.whichProfile = new ProfileUser(); }
			else if (which === 'bit') { self.whichProfile = new ProfileBit(); }
			else if (which === 'useredit') { self.whichProfile = new ProfileUserEdit(); }
			else if (which === 'bitedit') { self.whichProfile =  new ProfileBitEdit(); }
		},
		loadComments: function() { self.whichProfile.initCommentBox(); }
	};
	function setup() {
		//round corners
		doNifty("div#Profile");
		doNifty("div#white", "small");
		doNifty("div#contributions");
		doNifty("div#innerContent", "small");
		doNifty("div#subQuickMenu", "small");
		if (!window.ie) { doNifty("div#tabs div", "small top transparent"); }
		self.whichProfile = null;
	}
	window.addLoad(setup);
	return self;
}();