var qlub_excludedoptions = [ ];
var clientdir = "/clients/qlubfree0809/" ;
var qlubdir = "/bundles/qlub/" ;

q_elems[ "header" ] = { id : "artema_header" , urls : [ clientdir + "qlub_header_" + q_lang + ".html" ] , target : "topheader" } ;
// q_elems[ "adminleftcol" ] = { id : "artema_adminleftcol" , urls : [ qlubdir + "scripts/pages.js" , clientdir + "qlub_adminleftcol_" + q_lang + ".html" ] , target : "defaultleftcol" } ;
q_elems[ "adminleftcol" ] = { id : "artema_adminleftcol" , urls : [ clientdir + "qlub_adminleftcol_" + q_lang + ".html" ] , target : "defaultleftcol" } ;
q_elems[ "editsitemap" ] = { id : "qlub_editsitemap" , urls : [ qlubdir + "qlub_editsitemap_" + q_lang + ".html" , qlubdir + "scripts/qlub_sitemgr.js" , qlubdir + "scripts/qlub_sitemgr_msgs_" + q_lang + ".js" , qlubdir + "scripts/qlub_editsitemap.js" , qlubdir + "scripts/qlub_editsitemap_msgs_" + q_lang + ".js" ] , clienturls : [ clientdir + "qlubfree0809_editsitemap.js" ] , target : "qlub_admindrawer_mainpane" } ;
q_elems[ "sitemgr" ] = { id : "qlub_sitemgr" , urls : [ qlubdir + "scripts/qlub_sitemgr.js" , qlubdir + "scripts/qlub_sitemgr_msgs_" + q_lang + ".js" , qlubdir + "qlub_sitemgr_" + q_lang + ".html" ] , clienturls : [ clientdir + "qlubfree0809_sitemgr.js" ] , target : "qlub_admindrawer_mainpane" } ; // target : "q_fullscreenmask" } ;

/*
function CONFIG - qlub_tools
*/

sn_chooserlist = sn_chooserlist.concat( [ "fv" , "poll" ] ); //note qui sont dans la palette en offre "normal"
//note interdite pour ce client
var sn_toremove = [ "fv" , "slide" , "comment", "contact" , "poll" ] ;
/*
var j ;
for ( var i in sn_toremove ) {
	j = indexOfItem( sn_toremove[ i ] , sn_chooserlist ) ;
	if ( j != -1 ) sn_chooserlist.splice( j , 1 ) ;
	j = indexOfItem( sn_toremove[ i ] , decor_fulllist ) ;
	if ( j != -1 ) decor_fulllist.splice( j , 1 ) ;
}
*/
// suppression des notes qui sont ds la palette
var sn_client_palette = [ "wsg" , "title" , "pimg", "mcn" , "table" , "vol" ] ;
for ( var i in sn_client_palette ) {
	j = indexOfItem( sn_client_palette[ i ] , sn_chooserlist ) ;
	if ( j != -1 ) sn_chooserlist.splice( j , 1 ) ;
}


var qlub_maxpages = 4 ;
//var qlub_maxdisq = 0 ; on fait un return message ds le cas de "nouveau forum"
/*
function -
function INIT
*/

/*
function -
function HEADER & TABSMENU
*/

/*
function -
function LEFTCOL
*/

/*
function -
function SITE MGR
*/

function qlub_countsvc( type ) {
	var n = 0 ;
	var re = new RegExp( type ) ;
	for ( var i = 0 ; i < recent_services.length ; i++ ) {
		svc = recent_services[ i ] ;
		if ( re.test( svc.id ) ) n++ ;
	}
	return n ;
}

function qlub_newinfo() {
	if ( qlub_countsvc( "artemapage" ) >= qlub_maxpages ) qlub_needupgrade( "light" , "page" ) ;
	else qlub_open_admindrawer( "newinfo" ) ;
}

function qlub_newdisq() {
	qlub_needupgrade( "light" , "forum" ) ;
}

function qlub_newshareboard() {
	qlub_needupgrade( "premium" , "shareboard" ) ;
}

function qlub_opensitemgr( mode ) {
	var options ;
	switch ( mode ) {
		case "members" :
			options = { title : qlub_message[ "managegroups" ], tabs : [ "members", "groups", "disqpages" ] } ; // tabs : 4 maxi, le 1er du tableau est ouvert
			break ;
		case "pages" :
			options = { title : qlub_message[ "managepages" ], tabs : [ "infopages" ] } ;
			break ;
		case "newpage" :
			options = { title : qlub_message[ "managepages" ], tabs : [ "infopages" ] } ;
			break ;
	}
	q_include( [ q_elems[ "sitemgr" ] ] , "qlub_sitemgr_reveal" , [ options ] ) ;
}

/*
function -
function NOM DES MEMBRES
*/

/*
function -
function ADMIN DRAWER
*/

/*
function -
function TOPDRAWER
*/

/*
function -
function MANAGE WEBSITE
*/

/*
function -
function EDIT CLUB INFO
*/

/*
function -
function EDIT SITE MAP
*/

/*
function -
function EVENTS LOAD / MGR
*/

/*
function -
function CUSTOMIZE PAGE
*/

/*
function -
function NOTE MHP
*/

/*
function -
function E-MAIL ALERTS
*/

/*
function -
function ALIGN
*/
