/*
	Neon Lights Text
	By JavaScript Kit (http://javascriptkit.com)
	Over 400+ free scripts here!
	Significantly modified by Bob Gajewski
*/

	var message="The Best Training The Best"
	var neontextcolor="#0000ff"
	var flashspeed=100  //in milliseconds

///No need to edit below this line///

	var n=0

	if (document.all){
		document.write('<font color="#000000";>')
		for (m=0;m<message.length;m++)
			document.write('<span id="neonlight" style="font-size:14pt;font-style:oblique;">'+message.charAt(m)+'</span>')
			document.write('</font>')
		//cache reference to neonlight array
			var tempref=document.all.neonlight
		}
	else {
		document.write(message)
		var cyclecount=1
		}

function neon(){
	if (n==0){
		for (m=0;m<message.length;m++)
			tempref[m].style.color="#000000"
		for (m=8;m<message.length-8;m++)
			tempref[m].style.color="#ffff00"
		for (m=0;m<8;m++)
			if (cyclecount==1)
				tempref[m].style.color="#ffff00"
			else
				tempref[m].style.color="#000000"
		for (m=message.length-8;m<message.length;m++)
			if (cyclecount==1)
				tempref[m].style.color="#000000"
			else
				tempref[m].style.color="#ffff00"
		}
	//cycle through and change individual letters to neon color
		if (n<tempref.length-1) {
			n++
			}
		else {
			n=0
			clearInterval(flashing)
			setTimeout("beginneon()",500)
			return
			}
	}

function beginneon(){
	if (cyclecount==1) {
		cyclecount = cyclecount + 1;
		}
	else {
		cyclecount = 1;
		}
	if (document.all) {
		flashing=setInterval("neon()",flashspeed)
		}
	}

beginneon()

