//write the style info
document.write("	<style>")
document.write("		.typermessage{")
document.write("			font-family: "+ sScrollFont + ";")
document.write("			font-size: " + iFontSize + "px;")
document.write("			font-weight:bold;")
document.write("			border: medium none;")
document.write("			cursor:hand;")
document.write("			scrollbar-base-color:" + sPageBackgroundColor + ";")
document.write("			scrollbar-arrow-color:" + sPageBackgroundColor + ";")
document.write("			scrollbar-DarkShadow-Color:" + sPageBackgroundColor + ";")                                      
document.write("			scrollbar-Face-Color:" + sPageBackgroundColor + ";")
document.write("			scrollbar-Highlight-Color:" + sPageBackgroundColor + ";") 
document.write("			scrollbar-Shadow-Color:" + sPageBackgroundColor + ";")
document.write("			scrollbar-Track-Color:white;")
document.write("			color:" + sColor +";")
document.write("			background-color:" + sPageBackgroundColor +";")
document.write("		}")
document.write("	</style>")



function Go(sCurMsg){
	//check for the message and extract the url !...
	for(var y=0;y<line.length;y++)
	{
		//alert('this is line number ' + y + ' ' + line[y]);
		if ( line[y] == sCurMsg ) {
			//window.document.location.href=url[y];
			popup1(url[y],iPopWindowWidth,iPopWindowHeight)

		}
	}
}

//Secify scroller contents

//Specify font size for scoller
//var ts_fontsize="10px"

//--Don't edit below this line

var longestmessage=1
for (i=2;i<line.length;i++){
if (line[i].length>line[longestmessage].length)
longestmessage=i
}

//Auto set scroller width
var tscroller_width=line[longestmessage].length + iExtendTheScrollBarAsNeededToFit

lines=line.length-1 //--Number of lines

//if IE 4+ or NS6
if (document.all||document.getElementById){
document.write('<form name="Scrollform">')
//document.write('<input onClick="alert(\'' + line[i] + '\')" type="text" name="Scroll" size="'+tscroller_width+'"')
if ( bolUseTextArea ) 
{
	document.write('<textarea rows=' + iRows + ' cols=' + iCols + ' onClick="Go(window.document.Scrollform.ScrollHidden.value)" name="Scroll" size="'+tscroller_width+'"')
	document.write(' class="typermessage" onfocus="blur()"></textarea>')
}
else
{
	document.write('<input onClick="Go(window.document.Scrollform.ScrollHidden.value)" type="text" name="Scroll" size="'+tscroller_width+'"')
	document.write(' class="typermessage" onfocus="blur()">')
}
document.write('<input type=hidden name="ScrollHidden">') 
document.write('</form>')
}

temp=""
nextchar=-1;
nextline=1;
cursor="\\"
function animate(){
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines)
{
	nextline++;
	nextchar=-1;
	document.Scrollform.Scroll.value=temp;
	temp="";
	setTimeout("nextstep()",iMessagePause)}
	else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length)
	{
		nextline=1;
		nextchar=-1;
		document.Scrollform.Scroll.value=temp;
		temp="";
		setTimeout("nextstep()",iMessagePause)
	}
	else
	{
		nextstep()
	}
}

function nextstep(){


cursor=sTeleTypeEdgeCharacter

if (cursor=="\\"){
cursor="|"}
else if (cursor=="|"){
cursor="/"}
else if (cursor=="/"){
cursor="-"}
else if (cursor=="-"){
cursor="\\"}


nextchar++;
document.Scrollform.ScrollHidden.value=line[nextline];
temp+=line[nextline].charAt(nextchar);
document.Scrollform.Scroll.value=temp+cursor
setTimeout("animate()",iMessageSpeed)}

//if IE 4+ or NS6
if (document.all||document.getElementById)
window.onload=animate
// -->
