var text = new Array();var header = new Array();var linka = new Array();var targa = new Array();var divtext = new Array();var divh = new Array();var objst = new Array();var objs = new Array();var objsh = new Array();text[0] = "<img src=\"photos/holiday_focus.jpg\">";text[1] = "<img src=\"photos/smokealarms2.jpg\">";text[2] = "<b>If your home does not have a working smoke detector, <br>and you do not have the means to get one, click here. <br>Fill out this short form and we will install one for you <br>free of charge.</b>";text[3] = "<img src=\"photos/battery.jpg\">";text[4] = "<br><b>Our Home Safety section will give you information on <br>keeping your home \"Fire-Safe\". <br>Click here  </b>";text[5] = "<img src=\"photos/homeheating.jpg\">";text[6] = "<b>Visiting from another <br><font size=\"+1\">Fire Department</font><font size=\"+1\">?</font><br>Join our Virtual Patch Trading & Links page!<br><center>(click here)</center></b>";text[7] = "<img src=\"photos/cooking.jpg\">";text[8] = "<img src=\"photos/america.jpg\" align=center>";text[9] = "<img src=\"photos/smoking.jpg\">";text[10] = "<br><b>Our kids section has lots of great kids activities!</b>";text[11] = "<img src=\"photos/noveltylighters.jpg\" align=center>";text[12] = "<br><b><h4>Become a Subscriber today!</h4></b>";text[13] = "<center><p><img src=\"photos/newlb.gif\"><p><b>Move over Tennessee!!</b></center>";text[14] = "<br><h3>Support Blount County</h3>";text[15] = "<br><b>To schedule a fire education presentation <br>for your students by the BCFD, click here. </b>";text[16] = "<br><h4><u>Keep Blount Beautiful</u></h4><b>Dispose of waste responsibly!</b>";text[17] = "<img src=\"photos/wildfire.jpg\">";text[18] = "<img src=\"photos/older_adults.jpg\">";text[19] = "<img src=\"photos/usfa_header.gif\">";text[20] = "<img src=\"photos/ffm1.jpg\" align=center>";header[0] = "";header[1] = "";header[2] = "";header[3] = "";header[4] = "";header[5] = "";header[6] = "";header[7] = "";header[8] = "";header[9] = "";header[10] = "";header[11] = "";header[12] = "";header[13] = "";header[14] = "";header[15] = "";header[16] = "";header[17] = "";header[18] = "";header[19] = "";header[20] = "";linka[0] = "\ http://www.usfa.dhs.gov/downloads/pdf/fswy14.pdf";linka[1] = "\ http://www.usfa.dhs.gov/citizens/all_citizens/home_fire_prev/alarms/index.shtm";linka[2] = "\ SAform.html";linka[3] = "http://www.usfa.dhs.gov/citizens/focus/smoke_alarms.shtm";linka[4] = "\ tips.html";linka[5] = "\ http://www.usfa.dhs.gov/downloads/pdf/fswy3.pdf";linka[6] = "\ friends.html";linka[7] = "http://www.usfa.dhs.gov/citizens/all_citizens/home_fire_prev/cooking.shtm";linka[8] = "\ photos/anthem.html";linka[9] = "http://www.usfa.dhs.gov/campaigns/smoking/index.shtm";linka[10] = "\ kids.html";linka[11] = "\ http://www.theideabank.com/psa/psa_direct.html";linka[12] = "\ subscribe.html";linka[13] = "\ moveover.html";linka[14] = "\ http://www.blountchamber.com/donations.html";linka[15] = "\ prform.html";linka[16] = "\ http://www.keepblountbeautiful.org/";linka[17] = "http://www.usfa.dhs.gov/downloads/pdf/publications/fa-287-508.pdf";linka[18] = "http://www.usfa.dhs.gov/citizens/older/index.shtm";linka[19] = "http://www.usfa.dhs.gov";linka[20] = "\ tnfallen.html";targa[0] = "blank";targa[1] = "blank";targa[2] = "main2";targa[3] = "blank";targa[4] = "main2";targa[5] = "blank";targa[6] = "main2";targa[7] = "blank";targa[8] = "main2";targa[9] = "blank";targa[10] = "main2";targa[11] = "main2";targa[12] = "main2";targa[13] = "main2";targa[14] = "blank";targa[15] = "main2";targa[16] = "blank";targa[17] = "blank";targa[18] = "blank";targa[19] = "blank";targa[20] = "main2"; uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var kalan=0;var vcurr=0;var vnext=0;var str2='';var mc=0;mc=text.length;stepc=parseInt(20*(1000/1000));dif=0.00;op=1.00;dif=(1.00/stepc);var RealTickerWidth=0;var RealTickerHeight=0;var CalcIcWidth=0;var CalcIcHeight=0;var nstheight=0,nst2width=0;nstheight=100-0-0;nst2width=400-0-0;var icwidth=400;var icheight=100;var msgw,msgh;msgw=400-0;if((IEB==true)&&(scompat == "BackCompat" )){    RealTickerWidth=400;    RealTickerHeight=100;}else{    RealTickerWidth=400-2*(0);    RealTickerHeight=100-2*(0);}    CalcIcWidth=400-2*(0);    CalcIcHeight=100-2*(0);    str2='';        str2=str2+'<div style="position:relative;width'+RealTickerWidth+':px;height:'+RealTickerHeight+'px;left:0px;top:0px;overflow:hidden;visibility:visible;'+'border-style:solid; border-width:0px; border-color:#062291;'+'">';        for(i=0;i<mc;i++)    {        divh[i]='<div id="dh'+i+'" style="position:absolute;width:'+0+'px; height:'+CalcIcHeight+'px;visibility:inherit;background:'+'#AA1801'+'; COLOR:#FFFFFF;padding-top:'+0+'px;padding-left:'+0+'px;'+'left:0px; top:0; FONT-FAMILY: '+'Times New Roman'+'; FONT-SIZE: '+9+'pt; font-style: '+'normal'+'; font-weight: '+'bold'+'; TEXT-DECORATION: '+'none'+';margin:0px; overflow:hidden;text-align:'+'center'+';cursor: default;">';        divtext[i]='<div id="d'+i+'" style="position:absolute;width:'+(CalcIcWidth-0-0)+'px;height:'+CalcIcHeight+'px;left:'+0+'px; top:0;visibility:inherit;background:#AA1801;COLOR:'+'#FFFFFF'+'; '+'padding-top:'+5+'px;padding-left:'+5+'px;'+' FONT-FAMILY: '+'Times New Roman'+'; FONT-SIZE: '+'12'+'pt; font-style: '+'normal'+'; font-weight: '+'normal'+'; margin:0px; TEXT-DECORATION: '+'none'+'; overflow:hidden;text-align:'+'left'+';cursor: default;" onmouseover="mdivmo('+i+')" onmouseout ="restime('+i+')" onclick="butclick('+i+')">';        str2=str2+'<div id="op'+i+'" style="position:absolute;overflow:hidden;visibility:hidden;left:0px;top:0px;width:'+CalcIcWidth+'px; height:'+CalcIcHeight+'px;border-style:solid;border-width:0px;">';        str2=str2+''+divh[i]+''+header[i]+'</div>'+divtext[i]+''+text[i]+'</div>';        str2=str2+'</div>';    }    str2=str2+'</div>';		function mdivmo(gnum){    if(linka[gnum]!='')    {		objs[gnum].style.color='#FFFF00';		objs[gnum].style.cursor='pointer';		window.status=''+linka[gnum];	}   }function restime(gnum2){	objs[gnum2].style.color='#FFFFFF';	window.status='';    }function butclick(gnum3){	if(linka[gnum3].substring(0,11)=="javascript:")	{eval(""+linka[gnum3]);return;}	if(targa[gnum3]==''){targa[gnum3]='_parent';}	if(IEB)	{		window.open(''+linka[gnum3],''+targa[gnum3]);	}	else	{		if((targa[gnum3].indexOf("_parent")>-1))		{			eval("parent.window.location='"+linka[gnum3]+"'");		}		else if((targa[gnum3].indexOf("_top")>-1))		{			eval("top.window.location='"+linka[gnum3]+"'");					}		else		{			window.open(''+linka[gnum3],''+targa[gnum3]);		}		}}function zindx(){	objst[vnext].style.visibility="visible";	objst[vcurr].style.zIndex=2;	objst[vnext].style.zIndex=3;}function Sonraki(){	vcurr=vnext;	vnext=vnext+1;		if(vnext>=mc)	{		vnext=0;	}}function dotrans(){    if(vnext!=vcurr)    {        if(IEB){spageObj.filters[0].apply();}        objs[vnext].style.color='#FFFFFF';        objst[vnext].style.visibility='visible';        objst[vcurr].style.visibility='hidden';        if(IEB){spageObj.filters[0].play();}    }    Sonraki();    setTimeout('dotrans()',8000+1000);}function dotransff(){	op=op-dif;		if(op<(0.00)){op=0.00;}		objst[vcurr].style.opacity = op;	objst[vnext].style.opacity = 1.00-op;	if(op>(0.00))	{		setTimeout('dotransff()',50);	}	else	{		objst[vcurr].style.zIndex=2;		objst[vnext].style.zIndex=3;		Sonraki();	    setTimeout('beftrans()',8000);					}}function beftrans(){	op=1.00;	objst[vcurr].style.visibility="visible";	objst[vnext].style.visibility="visible";		objst[vcurr].style.zIndex=3;	objst[vnext].style.zIndex=2;		objst[vcurr].style.opacity = 1.00;		objst[vnext].style.opacity = 1.00;			dotransff();	}function DoScrollUp(){    kalan=kalan-Math.ceil(kalan/(1000/1000));	objst[vcurr].style.top=""+(kalan-CalcIcHeight)+"px";	objst[vnext].style.top=""+kalan+"px";    if(kalan<=0)    {            Sonraki();        kalan=CalcIcHeight;	    objst[vnext].style.top=""+kalan+"px";        zindx();                 timeo=setTimeout('DoScrollUp()',8000);        }    else    {        setTimeout('DoScrollUp()',50);        }}function DoSlide(){	kalan=kalan-Math.ceil(kalan/(1000/1000));	objst[vcurr].style.left=""+(kalan-CalcIcWidth)+"px";	objst[vnext].style.left=""+kalan+"px";		if(kalan<=0)	{    		Sonraki();		kalan=CalcIcWidth;		objst[vnext].style.left=""+kalan+"px";	        		zindx();                  		timeo=setTimeout('DoSlide()',8000);	}	else	{		setTimeout('DoSlide()',50);    	}}function dofirst(){    var i=0;    for(i=0;i<mc;i++)    {        objs[i]=document.getElementById("d"+i);        objs[i].style.left=""+0+"px";        objs[i].style.top="0px";        objsh[i]=document.getElementById("dh"+i);        objsh[i].style.left="0px";        objsh[i].style.top="0px";        objst[i]=document.getElementById("op"+i);        objst[i].style.left="0px";        objst[i].style.top="0px";        objst[i].style.visibility="hidden";    }    objst[0].style.visibility="visible";            if(5==2)    {            kalan=CalcIcWidth;        vnext=0;        Sonraki();        zindx();        objst[vnext].style.left=""+kalan+"px";                setTimeout('DoSlide()',8000);    }    else if(5==4)    {            kalan=CalcIcHeight;        vnext=0;        Sonraki();        zindx();                setTimeout('DoScrollUp()',8000);    }    else if(5==5)    {		if(IEB){setTimeout('dotrans()',8000);}		else{setTimeout('beftrans()',8000);}    }    else    {        setTimeout('dotrans()',8000);    }}function initte(){    spageObj=document.getElementById('spage');        if(!spageObj)    {        setTimeout('initte()',200);    }    spageObj.innerHTML=str2;    vnext=1;    if(vnext>=mc){vnext=0;}    spageObj.style.left="0px";    spageObj.style.top="0px";    setTimeout('dofirst()',100);    }setTimeout('initte()',100);		       
