/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/
var swidth=135; /* Scroller width */
var sheight=220; /* Scroller height */
var initial=200; /* Starting point */
var sbcolor=""; /* Background colour */
var sspeed=3; /* Scroller speed */
var restart=sspeed;
rspeed=sspeed;

/* Actual text to scroll */
wholemessage='<br /><div align="center"><span class="boldText">Beginners classes available now<br /><span class="bodyText">============</span><br />Muay Thai<br />Tue 20:00-21:15<br />Fri 20:00-21:15<br /><span class="bodyText">============</span><br />MMA<br />Wed 20:00-22:00<br />Sat 18:00-20:00<br /><span class="bodyText">============</span><br />Bodypump<br />Tue 18:30-19:30<br />Thurs 18:30-19:30<br /><span class="bodyText">============</span><br /><span class="boldText">ALL WELCOME</span></div>';

/* Scroller Algorithm - Start */
function goup(){
	sspeed=3;restart=sspeed;
}
function godown(){
	sspeed=-3;restart=sspeed;
}
function spup(){
	sspeed=12;restart=sspeed;
}
function spdown(){
	sspeed=-12;restart=sspeed;
}
function start(){
	if(document.getElementById)ns6marquee(document.getElementById('slider'));
	else if(document.all)iemarquee(slider);
	else if(document.layers)ns4marquee(document.slider1.document.slider2);
}
/* A */
function iemarquee(whichdiv){
	iediv=eval(whichdiv);
	iediv.style.pixelTop=initial+"px";
	iediv.innerHTML=wholemessage;
	sizeup=iediv.offsetHeight;
	ieslide();
}
function ieslide(){
	if(sspeed>=0){ /* Scrolling up */
		if(Math.abs(iediv.style.pixelTop)<=sizeup){
			iediv.style.pixelTop-=sspeed+"px";
			setTimeout("ieslide()",100);
		}
		else{
			iediv.style.pixelTop=sheight-(sheight-initial)+"px"; /* Reset if scrolling up */
			ieslide();
		}	
	}
	else{ /* Scrolling down */
		if(iediv.style.pixelTop<sheight){
			iediv.style.pixelTop-=sspeed+"px";
			setTimeout("ieslide()",100);
		}
		else{
			iediv.style.pixelTop=(sizeup*-1)+(sheight-initial)+"px"; /* Reset if scrolling down */
			ieslide();
		}
	}
}
/* B */
function ns4marquee(whichlayer){
	ns4layer=eval(whichlayer);
	ns4layer.top=initial;
	ns4layer.document.write(wholemessage);
	ns4layer.document.close();
	sizeup=ns4layer.document.height;
	ns4slide();
}
function ns4slide(){
	if(sspeed>=0){ /* Scrolling up */
		if(Math.abs(ns4layer.top)<=sizeup){
			ns4layer.top-=sspeed+"px";
			setTimeout("ns4slide()",100);
		}
		else{
			ns4layer.top=sheight-(sheight-initial)+"px"; /* Reset if scrolling up */
			ns4slide();
		}	
	}
	else{ /* Scrolling down */
		if(ns4layer.top<sheight){
			ns4layer.top-=sspeed+"px";
			setTimeout("ns4slide()",100);
		}
		else{
			ns4layer.top=(sizeup*-1)+(sheight-initial)+"px"; /* Reset if scrolling down */
			ns4slide();
		}
	}
}
/* C */
function ns6marquee(whichdiv){
	ns6div=eval(whichdiv);
	ns6div.style.top=initial+"px";
	ns6div.innerHTML=wholemessage;
	sizeup=ns6div.offsetHeight;
	ns6slide();
}
function ns6slide(){
	if(sspeed>=0){ /* Scrolling up */
		if(Math.abs(parseInt(ns6div.style.top))<=sizeup){
			ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";
			setTimeout("ns6slide()",100);
		}
		else{
			ns6div.style.top=sheight-(sheight-initial)+"px"; /* Reset if scrolling up */
			ns6slide();
		}	
	}
	else{ /* Scrolling down */
		if(parseInt(ns6div.style.top)<sheight){
			ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";
			setTimeout("ns6slide()",100);
		}
		else{
			ns6div.style.top=(sizeup*-1)+(sheight-initial)+"px"; /* Reset if scrolling down */
			ns6slide();
		}
	}
}
/* Scroller Algorithm - End */
