//pre-load images
var News1Img = new Image();
News1Img.src = '/Sites/WISER/media/image/PreceptorProgram.jpg';
var News2Img = new Image();
News2Img.src = '/Sites/WISER/media/image/faculty/odonnell_105wide.jpg';
var News3Img = new Image();
News3Img.src = '/Sites/WISER/media/image/henker_seybert_award.jpg';
var News4Img = new Image();
News4Img.src = '/Sites/wiser/media/image/faculty/dongilli_105wide.jpg';

function makeNews(h,c,l,f,i){
	this.headline = h;
	this.copy = c;
	this.link = l;
	this.follow = f;
	this.img = i;
	this.write = writeNews;
}

function writeNews(){
	var str = '';
	str += '<table><tr>';
	str += '<td><b>' + this.headline + '</b><br>' + this.copy + '<br>';
    str += '<a href="' + this.link + '">' + this.follow + '</a></td>';
    str += '<td><a href="' + this.link + '">';
	str += '<img border="0" src="' + this.img.src + '"></a></TD></tr></table>';
	return str;
}

var newsArray = new Array();
var strNewsCopy1 = '';
strNewsCopy1 += 'WISER now offers a detailed simulation specialist (technician) preceptor program. ';
strNewsCopy1 += 'This is a 1-5 day program, depending on your needs, that offers the opportunity for ';
strNewsCopy1 += 'simulation specialist or potential simulation specialist, to observe and learn how ';
strNewsCopy1 += 'WISER Simulation Specialists function. Participants of this program will spend time ';
strNewsCopy1 += 'with members of the WISER simulation specialist team and have the opportunity to observe ';
strNewsCopy1 += 'and learn how WISER manages a busy facility.';
newsArray[0] = new makeNews("Simulation Specialist Preceptor Program Created", strNewsCopy1,'/Sites/WISER/news/2006/04/0604_SSPprogram.asp','Full Story',News1Img).write();

var strNewsCopy2 = '';
strNewsCopy2 += 'John O\'Donnell, CRNA, MSN, Associate Director, Nursing Programs at ';
strNewsCopy2 += 'WISER was invited by the program committee to lecture at the February ';
strNewsCopy2 += '2006 annual convention of the American Association of Nurse ';
strNewsCopy2 += 'Anesthetists National Assembly of School Faculty. He addressed ';
strNewsCopy2 += 'education technology and simulation in nursing with his presentation, ';
strNewsCopy2 += 'entitled "Technology in Teaching: PowerPoint, SimMan, and the Land of ';
strNewsCopy2 += 'Oz: Is that a yellow-brick or megabyte road we are following?." The ';
strNewsCopy2 += 'AANA National Assembly is the main forum for Nurse Anesthesia Educator ';
strNewsCopy2 += 'networking and mentoring in the world to which John O\'Donnell made a most significant contribution.';
newsArray[1] = new makeNews("John O\'Donnell Honored Speaker at AANA Assembly", strNewsCopy2,'/Sites/WISER/news/2006/02/0602_AANA.asp','Full Story',News2Img).write();

var strNewsCopy3 = '';
strNewsCopy3 += 'Richard Henker CRNA, PhD and Amy Seybert, PharmD were recently awarded the prestigious ';
strNewsCopy3 += 'University of Pittsburgh Chancellors Distinguished Teaching Award. Richard was honored ';
strNewsCopy3 += 'for his work in human simulation education, distance education, and international ';
strNewsCopy3 += 'volunteerism. In addition to being a superb classroom and experiential teacher, Amy ';
strNewsCopy3 += 'has combined scholarship with her innovations. Amy incorporated the patient simulators ';
strNewsCopy3 += 'at the WISER Center and has a manuscript in press about the work... ';

newsArray[2] = new makeNews("Two WISER Faculty Members Earn Award", strNewsCopy3,'/Sites/WISER/news/2006/03/0603_TeachingAward.asp','Full Story',News3Img).write();

var strNewsCopy4 = '';
strNewsCopy4 += 'The most recent Simulation User Group Conference for Maryland Community Colleges took place ';
strNewsCopy4 += 'February 23 - 24, 2006, and was entitled "SimMan Conference: Simulation as a Teaching Tool". ';
strNewsCopy4 += 'This event was sponsored by Laerdal Medical and arranged by the Maryland Association of ';
strNewsCopy4 += 'Community Colleges. Tom Dongilli, Director of Operations at WISER, was the invited speaker ';
strNewsCopy4 += 'to present the keynote address. The title of his lecture was: "Developing Pre-programmed ';
strNewsCopy4 += 'Scenarios. Creative Ideas and Approaches. Utilizing your Simulator in Ways you may not ';
strNewsCopy4 += 'have anticipated."';

newsArray[3] = new makeNews("Tom Dongilli Keynote Speaker in Baltimore", strNewsCopy4,'/Sites/WISER/news/2006/02/0602_DongilliKeynote.asp','',News4Img).write();

var nIndex = 0;
var timerID = null;
function rotateNews(){
	var len = newsArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('stories').innerHTML = newsArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateNews()',6000);
}
function pauseNews() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playNews() {
	if (timerID == null) {
		timerID = setTimeout('rotateNews()', 1000);
	}
}

