<!-- Beginning of JavaScript -

// CREDITS:
// Simple DHTML-ticker with last-letter-animation by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// info@24fun.ch
// 7/31/2000

// IMPORTANT: 
// If you add this script to a script-library or a script-archive 
// you have to insert a link to http://www.24fun.com right into the webpage where the script
// will be displayed.

// CONFIGURATION:
// Go to http://www.24fun.com, open category 'text' and download the ZIP-file of this script 
// containing the the script-file with step-by-step instructions for easy configuration.


var leftposition=305
var topposition=65
var tickerwidth=300
var tickerheight=60
var tickerpadding=1
var borderwidth=0
var fnt="arial"
var fntsize=8
var fntsizelastletter=8
var fntcolor="#00cc00"
var fntcolorlastletter="red"
var fntweight=4
var backgroundcolor=""
var standstill=3500
var speed=20
var i_substring=0
var i_presubstring=0
var i_message=0
var messagecontent=""
var messagebackground=""
var messagepresubstring=""
var messageaftersubstring=""
fntweight=fntweight*100

 if (navigator.appVersion.lastIndexOf('Mac') != -1){
 	var speed=1;
	var standstill=5500
 	if ((navigator.userAgent.indexOf("MSIE 5") != -1) || (navigator.userAgent.indexOf("MSIE 5.0") != -1) || (navigator.userAgent.indexOf("MSIE 5.5") != -1)){
	var topposition=05;
	var leftposition=310;
}
}


function initiateticker() {
	getmessagebackground()
	if (document.all) {	
		document.all.ticker.style.posLeft=leftposition
		document.all.ticker.style.posTop=topposition
		//document.all.tickerbg.style.posLeft=leftposition
		//document.all.tickerbg.style.posTop=topposition
		//tickerbg.innerHTML=messagebackground
		showticker()
	}
	if (document.layers) {
		//document.tickerbg.document.write(messagebackground)
		//document.tickerbg.document.close()
		document.ticker.left=leftposition
		document.ticker.top=topposition
		//document.tickerbg.left=leftposition
		//document.tickerbg.top=topposition
		showticker()
	}
}

function getmessagebackground() {
		//messagebackground="<table border="+borderwidth+" width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top bgcolor='"+backgroundcolor+"'>"
		//messagebackground+="</td></tr></table>"
}

function getmessagecontent() {
		messagepresubstring=message[i_message].substring(0,i_presubstring)
		messageaftersubstring=message[i_message].substring(i_presubstring,i_substring)
		messagecontent="<table border=0 cellpadding="+tickerpadding+" width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>"
		messagecontent+="<span class='main'>"	
		messagecontent+="<a href='"+messagelink[i_message]+"'>"
		messagecontent+="<font color='"+fntcolor+"'><b>"
		messagecontent+=messagepresubstring
		messagecontent+="</b></font>"
		messagecontent+="</a>"
		messagecontent+="</span>"
		messagecontent+="<span class='input'>"	
		messagecontent+="<a href='"+messagelink[i_message]+"'>"
		messagecontent+="<font color='"+fntcolor+"'><b>"
		messagecontent+=messageaftersubstring
		messagecontent+="</b></font>"
		messagecontent+="</a>"
		messagecontent+="</span>"
		messagecontent+="</td></tr></table>"
}

function showticker() {
	if (i_substring<=message[i_message].length-1) {
			i_substring++
			i_presubstring=i_substring-1
			if (i_presubstring<0) {i_presubstring00}
			getmessagecontent()
		if (document.all) {
			ticker.innerHTML=messagecontent
			var timer=setTimeout("showticker()", speed)
		}
		if (document.layers) {
			document.ticker.document.write(messagecontent)
			document.ticker.document.close()
			var timer=setTimeout("showticker()", speed)
		}
	}
	else {
		clearTimeout(timer)
		var timer=setTimeout("changemessage()", standstill)
	}
}

function changemessage() {
	i_substring=0
	i_presubstring=0
	i_message++
	if (i_message>message.length-1) {
		i_message=0
	}
	showticker()
}

// - End of JavaScript - -->
