var message= new Array()


// message[indexnumber]="text of title|text of copy|URL of link"
message[0]="5-22-00<br>Radio City Music Hall<br>New York, NY|I: My Soul, Chalkdust Torture, Billy Breathes, Heavy Things, Get Back On The Train, Split Open and Melt, Sparkle > Horn, Bathtub Gin<br>II: Bouncin', David Bowie, Sand, Mango Song, Ghost, Rock and Roll<br>Encore: Bug, Golgi Apparatus<br><br><a target=_blank href=http://www.phish.net/reviews/shows/5-22-00.html>Reviews</a> - <a target=_blank href=../galleries/2000newyork/index.html>Photos</a> - <a target=_blank href=http://www.radiocity.com/tour/index.html>Venue Web Page</a>|"
message[1]="11-22-92<br>Bailey Hall, Cornell University<br>Ithaca, NY|I: Buried Alive, Oh Kee Pa > Suzy Greenberg, Fee, Maze, Reba, Sparkle, Horn, All Things Reconsidered, Bathtub Gin, Sweet Adeline, Antelope<br>II: Axilla, My Friend My Friend, My Sweet One, Tweezer > Big Ball Jam > Tweezer, Tela, YEM, Faht*, Golgi Apparatus<br>E: Bold as Love, Carolina, Tweeprise<br>*First time played.<br><br><a target=_blank href=http://www.phish.net/reviews/shows/11-22-92.html>Reviews</a> - <a target=_blank href=http://www.phish.net/reviews/tweezer/11-22-92.html>Tweezer Review</a> - <a target=_blank href=http://www.arts.cornell.edu/ccs/bailey.html>Venue Web Page</a>|"
message[2]="2-21-97<br>Tenax, Florence, Italy|I: My Soul, Foam, Down With Disease, Lizards, Crosseyed and Painless, YEM<br>II: Ya Mar, Antelope, Wilson, Oh Kee Pa > AC/DC Bag, Billy Breathes, Reba, Waste, Prince Caspian<br>E: Character Zero<br><br><a target=_blank href=http://www.phish.net/reviews/shows/02-21-97.html>Reviews</a> - <a target=_blank href=http://www.phish.net/reviews/yem/02-21-97.html>YEM Review</a>|"
message[3]="10-8-99<br>Nassau Coliseum<br>Uniondale, Long Island, NY|I: Piper, AC/DC Bag, Suzy Greenberg, Meat, Meatstick, Antelope<br>II: Halley's Comet, Tweezer > My Left Toe, Bug, Fee, Harry Hood, We're Not Gonna Take It*, Chalkdust Torture<br>E: The Squirming Coil, Tweeprise<br>*First time played; from The Who's 'Tommy'; with Tom Marshall on vocals.<br><br><a target=_blank href=http://www.phish.net/reviews/shows/10-8-99.html>Reviews</a> - <a target=_blank href=../galleries/1999fall/index.html>Photos</a> - <a target=_blank href=http://www.nassaucoliseum.com/index.cfm>Venue Web Page</a>|"
message[4]="9-26-99<br>UNO Lakefront Arena<br>New Orleans, LA|I: Sweet Virginia*, First Tube > AC/DC Bag, Dirt, Guyute, Bouncin', Cars Trucks Buses#, Funky Bitch#, Free Thought#, Cavern#<br>II: Twist Around > Piper, Mts in the Mist, Heavy Things, Birds of a Feather, Meat, Disease<br>E: Meatstick, Rocky Top<br>*First time played; Rolling Stones cover. #With Michael Ray on trumpet and Tim Green on saxophone.<br><br><a target=_blank href=http://www.phish.net/reviews/shows/9-26-99.html>Reviews</a> - <a target=_blank href=http://www.uno.edu/~lfar/>Venue Web Page</a>|"

// height of the scrollerbox (pixels)
var scrollerheight=125

// width of the titlezone (pixels)
var titlezonewidth=125

// width of the copyzone (pixels)
var copyzonewidth=265

// horizonal position: distance to the top border of the window (pixels)
var scrollertop=400

// vertical position: distance to the left border of the window (pixels)
var scrollerleft=100

