function ntw_swap(titleid) {
	var abroad_b = new Array('abroad_b1','abroad_b2','abroad_b3','abroad_b4','abroad_b5');
	var auto = document.abroad_form.abroad_form1.value;
//	var pause = document.getElementById('pause1')
	// change the synopsis 
	for (var i = 0; i < abroad_b.length; i++) {
		if (abroad_b[i]== 'abroad_b'+titleid) document.getElementById(abroad_b[i]).style.display = '';
		else document.getElementById(abroad_b[i]).style.display = 'none';
	}
	
	
	if (auto == 0)
	{
	clear_ntw_timers();
	}
}
function pause(vid){
	var auto1 = document.abroad_form.abroad_form1.value;
	if (auto1 == 0){
	document.abroad_form.abroad_form1.value=1;
	//alert(document.stu_form.stu_form1.value);
	make_ntw_timers();
	} else {
	document.abroad_form.abroad_form1.value=0;
	//alert(document.stu_form.stu_form1.value);
	clear_ntw_timers();
	}
}

function make_ntw_timers() {
	
	
	ntw_timer_2 = setTimeout("ntw_swap(1);", 4000);
	
	
	ntw_timer_3 = setTimeout("ntw_swap(2);", 8000);
	
	
	ntw_timer_4 = setTimeout("ntw_swap(3);", 12000);
	
	
	ntw_timer_5 = setTimeout("ntw_swap(4);", 16000);
	
	
	ntw_timer_6 = setTimeout("ntw_swap(5);", 22000);

	ntw_timer_repeater = setTimeout("make_ntw_timers();", 22000);
	
}
function clear_ntw_timers() {
	
	clearTimeout(ntw_timer_2);
	
	clearTimeout(ntw_timer_3);
	
	clearTimeout(ntw_timer_4);
	
	clearTimeout(ntw_timer_5);
	
	clearTimeout(ntw_timer_6);

	clearTimeout(ntw_timer_repeater);
}
make_ntw_timers();

