// JavaScript Document


/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=165;

//scroller's height
var sheight=210;


//scroller's speed 
var sspeed=3;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=3000; //2000;

var spause2=50; //2000;
//scroller's background
var sbcolor="";

//messages: set your own; use as many as you'd like; set up Hyperlinks to
//URLs as you normally do: <a target=... href="scripts/... URL ...">..message..</a>;
var singletext=new Array();
/*
singletext[0]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="80" valign="middle"><div class=tanc><A class=tabb target="_self" href="http://vertical-scroller.vbarsan.com/">Vertical Scroller Javascript 7.0</A><br />Messages may scroll & pause along 2 different patterns:<br />- Singles: pause at top or may automatically be centered.<br />- One_or_More-up-to-area-size: Messages go equidistant,<br />each & every message pausing when reaches top edge.</div></td></tr></table>';
singletext[1]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="80" valign="middle"><div class=tanc><A class=tabb target="_self" href="http://news-scroller.vbarsan.com/">Horizontal Scroller Javascript 7.0</A><br />Messages may scroll & pause along 2 different patterns:<br />- Singles: pause at left or centered depending upon CSS.<br />- One_or_More-up-to-area-size: Messages go equidistant,<br />each & every message pausing when reaches left edge.</div></td></tr></table>';
singletext[2]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="80" valign="middle"><div class=tanc><A class=tabb target="_self" href="http://news-ticker.vbarsan.com/">Typewriter Vertical Text Scroller 5.0</A><br />Typewriter ticker has 2 portions: typewriting & scrolling<br>with first one at the bottom - Scrolling portion is optional.<br />Typewriting portion may hold as many rows as desired.<br />Scrolling goes up with the size of actual typewritten text.</div></td></tr></table>';
singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td height="80" valign="middle"><div class=tan><b>Javascript Vertical Scroller v3.5</b><br>Once a message left, next one comes in.<br>Adjustable: Size,Speed,Pause,Background.<br>Speed may be adjusted on the fly as well!<br>Runs any number of Messages/Images.</div></td></tr></table>';
singletext[4]='<div class=tan>= message begins =<br />Any message may be <b><i>as large as desired.</i><br />On Windows/Linux:</b><br />ie4+ firefox1+ ns6+ opera7+ ns4+.<br /><b>On Mac OS X</b>: Safari, ie5+ firefox1+ opera7+.<br /><br /><font color="olive">Any wider row will automatically be adjusted into as many rows as to fit the width you set for the scrolling area.</font><br /><br />One may use <b><i>any basic HTML code.</i></b><br /><br />= message ends =</div>';

July 1st 2009<br><br>EM Sports and Entertainment Inc, announced an exclusive partnership deal today with M&S All Sports Management. <br><br>M&S are certified NFL agents, and will handle all NFL athlete contract negotiations. <a href="http://www.msallsports.com/">www.msallsports.com</a>*/


singletext[0]='<p>Feb. 2010<br><br>EM Sports and Entertainment Inc., would like to announce that client <b>WR Lavelle Hawkins</b> of the <b>NFL/Tennessee Titans</b> has signed an <b>exclusive marketing/endorsement and financial services agreement</b> with our company. Lavelle was a fourth round pick from Univ. of Cal and drafted in 08.</p>';
singletext[1]='<p>January 2010<br><br>EM Sports and Entertainment Inc., would like to announce that client <b>WR Larry Taylor</b> of the <b>NFL/ N.Y. JETS</b>  has signed an <b>exclusive marketing/endorsement and financial advisor agreement</b> with our company.</p>';
singletext[2]='<p>January 2010<br><br>EM Sports and Entertainment Inc., would like to announce that client <b>S.J. Green</b> has signed a contract with the <b>New York Jets</b> football team. S.J. Green will begin off-season training with the Jets in March.</p>';
singletext[3]='<p>July 1st 2009<br><br>EM Sports and Entertainment Inc, announced an exclusive partnership deal today with M&S All Sports Management. <BR><BR>M&S are certified NFL agents, and will handle all NFL athlete contract negotiations. <a href="http://www.msallsports.com/" target="_blank">www.msallsportsU.com</a></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;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;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;setTimeout("iescroll()",spause2);}
	else
	{
			if(ii==singletext.length-1)ii=0;
			else ii++;iediv.style.pixelTop=sheight;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()",spause2);}
		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;setTimeout("ns6scroll()",spause2);}
			else{if(ii==singletext.length-1)ii=0;else ii++;
				ns6div.style.top=sheight;ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->