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

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

//scroller's height
var sheight=80;


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

//scroller's pause 
var spause=5000;

//scroller's background
var sbcolor="none";

//messages: set 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 style="height:125px; background-color:#4a4a4a; color:white; padding:0;"><table><tr><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=WS66Y90450718.181&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=1&source=~!horizon&index=.TW&term=hunger+games+and+.AW%3Dcollins&x=0&y=0&aspect=subtab26"><img width="75" style="border:1px solid white" src="http://www.syndetics.com/index.aspx?type=xw12&isbn=9780439023481/LC.GIF&client=anahp" alt="Book cover" /></a></td><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=WS66Y90450718.181&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=1&source=~!horizon&index=.TW&term=hunger+games+and+.AW%3Dcollins&x=0&y=0&aspect=subtab26"><b>The Hunger Games by Susanne Collins</b></a><br /><br />Sixteen-year-old Katniss voluntarily takes her younger sister\s place in a deathly competition. There can only be one winner.</td></tr></table></div>';

singletext[1]='<div style="height:125px; background-color:#ff9933; color:white; padding:0;"><table><tr><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=12JP69U998250.194&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=&index=.TW&term=witch+and+wizard&oper=and&x=4&y=7&aspect=subtab26&index=.AW&term=patterson&oper=and&index=.SW&term=&oper=and&index=.CW&term=&aspect=subtab26&sort="><img width="75" style="border:1px solid white" src="http://www.syndetics.com/index.aspx?type=xw12&isbn=9780316036245/LC.GIF&client=anahp" alt="Book cover" /></a></td><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=12JP69U998250.194&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=&index=.TW&term=witch+and+wizard&oper=and&x=4&y=7&aspect=subtab26&index=.AW&term=patterson&oper=and&index=.SW&term=&oper=and&index=.CW&term=&aspect=subtab26&sort="><b>Witch & Wizard by James Patterson</b></a><br /><br />Whit Allgood and his sister, Whisty went to sleep as normal teenagers, and woke up as wanted criminals.</td></tr></table></div>';

singletext[2]='<div style="height:125px; background-color:#336699; color:white; padding:0;"><table><tr><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=1266691J63J3D.215&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=&index=.TW&term=fallen&oper=and&x=9&y=8&aspect=subtab26&index=.AW&term=kate%2C+lauren&oper=and&index=.SW&term=&oper=and&index=.CW&term=&aspect=subtab26&sort="><img width="75" style="border:1px solid white" src="http://www.syndetics.com/index.aspx?type=xw12&isbn=9780385738934/LC.GIF&client=anahp" alt="Book cover" /></a></td><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=1266691J63J3D.215&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=&index=.TW&term=fallen&oper=and&x=9&y=8&aspect=subtab26&index=.AW&term=kate%2C+lauren&oper=and&index=.SW&term=&oper=and&index=.CW&term=&aspect=subtab26&sort="><b>Fallen by Lauren Kate</b></a><br /><br />Suspected in the death of her boyfriend, seventeen-year-old Luce is sent to a Savannah, Georgia, reform school.</td></tr></table></div>';

singletext[3]='<div style="height:125px; background-color:#009966; color:white; padding:0;"><table><tr><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=1266691J63J3D.215&menu=search&aspect=subtab25&npp=10&ipp=1000&spp=20&profile=c&ri=6&source=~!horizon&index=.TW&term=maze+runner++.AW%3Ddashner&x=0&y=0&aspect=subtab25"><img width="75" style="border:1px solid white" src="http://www.syndetics.com/index.aspx?type=xw12&isbn=9780385907026/LC.GIF&client=anahp" alt="Book cover" /></a></td><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=1266691J63J3D.215&menu=search&aspect=subtab25&npp=10&ipp=1000&spp=20&profile=c&ri=6&source=~!horizon&index=.TW&term=maze+runner++.AW%3Ddashner&x=0&y=0&aspect=subtab25"><b>The Maze Runner by James Dashner</b></a><br /><br />Sixteen-year-old Thomas wakes up with no memory in the middle of a deathly maze with no escape.</td></tr></table></div>';

singletext[4]='<div style="height:130px; background-color:#009966; color:white; padding:0;"><table><tr><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=U26669O19R671.274&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=&index=.TW&term=leviathan&oper=and&x=9&y=10&aspect=subtab26&index=.AW&term=westerfeld&oper=and&index=.SW&term=&oper=and&index=.CW&term=&aspect=subtab26&sort="><img width="75" style="border:1px solid white" src="http://www.syndetics.com/index.aspx?type=xw12&isbn=9781416971733/LC.GIF&client=anahp" alt="Book cover" /></a></td><td><a target="_blank" style="color:white" href="http://ipac.anaheim.net/ipac20/ipac.jsp?session=U26669O19R671.274&menu=search&aspect=subtab26&npp=10&ipp=1000&spp=20&profile=c&ri=&index=.TW&term=leviathan&oper=and&x=9&y=10&aspect=subtab26&index=.AW&term=westerfeld&oper=and&index=.SW&term=&oper=and&index=.CW&term=&aspect=subtab26&sort="><b>Leviathan by Scott Westerfeld</b></a><br /><br />Alternate 1914 Europe, mechanical machinery, and genetically-engineered beasts. Need we say more?</td></tr></table></div>';

//singletext[...]='...';
//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()",100);}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()",100);}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()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->

