/*************************/
/* OODRIVE QUICKR_EXT */
/*************************/

if (typeof MM != "undefined") {
	document.writeln('<script src="/qphtml/skins/quickr81/scripts/quickr81_oo_addressbook_filtering.js"><\/script>'); 
	if (haikuName == 'dev-quickr') {
		document.writeln('<script src="/qphtml/skins/quickr81/scripts/quickr81_oo_group_management.js"><\/script>'); 
		//MM.group.init();
	}
}

// Server wide settings :
var OOSettings = {
	ooAddressbookFiltering : true, // Activates filtering based on the current workspace account.  The same switch needs to be set in the home db profile document!!  Allows multiple companies on one server.  Implies use of Java search agent, the lookup of workspace account ID and on the fly member creation for at least the account manager.
	ooOptionJavaSearchAgent : true, // Switch to use of Java agent instead of native web services.  May be off in case LDAP connection is used, if not, it is advised to be on. The agent may be off the filtering type (requires ID) or not.
	ooOptionGroup : false, // This will show the group radio button. Only works with native ldap search for the moment and will be added to the Java search agent as well.  Generates problems with native NRPC search.
	ooOptionCreateMembersOnthefly : true, //Added for MayOE IRD.  Allows on the fly creation for all workspace managers and with no limit to the number of members.  May be combined with filtering.
	ooOptionSubmitMembersOnthefly : true, //For ergonomy, this option triggers the invitation of a new account immediately after it's creation.  No need to invite afterwards and no specific invitation mail is sent.
	ooOrg : "MayWebUsers" //AL 03/2011 => this must be consistent with the profile in home.nsf DO NOT ADD O=... in the profile document
}

// not necessary, js code is treating the case properly
//if (OOSettings.ooAddressbookFiltering == true) OOSettings.ooOptionJavaSearchAgent=true;

// May be used by individual themes or workspaces in order to override server values :
function ooSetOptionJavaSearchAgent(bSet) {
	OOSettings.ooOptionJavaSearchAgent = bSet;
}

function ooSetOptionGroup(bSet) {
	OOSettings.ooOptionGroup = bSet;
}

function ooSetOptionCreateMembersOnthefly(bSet) {
	OOSettings.ooOptionCreateMembersOnthefly = bSet;
}

