
var ConvTest =
{
	init:function()
	{
		/* 1. CasinoTop10 US, Site Wide, Right Nav - Pulse 3, Q1_09
		************************************************************/
		if( typeof( site_wide_right_nav_version ) !== 'undefined' )
		{
			ConvTest.site_wide_right_nav_test();
		}
		// Things are fixed and we can now show the right nav
		$('#sub').show();
		
	},
	
	/* 1. CasinoTop10 US, Site Wide, Right Nav - Pulse 3, Q1_09
	************************************************************/
	site_wide_right_nav_test:function()
	{
		switch(site_wide_right_nav_version){
			case "b":
				// Add test scope class
				$('html').addClass('sub-test-b');
				
				// Change some module heading texts
				$('#mod-quick-guide h3').text('Quick Game Guide');
				$('#mod-best-bonus h3').text('Top Casino Bonus');
				
				// Add module heading icons
				$('#sub h3').append('<span class="icon"></span>');
				
				/*
					mod-quick-guide
				*/
				
				// Add :last-child class to the game list items
				$('#mod-quick-guide ul:eq(0) li:last-child').addClass('l-c');
				
				// Add seperators between each link (list item)
				$('#mod-quick-guide li li:not([class])').append(' - ');
				
				/*
					mod-best-bonus
				*/
				
				// Move the module to appear after mod-search (to become the second module)
				$('#mod-best-bonus').insertAfter($('#mod-search'));
				
				// Add links to the bonus information
				var urls = [];
				$('#mod-best-bonus th a').each(function()
				{
					urls.push($(this).attr('href'));
				});
				
				$('#mod-best-bonus td.l-c').each(function(i)
				{
					$(this).wrapInner('<a href="'+urls[i]+'"></a>');
				});
				
				/*
					mod-strategy-articles
				*/
				
				// Add :last-child class to the game list items
				$('#mod-strategy-articles ul li:last-child').addClass('l-c');
				break;
			case "a":
			default:
				break;
		}
		
		// Apply tracking
		ActiveTests.add_test( 'nav-test-best-bonus', '#mod-best-bonus', 'all' );
		ActiveTests.add_test( 'nav-test-review-list', '#mod-review-list', 'int' );
		ActiveTests.add_test( 'nav-test-quick-guide', '#mod-quick-guide', 'int' );
		ActiveTests.add_test( 'nav-test-strategy-articles', '#mod-strategy-articles', 'int' );
	}
};