// borderwidth of the scroller
var scrollerborder=0

// backgroundcolor for the titlezone
var titlezonebg="330066"

// backgroundcolor for the copyzone
var copyzonebg="4B7AA6"

// backgroundcolor for the scroller
var scrollbg="4B7AA6"

// The target of your links
var targetlink="_blank"

// font attributes of the title
var font_titleface="Arial"
var font_titlecolor="ffdf00"
var font_titlesize=2

// font attributes of the copytext
var font_copyface="Tahoma"
var font_copycolor="FFFFFF"
var font_copysize=1

// set 1 for bold title, set 0 for normal title
var titlebold=0

// set 1 for bold copy, set 0 for normal copy
var copybold=0

// set 'right', 'left' or 'center' to align the title
var titlealign="center"

// set 'right', 'left' or 'center' to align the copy
var copyalign="left"

// standstill between the messages (milliseconds)
var standstill=8000

// Do not edit below this line
var pre_titlebold
var after_titlebold
var pre_copybold
var after_copybold

var cliptop=0
var clipbottom=0
var clipleft=0
var clipright=titlezonewidth+copyzonewidth

var i_message=0
var mes_joined
var mes_split
var contenttext
var contentbg=""

var step=1
var pause=20

if (titlebold==1) {
	pre_titlebold="<b>"
	after_titlebold="</b>"
}
else if (titlebold==0) {
	pre_titlebold=""
	after_titlebold=""
}

if (copybold==1) {
	pre_copybold="<b>"
	after_copybold="</b>"
}
else if (copybold==0) {
	pre_copybold=""
	after_copybold=""
}

function initiate() {
		mes_joined=message[i_message]
		mes_split=mes_joined.split("|")
		
		contenttext="<table cellpadding=4 cellspacing=0 border=0>"
		contenttext+="<tr valign='top'>"
		contenttext+="<td align="+titlealign+" width="+titlezonewidth+" height='"+scrollerheight+"' bgcolor='"+titlezonebg+"'>"
		//contenttext+="<a href='"+mes_split[2]+"' target='"+targetlink+"'>"
		contenttext+="<font face='"+font_titleface+"' color='"+font_titlecolor+"' size='"+font_titlesize+"'>"
		contenttext+=pre_titlebold
		contenttext+=mes_split[0]
		contenttext+=after_titlebold
		contenttext+="</font>"
		//contenttext+="</a>"
		contenttext+="</td>"
		contenttext+="<td align="+copyalign+" width="+copyzonewidth+" height='"+scrollerheight+"' bgcolor='"+copyzonebg+"'>"
		contenttext+="<font face='"+font_copyface+"' color='"+font_copycolor+"' size='"+font_copysize+"'>"
		contenttext+=pre_copybold
		contenttext+=mes_split[1]
		contenttext+=after_copybold
		contenttext+="</font></td></tr>"
		contenttext+="</table>"
		
		var bg_width=titlezonewidth+copyzonewidth+2*scrollerborder
		var bg_height=scrollerheight+2*scrollerborder
		
		contentbg="<table width="+bg_width+" height='"+bg_height+"' cellpadding=0 cellspacing=0 border='"+scrollerborder+"'><tr><td bgcolor='"+scrollbg+"'>&nbsp;</td></tr></table>"
	
	if (document.all) {
		scrollertext.innerHTML=contenttext
		scrollerbg.innerHTML=contentbg
		document.all.scrollertext.style.posTop=scrollertop+scrollerheight
		document.all.scrollertext.style.posLeft=scrollerleft
		document.all.scrollerbg.style.posTop=scrollertop-scrollerborder
		document.all.scrollerbg.style.posLeft=scrollerleft-scrollerborder
		document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
		scrollin()
	}
	if (document.layers) {
		document.scrollertext.document.write(contenttext)
		document.scrollertext.document.close()
		document.scrollerbg.document.write(contentbg)
		document.scrollerbg.document.close()
		document.scrollertext.top=scrollertop+scrollerheight
		document.scrollertext.left=scrollerleft
		document.scrollerbg.top=scrollertop-scrollerborder
		document.scrollerbg.left=scrollerleft-scrollerborder
		document.scrollertext.clip.left=clipleft
        document.scrollertext.clip.right=clipright
        document.scrollertext.clip.top=cliptop
        document.scrollertext.clip.bottom=clipbottom
		scrollin()
	}
}

