<!-- Sponsor Banner BB -->
///////////////////
//www.fortochka.com
//Alexander Babichev 2006 Coopyright
//This script is free for private use. Otherwise a $10 fee per a site is required.
//the script can be modified but the copyright notice should be left unchanged.
///////////////////


var pic = new Array()

function banner(name, width, link){
	this.name = name
	this.width = width
	this.link = link
   }

pic[0] = new banner('http://www.firstlightmarathon.com/sponsors/BT_FLM_trans.gif',200,'http://www.firstlightmarathon.com/')
pic[1] = new banner('http://www.firstlightmarathon.com/sponsors/BankTrust.gif',200,'http://www.banktrustonline.com/')
pic[2] = new banner('http://www.firstlightmarathon.com/sponsors/logos/rjbaggett_logo.jpg',200,'http://www.rjbaggett.com/')
pic[3] = new banner('http://www.firstlightmarathon.com/sponsors/LSlogo.jpg',200,'http://www.lifesouth.org/index.php?option=com_content&view=category&id=105&Itemid=286')
pic[4] = new banner('http://www.firstlightmarathon.com/sponsors/logos/bcbsmobile_logo_sm.jpg',200,'https://www.bcbsal.org/index.cfm')
pic[5] = new banner('http://www.firstlightmarathon.com/sponsors/BT_FLM_trans.gif',200,'http://www.firstlightmarathon.com/')
pic[6] = new banner('http://www.firstlightmarathon.com/sponsors/candhrotating.gif',200,'http://www.candhconstructionllc.com/')
pic[7] = new banner('http://www.firstlightmarathon.com/sponsors/dex.jpg',200,'http://www.deximaging.com/')
pic[8] = new banner('http://www.firstlightmarathon.com/sponsors/Hackbarth_2.gif',200,'http://www.hackbarthdelivery.com/')
pic[9] = new banner('http://www.firstlightmarathon.com/sponsors/Lamar.gif',200,'http://www.lamar.com/')
pic[10] = new banner('http://www.firstlightmarathon.com/sponsors/kingdomcoach.jpg',200,'http://www.kingdomcoach.com/')

//pic[2] = new banner('http://www.firstlightmarathon.com/sponsors/Huka_trans.gif',200,'http://www.hukaentertainment.com/')
//pic[4] = new banner('http://www.firstlightmarathon.com/sponsors/Helmsing_trans.gif',200,'http://helmsinglaw.com/')
//pic[5] = new banner('http://www.firstlightmarathon.com/sponsors/BT_FLM_trans.gif',200,'http://www.firstlightmarathon.com/')
//pic[7] = new banner('http://www.firstlightmarathon.com/sponsors/schoolinsites.gif',200,'http://www.schoolinsites.com')
//pic[8] = new banner('http://www.firstlightmarathon.com/sponsors/LilRedHen_trans.gif',200,'http://productionsbylittleredhen.com/')
//pic[9] = new banner('http://www.firstlightmarathon.com/sponsors/candhrotating.gif',200,'http://www.candhconstructionllc.com/')
//pic[10] = new banner('http://www.firstlightmarathon.com/sponsors/BT_FLM_trans.gif',200,'http://www.firstlightmarathon.com/')
//pic[11] = new banner('http://www.firstlightmarathon.com/sponsors/OldDutch_trans.gif',200,'')
//pic[12] = new banner('http://www.firstlightmarathon.com/sponsors/MAWSS.gif',200,'http://www.mawss.com/')
//pic[13] = new banner('http://www.firstlightmarathon.com/sponsors/NGrumman_trans.gif',200,'http://www.is.northropgrumman.com/systems/kc30tanker.html')
//pic[13] = new banner('http://www.firstlightmarathon.com/sponsors/Orthopaedic_trans.gif',200,'http://www.theorthogroup.com/')
//pic[14] = new banner('http://www.firstlightmarathon.com/sponsors/mcdowellknight.gif',200,'http://www.mcdowellknight.com/')
//pic[15] = new banner('http://www.firstlightmarathon.com/sponsors/goldenflake_logo_sm.jpg',200,'http://www.goldenflake.com/')
//pic[16] = new banner('http://www.firstlightmarathon.com/sponsors/guldequip_logo_sm.jpg',200,'#')
//pic[15] = new banner('http://www.firstlightmarathon.com/sponsors/logos/inkworks_logo_sm.jpg',200,'http://www.4inkworks.com')
//pic[16] = new banner('http://www.firstlightmarathon.com/sponsors/logos/terminix_logo_sm.jpg',200,'http://www.terminix.com')

var speed = 25

var kk = pic.length
var ii
var hhh
var nnn
var myInterval
var myPause
var mode = 0


var imgArray = new Array(kk)
var myLeft = new Array(kk)

for (ii=0;ii<kk;ii++){
imgArray[ii] = new Image()
imgArray[ii].src = pic[ii].name
imgArray[ii].width = pic[ii].width

	hhh=0 
	for (nnn=0;nnn<ii;nnn++){
		hhh=hhh+pic[nnn].width
	}
	myLeft[ii] = hhh
}

function ready(){
	for (ii=0;ii<kk;ii++){ 
		if (document.images[ii].complete == false){
			return false	
			break
		}
	}
return true
}


function startScrolling(){
	if (ready() == true){		
		window.clearInterval(myPause)
		myInterval = setInterval("autoScroll()",speed)	
	}
}	
	

function autoScroll(){
	for (ii=0;ii<kk;ii++){
		myLeft[ii] = myLeft[ii] - 1
		
	if (myLeft[ii] == -(pic[ii].width)){
		hhh = 0
		for (nnn=0;nnn<kk;nnn++){
			if (nnn!=ii){
				hhh = hhh + pic[nnn].width
			}			
		}
		myLeft[ii] =  hhh
	}
		
				
		document.images[ii].style.left = myLeft[ii]
	}
	mode = 1
}

function stop(){
	if (mode == 1){
		window.clearInterval(myInterval)
	}
	if (mode == 0){
		window.clearInterval(myPause)
	}	
}

function go(){
	if (mode == 1){
		myInterval = setInterval("autoScroll()",speed)
	}
	if (mode == 0){
		myPause = setInterval("startScrolling()",3000)
	}	
}

myPause = setInterval("startScrolling()",3000)
