function play_story2 (new_story)
{
	var ele_in;
	var ele_out;
	var idx_in;
	var idx_out;
	
	var old_story;
	
	var container = document.getElementById ('story_container2');
			
	total_story = container.total_story;
	old_story = container.active_story;
	
	if (old_story)
	{
		if ((ele_in = document.getElementById ('story2_' + new_story)) &&
			(ele_out= document.getElementById ('story2_' + old_story)))
		{
			fade_out (ele_out.id);
			fade_in (ele_in.id);
			
//			idx_in = document.getElementById ('index2_' + new_story);
//			idx_out = document.getElementById ('index2_' + old_story);
//			
//			idx_in.className = "player_index_active";
//			idx_in.style.visibility = "visible";
//			idx_out.className = "player_index";
//			idx_out.style.visibility = "hidden";
			
		}
	}
	else
	{
		if (ele_in = document.getElementById ('story2_' + new_story))
		{
			fade_in (ele_in.id);
			
//			idx_in = document.getElementById ('index2_' + new_story);				
//			idx_in.className = "player_index_active";
//			idx_in.style.visibility = "visible";
			
			if (total_story > 1)
			{
			    story_playing = window.setInterval("advance_story2(1);", 9000);
			    container.playing = story_playing;
			}
		}
	}
	
	container.active_story = new_story;
}

function advance_story2 (advance)
{
	var container = document.getElementById ('story_container2');

	total_story = container.total_story;
	old_story = container.active_story;
	
	old_story += advance;

	if (old_story > total_story)
	{
		old_story = 1;
	}
	if (old_story < 1)
	{
		old_story = total_story;
	}
	
	
	play_story2(old_story);
}
	
function play_pause2 ()
{
	var container = document.getElementById ('story_container2');
	
	if (container.playing != 0)
	{
		clearInterval (container.playing);
		
		var play_pause = document.getElementById ('play_pause');
		play_pause.innerHTML = "<img src='_img/rotator2/controls_play.gif' border='0' alt='Play' />";
		container.playing = 0;
	} 
	else
	{
		container.playing = window.setInterval ("advance_story2(1);", 10000);	

		var play_pause = document.getElementById ('play_pause');
		play_pause.innerHTML = "<img src='_img/rotator2/controls_pause.gif' border='0' alt='Pause' />";
	} 
}