/**
 * @file		data.js
 * @author 		JVST
 * @date		09/13/2011
 * @project		Pokemon Rumble Blast 
 */
var baseScene = {
    id: "",
    size: [600, 600],
    center: [0, 0],
    sideQuest: !1,
    triggers: [],
    elts: [],
    scenes: [],
    contentformat: '',
    changeFormat: function() {},
    currentSubScene: 0,
    nextScene: function (a){ return typeof Contents[a + 1] == "undefined"?-1:a+1; },
    prevScene: function (a){ return a-1; },
    onCreated: function () {},
    onActivate: function () {},
    onDeactivate: function () {},
    onHash: function () {},
    state: 0,
    translated: false,
    onMoveToSubContent: function(idx){}
};


/**
 * ANIMATIONS TYPES
 */
var ExplosionTimer = [
	400,
	300
];

var ExplosionTypesFadeOut = [
    { 'opacity':'0', 'margin-left':'-=300px', 'margin-top':'-=150px', 'width':'+=20px', 'height': '+=20px' }, // LEFT BACKGROUND
    { 'opacity':'0', 'margin-left':'-=220px', 'margin-top':'-=180px', 'width':'+=20px', 'height': '+=20px' }, // LEFT CONTENT
    { 'opacity':'0', 'margin-left':'+=340px', 'margin-top':'-=130px', 'width':'+=20px', 'height': '+=20px' }, // RIGHT BACKGROUND
    { 'opacity':'0', 'margin-left':'+=250px', 'margin-top':'-=120px', 'width':'+=20px', 'height': '+=20px' }, // CAROUSEL
    { 'opacity':'0', 'margin-left':'+=350px', 'margin-top':'-=110px', 'width':'+=20px', 'height': '+=20px' } // BUTTONS
];
var NoExplosionTypesFadeOut = [
	{ opacity:0, 'left':'-=0px', 'top':'-=0px', 'width':'-=20px', 'height':'-=20px' },
  	{ opacity:0, 'left':'-=0px', 'top':'-=0px', 'width':'-=20px', 'height':'-=20px' },
  	{ opacity:0, 'left':'+=0px', 'top':'-=0px', 'width':'-=20px', 'height':'-=20px' },
  	{ opacity:0, 'left':'+=0px', 'top':'+=0px', 'width':'-=20px', 'height':'-=20px' },
  	{ opacity:0, 'left':'+=0px', 'top':'-=0px', 'width':'-=20px', 'height':'-=20px' },
  	{ opacity:0, 'left':'+=0px', 'top':'+=0px', 'width':'-=20px', 'height':'-=20px' }
];
var NoExplosionTypesFadeIn = [
   	{ opacity:1, 'width':'+=20px', 'height':'+=20px' },
 	{ opacity:1, 'width':'+=20px', 'height':'+=20px' },
 	{ opacity:1, 'width':'+=20px', 'height':'+=20px' },
 	{ opacity:1, 'width':'+=20px', 'height':'+=20px' },
 	{ opacity:1, 'width':'+=20px', 'height':'+=20px' },
 	{ opacity:1, 'width':'+=20px', 'height':'+=20px' }
];


/**
 * BACKGROUNDS
 */
var Background = [
    { id:"sky", img:"images/sky_pokemon.jpg", size:[6000,1800], pos:[-100,0], depth:0.1, zIndex:0.1 }
];


/**
 * CONTENTS
 */
