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

// 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 + "qlublight0805_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 + "qlublight0805_sitemgr.js" ] , target : "qlub_admindrawer_mainpane" } ; // target : "q_fullscreenmask" } ;

sn_chooserlist = sn_chooserlist.concat( [ "fv" ] ); //note qui sont dans la palette en offre "normal"
var sn_toremove = [ "fv" , "slide" ] ;
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 ) ;
}
*/
j = indexOfItem( "vol" , sn_chooserlist ) ;
if ( j != -1 ) sn_chooserlist.splice( j , 1 ) ;
/*
sn_chooserlist = [ "dn", "countdown", "hello_intl" , "broll" ,"clock" , "mcn" ] ;
var burl = q_getabsolutebaseurl() ;
if ( burl == "http://beta2.quomodo.com/" || burl == "http://localhost/" || burl == "http://club2.quomodo.com/" || /\.local\/$/.test( burl ) ) {
	sn_chooserlist = sn_chooserlist.concat( [ "rss" , "eqr" , "letter" , "gm", "amazon", "flickr", "bookmarks", "knox", "meteo" ] ) ;
}
*/

var qlub_maxpages = 12 ;
var qlub_maxdisq = 3 ;
/*
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( "premium" , "page" ) ;
	else qlub_open_admindrawer( "newinfo" ) ;
}

function qlub_newdisq() {
	if ( qlub_countsvc( "artemadisq" ) >= qlub_maxdisq ) qlub_needupgrade( "premium" , "forum" ) ;
	else qlub_open_admindrawer( "newdisq" ) ;
}

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 CUSTOMIZE PAGE
*/

/*
function -
function NOTE MHP
*/

/*
function -
function E-MAIL ALERTS
*/

/*
function -
function ALIGN
*/
