var line=new Array()
line[1]="Oct. 22, 2009: Michael will be presenting an SSCS chapter seminar at the University of Toronto."
line[2]="The seminar is entitled, 'Silicon Challenges Quartz: ..."
line[3]="Precision Self-Referenced Solid-State Oscillators for Frequency Control and Generation.'"
line[4]="A link to the announcement will be available shortly."
line[5]="Dec. 3, 2009: Michael will be moderating a plenary panel at the annual NSF ERC meeting in DC."
line[6]="The panel is entitled, 'Growing Innovative Engineers.'"
line[7]="For more information, click 'NEWS' to navigate to www.erc-assoc.org."
line[8]="Feb. 1-4, 2010: Michael will be presenting a paper at DesignCon 2010 in Santa Clara, CA."
line[9]="The paper is entitled, 'Current & Future Trends in Frequency Generation, ..."
line[10]="and Applicable Jitter and Link Performance Analysis with Real-Time and Sampling Oscilloscopes.'"
line[11]="For more information, click 'NEWS' to navigate to www.designcon.com."

var longestmessage=1

var link=new Array()
link[1]="http://www.ece.utoronto.ca"
link[2]="http://www.ece.utoronto.ca"
link[3]="http://www.ece.utoronto.ca"
link[4]="http://www.ece.utoronto.ca"
link[5]="http://www.erc-assoc.org"
link[6]="http://www.erc-assoc.org"
link[7]="http://www.erc-assoc.org"
link[8]="http://www.designcon.com"
link[9]="http://www.designcon.com"
link[10]="http://www.designcon.com"
link[11]="http://www.designcon.com"

for (i=2;i<line.length;i++){
	if (line[i].length>line[longestmessage].length)
		longestmessage=i
}

var tscroller_width=line[longestmessage].length + 5
lines=line.length-1

if (document.all||document.getElementById){
	document.write('<form name="bannerform"><img src="http://cgi.www.umich.edu/counter?link=http://www.eecs.umich.edu/~mmccorq/index.html&amp;width=5&amp;text=000000&amp;bgcolor=FFFFFF&amp;font=arial&amp;point=8" alt="[COUNTER]">&nbsp;<a onClick="redirect()">NEWS:</a> <input type="text" name="banner" size="'+tscroller_width+'" style="border: medium none; font-size:8pt; color: black;"></form>')
}

temp=""
nextchar=-1;
nextline=1;
cursor="\\"

function redirect(){
	if (link[nextline]!="") {
		window.location = link[nextline];
	}
}

function animate(){
	if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
		nextline++;
		nextchar=-1;
		document.bannerform.banner.value=temp;
		temp="";
		setTimeout("nextstep()",1000)}
	else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
		nextline=1;
		nextchar=-1;
		document.bannerform.banner.value=temp;
		temp="";
		setTimeout("nextstep()",1000)}
	else {
		nextstep()}
}

function nextstep(){
	if (cursor=="\\"){
		cursor="_"}
	else if (cursor=="|"){
		cursor="_"}
	else if (cursor=="/"){
		cursor="_"}
	else if (cursor=="-"){
	cursor="_"}
	nextchar++;
	temp+=line[nextline].charAt(nextchar);
	document.bannerform.banner.value=temp+cursor
	setTimeout("animate()",50)
}

if (document.all||document.getElementById)
	window.onload=animate