var Contents = [
	/**
	 * HOME
	 * 
	 */
    {
    	id		: "home",
    	size	: [2000,1900],
		center	: [0,0],
		coins	: 3,
		coinsIdx: 0,
		coinsDisplayed: false,
		contentformat	: '',
		elts 	: [{pos:[-980,-1200], depth: 1, zIndex:2.1, html: "<div><img src='images/content/home/divider-cloud.png' width='100' height='1200'/></div>"},
		     	   {pos:[-25,-1924], size:[2000,1900], depth: 1, zIndex:2, img: "images/content/home/background.jpg"},
		     	   {pos:[0,110], vcenter: true, size:[800,100], depth:1.4, zIndex:2.9, html:'<div id="coins_txt_info" class="banner-black-clicktocollect"><h3 id="TRANS_1_LEFT_COINS_TITLE">{TRANS_1_LEFT_COINS_TITLE}</h3><span id="TRANS_1_LEFT_COINS_SUBTITLE">{TRANS_1_LEFT_COINS_SUBTITLE}</span></div>' +
		     		   													'<div id="coins_container_0" class="coins_container_home" style="width:205px;" data-content="0" data-subcontent=""></div>' +
		     		   													'<div class="banner-red-next"><div id="txt_mouse_tip" class="TRANS_1_RIGHT_MOUSE_KEYS">{TRANS_1_RIGHT_MOUSE_KEYS}</div></div>'},
		     		{pos:[0,-80], vcenter: true, size:[524,285], depth: 1, zIndex:2.9, html: "<div id='home_player_container' style='width:524px;height:285px;'></div>"},
		     		{pos:[0,-80], vcenter: true, size:[540,300], depth: 1, zIndex:2.3, 
		     			html: '<div class="video_home">' +
		     				'<div class="pokecarousel default rightbackground" style="width:540px;height:300px; position: absolute;">' +
					    		'<div class="top"><div class="left"></div><div class="center" style="width:534px;"></div><div class="right"></div></div>' +
					    		'<div class="middle"><div class="left" style="height:294px;"></div><div class="center" style="width:534px;height:294px;"></div><div class="right" style="height:294px;"></div></div>' +
					    		'<div class="bottom"><div class="left"></div><div class="center" style="width:534px;"></div><div class="right"></div></div>' +
						    '</div>' },
		     		{pos:[990,0], size:[50,2000], vcenter:true, depth:1, zIndex:5.4, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"}],
		onCreated : function(){ 
			CoinsManager.addCoins(0);	// Add coins on stage
		},
		// Events
		onActivate: function(){
			var dVidW = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 377 : 524;
			var dVidH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 205 : 285;
			var dBgW = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 387 : 534;
			var dBgH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 215 : 294;
			var dVideoML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 70 : 0;
			var dVideoMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 80 : 0;
			// Timer to remove the tip
			if($("#txt_mouse_tip") != undefined) $("#txt_mouse_tip").timer({ callback: function() { $('#txt_mouse_tip').fadeOut('slow',function(){ $('#txt_mouse_tip').parent().remove();});}, delay:5000, repeat:1 });
			// Video player
			if(BrowserPokemon.isIpad() || BrowserPokemon.isIphone()){
				$('#home_player_container').html("<div id='home_player' style='width:"+dVidW+"px;height:"+dVidH+"px;'><video width='"+dVidW+"' height='"+dVidH+"' autoplay controls poster='preview.jpg'><source src='videos/Pokemon_Rumble_Blast.m4v' /></video></div>");
	    	} else {
	    		$('#home_player_container').html("<div id='home_player' style='width:"+dVidW+"px;height:"+dVidH+"px;'></div>");
	    		this.player = new SwfVideoPlayer("home_player", {f4v:PLANG.getHomeVideo(), ogg:"", mp4:"", showMii:"true", instructions:PLANG.getInstructions(), replay:PLANG.getReplay()}, "swf/player.swf");
	    	}
			
			/*$('#home_player_container').css({'width':dVidW+'px', 'height':dVidH+'px', 'margin-left':dVideoML+'px'});
			$('#home_player_container').parent().css({'height':dVidH+'px'});
			$('.video').parent().css({'height':dVidH+'px'});*/
			
			$('#home_player_container').css({'width':dVidW+'px', 'height':dVidH+'px', 'margin-left':dVideoML+'px'});
			$('#home_player').css({'width':dVidW+'px', 'height':dVidH+'px'});
			$('#home_player_container').parent().css({'height':dVidH+'px','margin-top':dVideoMT+'px'});
			$('.video_home').parent().css({'height':dVidH+'px','margin-top':dVideoMT+'px'});
			// bg color
			$('.video_home .pokecarousel.default.rightbackground').css({ 'width':(dBgW+6)+'px', height:dBgH+'px', 'margin-left':dVideoML+'px' });
			$('.video_home .top .center').css({'width':dBgW+'px'});
			$('.video_home .middle .left').css({'height':dBgH+'px'});
			$('.video_home .middle .center').css({'width':dBgW+'px', 'height':dBgH+'px'});
			$('.video_home .middle .right').css({'height':dBgH+'px'});
			$('.video_home .bottom .center').css({'width':dBgW+'px'});
		},
		onDeactivate: function(){ 
			if($("#home_player").length > 0 && $("#home_player")[0] != undefined){
				$("#home_player")[0].stopVideo();
				$('#home_player').remove(); // Remove video player
			}
		},
		changeFormat: function(){
			var dVidW = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 377 : 524;
			var dVidH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 205 : 285;
			var dBgW = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 387 : 534;
			var dBgH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 215 : 294;
			var dVideoML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 70 : 0;
			var dVideoMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 80 : 0;
			var dContentBottom = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -100 : 0;
			
			$('#home_player_container').css({'width':dVidW+'px', 'height':dVidH+'px', 'margin-left':dVideoML+'px'});
			$('#home_player').css({'width':dVidW+'px', 'height':dVidH+'px'});
			
			$('#home_player_container').parent().css({'height':dVidH+'px','margin-top':dVideoMT+'px'});
			$('.video_home').parent().css({'height':dVidH+'px','margin-top':dVideoMT+'px'});
			
			// bg color
			$('.video_home .pokecarousel.default.rightbackground').css({ 'width':(dBgW+6)+'px', height:dBgH+'px', 'margin-left':dVideoML+'px' });
			$('.video_home .top .center').css({'width':dBgW+'px'});
			$('.video_home .middle .left').css({'height':dBgH+'px'});
			$('.video_home .middle .center').css({'width':dBgW+'px', 'height':dBgH+'px'});
			$('.video_home .middle .right').css({'height':dBgH+'px'});
			$('.video_home .bottom .center').css({'width':dBgW+'px'});
		},
		onFirstCoinWon: function(){  },
		onAllCoinsWon: function() { $('#coins_txt_info').fadeOut('fast',function(){$(this).remove();}); },
		prevScene: function (t) { return !1; },
		triggers: [{ atX: 20, onForward: function(){ $("#container1").compatFadeOut(400);}},
		           { atX: -20, onBackward: function(){ $("#container1").compatFadeOut(400);}}]
    },
    /**
     * TOY POKEMON
     * 
     */
    {
		id		: "toy-pokemon",
		size	: [2400,1900],
		center	: [2250,0],
		currentSubScene	: 0,
		contentformat	: '',
		elts 	: [{pos:[0,-400], size:[0,0], depth: 0.4, zIndex:1.6, html: '<div id="pokemon_deco_1"></div>'},
		     	   {pos:[0,0], vcenter: true, depth: 0.4, zIndex:1.8, html: '<img id="power_atom_1" class="power_atom" src="images/misc/power_atom.png"/>'},
		     	   {pos:[0,-1924], size:[2400,1800], depth: 0.45, scale:true, deltaTop:3.1, zIndex:1, img: 'images/content/toy-pokemon/background.jpg'},
		     	   {pos:[-130,420], vcenter: true, size:[750,100], depth:0.4, zIndex:1.7, html:'<div id="coins_container_1" class="coins_container_home" style="width:500px;" data-content="1" data-subcontent=""></div>'},
		     	   {pos:[130,-42], vcenter: true, size:[1000,300], depth: 0.6, zIndex:1.4, html: '<div id="subcontents1" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[0,288], vcenter: true, depth:0.6, zIndex:1.9, html: '<div id="subnav_1" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'}],
    	subcontents	: [{id		: "blast-off-to-toyland",
			    		size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 2,
			    		coinsIdx: 0,
			    		coinsDisplayed: false,
			    		contentformat	: '',
			    		elts	: [{ id:'#1_0_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
    								'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
    								'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
    							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_2_SUB_1_TITLE}</h2><div class='desc'>{TRANS_2_SUB_1_DESCRIPTION}</div></div>"+
    							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
    		    					'<div class="middle"><div class="left" style="height:303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
    		    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
    		    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_1_0" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
    		    					'<li style="width:400px;height:280px;margin-left:0px;"><img alt="{TRANS_2_SUB_1_IMAGE_1_TEXT}" src="{TRANS_2_SUB_1_IMAGE_1}"><div class="desc">{TRANS_2_SUB_1_IMAGE_1_TEXT}</div></li>' + 
    		    					'<li style="width:400px;height:280px;margin-left:400px;"><img alt="{TRANS_2_SUB_1_IMAGE_2_TEXT}" src="{TRANS_2_SUB_1_IMAGE_2}"><div class="desc">{TRANS_2_SUB_1_IMAGE_2_TEXT}</div></li>' + 
    		    					'<li style="width:400px;height:280px;margin-left:800px;"><img alt="{TRANS_2_SUB_1_IMAGE_3_TEXT}" src="{TRANS_2_SUB_1_IMAGE_3}"><div class="desc">{TRANS_2_SUB_1_IMAGE_3_TEXT}</div></li></ul></div>' + 
    		    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="1_0_left_arrow" class="buttonLeft"></div><div id="1_0_right_arrow" class="buttonRight"></div></div>'},
    		    				{ id:'#pokemon1', pos:[480,105], size:[144,131], zIndex:1.6, depth:0.6, img:'images/content/toy-pokemon/snivvy.png'},
    		    				{ id:'#pokemon2', pos:[-670,50], size:[114,182], zIndex:1.6, depth:0.5, img:'images/content/toy-pokemon/pikachu.png'}],	
			    		// Events
			    		onCreated: function(){ },
			    		onFirstCoinWon: function(){ },
			    		onAllCoinsWon: function(){ },
			    		onActivate: function(){ 
			    			$("#toypokemon_1_0").pcarousel({
			    				leftArrow: '#1_0_left_arrow', 
			    				rightArrow: '#1_0_right_arrow',
			    				callback: function(id){ if(id==1){ CoinsManager.addCoins(1,0); }}
			    			});
			    		},
			    		onDeactivate: function(){ CoinsManager.removeCoins(1,0); },
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var dNavMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -70 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents1 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents1 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftcontent').css({ 'width':(340+delta1)+'px', 'margin-left':(20+delta2)+'px' });
			    			$('#subcontents1 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents1 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents1 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents1 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents1 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_1').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_1').css({ 'margin-top':dNavMT+'px' });
			    		}
		    		},{
	    				id		: "find-the-glowdrops",
	    				size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#1_1_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:37px;width:380px;height:250px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:244px;"></div><div class="center" style="width: 363px; height: 244px;"></div><div class="right" style="height: 244px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:58px;width:340px;height:210px;z-index:12.2;'><h2>{TRANS_2_SUB_2_TITLE}</h2><div class='desc'>{TRANS_2_SUB_2_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:309px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
		    				'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height:303px;"></div><div class="right" style="height: 303px;"></div></div>' +
		    				'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
		    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_1_1" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
		    				'<li style="width:400px;height:280px;margin-left:0px;"><img alt="{TRANS_2_SUB_2_IMAGE_1_TEXT}" src="{TRANS_2_SUB_2_IMAGE_1}"><div class="desc">{TRANS_2_SUB_2_IMAGE_1_TEXT}</div></li>' + 
		    				'<li style="width:400px;height:280px;margin-left:400px;"><img alt="{TRANS_2_SUB_2_IMAGE_2_TEXT}" src="{TRANS_2_SUB_2_IMAGE_2}"><div class="desc">{TRANS_2_SUB_2_IMAGE_2_TEXT}</div></li>' + 
		    				'<li style="width:400px;height:280px;margin-left:800px;"><img alt="{TRANS_2_SUB_2_IMAGE_3_TEXT}" src="{TRANS_2_SUB_2_IMAGE_3}"><div class="desc">{TRANS_2_SUB_2_IMAGE_3_TEXT}</div></li>'+
		    				'<li style="width:400px;height:280px;margin-left:1200px;"><img alt="{TRANS_2_SUB_2_IMAGE_4_TEXT}" src="{TRANS_2_SUB_2_IMAGE_4}"><div class="desc">{TRANS_2_SUB_2_IMAGE_4_TEXT}</div></li></ul></div>' + 
		    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="1_1_left_arrow" class="buttonLeft"></div><div id="1_1_right_arrow" class="buttonRight"></div></div>'},
		    				{ id:'#pokemon3', pos:[-630,80], size:[132,165], zIndex:1.5, depth:0.5, img:'images/content/toy-pokemon/emolga.png'}],	
			    		// Events
		    			onCreated: function(){ },
			    		onActivate: function(){ $("#toypokemon_1_1").pcarousel({leftArrow:'#1_1_left_arrow', rightArrow:'#1_1_right_arrow'}); },
						onDeactivate: function(){  },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents1 .leftbackground').css({ 'height': (250+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents1 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .left').css({ height:(244+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .center').css({ height:(244+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .right').css({ height:(244+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents1 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents1 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents1 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents1 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents1 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_1').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_1').css({ 'margin-top':delta1+'px' });
			    		}
	    			},{
	    				id		: "battle-and-befriend",
	    				size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#1_2_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:63px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_2_SUB_3_TITLE}</h2><div class='desc'>{TRANS_2_SUB_3_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
		    				'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
		    				'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
		    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_1_2" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
		    				'<li style="width:400px;height:280px;margin-left:0px;"><img alt="{TRANS_2_SUB_3_IMAGE_1_TEXT}" src="{TRANS_2_SUB_3_IMAGE_1}"><div class="desc">{TRANS_2_SUB_3_IMAGE_1_TEXT}</div></li>' + 
		    				'<li style="width:400px;height:280px;margin-left:400px;"><img alt="{TRANS_2_SUB_3_IMAGE_2_TEXT}" src="{TRANS_2_SUB_3_IMAGE_2}"><div class="desc">{TRANS_2_SUB_3_IMAGE_2_TEXT}</div></li>' + 
		    				'<li style="width:400px;height:280px;margin-left:800px;"><img alt="{TRANS_2_SUB_3_IMAGE_3_TEXT}" src="{TRANS_2_SUB_3_IMAGE_3}"><div class="desc">{TRANS_2_SUB_3_IMAGE_3_TEXT}</div></li>' + 
		    				'<li style="width:400px;height:280px;margin-left:1200px;"><img alt="{TRANS_2_SUB_3_IMAGE_4_TEXT}" src="{TRANS_2_SUB_3_IMAGE_4}"><div class="desc">{TRANS_2_SUB_3_IMAGE_4_TEXT}</div></li>' +
		    				'<li style="width:400px;height:280px;margin-left:1600px;"><img alt="{TRANS_2_SUB_3_IMAGE_5_TEXT}" src="{TRANS_2_SUB_3_IMAGE_5}"><div class="desc">{TRANS_2_SUB_3_IMAGE_5_TEXT}</div></li>' +
		    				'<li style="width:400px;height:280px;margin-left:2000px;"><img alt="{TRANS_2_SUB_3_IMAGE_6_TEXT}" src="{TRANS_2_SUB_3_IMAGE_6}"><div class="desc">{TRANS_2_SUB_3_IMAGE_6_TEXT}</div></li>' +
		    				'<li style="width:400px;height:280px;margin-left:2400px;"><img alt="{TRANS_2_SUB_3_IMAGE_7_TEXT}" src="{TRANS_2_SUB_3_IMAGE_7}"><div class="desc">{TRANS_2_SUB_3_IMAGE_7_TEXT}</div></li>' +
		    				'</ul></div>' + 
		    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="1_2_left_arrow" class="buttonLeft"></div><div id="1_2_right_arrow" class="buttonRight"></div></div>'},
		    				{ id:'#pokemon4', pos:[-605,70], size:[114,176], zIndex:1.5, depth:0.5, img:'images/content/toy-pokemon/zorua.png'}],	
			    		// Events
		    			onCreated: function(){ },
			    		onActivate: function(){ $("#toypokemon_1_2").pcarousel({ leftArrow: '#1_2_left_arrow', rightArrow: '#1_2_right_arrow'}); },
						onDeactivate: function(){ CoinsManager.removeCoins(1,2); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents1 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents1 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents1 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents1 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents1 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents1 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents1 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_1').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_1').css({ 'margin-top':delta1+'px' });
			    		}
	    			},{
	    				id		: "legendary-encounters",
	    				size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 5,
			    		coinsIdx: 0,
			    		coinsDisplayed: false,
			    		contentformat	: '',
			    		elts	: [{ id:'#1_3_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_2_SUB_4_TITLE}</h2><div class='desc'>{TRANS_2_SUB_4_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
		    				'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
		    				'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
		    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_1_3" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
		    				'<li style="width:400px;height:280px;margin-left:0px;"><img alt="{TRANS_2_SUB_4_IMAGE_1_TEXT}" src="{TRANS_2_SUB_4_IMAGE_1}"></a><div class="desc">{TRANS_2_SUB_4_IMAGE_1_TEXT}</div></li>' + 
		    				'<li style="width:400px;height:280px;margin-left:400px;"><img alt="{TRANS_2_SUB_4_IMAGE_2_TEXT}" src="{TRANS_2_SUB_4_IMAGE_2}"></a><div class="desc">{TRANS_2_SUB_4_IMAGE_2_TEXT}</div></li></ul></div>' + 
		    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="1_3_left_arrow" class="buttonLeft"></div><div id="1_3_right_arrow" class="buttonRight"></div></div>'},
		    				{ id:'#pokemon4', pos:[-700,40], size:[204,173], zIndex:1.5, depth:0.5, img:'images/content/toy-pokemon/pokemon3.png'}],	
			    		// Events
		    			onFirstCoinWon: function(){ },
						onAllCoinsWon: function(){ },
			    		onCreated: function(){  },
			    		onActivate: function(){ 
			    			$("#toypokemon_1_3").pcarousel({
			    				leftArrow:'#1_3_left_arrow', 
			    				rightArrow:'#1_3_right_arrow',
			    				callback: function(id){ 
			    					if(id==($('#toypokemon_1_3 li').length-1)){ CoinsManager.addCoins(1,3); }
			    				}
			    			});
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(1,3); },
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents1 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents1 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents1 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents1 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents1 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents1 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents1 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents1 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents1 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents1 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents1 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents1 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_1').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_1').css({ 'margin-top':delta1+'px' });
			    		}
	    			}],
    	onCreated : function(){ },
    	onActivate: function(){ },
		onDeactivate: function(){ },
		onMoveToSubContent: function(scIdx){ }
    },
    /**
     * MOVES
     * 
     */
    {
		id		: "moves",
		size	: [2000,700],
		center	: [4800,0],
		currentSubScene	: 0,
		contentformat	: '',
		coins	: 2,
		coinsIdx: 0,
		coinsDisplayed: false,
		elts 	: [{pos:[-1000,0], 	size:[50,2000], vcenter:true, repos:true, reposAlign:'left', depth:1, zIndex:5.4, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"},
		     	   {pos:[0,-400], 	size:[0,0], depth: 1.0, zIndex:2.6, html: '<div id="pokemon_deco_2"></div>'},
		     	   {pos:[0,-1924], 	size:[2000,1800], depth: 1.0, zIndex:2.1, img: 'images/content/moves/background.jpg'},
		     	   {pos:[-50,200], 	size:[750,100], vcenter: true, depth:1.1, zIndex:2.5, html:'<div id="coins_container_2" class="coins_container_home" style="width:500px;" data-content="2" data-subcontent=""></div>'},
		     	   {pos:[0,-20], 	size:[845,300], vcenter: true, depth: 1.2, zIndex:2.4,
		    			html: '<div id="subcontents2">' + 
		    					'<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:40px;width:380px;height:260px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
								'<div class="middle"><div class="left" style="height:254px;"></div><div class="center" style="width: 363px; height: 254px;"></div><div class="right" style="height: 254px;"></div></div>' + 
								'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:58px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_3_SUB_1_TITLE}</h2><div class='desc'>{TRANS_3_SUB_1_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:340px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
		    					'<div class="middle"><div class="left" style="height: 330px;"></div><div class="center" style="width: 434px; height: 330px;"></div><div class="right" style="height: 330px;"></div></div>' +
		    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
		    				'<div style="overflow:hidden;" id="carousel">'+
		    					'<ul id="moves_2_0" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:0px;width:400px;height:330px;z-index:12.2;">' + 
		    					'<li style="width:400px;height:280px;margin-left:0px;"><div class="barred-title"><h2><span>{TRANS_3_SUB_1_IMAGE_1_SUBTITLE}</span></h2></div><img src="{TRANS_3_SUB_1_IMAGE_1}"><div class="desc">{TRANS_3_SUB_1_IMAGE_1_TEXT}</div></li>' + 
		    					'<li style="width:400px;height:280px;margin-left:400px;"><div class="barred-title"><h2><span>{TRANS_3_SUB_1_IMAGE_2_SUBTITLE}</span></h2></div><img src="{TRANS_3_SUB_1_IMAGE_2}"><div class="desc" style="margin-top:4px;">{TRANS_3_SUB_1_IMAGE_2_TEXT}</div></li>' + 
		    					'<li style="width:400px;height:280px;margin-left:800px;"><div class="barred-title"><h2><span>{TRANS_3_SUB_1_IMAGE_3_SUBTITLE}</span></h2></div><img src="{TRANS_3_SUB_1_IMAGE_3}"><div class="desc">{TRANS_3_SUB_1_IMAGE_3_TEXT}</div></li>' +
		    					'<li style="width:400px;height:280px;margin-left:1200px;"><div class="barred-title"><h2><span>{TRANS_3_SUB_1_IMAGE_4_SUBTITLE}</span></h2></div><img src="{TRANS_3_SUB_1_IMAGE_4}"><div class="desc">{TRANS_3_SUB_1_IMAGE_4_TEXT}</div></li>' +
		    					'<li style="width:400px;height:280px;margin-left:1600px;"><div class="barred-title"><h2><span>{TRANS_3_SUB_1_IMAGE_5_SUBTITLE}</span></h2></div><img src="{TRANS_3_SUB_1_IMAGE_5}"><div class="desc" style="margin-top:4px;">{TRANS_3_SUB_1_IMAGE_5_TEXT}</div></li></ul></div>' +
		    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="2_0_left_arrow" class="buttonLeft"></div><div id="2_0_right_arrow" class="buttonRight"></div></div>' +
		    				'</div>'},
		    		{pos:[500,-380], size:[172,208], zIndex:2.3, depth:1.1, img:'images/content/moves/lilup.png'},
		    		{pos:[-500,-440], size:[182,254], zIndex:2.3, depth:1.1, img:'images/content/moves/teipig.png'},
		    		{pos:[1000,0], size:[50,2000], vcenter:true, repos:true, reposAlign:'right', depth:1, zIndex:5.4, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"}],
    	onCreated : function(){ },
		onActivate: function(){ 
			$("#moves_2_0").pcarousel({
				leftArrow:'#2_0_left_arrow', 
				rightArrow:'#2_0_right_arrow',
				callback: function(id){ 
					if(id==2){ CoinsManager.addCoins(2); }
				}
			}); 
		},
		onFirstCoinWon: function(){ },
		onAllCoinsWon: function(){ },
		onDeactivate: function(){ CoinsManager.removeCoins(2); },
		changeFormat: function(){
			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -50 : 0;
			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 50 : 0;
			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			
			$('#subcontents2 .leftbackground').css({ height: (260+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			$('#subcontents2 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			$('#subcontents2 .leftbackground .middle .left').css({ height:(254+delta1)+'px' });
			$('#subcontents2 .leftbackground .middle .center').css({ height:(254+delta1)+'px', width:(363+delta1)+'px' });
			$('#subcontents2 .leftbackground .middle .right').css({ height:(254+delta1)+'px' });
			$('#subcontents2 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			$('#subcontents2 .leftcontent').css({ width:(340+delta1)+'px', 'margin-left':(20+delta2)+'px' });
			$('#subcontents2 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px','line-height':(20+delta3)+'px' });
			$('#subcontents2 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			$('#subcontents2 .rightbackground').css({ width:(460+delta1)+'px',height:(340+delta1)+'px' });
			$('#subcontents2 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			$('#subcontents2 .rightbackground .middle .left').css({ height:(330+delta1)+'px' });
			$('#subcontents2 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(330+delta1)+'px' });
			$('#subcontents2 .rightbackground .middle .right').css({ height:(330+delta1)+'px' });
			$('#subcontents2 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			$('#subcontents2 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			$('#subcontents2 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			$('#subcontents2 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			$('#subcontents2 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			
			var i = 0;
			$('#subcontents2 #carousel ul li').each(function(){
				var nNewML = i*(400+delta1);
				$(this).css('margin-left', nNewML+'px');
				i++;
			});
			
			$('#coins_container_2').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
		}
	},
	/**
     * YOUR ADVENTURE
     * 
     */
    {
		id		: "your-adventure",
		size	: [2400,700],
		center	: [7000,0],
		contentformat	: '',
		currentSubScene	: 0,
		elts 	: [{pos: [0,-400], size:[0,0], depth: 0.44, zIndex:1.4, html: '<div id="pokemon_deco_3"></div>'},
		     	   {pos:[0,0], vcenter: true, depth: 0.4, zIndex:1.8, html: '<img id="power_atom_3" class="power_atom" src="images/misc/power_atom.png"/>'},
		     	   {pos:[0,-1924], size:[2400,1800], depth: 0.45, zIndex:1, scale:true, deltaTop:3.1, deltaLeft:5, img: 'images/content/your-adventure/background.jpg'},
		     	   {pos:[120,-35], vcenter: true, size:[1000,300], depth: 0.6, zIndex:1.4, html: '<div id="subcontents3" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[0,295], vcenter: true, depth:0.6, zIndex:1.6, html: '<div id="subnav_3" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'},
		     	   {pos:[-120,400], vcenter: true, size:[750,100], depth:0.5, zIndex:1.5, html:'<div id="coins_container_3" class="coins_container_home" style="width:500px;" data-content="3" data-subcontent=""></div>'}],
    	subcontents	: [{id		: "town-and-country",
			    		size	: [845,300],
			    		center	: [1600,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#3_0_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
									'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
									'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:82px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_4_SUB_1_TITLE}</h2><div class='desc'>{TRANS_4_SUB_1_DESCRIPTION}</div></div>"+
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
			    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_3_0" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
			    					'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_4_SUB_1_IMAGE_1}"><div class="desc">{TRANS_4_SUB_1_IMAGE_1_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_4_SUB_1_IMAGE_2}"><div class="desc">{TRANS_4_SUB_1_IMAGE_2_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_4_SUB_1_IMAGE_3}"><div class="desc" style="{TRANS_4_SUB_1_IMAGE_3_TEXT_EXTRACSS}">{TRANS_4_SUB_1_IMAGE_3_TEXT}</div></li>' +
			    					'<li style="width:400px;height:280px;margin-left:1200px;"><img src="{TRANS_4_SUB_1_IMAGE_4}"><div class="desc">{TRANS_4_SUB_1_IMAGE_4_TEXT}</div></li></ul></div>' + 
			    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="3_0_left_arrow" class="buttonLeft"></div><div id="3_0_right_arrow" class="buttonRight"></div></div>'},
			    				{ id:'#pokemon2', pos:[470,-50], zIndex:1.3, depth:0.47, img:'images/content/your-adventure/emolga.png'}],
			    		// Events
			    		onCreated: function(){ },
			    		onActivate: function(){ $("#toypokemon_3_0").pcarousel({leftArrow:'#3_0_left_arrow', rightArrow:'#3_0_right_arrow'}); },
			    		onDeactivate: function(){ },
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents3 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents3 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents3 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents3 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents3 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents3 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents3 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents3 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents3 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents3 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents3 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_3').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_3').css({ 'margin-top':delta1+'px' });
			    		}
			    	},{
						id		: "the-wilds-of-toyland",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 2,
			    		coinsIdx: 0,
			    		coinsDisplayed: false,
			    		contentformat	: '',
			    		elts	: [{ id:'#3_1_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_4_SUB_2_TITLE}</h2><div class='desc'>{TRANS_4_SUB_2_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
							'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
							'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_3_1" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
							'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_4_SUB_2_IMAGE_1}"><div class="desc">{TRANS_4_SUB_2_IMAGE_1_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_4_SUB_2_IMAGE_2}"><div class="desc" style="{TRANS_4_SUB_2_IMAGE_2_TEXT_EXTRACSS}">{TRANS_4_SUB_2_IMAGE_2_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_4_SUB_2_IMAGE_3}"><div class="desc">{TRANS_4_SUB_2_IMAGE_3_TEXT}</div></li></ul></div>' + 
							'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="3_1_left_arrow" class="buttonLeft"></div><div id="3_1_right_arrow" class="buttonRight"></div></div>'},
							{ id:'#pokemon1', pos:[-600,-30], zIndex:1.3, depth:0.47, img:'images/content/your-adventure/lilup.png'}],	
			    		// Events
						onFirstCoinWon: function(){ },
				    	onAllCoinsWon: function(){ },
			    		onCreated: function(){ },
			    		onActivate: function(){ 
			    			$("#toypokemon_3_1").pcarousel({
			    				leftArrow:'#3_1_left_arrow', 
			    				rightArrow:'#3_1_right_arrow',
			    				callback: function(id){
			    					if(id==1){ CoinsManager.addCoins(3,1); }
			    				}
			    			}); 
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(3,1); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents3 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents3 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents3 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents3 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents3 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents3 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents3 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents3 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents3 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents3 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents3 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents3 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents3 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_3').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_3').css({ 'margin-top':delta1+'px' });
			    		}
					}],
    	onCreated : function(){ },
    	onActivate: function(){ },
		onDeactivate: function(){ }
	},
	/**
     * BATTLES
     * 
     */
    {
		id		: "battles",
		size	: [2000,700],
		center	: [9500,0],
		contentformat	: '',
		currentSubScene	: 0,
		elts 	: [{pos:[-985,0], size:[50,2000], vcenter:true, repos:true, reposAlign:'left', depth:1, zIndex:5.4, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"},
		     	   {pos:[0,-480], size:[0,0], depth: 1, zIndex:2.2, html: '<div id="pokemon_deco_4"></div>'},
		     	   {pos:[0,0], vcenter: true, depth: 0.4, zIndex:2.3, html: '<img id="power_atom_4" class="power_atom" src="images/misc/power_atom.png"/>'},
		     	   {pos:[0,-1924], size:[2000,1800], depth: 1, zIndex:2.1, scale:true, deltaTop:8, img: 'images/content/battles/background.jpg'},
		     	   {pos:[50,-25], vcenter:true, size:[1000,300], depth: 1.1, zIndex:2.3, html: '<div id="subcontents4" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[0,157], vcenter:true, depth:1.1, zIndex:2.4, html: '<div id="subnav_4" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'},
		     	   {pos:[-400,-308], size:[954,310], depth: 1.2, zIndex:2.2, img: 'images/content/battles/cloud-large.png'},
		     	   {pos:[-450,-348], size:[954,310], depth: 1.2, zIndex:2.2, img: 'images/content/battles/cloud-large.png'},
		     	   {pos:[-150,-258], size:[954,310], depth: 1.2, zIndex:2.2, img: 'images/content/battles/cloud-large.png'},
		     	   {pos:[240,-328], size:[954,310], depth: 1.2, zIndex:2.2, img: 'images/content/battles/cloud-large.png'},
		     	   {pos:[640,-380], size:[954,310], depth: 1.2, zIndex:2.2, img: 'images/content/battles/cloud-large.png'},
		     	   {pos:[-50,160], vcenter: true, size:[750,100], depth:1.11, zIndex:2.3, html:'<div id="coins_container_4" class="coins_container_home" style="width:500px;" data-content="4" data-subcontent=""></div>'},
		     	   {pos:[1010,0], size:[50,2000], vcenter:true, repos:true, reposAlign:'right', depth:1, zIndex:5.4, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"}],
    	subcontents	: [{id		: "big-boss-battles",
			    		size	: [845,300],
			    		center	: [1800,0],
			    		contentformat	: '',
			    		bgcolor	: "#666",
			    		elts	: [{ id:'#4_0_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
									'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
									'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_5_SUB_1_TITLE}</h2><div class='desc'>{TRANS_5_SUB_1_DESCRIPTION}</div></div>"+
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
			    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="battles_4_0" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
			    					'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_5_SUB_1_IMAGE_1}"><div class="desc">{TRANS_5_SUB_1_IMAGE_1_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_5_SUB_1_IMAGE_2}"><div class="desc">{TRANS_5_SUB_1_IMAGE_2_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_5_SUB_1_IMAGE_3}"><div class="desc">{TRANS_5_SUB_1_IMAGE_3_TEXT}</div></li></ul></div>' + 
			    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="4_0_left_arrow" class="buttonLeft"></div><div id="4_0_right_arrow" class="buttonRight"></div></div>'},
			    				{ id:'#pokemon1', pos:[-740,-245], zIndex:1.2, depth:1, img:'images/content/battles/zekrom.png'}],	
			    		// Events
			    		onCreated: function(){ },
			    		onActivate: function(){ $("#battles_4_0").pcarousel({leftArrow:'#4_0_left_arrow', rightArrow:'#4_0_right_arrow'}); },
			    		onDeactivate: function(){ },
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -80 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents4 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents4 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents4 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents4 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents4 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents4 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents4 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents4 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents4 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents4 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_4').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_4').css({ 'margin-top':delta1+'px' });
			    		}
					},{
						id		: "take-on-the-battle-royale",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 2,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#4_1_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:32px;width:380px;height:250px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:244px;"></div><div class="center" style="width: 363px; height: 244px;"></div><div class="right" style="height: 244px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:50px;width:340px;height:220px;z-index:12.2;'><h2>{TRANS_5_SUB_2_TITLE}</h2><div class='desc'>{TRANS_5_SUB_2_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
							'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
							'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="battles_4_1" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
							'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_5_SUB_2_IMAGE_1}"><div class="desc">{TRANS_5_SUB_2_IMAGE_1_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_5_SUB_2_IMAGE_2}"><div class="desc">{TRANS_5_SUB_2_IMAGE_2_TEXT}</div></li>' +
							'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_5_SUB_2_IMAGE_3}"><div class="desc">{TRANS_5_SUB_2_IMAGE_3_TEXT}</div></li>' +
							'<li style="width:400px;height:280px;margin-left:1200px;"><img src="{TRANS_5_SUB_2_IMAGE_4}"><div class="desc">{TRANS_5_SUB_2_IMAGE_4_TEXT}</div></li></ul></div>' + 
							'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="4_1_left_arrow" class="buttonLeft"></div><div id="4_1_right_arrow" class="buttonRight"></div></div>'},
							{ id:'#pokemon3', pos:[-730,-150], zIndex:1.5, depth:1, img:'images/content/battles/groudon.png'},
							{ id:'#pokemon4', pos:[430,-160], zIndex:1.5, depth:1, img:'images/content/battles/hydreigon.png'}],	
			    		// Events
						onFirstCoinWon: function(){ },
					    onAllCoinsWon: function(){ },
			    		onCreated: function(){},
			    		onActivate: function(){ 
			    			$("#battles_4_1").pcarousel({leftArrow:'#4_1_left_arrow', rightArrow:'#4_1_right_arrow'});
			    			CoinsManager.addCoins(4,1);
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(4,1); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents4 .leftbackground').css({ 'height': (250+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents4 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .left').css({ height:(244+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .center').css({ height:(244+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .right').css({ height:(244+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents4 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents4 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents4 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents4 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents4 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents4 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents4 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents4 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_4').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_4').css({ 'margin-top':delta1+'px' });
			    		}
					},{
						id		: "team-up-to-win",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 1,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#4_2_left_bg', pos: [0,0], size:[845,300], zIndex:1.6, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:32px;width:380px;height:250px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 244px;"></div><div class="right" style="height: 244px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:50px;width:340px;height:220px;z-index:12.2;'><h2>{TRANS_5_SUB_3_TITLE}</h2><div class='desc'>{TRANS_5_SUB_3_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
							'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height:303px;"></div></div>' +
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
							'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="battles_4_2" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
							'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_5_SUB_3_IMAGE_1}"><div class="desc">{TRANS_5_SUB_3_IMAGE_1_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_5_SUB_3_IMAGE_2}"><div class="desc">{TRANS_5_SUB_3_IMAGE_2_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_5_SUB_3_IMAGE_3}"><div class="desc">{TRANS_5_SUB_3_IMAGE_3_TEXT}</div></li>' +
							'<li style="width:400px;height:280px;margin-left:1200px;"><img src="{TRANS_5_SUB_3_IMAGE_4}"><div class="desc">{TRANS_5_SUB_3_IMAGE_4_TEXT}</div></li></ul></div>' +
							'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="4_2_left_arrow" class="buttonLeft"></div><div id="4_2_right_arrow" class="buttonRight"></div></div>'},
							{ id:'#pokemon5', pos:[-700,-150], zIndex:1.5, depth:1.01, img:'images/content/battles/dialga.png'},
							{ id:'#pokemon6', pos:[430,-160], zIndex:1.5, depth:1.01, img:'images/content/battles/palkia.png'}],	
			    		// Events
						onFirstCoinWon: function(){ },
						onAllCoinsWon: function(){ },
			    		onCreated: function(){ },
			    		onActivate: function(){ 
			    			$("#battles_4_2").pcarousel({
			    				leftArrow:'#4_2_left_arrow', 
			    				rightArrow:'#4_2_right_arrow',
			    				callback: function(id){ if(id==$('#battles_4_2 li').length-1){ CoinsManager.addCoins(4,2); } }
			    			}); 
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(4,2); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents4 .leftbackground').css({ 'height': (250+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents4 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .left').css({ height:(244+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .center').css({ height:(244+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .middle .right').css({ height:(244+delta1)+'px' });
			    			$('#subcontents4 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents4 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px' });
			    			$('#subcontents4 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents4 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents4 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents4 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents4 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents4 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents4 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents4 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents4 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_4').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_4').css({ 'margin-top':delta1+'px' });
			    		}
					}],
    	onCreated : function(){ },
    	onActivate: function(){ },
		onDeactivate: function(){ }
    },
	/**
     * MORE WAYS TO PLAY
     * 
     */
    {
		id		: "more-ways-to-play",
		size	: [2400,700],
		center	: [11500,0],
		currentSubScene	: 0,
		contentformat	: '',
		elts 	: [{pos:[0,-400], size:[0,0], depth: 0.44, zIndex:1.3, html: '<div id="pokemon_deco_5"></div>'},
		     	   {pos:[0,0], vcenter: true, depth: 0.4, zIndex:1.8, html: '<img id="power_atom_5" class="power_atom" src="images/misc/power_atom.png"/>'},
		     	   {pos:[0,-1924], size:[2400,1800], depth: 0.45, zIndex:1, scale:true, deltaTop:-1.5, img: 'images/content/more-ways-to-play/background.jpg'},
		     	   {pos:[-120,420], vcenter: true, size:[750,100], depth:0.44, zIndex:1.5, html:'<div id="coins_container_5" class="coins_container_home" style="width:500px;" data-content="5" data-subcontent=""></div>'},
		     	   {pos:[150,-50], vcenter:true, size:[1000,300], depth: 0.45, zIndex:1.4, html: '<div id="subcontents5" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[0,390], vcenter:true, depth:0.45, zIndex:1.5, html: '<div id="subnav_5" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'}],
    	subcontents	: [{id		: "more-ways-to-play",
			    		size	: [390,600],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 3,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#5_0_left_bg', pos: [0,0], size:[390,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default rightbackground" style="margin-left:250px;position:absolute;margin-top:50px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
									'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
									'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='margin-left:270px;position:absolute;float:left;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_6_SUB_1_TITLE}</h2><div class='desc'>{TRANS_6_SUB_1_DESCRIPTION}</div></div>"},
			    				{ id:'#pokemon1', pos:[-640,0], zIndex:11, depth:0.4, img:'images/content/more-ways-to-play/oshwatt.png'}],	
			    		// Events
			    		onFirstCoinWon: function(){ },
						onAllCoinsWon: function(){ },
			    		onCreated: function(){ },
			    		onActivate: function(){ 
			    			$("#more-ways-to-play_5_0").pcarousel({leftArrow:'#5_0_left_arrow', rightArrow:'#5_0_right_arrow'});
			    			CoinsManager.addCoins(5,0);
			    		},
			    		onDeactivate: function(){ CoinsManager.removeCoins(5,0); },
			    		changeFormat: function(){
			    			var dN = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -70 : 0;
			    			var dC = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -30 : 0;
			    			var dCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -65 : 0;
			    			var dCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			$('#subcontents5 .rightbackground').css({ 'margin-top':(50+dC)+'px' });
			    			$('#subcontents5 .leftcontent').css({ 'margin-top':(78+dC)+'px' });
			    			$('#coins_container_5').css({ 'margin-top':dCoinsTop+'px', 'margin-left':dCoinsLeft+'px' });
			    			$('#subnav_5').css({ 'margin-top':dN+'px' });
			    		}
					},{
						id		: "take-up-the-charge",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#5_1_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:32px;width:380px;height:250px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:244px;"></div><div class="center" style="width: 363px; height: 244px;"></div><div class="right" style="height: 244px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:58px;width:340px;height:220px;z-index:12.2;'><h2>{TRANS_6_SUB_2_TITLE}</h2><div class='desc'>{TRANS_6_SUB_2_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
							'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height:303px;"></div></div>' +
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
							'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="more-ways-to-play_5_1" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
							'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_6_SUB_2_IMAGE_1}"><div class="desc">{TRANS_6_SUB_2_IMAGE_1_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_6_SUB_2_IMAGE_2}"><div class="desc">{TRANS_6_SUB_2_IMAGE_2_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_6_SUB_2_IMAGE_3}"><div class="desc">{TRANS_6_SUB_2_IMAGE_3_TEXT}</div></li>' +
							'<li style="width:400px;height:280px;margin-left:1200px;"><img src="{TRANS_6_SUB_2_IMAGE_4}"><div class="desc">{TRANS_6_SUB_2_IMAGE_4_TEXT}</div></li></ul></div>' +
							'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="5_1_left_arrow" class="buttonLeft"></div><div id="5_1_right_arrow" class="buttonRight"></div></div>'},
							{ id:'#pokemon2', pos:[410,-20], zIndex:11, depth:0.4, img:'images/content/more-ways-to-play/samurott.png'}],	
			    		// Events
			    		onCreated: function(){ },
			    		onActivate: function(){ $("#more-ways-to-play_5_1").pcarousel({leftArrow:'#5_1_left_arrow', rightArrow:'#5_1_right_arrow'}); },
						onDeactivate: function(){ },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents5 .leftbackground').css({ 'height': (250+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents5 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .left').css({ height:(244+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .center').css({ height:(244+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .right').css({ height:(244+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px', 'margin-top':(58-delta2/3)+'px' });
			    			$('#subcontents5 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents5 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents5 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents5 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents5 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_5').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_5').css({ 'margin-top':delta1+'px' });
			    		}
					},{
						id		: "join-up-for-fun",
			    		size	: [1000,600],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 2,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#5_2_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:12px;width:380px;height:250px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:279px;"></div><div class="center" style="width: 363px; height: 279px;"></div><div class="right" style="height: 279px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:20px;width:340px;height:220px;z-index:12.2;'><h2>{TRANS_6_SUB_3_TITLE}</h2><div class='desc'>{TRANS_6_SUB_3_DESCRIPTION}</div></div>"+
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
			    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="more-ways-to-play_5_2" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
			    					'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_6_SUB_3_IMAGE_1}"><div class="desc">{TRANS_6_SUB_3_IMAGE_1_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_6_SUB_3_IMAGE_2}"><div class="desc">{TRANS_6_SUB_3_IMAGE_2_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_6_SUB_3_IMAGE_3}"><div class="desc">{TRANS_6_SUB_3_IMAGE_3_TEXT}</div></li></ul></div>' + 
			    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="5_2_left_arrow" class="buttonLeft"></div><div id="5_2_right_arrow" class="buttonRight"></div></div>'},
			    				{ id:'#pokemon3', pos:[-640,0], zIndex:11, depth:0.4, img:'images/content/more-ways-to-play/oshwatt.png'}],	
			    		// Events
			    		onFirstCoinWon: function(){ },
						onAllCoinsWon: function(){ },
			    		onCreated: function(){},
			    		onActivate: function(){
			    			$("#more-ways-to-play_5_2").pcarousel({
			    				leftArrow:'#5_2_left_arrow', 
			    				rightArrow:'#5_2_right_arrow',
			    				callback: function(id){
			    					if(id==1) CoinsManager.addCoins(5,2);
			    				}
			    			});
			    		},
			    		onDeactivate: function(){ CoinsManager.removeCoins(5,2); },
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents5 .leftbackground').css({ 'height': (250+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents5 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .left').css({ height:(279+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .center').css({ height:(279+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .right').css({ height:(279+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px', 'margin-top':(58-delta2/3)+'px' });
			    			$('#subcontents5 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents5 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents5 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents5 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents5 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_5').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_5').css({ 'margin-top':delta1+'px' });
			    		}
					},{
						id		: "take-to-the-street",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 3,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#5_3_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_6_SUB_4_TITLE}</h2><div class='desc'>{TRANS_6_SUB_4_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
							'<div class="middle"><div class="left" style="height: 303px;"></div><div class="center" style="width: 434px; height: 303px;"></div><div class="right" style="height: 303px;"></div></div>' +
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
							'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="more-ways-to-play_5_3" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
							'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_6_SUB_4_IMAGE_1}"><div class="desc">{TRANS_6_SUB_4_IMAGE_1_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_6_SUB_4_IMAGE_2}"><div class="desc">{TRANS_6_SUB_4_IMAGE_2_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_6_SUB_4_IMAGE_3}"><div class="desc">{TRANS_6_SUB_4_IMAGE_3_TEXT}</div></li></ul></div>' + 
							'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="5_3_left_arrow" class="buttonLeft"></div><div id="5_3_right_arrow" class="buttonRight"></div></div>'},
							{ id:'#pokemon4', pos:[410,-20], zIndex:11, depth:0.4, img:'images/content/more-ways-to-play/samurott.png'}],	
			    		// Events
						onFirstCoinWon: function(){ },
						onAllCoinsWon: function(){ },
			    		onCreated: function(){},
			    		onActivate: function(){
			    			$("#more-ways-to-play_5_3").pcarousel({leftArrow:'#5_3_left_arrow', rightArrow:'#5_3_right_arrow'});
			    			CoinsManager.addCoins(5,3);
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(5,3); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dContL = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -15 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents5 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents5 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px', 'margin-top':(78+dContL)+'px' });
			    			$('#subcontents5 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents5 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents5 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents5 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents5 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_5').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_5').css({ 'margin-top':delta1+'px' });
			    		}
					}/*,{
						id		: "more-ways-to-play5",
			    		size	: [1000,600],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#5_4_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
									'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
									'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_6_SUB_5_TITLE}</h2><div class='desc'>{TRANS_6_SUB_5_DESCRIPTION}</div></div>"+
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height:303px;"></div><div class="center" style="width: 434px; height:303px;"></div><div class="right" style="height:303px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
			    				'<div style="overflow:hidden;text-align:left;"><ul id="more-ways-to-play_5_4" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
			    					'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_6_SUB_5_IMAGE_1}"><div class="desc">{TRANS_6_SUB_5_IMAGE_1_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_6_SUB_5_IMAGE_2}"><div class="desc">{TRANS_6_SUB_5_IMAGE_2_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_6_SUB_5_IMAGE_3}"><div class="desc">{TRANS_6_SUB_5_IMAGE_3_TEXT}</div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:1200px;"><img src="{TRANS_6_SUB_5_IMAGE_4}"><div class="desc">{TRANS_6_SUB_5_IMAGE_4_TEXT}</div></li></ul></div>' + 
			    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="5_4_left_arrow" class="buttonLeft"></div><div id="5_4_right_arrow" class="buttonRight"></div></div>'},
			    				{ id:'#pokemon1', pos:[-640,0], zIndex:11, depth:0.4, img:'images/content/more-ways-to-play/oshwatt.png'}],	
			    		// Events
			    		onCreated: function(){},
			    		onActivate: function(){ $("#more-ways-to-play_5_4").pcarousel({leftArrow:'#5_4_left_arrow', rightArrow:'#5_4_right_arrow'}); },
			    		onDeactivate: function(){},
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dContL = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -15 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents5 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents5 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px', 'margin-top':(78+dContL)+'px' });
			    			$('#subcontents5 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents5 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents5 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents5 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents5 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_5').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_5').css({ 'margin-top':delta1+'px' });
			    		}
					},{
						id		: "a-helping-hand",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 3,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#5_5_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
							'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
							"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_6_SUB_6_TITLE}</h2><div class='desc'>{TRANS_6_SUB_6_DESCRIPTION}</div></div>"+
							'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
							'<div class="middle"><div class="left" style="height:303px;"></div><div class="center" style="width: 434px; height:303px;"></div><div class="right" style="height:303px;"></div></div>' +
							'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
							'<div style="overflow:hidden;text-align:left;"><ul id="more-ways-to-play_5_5" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
							'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_6_SUB_6_IMAGE_1}"><div class="desc">{TRANS_6_SUB_6_IMAGE_1_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_6_SUB_6_IMAGE_2}"><div class="desc">{TRANS_6_SUB_6_IMAGE_2_TEXT}</div></li>' + 
							'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_6_SUB_6_IMAGE_3}"><div class="desc">{TRANS_6_SUB_6_IMAGE_3_TEXT}</div></li></ul></div>' + 
							'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="5_5_left_arrow" class="buttonLeft"></div><div id="5_5_right_arrow" class="buttonRight"></div></div>'},
							{ id:'#pokemon2', pos:[410,-20], zIndex:11, depth:0.4, img:'images/content/more-ways-to-play/samurott.png'}],	
			    		// Events
						onFirstCoinWon: function(){ },
						onAllCoinsWon: function(){ },
			    		onCreated: function(){},
			    		onActivate: function(){ 
			    			$("#more-ways-to-play_5_5").pcarousel({leftArrow:'#5_5_left_arrow', rightArrow:'#5_5_right_arrow'}); 
			    			CoinsManager.addCoins(5,5);
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(5,5); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dContL = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -15 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents5 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents5 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents5 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents5 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px', 'margin-top':(78+dContL)+'px' });
			    			$('#subcontents5 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents5 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents5 .rightbackground').css({ width:(460+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents5 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents5 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents5 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents5 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents5 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_5').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_5').css({ 'margin-top':delta1+'px' });
			    		}
					}*/],
    	onCreated : function(){ },
    	onActivate: function(){ },
		onDeactivate: function(){ }
	},
	/**
     * MEDIA
     * 
     */
    {
		id		: "media",
		size	: [2400,700],
		center	: [14080,0],
		currentSubScene	: 0,
		contentformat	: '',
		elts 	: [{pos:[80,-450], size:[0,0], depth: 1, zIndex:2.2, html: '<div id="pokemon_deco_6"></div>'},
		     	   {pos:[0,0], vcenter: true, depth: 1, zIndex:2.3, html: '<img id="power_atom_6" class="power_atom" src="images/misc/power_atom.png"/>'},
		     	   {pos:[0,-1924], size:[2400,1800], depth: 1, zIndex:2.1, scale:true, img: 'images/content/media/background.jpg'},
		     	   {pos:[-30,170], vcenter: true, size:[750,100], depth:1, zIndex:2.4, html:'<div id="coins_container_6" class="coins_container_home" style="width:340px;" data-content="6" data-subcontent=""></div>'},
		     	   {pos:[80,-20], vcenter:true, size:[1000,300], depth: 1.1, zIndex:2.3, html: '<div id="subcontents6" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[0,170], vcenter:true, depth:1.1, zIndex:2.5, html: '<div id="subnav_6" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'},
		     	   {pos:[-1200,0], size:[50,2000], vcenter:true, repos:true, reposAlign:'left', depth:1, zIndex:2.5, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"},
		     	   {pos:[1210,0], size:[50,2000], vcenter:true, repos:true, reposAlign:'right', depth:1, zIndex:2.5, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"}],
    	subcontents	: [{id		: "pokemon-rumble-blast-gallery",
			    		size	: [1000,600],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#6_0_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="margin-left:-20px;position:absolute;margin-top:57px;width:280px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:263px;"></div><div class="right"></div></div>' + 
									'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 263px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
									'<div class="bottom"><div class="left"></div><div class="center" style="width: 263px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:0px;margin-top:78px;width:240px;height:170px;z-index:12.2;'><h2>{TRANS_7_SUB_1_TITLE}</h2><div class='desc'>{TRANS_7_SUB_1_DESCRIPTION}</div></div>"+
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:260px;margin-top:0px;width:574px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:558px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height:313px;"></div><div class="center" style="width: 558px; height:313px;"></div><div class="right" style="height:313px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width:558px;"></div><div class="right"></div></div></div>' + 
			    				'<div style="overflow:hidden;text-align:left;">' +
			    					'<div id="media_player" style="margin: 0;padding: 0;position: absolute;overflow:hidden;margin-left:280px;margin-top:19px;width:524px;height:285px;z-index:12.2;"></div>' + 
			    				'</div>' + 
			    				'<div class="pokecarousel default buttons" id="btns_container" style="margin-left:804px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="6_0_left_arrow" class="buttonLeft"></div><div id="6_0_right_arrow" class="buttonRight"></div></div>'},
			    				{ id:'#pokemon1', pos:[420,-80], zIndex:1.2, depth:1.08, img:'images/content/media/regigigas.png'}],	
			    		// Events
			    		onCreated: function(){},
			    		onActivate: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -65 : 0;
			    			
			    			var _aV = PLANG.getVideosMediaScene();
			    			var _curVid = 0;
			    			// Video player
			    			if(BrowserPokemon.isIpad() || BrowserPokemon.isIphone()){
			    				$('#media_player').html("<div id='media_player_container' style='width:"+(524+delta1)+"px;height:"+(285+delta1)+"px;'><video width='"+(524+delta1)+"' height='"+(285+delta1)+"' autoplay controls poster='preview.jpg'><source src='videos/Pokemon_Rumble_Blast.m4v' /></video></div>");
			    	    	} else {
			    	    		$('#media_player').html("<div id='media_player_container' style='width:"+(524+delta1)+"px;height:"+(285+delta1)+"px;'></div>");
			    	    		this.player = new SwfVideoPlayer("media_player_container", {f4v:_aV[_curVid], ogg:"", mp4:"", instructions:PLANG.getInstructions(), replay:PLANG.getReplay() }, "swf/player.swf");
			    	    	}
			    			
			    			if( _aV.length > 1 ){ 
			    				$('#6_0_left_arrow').addClass('disabledLeft');
			    				$('#6_0_right_arrow').removeClass('disabledRight');
			    				// Click next / previous video
			    				$('#6_0_left_arrow, #6_0_right_arrow').bind(userX.clickEvt,function(){
			    					_curVid = (_curVid == 0) ? 1 : 0;
			    					$('#6_0_left_arrow').toggleClass('disabledLeft');
			    					$('#6_0_right_arrow').toggleClass('disabledRight');
			    					PET.track({type:'event',category:PET.cat_videos, action:PET.act_videoPlay, label:PLANG.lang+'|'+Contents[MainStage.currScene].id+'|'+_aV[_curVid]});
			    					$("#media_player_container")[0].changeVideo(_aV[_curVid]);
			    				});
			    			} else {
			    				$('#6_0_left_arrow').addClass('disabledLeft');
			    				$('#6_0_right_arrow').addClass('disabledRight');
			    				$('#6_0_left_arrow').remove();
			    				$('#6_0_right_arrow').remove();
			    				$('#btns_container').css('height','0px');
			    			}
			    		},
			    		onDeactivate: function(){ },
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -65 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 65 : 0;
			    			var dML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 55 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dN = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -70 : 0;
			    			var dContL = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -15 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents6 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(-20+delta2)+'px' });
			    			$('#subcontents6 .leftbackground .top .center').css({ width:(263+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(263+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .bottom .center').css({ width:(263+delta1)+'px' });
			    			$('#subcontents6 .leftcontent').css({ 'margin-left':(0+dML)+'px', 'width':(240+delta1)+'px', 'margin-top':(78+dContL)+'px' });
			    			$('#subcontents6 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents6 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents6 .rightbackground').css({ width:(574+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .top .center').css({ width:(558+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .middle .left').css({ height:(313+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .middle .center').css({ width:(558+delta1)+'px', height:(313+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .middle .right').css({ height:(313+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .bottom .center').css({ width:(558+delta1)+'px' });
			    			$('#subcontents6 .buttons').css({ 'margin-left':(804+delta1)+'px' });
			    			
			    			$('#subcontents6 #media_player').css({ 'width':(524+delta1)+'px', 'height':(285+delta1)+'px'  });
			    			$('#subcontents6 #media_player #media_player_container').css({ 'width':(524+delta1)+'px', 'height':(285+delta1)+'px'  });
			    			
			    			$('#coins_container_6').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_6').css({ 'margin-top':dN+'px' });
			    		}
					},{
						id		: "screenshots",
						size	: [845,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 10,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#6_1_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:57px;width:380px;height:200px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
								'<div class="middle"><div class="left" style="height:194px;"></div><div class="center" style="width: 363px; height: 194px;"></div><div class="right" style="height: 194px;"></div></div>' + 
								'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:20px;margin-top:78px;width:340px;height:170px;z-index:12.2;'><h2>{TRANS_7_SUB_2_TITLE}</h2><div class='desc'>{TRANS_7_SUB_2_DESCRIPTION}</div></div>"+
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;margin-top:0px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
								'<div class="middle"><div class="left" style="height:303px;"></div><div class="center" style="width: 434px; height:303px;"></div><div class="right" style="height:303px;"></div></div>' +
								'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
								'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="media_6_1" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:279px;z-index:12.2;">' + 
								'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_7_SUB_2_IMAGE_1}"><div class="desc">{TRANS_7_SUB_2_IMAGE_1_TEXT}</div></li>' + 
								'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_7_SUB_2_IMAGE_2}"><div class="desc">{TRANS_7_SUB_2_IMAGE_2_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_7_SUB_2_IMAGE_3}"><div class="desc">{TRANS_7_SUB_2_IMAGE_3_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:1200px;"><img src="{TRANS_7_SUB_2_IMAGE_4}"><div class="desc">{TRANS_7_SUB_2_IMAGE_4_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:1600px;"><img src="{TRANS_7_SUB_2_IMAGE_5}"><div class="desc">{TRANS_7_SUB_2_IMAGE_5_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:2000px;"><img src="{TRANS_7_SUB_2_IMAGE_6}"><div class="desc">{TRANS_7_SUB_2_IMAGE_6_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:2400px;"><img src="{TRANS_7_SUB_2_IMAGE_7}"><div class="desc">{TRANS_7_SUB_2_IMAGE_7_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:2800px;"><img src="{TRANS_7_SUB_2_IMAGE_8}"><div class="desc">{TRANS_7_SUB_2_IMAGE_8_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:3200px;"><img src="{TRANS_7_SUB_2_IMAGE_9}"><div class="desc">{TRANS_7_SUB_2_IMAGE_9_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:3600px;"><img src="{TRANS_7_SUB_2_IMAGE_10}"><div class="desc">{TRANS_7_SUB_2_IMAGE_10_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:4000px;"><img src="{TRANS_7_SUB_2_IMAGE_11}"><div class="desc">{TRANS_7_SUB_2_IMAGE_11_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:4400px;"><img src="{TRANS_7_SUB_2_IMAGE_12}"><div class="desc">{TRANS_7_SUB_2_IMAGE_12_TEXT}</div></li>' +
								'<li style="width:400px;height:280px;margin-left:4800px;"><img src="{TRANS_7_SUB_2_IMAGE_13}"><div class="desc">{TRANS_7_SUB_2_IMAGE_13_TEXT}</div></li></ul></div>' + 
								'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="6_1_left_arrow" class="buttonLeft"></div><div id="6_1_right_arrow" class="buttonRight"></div></div>'},
								{ id:'#pokemon2', pos:[-1040,-140], zIndex:1.2, depth:1.07, img:'images/content/media/regigigas.png'}],	
			    		// Events
						onFirstCoinWon: function(){},
						onAllCoinsWon: function(){},
			    		onCreated: function(){},
			    		onActivate: function(){
			    			$("#media_6_1").pcarousel({
			    				leftArrow:'#6_1_left_arrow', 
			    				rightArrow:'#6_1_right_arrow',
			    				callback: function(id){
			    					if(id==$('#media_6_1 li').length-1) CoinsManager.addCoins(6,1);
			    				}
			    			});
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(6,1); },
						changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var dN = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -70 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dContL = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -15 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			
			    			$('#subcontents6 .leftbackground').css({ 'height': (200+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents6 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .middle .left').css({ height:(194+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .middle .center').css({ height:(194+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .middle .right').css({ height:(194+delta1)+'px' });
			    			$('#subcontents6 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents6 .leftcontent').css({ 'margin-left':(20+delta2)+'px', 'width':(340+delta1)+'px', 'margin-top':(78+dContL)+'px' });
			    			$('#subcontents6 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents6 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents6 .rightbackground').css({ width:(450+delta1)+'px',height:(295+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents6 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents6 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents6 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents6 #carousel ul li img').css({ width:(400+delta1)+'px', height:(240+delta1)+'px' });
			    			$('#subcontents6 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents6 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_6').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_6').css({ 'margin-top':dN+'px' });
			    		}
					}],
    	onCreated : function(){ },
    	onActivate: function(){ },
		onDeactivate: function(){
			if($("#media_player_container").length != 0){
				$("#media_player_container")[0].stopVideo();
				$('#media_player_container').remove();
			}
		}
	},
	/**
     * FUN STUFF
     * 
     */
    {
		id		: "fun-stuff",
		size	: [2400,700],
		center	: [16300,0],
		currentSubScene	: 0,
		contentformat	: '',
		elts 	: [{pos:[0,-500], size:[0,0], depth: 0.43, zIndex:1.3, html: '<div id="pokemon_deco_7"></div>'},
		     	   {pos:[0,0], vcenter: true, depth: 0.4, zIndex:1.8, html: '<img id="power_atom_7" class="power_atom" src="images/misc/power_atom.png"/>'},
		     	   {pos:[0,-1924], size:[2400,1800], depth: 0.45, zIndex:1.1, scale:true, deltaTop:10, img: 'images/content/fun-stuff/background.jpg'},
		     	   {pos:[0,-250], depth: 0.6, zIndex:1.2, scale:true, html: '<div style="background:url(images/content/fun-stuff/lava.png) repeat-x;width:2500px;height:137px;"></div>'},
		     	   {pos:[160,-40], vcenter:true, size:[1000,350], depth: 0.5, zIndex:1.6, html: '<div id="subcontents7" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[20,390], vcenter:true, depth:0.45, zIndex:1.8, html: '<div id="subnav_7" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'},
		     	   {pos:[-440,400], vcenter: true, size:[400,100], depth:0.5, zIndex:1.7, html:'<div id="coins_container_7" class="coins_container_home" style="width:340px;" data-content="7" data-subcontent=""></div>'}],
    	subcontents	: [{id		: "pokemon-passwords",
			    		size	: [1000,600],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 5,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,	
		    			contentformat	: '',
			    		elts	: [{ id:'#7_0_left_bg', pos: [0,0], size:[845,500], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:32px;width:380px;height:250px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width:363px;"></div><div class="right"></div></div>' + 
									'<div class="middle"><div class="left" style="height:244px;"></div><div class="center" style="width: 363px; height: 244px;"></div><div class="right" style="height: 244px;"></div></div>' + 
									'<div class="bottom"><div class="left"></div><div class="center" style="width: 363px;"></div><div class="right"></div></div></div>' + 
								"<div class='pokecarousel default leftcontent' style='position:absolute;margin-left:30px;margin-top:55px;width:340px;height:210px;z-index:12.2;'><h2>{TRANS_8_SUB_1_TITLE}</h2><div class='desc' style='{TRANS_SUB_8_1_DESCRIPTION_EXTRACSS}'>{TRANS_8_SUB_1_DESCRIPTION}</div></div>" +
								"<div id='btn_p_container' style='text-align:center;position:absolute;width:350px;height:81px;margin-left:25px;margin-top:255px;z-index:3000;'><a href='javascript:;' id='btn_get_passwords' style='display:none;'><img src='images/content/fun-stuff/button.png' id='bg_btn_p' style='position:absolute;left:30px;'/><h2 id='h2_btn_p' style='text-align:center;color:#FFFFFF;margin-top:25px;margin-left:-10px;position:absolute;width:100%;'>{TRANS_8_SUB_1_BUTTON}</h2></a></div></div>" +
								'<div class="pokecarousel default rightbackground" style="position:absolute;margin-left:380px;width:450px;height:295px;z-index:12.1;"><div class="top"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height:303px;"></div><div class="center" style="width: 434px; height:303px;"></div><div class="right" style="height:303px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 434px;"></div><div class="right"></div></div></div>' + 
			    				'<div style="overflow:hidden;text-align:left;" id="carousel"><ul id="toypokemon_7_0" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:400px;margin-top:19px;width:400px;height:285px;z-index:12.2;">' + 
			    					'<li style="width:400px;height:280px;margin-left:0px;"><img src="{TRANS_8_SUB_1_IMAGE_1}"><div class="desc">{TRANS_8_SUB_1_IMAGE_1_TEXT} <span style="font-weight:normal;">{TRANS_8_SUB_1_IMAGE_1_TEXT2</span></div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:400px;"><img src="{TRANS_8_SUB_1_IMAGE_2}"><div class="desc">{TRANS_8_SUB_1_IMAGE_2_TEXT} <span style="font-weight:normal;">{TRANS_8_SUB_1_IMAGE_2_TEXT2</span></div></li>' + 
			    					'<li style="width:400px;height:280px;margin-left:800px;"><img src="{TRANS_8_SUB_1_IMAGE_3}"><div class="desc">{TRANS_8_SUB_1_IMAGE_3_TEXT} <span style="font-weight:normal;">{TRANS_8_SUB_1_IMAGE_3_TEXT2</span></div></li></ul></div>' + 
			    				'<div class="pokecarousel default buttons" style="margin-left:800px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="7_0_left_arrow" class="buttonLeft"></div><div id="7_0_right_arrow" class="buttonRight"></div></div>' +
			    					'<div class="banner-black-clicktocollect" style="position:absolute;margin-top:340px;margin-left:500px;width:300px;font-size:12px;"><span id="TRANS_8_BANNER_COME_BACK">{TRANS_8_BANNER_COME_BACK}</span></div>'},
			    				{ id:'#pokemon1', pos:[450,50], zIndex:11, depth:0.48, img:'images/content/fun-stuff/emboar.png'}],	
			    		// Events
			    		onFirstCoinWon: function(){},
						onAllCoinsWon: function(){},
			    		onCreated: function(){ },
			    		onActivate: function(){ 
			    			if($(PLANG._xml).find("get_passwords_button_visible").text() == 'false'){ $('#btn_p_container').remove();
			    			} else { $("#btn_get_passwords").show(); $("#btn_get_passwords").bind(userX.clickEvt,function(){ PopupManager.openPasswords(); }); }
			    			CoinsManager.addCoins(7,0);
			    			$("#toypokemon_7_0").pcarousel({leftArrow:'#7_0_left_arrow', rightArrow:'#7_0_right_arrow'});
			    		},
			    		onDeactivate: function(){
			    			if($(PLANG._xml).find("get_passwords_button_visible").text() == 'true'){  $("#btn_get_passwords").unbind( userX.clickEvt ); }
			    			CoinsManager.removeCoins(7,0); 
			    		},
			    		changeFormat: function(){
			    			var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var dN = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta2 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
			    			var dLeftContML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 70 : 30;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dContL = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -15 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -60 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 45 : 0;
			    			var dBtnPwdML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 50 : 25;
			    			var dBtnPwdMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 200 : 255;
			    			var dTxtInfoML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 470 : 500;
			    			var dTxtInfoMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 270 : 340;
			    			var dBgP = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 230 : 269;
			    			var dLeftP = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 55 : 30;
			    			var dFP = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 16 : 22;
			    			var dRBMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 18 : 0;
			    			
			    			$('#subcontents7 #bg_btn_p').css({ 'width':dBgP+'px', 'left':dLeftP+'px' });
			    			$('#subcontents7 #h2_btn_p').css({ 'font-size':dFP+'px'  });
			    			$('#subcontents7 .banner-black-clicktocollect').css({ 'margin-left':dTxtInfoML+'px', 'margin-top':dTxtInfoMT+'px' });
			    			$('#subcontents7 #btn_p_container').css({ 'margin-left':dBtnPwdML+'px', 'margin-top':dBtnPwdMT+'px' });
			    			$('#subcontents7 .leftbackground').css({ 'height': (250+delta1)+'px', 'margin-left':(0+delta2)+'px' });
			    			$('#subcontents7 .leftbackground .top .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents7 .leftbackground .middle .left').css({ height:(244+delta1)+'px' });
			    			$('#subcontents7 .leftbackground .middle .center').css({ height:(244+delta1)+'px', width:(363+delta1)+'px' });
			    			$('#subcontents7 .leftbackground .middle .right').css({ height:(244+delta1)+'px' });
			    			$('#subcontents7 .leftbackground .bottom .center').css({ width:(363+delta1)+'px' });
			    			$('#subcontents7 .leftcontent').css({ 'margin-left':dLeftContML+'px', 'width':(340+delta1)+'px', 'margin-top':(55+dContL)+'px' });
			    			$('#subcontents7 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents7 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents7 .rightbackground').css({ width:(450+delta1)+'px',height:(295+delta1)+'px', 'margin-top':dRBMT+'px' });
			    			$('#subcontents7 .rightbackground .top .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .middle .left').css({ height:(303+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .middle .center').css({ width:(434+delta1)+'px', height:(303+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .middle .right').css({ height:(303+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .bottom .center').css({ width:(434+delta1)+'px' });
			    			$('#subcontents7 #carousel').css({ 'padding-top':dRBMT+'px' });
			    			$('#subcontents7 #carousel ul').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents7 #carousel ul li').css({ width:(400+delta1)+'px', height:(330+delta1)+'px' });
			    			$('#subcontents7 #carousel ul li img').css({ height:(240+delta1)+'px' });
			    			$('#subcontents7 .buttons').css({ 'margin-left':(800+delta1)+'px' });
			    			
			    			var i = 0;
			    			$('#subcontents7 #carousel ul li').each(function(){
			    				var nNewML = i*(400+delta1);
			    				$(this).css('margin-left', nNewML+'px');
			    				i++;
			    			});
			    			
			    			$('#coins_container_7').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_7').css({ 'margin-top':dN+'px' });
			    		}
					},{
						id		: "wallpapers",
						size	: [900,300],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		coins	: 5,
		    			coinsIdx: 0,
		    			coinsDisplayed: false,
		    			contentformat	: '',
			    		elts	: [{ id:'#7_1_left_bg', pos: [0,0], size:[900,300], zIndex:3, depth: 1,
			    			html: '<div class="pokecarousel default leftbackground" style="position:absolute;margin-top:48px;width:200px;height:240px;z-index:12.1;">' +
				    				'<div class="top"><div class="left"></div><div class="center" style="width:183px;"></div><div class="right"></div></div>' +
				    				'<div class="middle"><div class="left" style="height:240px;"></div><div class="center" style="width: 183px; height: 240px;"></div><div class="right" style="height: 240px;"></div></div>' +
				    				'<div class="bottom"><div class="left"></div><div class="center" style="width: 183px;"></div><div class="right"></div></div>' +
			    					'</div>' + 
			    					'<div class="pokecarousel default leftcontent" style="position:absolute;margin-left:20px;margin-top:60px;width:150px;height:170px;z-index:12.2;"><h2 style="{TRANS_8_SUB_2_TITLE_EXTRACSS}">{TRANS_8_SUB_2_TITLE}</h2><div class="desc" style="width:160px;">{TRANS_8_SUB_2_DESCRIPTION}</div></div>' +
									'<div class="pokecarousel default rightbackground" style="position: absolute;margin-left:200px;margin-top:40px;width:650px;height:270px;z-index:12.1;">' +
			    					'<div class="top"><div class="left"></div><div class="center" style="width: 635px;"></div><div class="right"></div></div>' +
			    					'<div class="middle"><div class="left" style="height: 255px;"></div><div class="center" style="width: 635px; height: 255px;"></div><div class="right" style="height: 255px;"></div></div>' +
			    					'<div class="bottom"><div class="left"></div><div class="center" style="width: 635px;"></div><div class="right"></div></div>' +
			    					'</div>' +
			    					'<div id="toypokemon_1_0" class="pokecarousel-content li_wallpapers" style="position: absolute;margin-left:225px;margin-top:100px;width:650px;z-index:12.2; text-align: center;">' +
			    					'<div class="wallpaper"><div class="wallpaper-rollover"><ul>' +
					    					'<li class="wp1"><a href="{TRANS_8_SUB_2_WP_1_LINK_SIZE_0}" class="link_wp" target="_blank">1280x1024</a></li>' +
					    					'<li class="wp1"><a href="{TRANS_8_SUB_2_WP_1_LINK_SIZE_1}" class="link_wp" target="_blank">1024x768</a></li>' +
					    					'<li class="wp1"><a href="{TRANS_8_SUB_2_WP_1_LINK_SIZE_2}" class="link_wp" target="_blank">1440x900</a></li>' +
					    				'</ul></div><img src="{TRANS_8_SUB_2_WP_1}" /></div>' +
					    				'<div class="wallpaper"><div class="wallpaper-rollover"><ul>' +
					    					'<li class="wp2"><a href="{TRANS_8_SUB_2_WP_2_LINK_SIZE_0}" class="link_wp" target="_blank">1280x1024</a></li>' +
					    					'<li class="wp2"><a href="{TRANS_8_SUB_2_WP_2_LINK_SIZE_1}" class="link_wp" target="_blank">1024x768</a></li>' +
					    					'<li class="wp2"><a href="{TRANS_8_SUB_2_WP_2_LINK_SIZE_2}" class="link_wp" target="_blank">1440x900</a></li>' +
					    				'</ul></div><img src="{TRANS_8_SUB_2_WP_2}" /></div>' +
					    				'<div class="wallpaper"><div class="wallpaper-rollover"><ul>' +
					    					'<li class="wp3"><a href="{TRANS_8_SUB_2_WP_3_LINK_SIZE_0}" class="link_wp" target="_blank">1280x1024</a></li>' +
					    					'<li class="wp3"><a href="{TRANS_8_SUB_2_WP_3_LINK_SIZE_1}" class="link_wp" target="_blank">1024x768</a></li>' +
					    					'<li class="wp3"><a href="{TRANS_8_SUB_2_WP_3_LINK_SIZE_2}" class="link_wp" target="_blank">1440x900</a></li>' +
					    				'</ul></div><img src="{TRANS_8_SUB_2_WP_3}" /></div>' +
					    			'</div>'},
									{ id:'#pokemon2', pos:[450,50], zIndex:11, depth:0.48, img:'images/content/fun-stuff/groudon.png'}],	
			    		// Events
						onFirstCoinWon: function(){},
						onAllCoinsWon: function(){},
			    		onCreated: function(){},
			    		onActivate: function(){
			    			CoinsManager.addCoins(7,1);
			    			$("div.wallpaper-rollover").rolloverWallpaper();
			    			$('.link_wp').bind(userX.clickEvt,function(){
			    				var _wall = $(this).parents('div.wallpaper').index();
			    				var _size = $(this).text();
			    				var _currScId = Contents[MainStage.currScene].id;
			    				var _currSubScId = Contents[MainStage.currScene].subcontents[Contents[MainStage.currScene].currentSubScene].id;
			    				PET.track({type:'event',category:PET.cat_wallpapers, action:PLANG.lang+'|'+_currScId+'|'+_currSubScId, label:PLANG.lang+'|wallpaper-'+_wall+'-'+_size});
			    			});
			    		},
						onDeactivate: function(){ CoinsManager.removeCoins(7,1); },
						changeFormat: function(){
							var delta1 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -55 : 0;
			    			var delta3 = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -3 : 0;
			    			var dN = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -70 : 0;
			    			var deltaCoinsTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? -70 : 0;
			    			var deltaCoinsLeft = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 45 : 0;
			    			var dMTop = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 20 : 0;
			    			
			    			$('#subcontents7 .li_wallpapers').css({ 'margin-top':(100-dMTop)+'px' });
			    			$('#subcontents7 .leftbackground .middle .left').css({ height:(244+delta1)+'px' });
			    			$('#subcontents7 .leftbackground .middle .center').css({ height:(244+delta1)+'px' });
			    			$('#subcontents7 .leftbackground .middle .right').css({ height:(244+delta1)+'px' });
			    			$('#subcontents7 .leftcontent .desc').css({ 'font-size':(14+delta3)+'px', 'line-height':(20+delta3)+'px' });
			    			$('#subcontents7 .leftcontent h2').css({ 'font-size':(22+delta3)+'px' });
			    			$('#subcontents7 .rightbackground').css({ 'height':(270+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .middle .left').css({ height:(255+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .middle .center').css({ height:(255+delta1)+'px' });
			    			$('#subcontents7 .rightbackground .middle .right').css({ height:(255+delta1)+'px' });
			    			
			    			$('#coins_container_7').css({ 'margin-top':deltaCoinsTop+'px', 'margin-left':deltaCoinsLeft+'px' });
			    			$('#subnav_7').css({ 'margin-top':dN+'px' });
			    		}
					}],
    	onCreated : function(){ },
    	onActivate: function(){ },
		onDeactivate: function(){
			if(Contents[7].currentSubScene == 0){
				if($(PLANG._xml).find("get_passwords_button_visible").text() == 'true'){ 
    				$("#btn_get_passwords").unbind( userX.clickEvt ); 
    			}
    			CoinsManager.removeCoins(7,0); 
			}
		}
	},
	/**
     * NEWS & STRATEGY
     * 
     */
    {
		id		: "news-strategy",
		size	: [2400,700],
		center	: [18900,0],
		currentSubScene	: 0,
		contentformat	: '',
		elts 	: [{pos:[-1200,0], size:[50,2000], vcenter:true, repos:true, reposAlign:'left', depth:1, zIndex:5.4, html:"<div style='background:url(images/misc/pageswiper.png) repeat-y;width:50px;height:2000px;'></div>"},
		     	   {pos:[0,-1924], size:[2400,1800], depth: 1, zIndex:2.1, scale:true, deltaTop:10, img: 'images/content/news-strategy/background.jpg'},
		     	   {pos:[200,-290], depth: 1.2, zIndex:2.1, img: 'images/content/news-strategy/platform.png'},
		     	   {pos:[-815,-390], depth: 1, zIndex:2.2, img: 'images/content/news-strategy/clouds.png'},
		     	   {pos:[-550,-350], depth: 1, zIndex:2.2, img: 'images/content/news-strategy/cloud-1.png'},
		     	   {pos:[30,-50], vcenter:true, size:[1000,300], depth: 1.3, zIndex:2.2, html: '<div id="subcontents8" style="margin:auto;width:100%;"></div>'},
		     	   {pos:[0,420], vcenter:true, depth:1.3, zIndex:2.2, html: '<div id="subnav_8" class="subnav_arrows"><div class="pnavigator"><div class="up"></div><div class="down down-disabled"></div></div></div>'}],
		subcontents:[{	id		: "news",
			    		size	: [900,500],
			    		center	: [1800,0],
			    		bgcolor	: "#666",
			    		contentformat	: '',
			    		elts	: [{ id:'#8_0_left_bg', pos: [0,0], size:[845,300], zIndex:3, depth: 1,
			    			html: '<div class="CAROUSEL-WRAPPER">' +
		   					'<div class="bg-black"></div>' +
							'<div class="bg-white"></div>' +
							'<div class="title-left" style="{TRANS_9_SUB_1_TITLE_CSS}">{TRANS_9_SUB_1_TITLE}</div>' +
							'<ul class="list-left" id="list_titles_news"></ul>' +
							'<div class="moreButton"><div class="text">{TRANS_9_SUB_1_TITLE_MORE}</div><div class="downArrow"></div><div class="upArrow"></div></div>' +
							'<div class="arrayOfContents" id="newsContents"></div></div>'}],
						// Events
				    	onCreated: function(){
				    		var aNews = PLANG.getNews();
				    		// Create News menu item
				    		for( var e in aNews ){
				    			var _t = '';
				    			var _c = '';
				    			var _nParW = '';
				    			var _extraCss = '';
				    			// Title left
				    			if( aNews[e].extra_css!= undefined ){
				    				_extraCss = aNews[e].extra_css;
				    			}
				    			if( e == PLANG.currNews ){ _t = '<li class="selected"><div class="news_item">' + aNews[e].title + '</div></li>'; } 
				    			else{ _t = '<li style="' + _extraCss + '"><div class="news_item">' + aNews[e].title + '</div></li>'; }
				    			$('#list_titles_news').append( _t );
				    			// Content right
				    			_c = '<div class="content">' +
				    				'<h2>' + aNews[e].title + '</h2>';
				    			var _classNoCarousel = '';
				    			// If carousel
				    			if(aNews[e].carousel.length > 0){
				    				_c += '<div style="overflow:hidden;text-align:left;">' + 
				    						'<ul id="news_1_'+ e +'" class="pokecarousel default" style="position: absolute;overflow:hidden;margin-left:210px;margin-top:0px;width:400px;height:325px;z-index:12.2;">';
				    				for( var i in aNews[e].carousel ){
				    					var _nM = 400 * i;
				    					_c += '<li style="width:400px;height:280px;margin-left:'+ _nM +'px;"><img src="' + aNews[e].carousel[i].image + '"><div class="desc">' + aNews[e].carousel[i].caption + '</div></li>';
				    				}
				    				_c += '</ul></div>';
				    				_c += '<div class="pokecarousel default buttons" style="margin-left:610px;margin-top:100px;position:absolute;height:92px;z-index:12.3;"><div id="9_1_'+ e +'_left_arrow" class="buttonLeft"></div><div id="9_1_'+ e +'_right_arrow" class="buttonRight"></div></div>';
				    				_classNoCarousel = ' nocarousel';
				    			} else {
				    				_nParW = 'width:600px;';
				    			}
				    			_c +=  '<p style="'+ _nParW +'" class="news_deck' + _classNoCarousel + '">' + aNews[e].deck + '</p>' +
			    						'<p style="'+ _nParW +'" class="news_desc' + _classNoCarousel + '">' + aNews[e].description + '</p></div>';
				    			$('#newsContents').append( _c );
				    			
				    			$("#news_1_"+ e).pcarousel({
								    leftArrow: '#9_1_' + e + '_left_arrow', 
								    rightArrow: '#9_1_' + e + '_right_arrow'
							    });
				    		}
				    		
				    		// Enable carousel
				    		$(".CAROUSEL-WRAPPER").pcarouselnews({ width: 700 }); 
				    		Contents[8].subcontents[0].changeFormat();
				    	},
				    	changeTab: function(){
				    		$(".CAROUSEL-WRAPPER #list_titles_news li:eq("+PLANG.currNews+")").trigger('click');
				    	},
				    	onActivate: function(){
				    		$(".CAROUSEL-WRAPPER #list_titles_news li:eq("+PLANG.currNews+")").trigger('click');
				    	},
				    	onDeactivate: function(){},
				    	changeFormat: function(){
				    		var dMHght = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 100 : 0;
							var dMMgT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 60 : 0;
							var dTitleFtSz = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 20 : 25;
							var dTitleMargin = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 10 : 20;
							var dMenuMargT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 40 : 55;
							var dMenuHght = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 224 : 275;
							var dMoreButtonsMgT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 258 : 330;
							var dMoreButtonsH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 27 : 50;
							var dContentTitleM = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 0 : 14;
							var dContentTitleFS = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 16 : 18;
							var dContentTxtFS = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 12 : 12;
							var dContentTxtW = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 260 : 190;
							var dCarouselML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 260 : 210;
							var dCarouselH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 250 : 325;
							var dCarouselItemH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 230 : 280;
							var dCarouselImgH = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 180 : 240;
							var dCarouselBtnsMT = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 50 : 100;
							var dCarouselItemDescW = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 340 : 400;
							var dCarouselItemDescML = (MainStage.contentformat == MainStage.RESIZE_SMALL) ? 30 : 0;
							
							$('#subcontents8 .CAROUSEL-WRAPPER').css({ 'margin-top':dMMgT+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER .bg-black').css({ 'height':(400-dMHght)+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER .bg-white').css({ 'height':(400-dMHght)+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER .title-left').css({ 'font-size':dTitleFtSz+'px', 'margin-top':dTitleMargin+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER #list_titles_news').css({ 'height':dMenuHght+'px', 'margin-top':dMenuMargT+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER .moreButton').css({ 'margin-top':dMoreButtonsMgT+'px', 'height':dMoreButtonsH+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content h2').css({ 'margin-top':dContentTitleM+'px', 'font-size':dContentTitleFS+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content p.nocarousel.news_deck').css({ 'margin-top':dContentTitleM+'px', 'font-size':dContentTitleFS+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content p.nocarousel').css({ 'font-size':dContentTxtFS+'px', 'width':dContentTxtW+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content ul').css({ 'height':dCarouselH+'px', 'margin-left':dCarouselML+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content ul li').css({ 'height':dCarouselItemH+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content ul li div.desc').css({ 'width':dCarouselItemDescW+'px', 'margin-left':dCarouselItemDescML+'px' });
							$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content ul li img').css({ height:dCarouselImgH+'px' });
			    			$('#subcontents8 .CAROUSEL-WRAPPER div.arrayOfContents div.content .buttons').css({ 'margin-top':dCarouselBtnsMT+'px' });
			    		}
					}],
    	onCreated : function(){},
    	onActivate: function(){},
		onDeactivate: function(){ }
	}
];


/**
 * SWF VIDEO PLAYER
 * 
 */
SwfVideoPlayer = function(pId,pVid,pFile) {
    this.elem = $("#"+pId);
    this.videos = pVid;
    this.swfFile = pFile;
    this.playlistIndex = 0;
    this.type = null;
    var flashvars = 	{ 'path':pVid.f4v, 'instructions':pVid.instructions, 'showMii':pVid.showMii, 'replay':pVid.replay, 'available': 'available', 'date': 'date', 'width':this.elem.width(), 'height':this.elem.height() };
    var params = 		{ 'wmode':'transparent', 'allowFullScreen':true }; 
	var attributes = 	{ 'id':pId, 'name':pId }; 
	swfobject.embedSWF(pFile, pId, this.elem.width(), this.elem.height(), "9", "", flashvars, params, attributes, 
    		function (b) {
		    	if(b.success){ 
		    		
		    	}
		    });
};
