/* Conversion Test
 * CasinoTop10 US, Review Design, Pulse 1 - Q4_09
 */

var ConvTest = {
	init: function()
	{
		if ( $('#pt-generaltoplist, #pt-flashgame').is('*') ) {

			//var conv_027_version = 'b';
			if ( typeof (conv_027_version) !== 'undefined' )
			{
				ConvTest.conversion(conv_027_version);

				/* Tracking
				 * name, the name or ID of the test
				 * selector, the css selector to find the element
				 * link_type, one of int, ext or all. ( Internal, External or All )
				 */
				if ( conv_027_version == 'b' ) {
					ActiveTests.add_test( 'us-review-design-toplist', '#mod-toplist-adv','ext' );
					//ActiveTests.add_test( 'us-review-design-review', '#mod-toplist-adv','int' );
					ActiveTests.add_test( 'us-review-design-trainer', '#blackjack-trainerBox','int' );
					ActiveTests.add_test( 'us-review-design-freebj-casinos', '#freeblackjackBox','ext' );
					ActiveTests.add_test( 'us-review-design-freebj', '#freeblackjackBox','int' );
					ActiveTests.add_test( 'us-review-design-main', '#mainBox','int' );
					ActiveTests.add_test( 'us-review-design-slots-tournaments', '#tournamentsBox','all' );
					ActiveTests.add_test( 'us-review-design-slots-jackpots', '#jackpotsBox','int' );
					ActiveTests.add_test( 'us-review-design-slots-winners', '#slotwinnersBox','int' );
					//ActiveTests.add_test( 'us-review-design-freeslots-flashgame', '#play-free-slots', 'int' );
					ActiveTests.add_test( 'us-review-design-freeslots-flashgameoffer', '.flash-game-offer', 'ext' );
					ActiveTests.add_test( 'us-review-design-freeslots-games', '#slotgamesBox', 'ext' );
					ActiveTests.add_test( 'us-review-design-rushmore-casino-promo', '#rushmoreBox', 'ext' );
				} else {
					//ActiveTests.add_test( 'us-review-design-blackjack-reviewlist', '#mod-review-list', 'int' ); // Blackjack - Casino Reviews
					//ActiveTests.add_test( 'us-review-design-blackjack-quickguides', '#mod-quick-guide', 'int' ); // Blackjack - Casino Games Quick Guide
					ActiveTests.add_test( 'us-review-design-blackjack-bonusoffers', '#mod-best-bonus', 'ext' ); // Blackjack - Top Casino Bonus Offers
					//ActiveTests.add_test( 'us-review-design-blackjack-maintext', '#mod-intro', 'int'); // Blackjack - Main Text
					ActiveTests.add_test( 'us-review-design-toplist', '#mod-toplist-adv','ext' ); // Toplist					
					
					ActiveTests.add_test( 'us-review-design-freeslots-maintext', '#flash-game-text', 'all'); // Free Slots Text
					ActiveTests.add_test( 'us-review-design-freeslots-maintext', '#flash-game-nav', 'int'); // Free Slots Text					
				}

			} else {
				$('#conv-027-original').show();		
			}
		}
	},
	
	conversion: function (conv_version)
	{	
		var page_url = document.location.pathname;
		
		switch (conv_version)
		{
		case 'b': // Version B
			
			if ( page_url == '/blackjack.shtml' )
			{
				$('body').addClass('conv-027-b');
				// Move intro image
				$('#games-intro-images').remove().prependTo('#main p:first');				
				$('<br /><a href="' + page_url + '#readfull">Read full text</a>').appendTo('#mod-intro p:eq(1)');
				// Insert a new box in main
				var $mainBox = ConvTest.makeBox('mainBox');
                $("#mod-intro p:eq(0)").after($mainBox.html());
				$('#mainBox .hd h3').html('Most popular blackjack articles');
				// content in mainBox
				var mainBoxContent = '';
				mainBoxContent += '<img class="right" src="http://www.casinotop10.net/content-media/articles/Strategy_main_blackjack.jpg" alt="" />';
				mainBoxContent += '<h4>Blackjack Strategy</h4>';
				mainBoxContent += '<p class="ft-border">Blackjack is a game found in nearly every casino in the world, and in virtually every online casino as well. Though the game may look complicated, all you really need to be able to do in order to play blackjack is add up to 21... <a href="/blackjack-strategy.shtml" class="readFull">Read full text</a></p>';
				mainBoxContent += '<h4>Blackjack Rules</h4>';
				mainBoxContent += '<p class="ft-border">Blackjack is a game thats notoriously player-friendly. If you thoroughly understand the rules, and if you know how to make the right play, then you can dramatically reduce the houses edge and increase your odds of winning... <a href="/blackjack-rules.shtml" class="readFull">Read full text</a></p>';
				mainBoxContent += '<p>More Blackjack <a href="/other-articles.shtml">articles</a> and <a href="/strategy-articles.shtml">strategy</a></p>';
				$('#mainBox').addClass('complex flow').find('.bd').html( mainBoxContent );

				$('<a name="readfull"></a>').insertAfter('#mainBox');
			
				// Convert all links to just text
				$('#mod-intro h3 ~p').find('a').each( function () {
					$(this).replaceWith( $(this).text() );
				});
			
				// remove div with text about free...
				$('#main h4:contains("Free Blackjack Games")').parent().remove();
				$('#main #mod-intro h3:last').css({ 'font-size':'20px', 'text-transform':'none' });
				
				var $bottomBox = ConvTest.makeBox('bottomBox');
				$( $bottomBox.html() ).insertAfter('#mainBox');
			
				var $toplist = ConvTest.makeBox('toplistBox');
				$('#sub').html( $toplist.html() );
				$('#sub .mod').addClass('complex flow');
				
				// Blackjack Trainer
				var $blackjacktrainer = ConvTest.makeBox('blackjack-trainerBox');
				$('#sub').append( $blackjacktrainer.html() );
				var blackjacktrainerContent = '';
				blackjacktrainerContent += '<h5>The CasinoTop10 Blackjack Trainer - For Free</h5>';
				blackjacktrainerContent += '<p>Take some time to study the strategies in blackjack - the CasinoTop10 blackjack trainer will help along the way to a better game and bigger winnings.';
				blackjacktrainerContent += '<br /><a href="/black-jack-strategy-trainer.shtml">Blackjack Trainer</a></p>';
				$('#blackjack-trainerBox').addClass('complex flow').find('.bd').html( blackjacktrainerContent );
				$('#blackjack-trainerBox .hd h3').html('Blackjack trainer');
				$('#blackjack-trainerBox .hd').append('<a href="/black-jack-strategy-trainer.shtml"><img src="/css/60-conversion/conv-027/blackjack-trainer.jpg" alt="Blackjack Trainer" /></a>');
				
				// Rushmore "add" (We recommend)
				var $rushmore = ConvTest.makeBox('rushmoreBox');
				$('#sub').append( $rushmore.html() );
				var rushmoreContent = '';
				rushmoreContent += '<a href="/goto/rushmore-casino.shtml" target="_blank"><img src="images/mini-toplist-article.jpg" alt="We recommend" style="margin: -10px 0 22px 9px" /></a>';
				$('#rushmoreBox').html( rushmoreContent );
				//$('#blackjack-trainerBox .hd h3').html('Blackjack trainer');
				//$('#blackjack-trainerBox .hd').append('<a href="/black-jack-strategy-trainer.shtml"><img src="/css/60-conversion/conv-027/blackjack-trainer.jpg" alt="Blackjack Trainer" /></a>');
				
				// Play Free Blackjack
				var $freeblackjack = ConvTest.makeBox('freeblackjackBox');
				$('#sub').append( $freeblackjack.html() );
				var freeblackjackContent = '';
				freeblackjackContent += '<h5>Play Free Blackjack here on CasinoTop10</h5>';
				freeblackjackContent += '<p>Take some time to study the strategies in blackjack - the CasinoTop10 blackjack trainer will help along the way to a better game and bigger winnings.';
				freeblackjackContent += '<br /><a href="/flash-casino/free-blackjack.shtml">Play free Blackjack</a></p>';
				freeblackjackContent += '<h5>Or Play for Free at the Big Casinos</h5>';
				freeblackjackContent += '<p>Register and play any game for free</p>';
				// Europa Casino
				freeblackjackContent += '<p><a href="/goto/europa-casino.shtml"><img style="float:left;padding-right:10px;" src="/css/60-conversion/conv-027/screenshot-europa-casino.jpg" alt="Europa Casino" /></a>';
				freeblackjackContent += '<a class="logo" href="/goto/europa-casino.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/europa-casino/_resampled/SetWidth60-promotion.jpg" alt="Europa Casino"/>';
				freeblackjackContent += 'Europa Casino</a><br/>';
				freeblackjackContent += 'Create an account to play for free.';
				freeblackjackContent += '<a class="play" href="/goto/europa-casino.shtml">Play for Free at Europa Casino</a></p>';
				// Bellini Casino
				freeblackjackContent += '<p style="clear:left"><a href="/goto/casino-bellini.shtml"><img style="float:left;padding-right:10px;" src="/css/60-conversion/conv-027/screenshot-bellini-casino.jpg" alt="Bellini Casino" /></a>';
				freeblackjackContent += '<a class="logo" href="/goto/europa-casino.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/casino-bellini/_resampled/SetWidth60-promotion.jpg" alt="Bellini Casino"/>';
				freeblackjackContent += 'Bellini Casino</a><br/>';
				freeblackjackContent += 'Create an account to play for free.';
				freeblackjackContent += '<a class="play" href="/goto/casino-bellini.shtml">Play for Free at Bellini Casino</a></p>';
				// Casino Tropez
				freeblackjackContent += '<p style="clear:left"><a href="/goto/casino-tropez.shtml"><img style="float:left;padding-right:10px;" src="/css/60-conversion/conv-027/screenshot-casino-tropez.jpg" alt="Casino Tropez" /></a>';
				freeblackjackContent += '<a class="logo" href="/goto/casino-tropez.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/casino-tropez/_resampled/SetWidth60-promotion.jpg" alt="Casino Tropez"/>';
				freeblackjackContent += 'Casino Tropez</a><br/>';
				freeblackjackContent += 'Create an account to play for free.';
				freeblackjackContent += '<a class="play" href="/goto/casino-tropez.shtml">Play for Free at Casino Tropez</a></p>';

				$('#freeblackjackBox').addClass('complex flow').find('.bd').html( freeblackjackContent );
				$('#freeblackjackBox .hd h3').html('Play Free Blackjack');
				$('#freeblackjackBox .hd').append('<a href="/flash-casino/free-blackjack.shtml"><img src="/css/60-conversion/conv-027/free-blackjack.jpg" alt="Play Free Blackjack" /></a>');

				// Put a timer here and check for ajax content to load...
				load = function()
				{
				    load.tryReady(0);
				}
				load.tryReady = function(time_elapsed)
				{
					if ( $('.currency-selector').is('*') )
					{
						// Content is loaded so let's make some changes...
						$('#mod-toplist-adv').removeClass('mod-2');
						$('#mod-toplist-adv .head').remove();
						$('#extraContent h3').remove();
						$('.currency-selector').remove();
						$('#mod-toplist-adv #h-us').remove();
						$('#mod-toplist-adv #h-rating').remove();
						$('#mod-toplist-adv #c-us').remove();
						$('#mod-toplist-adv #c-rating').remove();
						$('#mod-toplist-adv .c-us').remove();
						$('#mod-toplist-adv .c-rating').remove();

						$('#toplistBox .hd h3').addClass('section').text('Online blackjack top 10');
						$('th#h-match').text('Match');
						$('th#h-review').text('');

						$('#extraContent thead tr th:first-child').replaceWith('<th class="h-logo" colspan="3">Online Casino</th>');
						$('#extraContent tbody tr td:first-child').after('<td class="k-room"></td>');
						$('#extraContent .c-logo').each(function (i){
							$('a:nth-child(2)', this).remove().appendTo('.k-room:eq('+ i +')');
						});

						$('#extraContent td.c-logo').each( function (i){
							var count = i + 1;
							$(this).before('<td class="c-num">'+ count +'.</td>');	
						});

						// Just run this on localhost when coding/testing - since logos only exists on the live server (database)
						//$('#extraContent .c-logo a:first-child').html('<img alt="Europa Casino" src="http://www.casinotop10.net/assets/casino-rooms/europa-casino/_resampled/SetWidth60-promotion.jpg"/>');

						$('#sub #toplistBox .c-play-now a:first-child span').text('Play Now');
						$('#sub #toplistBox .c-play-now a.normal span').text('Review');
						$('#extraContent').remove().appendTo('#sub #toplistBox .bd');
						$('#toplistBox #extraContent').css('display','block');
						
						// Update tracker since it's loaded with AJAX
						// ClickTracker.init( '#mod-toplist-adv a' );
					}
					else
					{
						if (time_elapsed <= 5000)
						{
							setTimeout("load.tryReady(" + (time_elapsed + 200) + ")", 200);
						}
						return false;
					}
				}
				load();
			} // ************************************************* end blackjack.shtml
			else if ( page_url == '/slots.shtml' )
			{
				$('body').addClass('conv-027-b');

				// Insert read full link
				$('<br /><a href="' + page_url + '#readfull">Read full text</a>').appendTo('#mod-intro p:eq(1)');
				// Insert a new box in main
				var $mainBox = ConvTest.makeBox('mainBox');
				//$( $mainBox.html() ).insertAfter('#main p:eq(1)');
                $('#mod-intro p:eq(0)').after($mainBox.html());
				$('#mainBox .hd h3').html('Most popular slots articles');
				// content in mainBox
				var mainBoxContent = '';
				mainBoxContent += '<img class="right" src="http://www.casinotop10.net/content-media/articles/Strategy_main_slots.jpg" alt="" />';
				mainBoxContent += '<h4>Slots Strategy</h4>';
				mainBoxContent += '<p class="ft-border">The online world is full of slot machines. It would be impossible to describe them all, or even name them. Nevertheless, there are a number of tips and ideas regarding the best way of playing Slots... <a href="/slots-strategy-545.shtml" class="readFull">Read full text</a></p>';
				mainBoxContent += '<h4>Slots Rules</h4>';
				mainBoxContent += '<p class="ft-border">The rules of slot machines are simple, but there are a number of variations in slots that you may not be aware of or understand. If you\'re wandering into a casino for the first time in awhile, or you\'re trying... <a href="/slots-rules-and-variations.shtml" class="readFull">Read full text</a></p>';
				mainBoxContent += '<p>More Slots <a href="http://www.casinotop10.net/other-articles.shtml">articles</a> and <a href="http://www.casinotop10.net/strategy-articles.shtml">strategy</a></p>';
				$('#mainBox').addClass('complex flow').find('.bd').html( mainBoxContent );

				$('<a name="readfull"></a>').insertAfter('#mainBox');

				// Create toplist box
				var $toplist = ConvTest.makeBox('toplistBox');
				$('#sub').html( $toplist.html() );
				$('#sub .mod').addClass('complex flow');

				$('#mod-intro h4:contains("Did you know")').parent().remove();
				
				// Create tournaments box and get content
				var $tournaments = ConvTest.makeBox('tournamentsBox');
				$('#sub').append( $tournaments.html() );
				$('#tournamentsBox').addClass('complex flow');
				$('#SlotsTournaments').remove().appendTo('#tournamentsBox .bd').css('display','block');
				$('#tournamentsBox .hd h3').addClass('section').text('Todays upcomming slots tournaments');
				
				// USE THIS ONLY IN DEV
				// Add domain to image links
/*				$('#SlotsTournaments img').each( function () {
					$(this).attr('src', "http://www.casinotop10.net" + $(this).attr('src') );
				});
*/

				// Create progressive jackpots box
				var $jackpots = ConvTest.makeBox('jackpotsBox');
				$('#sub').append( $jackpots.html() );
				$('#jackpotsBox').addClass('complex flow');
				$('#ProgressiveJackpots').remove().appendTo('#jackpotsBox .bd').css('display','block');
				$('#jackpotsBox .hd h3').text('Progressive jackpots');
				// Hack the height of the jackpot logos wich sometimes are uneven in height
				$('.progressive-jackpot .progressiveImg').css( { 'height':'60px','width':'80px' } );

				// Create latest slots winners
				var $slotwinners = ConvTest.makeBox('slotwinnersBox');
				$('#sub').append( $slotwinners.html() );
				$('#slotwinnersBox').addClass('complex flow');
				$('#LatestJackpotWinners').remove().appendTo('#slotwinnersBox .bd').css('display','block');
				$('#slotwinnersBox .hd h3').text('Latest slots winners');
		
				
				// Put a timer here and check for ajax content to load...
				// The toplist
				load = function()
				{
				    load.tryReady(0);
				}
				load.tryReady = function(time_elapsed)
				{
					if ( $('.currency-selector').is('*') )
					{
						// Content is loaded so let's make some changes...
						$('#mod-toplist-adv').removeClass('mod-2');
						$('#mod-toplist-adv .head').remove();
						$('#extraContent h3').remove();
						$('.currency-selector').remove();
						$('#mod-toplist-adv #h-us').remove();
						$('#mod-toplist-adv #h-rating').remove();
						$('#mod-toplist-adv #c-us').remove();
						$('#mod-toplist-adv #c-rating').remove();				
						$('#mod-toplist-adv .c-us').remove();
						$('#mod-toplist-adv .c-rating').remove();

						$('#toplistBox .hd h3').addClass('section').text('Online slots top 10');
						$('th#h-match').text('Match');
						$('th#h-review').text('');

						$('#extraContent thead tr th:first-child').replaceWith('<th class="h-logo" colspan="3">Online Casino</th>');
						$('#extraContent tbody tr td:first-child').after('<td class="k-room"></td>');
						$('#extraContent .c-logo').each(function (i){
							$('a:nth-child(2)', this).remove().appendTo('.k-room:eq('+ i +')');
						});

						$('#extraContent td.c-logo').each( function (i){
							var count = i + 1;
							$(this).before('<td class="c-num">'+ count +'.</td>');	
						});

						// Just run this on localhost when coding/testing - since logos only exists on the live server (database)
						//$('#extraContent .c-logo a:first-child').html('<img alt="Europa Casino" src="http://www.casinotop10.net/assets/casino-rooms/europa-casino/_resampled/SetWidth60-promotion.jpg"/>');

						$('#sub #toplistBox .c-play-now a:first-child span').text('Play Now');
						$('#sub #toplistBox .c-play-now a.normal span').text('Review');
						$('#extraContent').remove().appendTo('#sub #toplistBox .bd');
						$('#toplistBox #extraContent').css('display','block');
						
						//ClickTracker.init( '#mod-toplist-adv a' );
					}
					else
					{
						if (time_elapsed <= 5000)
						{
							setTimeout("load.tryReady(" + (time_elapsed + 200) + ")", 200);
						}
						return false;
					}
				}
				load();
				
			} // ************************************************* end slots.shtml
			else if ( page_url == '/flash-casino/free-slots.shtml' || page_url == '/flash-casino/free-slot-machines.shtml' )
			{
				$('body').addClass('conv-027-b');
				$('#flash-game-nav').remove();
				$('#flash-game-game').wrap('<div id="flash-game-game-wrapper"></div>')
				$('#flash-game-game-wrapper').hide();

				// Remove parts from the div containing "More free slots games"
				$('#main h4:contains("More Free Slots Games")').parent().hide();
				
				// Convert all links in #main to just text
				$('#flash-game-text h2 ~p').find('a').each( function () {
					$(this).replaceWith( $(this).text() );
				});

				// Main column
				var $mainBox = ConvTest.makeBox('mainBox');
				$( $mainBox.html() ).insertAfter('#main p:eq(2)');
				$('#mainBox .hd h3').html('Most popular slots articles');
				// content in mainBox
				var mainBoxContent = '';
				mainBoxContent += '<img class="right" src="http://www.casinotop10.net/content-media/articles/Strategy_main_slots.jpg" alt="" />';
				mainBoxContent += '<h4>Slots Strategy</h4>';
				mainBoxContent += '<p class="ft-border">The online world is full of slot machines. It would be impossible to describe them all, or even name them. Nevertheless, there are a number of tips and ideas regarding the best way of playing Slots. We will go through the most important slots strategy concepts... <a href="/slots-strategy-545.shtml" class="readFull">Read full text</a></p>';
				mainBoxContent += '<h4>Slots Rules</h4>';
				mainBoxContent += '<p class="ft-border">The rules of slot machines are simple, but there are a number of variations in slots that you may not be aware of or understand. If you\'re wandering into a casino for the first time in awhile, or you\'re trying your hand at online slots and aren\'t sure about all the options available to you, here are some basic slots rules and variations to know.... <a href="/slots-rules-and-variations.shtml" class="readFull">Read full text</a></p>';
				mainBoxContent += '<p>More Slots <a href="/other-articles.shtml">articles</a> and <a href="/strategy-articles.shtml">strategy</a></p>';
				$('#mainBox').addClass('complex flow').find('.bd').html( mainBoxContent );
				
				// Right column
				// Free flash game - no download
				var flashOffer = '';
				flashOffer += '<div class="flash-game-offer">';
				flashOffer += '<a href="/slots.shtml" class="help"></a>';
				flashOffer += '<a href="/goto/888.com-casino.shtml" class="play"></a>';
				flashOffer += '</div>';
				$(flashOffer).appendTo('#flash-game-game');
				//$('<strong>Free Flash Slots</strong>').appendTo('#TB_ajaxWindowTitle');

				var $flashgame = ConvTest.makeBox('flashgameBox');
				$('#sub').html( $flashgame.html() );
				$('#sub .mod').addClass('complex flow');
				$('#sub .hd h3').html('Free Flash Game - No Download');
				$('#flashgameBox .hd').append('<a href="#TB_inline?height=570&width=550&inlineId=flash-game-game-wrapper&modal=false" id="play-slots-for-free-triggerImage" class="thickbox"><img src="/css/60-conversion/conv-027/freeflashgame.jpg" alt="Blackjack Trainer" /></a>');

				var freeflashContent = '';
				freeflashContent += '<h5>Play Free Slots Here on CasinoTop10</h5>';
				freeflashContent += '<p id="play-free-slots">Now you can play for free here on CasinoTop10, no obligations, no downloads - just fun!';
				freeflashContent += '<br /><a href="#TB_inline?height=570&width=550&inlineId=flash-game-game-wrapper&modal=false" id="play-slots-for-free-triggerLink" class="thickbox">Play Free Slots</a></p>';
				$('#flashgameBox .bd').html( freeflashContent );
				
				$('#play-slots-for-free-triggerImage, #play-slots-for-free-triggerLink').click(function(){
					var s=s_gi(s_account);
					tempVal = s.prop1;
					s.prop1 = "Conversion: casinotop10-play-slots-trigger";
					ClickTracker.track_sc_mbox( s );
					s.prop1 = tempVal;
				});
				
				// Right column
				// All free slots games
				var $slotgames = ConvTest.makeBox('slotgamesBox');
				$('#sub').append( $slotgames.html() );
				$('#sub #slotgamesBox').addClass('complex flow');
				$('#sub #slotgamesBox .hd h3').html('All free slot games');

				var freeslotsContent = '';
				// Europa Casino
				freeslotsContent += '<h5>Register and play any game for free</h5>';
				freeslotsContent += '<p><a href="/goto/europa-casino.shtml"><img style="float:left;padding-right:10px;" width="164" src="http://www.casinotop10.net/assets/casino-rooms/europa-casino/slots.jpg" alt="Europa Casino" /></a>';
				freeslotsContent += '<a class="logo" href="/goto/europa-casino.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/europa-casino/toplist.png" alt="Europa Casino"/>';
				freeslotsContent += 'Europa Casino</a><br/>';
				freeslotsContent += 'Europa Casino - Create an account to play for free</p>'
				freeslotsContent += '<a class="play" href="/goto/europa-casino.shtml">Play for free at Europa</a>';
				// Euro Grand
				freeslotsContent += '<p style="clear:left;margin:15px 0;"><a href="/goto/eurogrand-casino.shtml"><img style="float:left;padding-right:10px;" width="164" src="http://www.casinotop10.net/assets/casino-rooms/eurogrand-casino/slots.jpg" alt="EuroGrand Casino" /></a>';
				freeslotsContent += '<a class="logo" href="/goto/eurogrand-casino.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/eurogrand-casino/toplist.png" alt="EuroGrand Casino"/>';
				freeslotsContent += 'EuroGrand Casino</a><br/>';
				freeslotsContent += 'EuroGrand - Create an account to play for free.</p>';
				freeslotsContent += '<a class="play" href="/goto/eurogrand-casino.shtml">Play for Free at EuroGrand</a>';
				// Casino Tropez
				freeslotsContent += '<p style="clear:left;margin:15px 0;"><a href="/goto/casino-tropez.shtml"><img style="float:left;padding-right:10px;" width="164" src="http://www.casinotop10.net/assets/casino-rooms/casino-tropez/slots.jpg" alt="Casino Tropez" /></a>';
				freeslotsContent += '<a class="logo" href="/goto/casino-tropez.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/casino-tropez/toplist.gif" alt="Casino Tropez"/>';
				freeslotsContent += 'Casino Tropez</a><br/>';
				freeslotsContent += 'Tropez - Create an account to play for free.</p>';
				freeslotsContent += '<a class="play" href="/goto/casino-tropez.shtml">Play for Free at Tropez</a>';
				// 	21 Nova Casino
				freeslotsContent += '<p style="clear:left;margin:15px 0;"><a href="/goto/21-nova-casino.shtml"><img style="float:left;padding-right:10px;" width="164" src="http://www.casinotop10.net/assets/casino-rooms/21-nova/21-Novan-Slots.jpg" alt="21 Nova Casino" /></a>';
				freeslotsContent += '<a class="logo" href="/goto/21-nova-casino.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/21-nova/CT1021novatoplist.gif" alt="21 Nova Casino"/>';
				freeslotsContent += '21 Nova Casino</a><br/>';
				freeslotsContent += '21 Nova - Create an account to play for free.</p>';
				freeslotsContent += '<a class="play" href="/goto/21-nova-casino.shtml">Play for Free at 21 Nova</a>';
				// Casino770
				freeslotsContent += '<p style="clear:left;margin:15px 0;"><a href="/goto/casino770.shtml"><img style="float:left;padding-right:10px;" width="164" src="http://www.casinotop10.net/assets/casino-rooms/casino770/slots.jpg" alt="Casino770" /></a>';
				freeslotsContent += '<a class="logo" href="/goto/casino770.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/casino770/toplist.gif" alt="Casino770"/>';
				freeslotsContent += 'Casino770</a><br/>';
				freeslotsContent += 'Casino770 - Play instantly  for free</p>';
				freeslotsContent += '<a class="play" href="/goto/casino770.shtml">Play for Free at Casino770</a>';
				// William Hill Casino
				freeslotsContent += '<p style="clear:left;margin:15px 0;"><a href="/goto/william-hill-casino.shtml"><img style="float:left;padding-right:10px;" width="164" src="http://www.casinotop10.net/assets/casino-rooms/william-hill-casino/slots.jpg" alt="William Hill Casino" /></a>';
				freeslotsContent += '<a class="logo" href="/goto/william-hill-casino.shtml"><img src="http://www.casinotop10.net/assets/casino-rooms/william-hill-casino/toplist.gif" alt="William Hill Casino"/>';
				freeslotsContent += 'William Hill Casino</a></p>';
				freeslotsContent += '<p>William Hill - Create an account to play for free.<br/>';
				freeslotsContent += '<a class="play" href="/goto/william-hill-casino.shtml">Play for Free at William Hill</a>';
				freeslotsContent += '<p style="clear:left;"/>';
				$('#slotgamesBox').addClass('complex flow').find('.bd').html( freeslotsContent );
				$('#slotgamesBox .hd h3').addClass('section');
				
				$("#TB_closeWindowButton").click(function(ev){
					ev.preventDefault();
				});

			} // ************************************************* end free-slots.shtml
			
			break;

		case 'a': // Version A: Original
		
		default:
			break;
		}		



	},
	
	makeBox: function ( id_name )
	{
		box = '';
		box += '<div id="' + id_name + '" class="mod"> ';
		box += '<b class="top"><b class="tl"></b><b class="tr"></b></b> ';
		box += '<div class="inner">';
		box += '<div class="hd">';
		box += '<h3></h3>';
		box += '</div>';
		box += '<div class="bd">';
		box += '</div>';
		box += '</div>';
		box += '<b class="bottom"><b class="bl"></b><b class="br"></b></b> ';
		box += '</div>';
	  	return $( '<div>' ).html( box );
	}
	
};
