var ourTours = new Array("taskbar_shuffle.swf", "hide_window.swf","clone_file_name.swf", "launch_applications.swf", "rollup_window.swf","send_to_tray.swf","append_date.swf");/*,"Make_window_on_top.swf" );*/
var ourToursName = new Array( "Taskbar Shuffle","Hiding Window", "Clone file name", "Launching applications", "Rollup Window","Send To Tray","Append Date");/*,"Window On Top" );*/
var currentTour = 0;

function updateDemoList()
{
	// fill the list box
	var tour_list = document.getElementById("tour_demo_list");
	for( var i=0;i < ourTours.length;i++)
	{
		tour_list.options[i] = new Option(ourToursName[i],ourTours[i]);
	}

}

function onDemoListChange( )
{
	currentTour = document.getElementById("tour_demo_list").options.selectedIndex;
	showFlash();
}

function showFlash()
{
	var nextFlash = ourTours[currentTour];
	document.getElementById("flashtour").innerHTML = document.getElementById("flashtour").innerHTML.replace(/[^/]*\.swf/gi,nextFlash);
	document.getElementById("tour_demo_list").options.selectedIndex = currentTour;
}

function showNextFlash()
{
	if( currentTour == ourTours.length-1 ) return;
	currentTour = (currentTour+1)%ourTours.length;
	showFlash();
}

function showPrevFlash()
{
	if( currentTour == 0 ) return;
	currentTour = (currentTour-1)%ourTours.length;
	showFlash();
}

/*
function onTourChange( caller )
{
	switch( caller
}
*/
