/* Single Game Expand/Collapse */

$(document).ready(function(){
				//makes interactive bits visible

				$('.qa_up').removeClass('hide');
				$('.qaex').removeClass('hide');
				
				//adds inactive class where needed
				$('.qa_question').addClass('inactive');	
				$('.qaex').addClass('inactive');
				$('.qa_up').addClass('inactive');				
				
				//Hide (Collapse) the toggle containers on load
				$('.qa_up').hide(); 
				$('.dea').parents('.qa_up').show(); 

				//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)
				$(".qaex").click(function(){
					$(this).toggleClass('active').toggleClass('inactive');
					//$(this).parent().find('.qa_up').
					$(this).parents('.qatable').find('.qa_up').toggleClass('active').toggleClass('inactive').slideToggle("slow");
					return false; //Prevent the browser jump to the link anchor
				});
			});
			
/* End Single Game Expand/Collapse */

/* Single Game Expand All/Collapse All */

$(document).ready(function(){
	$('.moreless').show(); 
	$(".expand_all").click(function(){
		$('.cheattrigger').removeClass('inactive').addClass('active').next().slideDown("fast");

		$('.cheattrigger').parents(".cheatgridleft").find('.cheatgridimg').not('.active').removeClass('inactive').addClass('active').fadeIn("slow", function() { $(this).css({display: 'block'}) }).stop(true, true).css({height:'0px'}).stop(true, true).animate({height:'90px'},'slow');

	//	$('.cheattrigger').not('.inactive').parents(".cheatgridleft").removeClass('inactive').addClass('active').animate({marginLeft:'70px'},'slow');

		return false; //Prevent the browser jump to the link anchor
	});
	
	
	
	$(".collapse_all").click(function(){
		$('.cheattrigger').removeClass('active').addClass('inactive').next().slideUp("fast");

		$('.cheattrigger').parents(".cheatgridleft").find('.cheatgridimg').not('.inactive').removeClass('active').addClass('inactive').css({height:'90px'}).stop(true, true).animate({height:'0px'},'slow');
	
	//	$('.cheattrigger').not('.active').parents(".cheatgridleft").removeClass('active').addClass('inactive').animate({marginLeft:'0px'},'slow');

		return false; //Prevent the browser jump to the link anchor
	});	
	
	
	
});

/* End Single Game Expand All/Collapse All */

