//scroller's width
var swidth=200;

//scroller's height
var sheight=100;

var sspeed=1;
var restart=sspeed;
var rspeed=sspeed;

sbcolor="";

var singletext=new Array();
singletext[0]='<div class=new><b>FPMA/ SAM</b><br>January 15th - 17th<br>Orlando<br>Booth no. 93<br>-----------------------------------<br><b>NO-NONSENSE</b><br>March 13th - 15th<br>Philadelphia<br>-----------------------------------<br><b>Midwest Podiatric Conference</b><br>April 2nd - 5th<br>Chicago<br>Booth No. 240<br>-----------------------------------<br><b>Experimental Biology 2009 / FASEB</b><br>April 19 - 21<br>New Orleans<br>Booth No. 738<br>-----------------------------------<b><br>APMA - 2008</b><br>Honolulu<br>-----------------------------------<br><b>NO-NONSENSE SEMINAR - 2008</b><br>Independence, Ohio<br>-----------------------------------<br><b>SAM/FPMA - 2008</b><br>Orlando<br>-----------------------------------<br><b>SFN</b><br>October 17th – 21st<br>Chicago<br>-----------------------------------<br><b>FPMA / SAM</b><br>January 21st – 23rd<br>Orlando<br>-----------------------------------<br><b>NYSPMA</b><br>January 29th – 31st<br>Newyork<br>-----------------------------------<br><b>No – Nonsense</b><br>March 12th – 14th<br>Ohio<br>-----------------------------------<br><b>DFCON</b><br>March 18th – 20th<br>Los Angeles<br>-----------------------------------<br><b>APMA</b><br>July 15th – 18th<br>Seattle<br>-----------------------------------<br><b>TPMA Annual Meeting</b><br>Oct. 1-2nd, Franklin, TN<br>-----------------------------------<br><b>ADA Annual Meeting</b><br>Oct. 9-11th, Orlando, FL<br>-----------------------------------<br><b>Diabetic Limb Salvage Meeting</b><br>Oct. 14-16th, Washington, D.C.<br>-----------------------------------<br><b>APMA Region One Conference</b><br>Oct. 22-23rd, Danvers, MA<br>-----------------------------------<br><b>IAPB</b><br>June 06th – 10th<br>Missouri<br>-----------------------------------<br><b>WESTERN</b><br>June 24th – 27th<br>Anaheim<br>-----------------------------------<br></div>';


if (singletext.length>1)ii=1;else ii=0;
function goup()
{
	if(sspeed!=rspeed*8)
	{
		sspeed=sspeed*2;restart=sspeed;
	}
}

function godown()
{
	if(sspeed>rspeed)
	{
		sspeed=sspeed/2;restart=sspeed;
	}
}

function start()
{
	if(document.getElementById)
	{
		document.getElementById('iens6div').style.top=sheight;
		document.getElementById('iens6div').innerHTML=singletext[0];
		ns6scroll(document.getElementById('iens6div'));
	}
	else if(document.all)
	{
		iens6div.style.top=sheight;
		iens6div.innerHTML=singletext[0];
		iescroll(iens6div);
	}else if(document.layers)
	{
	document.ns4div.document.ns4div1.top=sheight;
	document.ns4div.document.ns4div1.visibility='show';
	document.ns4div.document.ns4div1.document.write(singletext[0]);
	document.ns4div.document.ns4div1.document.close();
	ns4scroll(document.ns4div.document.ns4div1);
	}
}
function iescroll(whichdiv)
{
	iediv=eval(whichdiv);
	sizeup=iediv.offsetHeight;
	if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed)
	{
		iediv.style.pixelTop=0;
		setTimeout("iescroll(iediv)",100);
	}
	if(iediv.style.pixelTop>=sizeup*-1)
	{
		iediv.style.pixelTop-=sspeed;
		setTimeout("iescroll(iediv)",100);
	}
	else
	{
		iediv.style.pixelTop=sheight;
		iediv.innerHTML=singletext[ii];
		if(ii==singletext.length-1)
			ii=0;else ii++;
	}
}
function ns4scroll(whichlayer)
{
	ns4layer=eval(whichlayer);
	sizeup=ns4layer.document.height;
	if(ns4layer.top>0&&ns4layer.top<=sspeed)
	{
		ns4layer.top=0;
		setTimeout("ns4scroll(ns4layer)",100);
	}
	if (ns4layer.top>=sizeup*-1)
	{
		ns4layer.top-=sspeed;
		setTimeout("ns4scroll(ns4layer)",100);
	}
	else
	{
		ns4layer.top=sheight;
		ns4layer.document.write(singletext[ii]);
		ns4layer.document.close();
		if(ii==singletext.length-1)
			ii=0;
		else
			ii++;
	}
}
function ns6scroll(whichdiv)
{
	ns6div=eval(whichdiv);
	sizeup=ns6div.offsetHeight;
	if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed)
	{
		ns6div.style.top=0;
		setTimeout("ns6scroll(ns6div)",100);
	}
	if (parseInt(ns6div.style.top)>=sizeup*-1)
	{
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed;
		setTimeout("ns6scroll(ns6div)",100);
	}
	else
	{
		ns6div.style.top=sheight;
		ns6div.innerHTML=singletext[ii];
		if(ii==singletext.length-1)
			ii=0;
		else
			ii++;
	}
}

