// JavaScript Document
var rint=5; // Rotation interval (seconds)

/*	=====  News flash ====
	insert new page names as a new line anywhere in the array
	ensure page name is in single quotes with a comma at the end.
	Put the page in the flash directory.
	To temporarily ignore a page put // at beginnnibg of the line
	in the array pages
	e.g  // 'ignored.htm',
	   */
var pages=new Array(
	'rONS.htm',
	'rTnaml.htm',
	'rBulkhead.htm',
	'rHACCP.htm',
	'rBlackstart.htm',
	'rSQLobs.htm',
	'rWindsock.htm',
// Do not change below here.
	'end_Array')
	
var path='/news/' //root path to files
var count=0 // Array Counter

// Inserts news flash pages in order listed above
function order_iframe () {
	document.getElementById("sideframe").src=path+pages[count];
	count++
	if (count==pages.length-1){
		count=0;
		}
	setTimeout('order_iframe()', rint * 1000);

}
// inserts news flash pages in randon order - not used
function random_iframe(){
		var rndm=Math.floor(Math.random()*(pages.length-1));
		var newPage=path+pages[rndm];
		document.getElementById("sideframe").src=newPage;
		setTimeout('random_iframe()', rint * 1000);
}

