var qlub_excludedoptions = [ ];
// désactivation de l'accès aux sponsors
var sponsorsmgr_disabled = true ;

function pages_adsdimensions() {
	return { width : 120 , paddingleft : 0 , paddingright : 6 , inpage : false }
}

function qlub_ads_checkadd( site ) {
	if ( q_pagemode() == "makeweb" ) return false ;
	var spaceads = q_spaceparam( "ads" ) ;
	if ( spaceads && ( spaceads.enabled || ( spaceads[ site ] && spaceads[ site ].enabled ) ) ) {
		return "active" ;
		if ( spaceads.active == "false" ) return false ;
		else return "active" ;
	}
	if ( q_pagemode() == "edit" ) return false ;
	return "pub" ;
}
function qlub_init_adshandler() {
	return { "top_active" : qlub_init_topads , "right_active" : qlub_init_rightads , "bottom_active" : qlub_init_bottomads , "top_pub" : qlub_init_pubtopads , "right_pub" : qlub_init_pubrightads , "bottom_pub" : qlub_init_pubbottomads } ;
}
function qlub_init_pubtopads( siteads ) {
	document.write( '<script type="text/javascript">\n' + '//<![CDATA[\n' + 'GA_googleFillSlot("ad_top") ;\n' + '//]]>\n' + '</script>' ) ;
}
function qlub_init_pubbottomads( siteads ) {
	document.write( '<script type="text/javascript">\n' + '//<![CDATA[\n' + 'GA_googleFillSlot("ad_bottom_1") ;\n' + '//]]>\n' + '</script>' ) ;
}
function qlub_init_pubrightads( siteads ) {
	if ( ! window.pages_adsdimensions ) return ;
	var x = pages_adsdimensions() ;
	var w = x.width - x.paddingleft - x.paddingright ;
	var td = ge( "qlub_ads_addright_elem" ) ;
	if ( td ) {
		td.style.width = w + "px" ;
		td.style.padding = "6px " + x.paddingright + "px 6px " + x.paddingleft + "px" ;
	}
	document.write( '<script type="text/javascript">\n' + '//<![CDATA[\n' + 'GA_googleFillSlot("ad_right") ;\n' + '//]]>\n' + '</script>' ) ;
}

/*
function qlub_ads_addtop() {
	if ( q_pagemode() != "makeweb" ) {
		var spaceads = q_spaceparam( "ads" ) ;
		if ( spaceads && ( spaceads.enabled || ( spaceads.top && spaceads.top.enabled ) ) ) {
			if ( spaceads.active == "false" ) return ;
			else return qlub_init_topads( spaceads.top ) ;
		} else document.write( '<script type="text/javascript">\n' + '//<![CDATA[\n' + 'GA_googleFillSlot("ad_top") ;\n' + '//]]>\n' + '</script>' ) ;
	}
}

function qlub_ads_addbottom() {
	if ( q_pagemode() != "makeweb" ) document.write( '<script type="text/javascript">\n' + '//<![CDATA[\n' + 'GA_googleFillSlot("ad_bottom_1") ;\n' + '//]]>\n' + '</script>' ) ;
}

function qlub_ads_addright() {
	if ( ! window.pages_adsdimensions ) return ;
	if ( q_pagemode() != "makeweb" ) {
		var x = pages_adsdimensions() ;
		var w = x.width - x.paddingleft - x.paddingright ;
		var td = ge( "qlub_ads_addright_elem" ) ;
		if ( td ) {
			td.style.width = w + "px" ;
			td.style.padding = "6px " + x.paddingright + "px 6px " + x.paddingleft + "px" ;
		}
		document.write( '<script type="text/javascript">\n' + '//<![CDATA[\n' + 'GA_googleFillSlot("ad_right") ;\n' + '//]]>\n' + '</script>' ) ;
	}
}
*/

function qlub_init_ads() {}