function scrollin(){
	if (document.all){
		if (document.all.scrollertext.style.posTop>scrollertop) {
			clipbottom+=step
			document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
			document.all.scrollertext.style.posTop-=step
			var timer=setTimeout("scrollin()",pause)
		}
		else {
			clearTimeout(timer)
			var timer=setTimeout("scrollout()",standstill)
		}
	}
	if (document.layers){
		if (document.scrollertext.top>scrollertop) {
			clipbottom+=step
			document.scrollertext.clip.left=clipleft
        	document.scrollertext.clip.right=clipright
        	document.scrollertext.clip.top=cliptop
        	document.scrollertext.clip.bottom=clipbottom
			document.scrollertext.top-=step
			var timer=setTimeout("scrollin()",pause)
		}
		else {
			clearTimeout(timer)
			var timer=setTimeout("scrollout()",standstill)
		}
	}
}

function scrollout(){
	if (document.all){
		if (document.all.scrollertext.style.posTop>(scrollertop-scrollerheight)) {
			cliptop+=step
			document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
			document.all.scrollertext.style.posTop-=step
			var timer=setTimeout("scrollout()",pause)
		}
		else {
			clearTimeout(timer)
			changemessage()
		}
	}
	if (document.layers){
		if (document.scrollertext.top>(scrollertop-scrollerheight)) {
			cliptop+=step
			document.scrollertext.clip.left=clipleft
        	document.scrollertext.clip.right=clipright
        	document.scrollertext.clip.top=cliptop
        	document.scrollertext.clip.bottom=clipbottom
			document.scrollertext.top-=step
			var timer=setTimeout("scrollout()",pause)
		}
		else {
			clearTimeout(timer)

			changemessage()
		}
	}
}

function changemessage(){
		i_message++
		if (i_message>message.length-1) {i_message=0}
		mes_joined=message[i_message]
		mes_split=mes_joined.split("|")
		cliptop=0
		clipbottom=0
		
		contenttext="<table cellpadding=4 cellspacing=0 border=0>"
		contenttext+="<tr valign='top'>"
		contenttext+="<td align="+titlealign+" width="+titlezonewidth+" height='"+scrollerheight+"' bgcolor='"+titlezonebg+"'>"
		//contenttext+="<a href='"+mes_split[2]+"' target='"+targetlink+"'>"
		contenttext+="<font face='"+font_titleface+"' color='"+font_titlecolor+"' size='"+font_titlesize+"'>"
		contenttext+=pre_titlebold
		contenttext+=mes_split[0]
		contenttext+=after_titlebold
		contenttext+="</font>"
		//contenttext+="</a>"
		contenttext+="</td>"
		contenttext+="<td align="+copyalign+" width="+copyzonewidth+" height='"+scrollerheight+"' bgcolor='"+copyzonebg+"'>"
		contenttext+="<font face='"+font_copyface+"' color='"+font_copycolor+"' size='"+font_copysize+"'>"
		contenttext+=pre_copybold
		contenttext+=mes_split[1]
		contenttext+=after_copybold
		contenttext+="</font></td></tr>"
		contenttext+="</table>"
	
	if (document.all) {
		scrollertext.innerHTML=contenttext
		document.all.scrollertext.style.posTop=scrollertop+scrollerheight
		document.all.scrollertext.style.posLeft=scrollerleft
		document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
		scrollin()
	}
	if (document.layers) {
		document.scrollertext.document.write(contenttext)
		document.scrollertext.document.close()
		document.scrollertext.top=scrollertop+scrollerheight
		document.scrollertext.left=scrollerleft
		document.scrollertext.clip.left=clipleft
        document.scrollertext.clip.right=clipright
        document.scrollertext.clip.top=cliptop
        document.scrollertext.clip.bottom=clipbottom
		scrollin()
	}
}

