// Client Side script for Marquee
/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/
//scroller's width
var swidth=350;

//scroller's height
var sheight=60;


//scroller's speed 
var sspeed=1;
var restart=sspeed;
var rspeed=sspeed;

//scroller's background
sbcolor="#CCCCCC";
//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array();
//singletext[0]='<div align="center" class=tabb><a target="_self" class=tabb href="http://javascripts.vbarsan.com/">JavaScript Vertical Scroller v7.0 + <br>JavaScript Horizontal Scroller v7.0 + <br>JavaScript Typewriter Scroller v5.0</a></div>';
singletext[0]='<div align="center" class=tan>Didn\'t find what you\'re looking for in our <a href="./FrameIndex.htm">Books</a> section?</div>';
singletext[1]='<div align="center" class=tan>We\'re continually adding new Books to our lists.</div>';
singletext[2]='<div align="center" class=tan>Check back with us from time to time for new titles!</div>';
singletext[3]='<div align="center" class=tan>Be sure to check out our free downloads!</div>';
singletext[4]='<div align="center" class=tan>Tell us what you think by Reviewing our Books.</div>';
/*
//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array();
singletext[0]='<div align="center" class=tabb><a target="_self" class=tabb href="http://javascripts.vbarsan.com/">JavaScript Vertical Scroller v7.0 + <br>JavaScript Horizontal Scroller v7.0 + <br>JavaScript Typewriter Scroller v5.0</a></div>';

singletext[1]='<div align="center" class=tann>Multiple Message Scroller V3.0.</div><div align="center" class=tan>After one message left, the next one comes in.<br>Adjust: Size, Speed and Background.<br>Any message may use <b><u>Hyperlinks</u></b></div>';
singletext[2]='<div align="center" class=tan><b>Cross-Browser:</b></div><div align="center" class=tan>ie4+ opera7+ ns4+ ns6+ Mozilla (Firefox ...)<br>On MAC OS X, Unix: Safari ie5+ Mozilla</div>';
singletext[3]='<div align="center" class=tan>Any message may be <b><i>as large as desired.</i></B><br>===<br><br>...<br><br>===<br>One may use <b><i>any basic HTML code.</i></B></div>';
//singletext[...]='...';
//-- end Parameters and message -->
*/
//-- begin: Scroller's Algorithm -->
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.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);}else if (document.getElementById){document.getElementById('iens6div').style.top=sheight;document.getElementById('iens6div').innerHTML=singletext[0];ns6scroll(document.getElementById('iens6div'));}}
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++;}}
//-- end Algorithm -->

