FANDOM


//
if( wgNamespaceNumber != -1 && !window.ShowAdsLoad  )
{
	addOnloadHook( addShowAdsButton );
}
var ShowAdsLoad = true; // prevent duplication

function addShowAdsButton () {
	switch( skin ) {
		case 'answers': /* pass to monaco */
		case 'awesome':
		case 'monaco':
			$('<li id="control_ads" class=""><div> </div><a id="ca-skins" href="/index.php?title='+encodeURIComponent(wgPageName)+'&showads=1" rel="nofollow">show ads</a></li>').appendTo('#page_controls');
                break;


		case 'uncyclopedia': /* pass to monobook */
		case 'monobook':
			$('<li id="ca-ads"><a href="/index.php?title='+encodeURIComponent(wgPageName)+'&showads=1">show ads</a></li>').appendTo('#p-cactions > .pBody > ul');
			break;

	}
}

//