/* <![CDATA[ */

//scroller's width
var swidth=286;

//scroller's height
var sheight=85;


//scroller's speed 
var sspeed=3;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause
var spause=10000;

var singletext=new Array();
singletext[0]='<p>Church Digital are getting very excited about our new <a href="services-business-solutions.php">Digital Asset Management System</a> – <strong>Asset Bag</strong>. We believe it is the most intuitive, usable, intelligent system available. Why not <a href="contact-us.php">contact us</a> and we will send you more details.</p>';
singletext[1]='<p>Noticed a few changes on our website recently? We like to keep things fresh and up to date, so we thought we would bring you an even better, brighter looking website for you to enjoy! Have any comments about it? <a href="contact-us.php">Tell us here</a>, we would love to hear them.</p>';
//singletext[...]='...';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){
	if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}
	}

function start(){
	if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();
	} else 
	if(document.layers){
		ns4layer=document.ns4div.document.ns4div1;
		ns4layer.top=sheight;
		ns4layer.document.write(singletext[0]);
		ns4layer.document.close();
		sizeup=ns4layer.document.height;
		ns4scroll();
		} else 
		if(document.all){
			iediv=iens6div;
			iediv.style.pixelTop=sheight+"px";
			iediv.innerHTML=singletext[0];
			sizeup=iediv.offsetHeight;iescroll();
			}
		}
		
function iescroll() {
	if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
		iediv.style.pixelTop=0;
		setTimeout("iescroll()",spause);
		} else 
		if(iediv.style.pixelTop>=sizeup*-1) {
			iediv.style.pixelTop-=sspeed+"px";
			setTimeout("iescroll()",10);
			} else {
			if(ii==singletext.length-1)ii=0;
			else 
			ii++;
			iediv.style.pixelTop=sheight+"px";
			iediv.innerHTML=singletext[ii];
			sizeup=iediv.offsetHeight;
			iescroll();
			}
		}
		
function ns4scroll() {
	if(ns4layer.top>0&&ns4layer.top<=sspeed) {
		ns4layer.top=0;
		setTimeout("ns4scroll()",spause);
		} else 
		if(ns4layer.top>=sizeup*-1) {
			ns4layer.top-=sspeed;
			setTimeout("ns4scroll()",10);
			} else {
			if(ii==singletext.length-1)ii=0;
			else 
			ii++;ns4layer.top=sheight;
			ns4layer.document.write(singletext[ii]);
			ns4layer.document.close();
			sizeup=ns4layer.document.height;
			ns4scroll();
			}
	}
	
function ns6scroll() {
	if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed) {
		ns6div.style.top=0;
		setTimeout("ns6scroll()",spause);
		} else 
		if(parseInt(ns6div.style.top)>=sizeup*-1) {
			ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";
			setTimeout("ns6scroll()",10);
			} else {
			if(ii==singletext.length-1)ii=0;
			else ii++;
			ns6div.style.top=sheight+"px";
			ns6div.innerHTML=singletext[ii];
			sizeup=ns6div.offsetHeight;
			ns6scroll();
			}
	}
/* ]]> */
