/*
Up down slideshow Script
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://www.dynamicdrive.com
*/

///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth='135px'
var scrollerheight='210px'
//3000 miliseconds=3 seconds
var pausebetweenimages=4000

//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate <a> tag
var slideimages=new Array()
slideimages[0]='<a href="http://www.amazon.com/s?ie=UTF8&search-type=ss&index=books&field-author=Thomas%20Claburn&page=1" target="_blank"><img src="images/claburn-cover.gif" border="0" alt="Claburn cover"></a>'
slideimages[1]='<a href="http://www.thebriefsun.com/" target="_blank"><img src="images/ambroscov.jpg" border="0" alt="Ambros cover"></a>'
slideimages[2]='<a href="http://www.thebriefsun.com/" target="_blank"><img src="images/Ambros2.jpeg" border="0" alt="Ambros Book 2"></a>'
slideimages[3]='<a href="http://www.authorhouse.com/BookStore/ItemDetail.aspx?q3=3uar1vLmBb8%253d" target="_blank"><img src="images/Thomas.jpeg" border="0" alt="Thomas cover"></a>'
slideimages[4]='<a href="http://www.hawaii.edu/powerkills/NH.HTM" target="_blank"><img src="images/Rummel-bk1.jpg" border="0" alt="Rummel Book 1 cover"></a>'
slideimages[5]='<a href="http://www.dapaice.com" target="_blank"><img src="images/paicecover.jpg" border="0" alt="Paice cover"></a>'
slideimages[6]='<a href="http://www.hawaii.edu/powerkills/NH.HTM" target="_blank"><img src="images/Rummel-bk2.jpg" border="0" alt="Rummel Book 2 cover"></a>'
slideimages[7]='<a href="http://www.narendrasimone.com" target="_blank"><img src="images/simonecover.jpeg" border="0" alt="Simone cover"></a>'
slideimages[8]='<a href="http://www.hawaii.edu/powerkills/NH.HTM" target="_blank"><img src="images/Rummel-bk3.jpg" border="0" alt="Rummel Book 3 cover"></a>'
slideimages[9]='<a href="http://www.amazon.com/Strange-Birds-Zoroasters-Nest-Religions/dp/1932053123" target="_blank"><img src="images/StrangeBirds_cover_s.jpeg" border="0" alt="Nonetheless cover"></a>'
slideimages[10]='<a href="http://www.hawaii.edu/powerkills/NH.HTM" target="_blank"><img src="images/Rummel-bk4.jpg" border="0" alt="Rummel Book 4 cover"></a>'
slideimages[11]='<a href="http://www.llumina.com/store/racewithoutrules.htm" target="_blank"><img src="images/grant.JPG" border="0" alt="Grant cover"></a>'
slideimages[12]='<a href="http://www.wexfordcollegepress.com/" target="_blank"><img src="images/jkrauscover.GIF" border="0" alt="Kraus cover"></a>'
slideimages[13]='<a href="http://www.amazon.com/gp/product/1932852778/ref=cm_rdp_product_img" target="_blank"><img src="images/Adams-cover.jpg" border="0" alt="Adams cover"></a>'
slideimages[14]='<a href="http://www.thereturnofthetrumpet.com/index2.htm" target="_blank"><img src="images/barancover.jpg" border="0" alt="Baran cover"></a>'
slideimages[15]='<a href="http://ccgi.bluepig.plus.com/php/Pmp/book.php?book=9781904959083" target="_blank"><img src="images/schumacher.jpg" border="0" alt="Schumacher cover"></a>'
slideimages[16]='<a href="http://www.hawaii.edu/powerkills/NH.HTM" target="_blank"><img src="images/Rummel-bk5.jpg" border="0" alt="Rummel Book 5"></a>'
slideimages[17]='<a href="http://www.myshelf.com/kids/nonfiction/03/mrlistercomeshome.htm" target="_blank"><img src="images/quistcover.jpeg" border="0" alt="Quist cover"></a>'
slideimages[18]='<a href="http://www.amazon.com/exec/obidos/ASIN/1933265205/qid=1118932377/sr=2-1/ref=pd_bbs_b_2_1/102-4469449-1979356" target="_blank"><img src="images/hollandcover.jpg" border="0" alt="Holland cover"></a>'
slideimages[19]='<a href="http://www.hawaii.edu/powerkills/NH.HTM" target="_blank"><img src="images/Rummel-bk6.jpg" border="0" alt="Rummel book 6"></a>'
slideimages[20]='<a href="http://www.freyapublishing.com/" target="_blank"><img src="images/Russell-cover.gif" border="0" alt="Russell cover"></a>'
slideimages[21]='<a href="http://www.theinternetescortshandbook.com/" target="_blank"><img src="images/brooks-cover.jpg" border="0" alt="Brooks cover"></a>'
slideimages[22]='<a href="http://www.amazon.com/Dancing-Lion-Stephen-D-Barry/dp/0595318657/sr=8-1/qid=1166975393/ref=sr_1_1/104-8778285-3879132?ie=UTF8&s=books" target="_blank"><img src="images/Barry-cover.jpg" border="0" alt="Barry cover"></a>'
slideimages[23]='<a href="http://www.graham-clews.com/books/books.htm" target="_blank"><img src="images/Clews-cover1.jpg" border="0" alt="Clews - Jessica Jones cover"></a>'
slideimages[24]='<a href="http://www.graham-clews.com/books/books.htm" target="_blank"><img src="images/Clews-cover2.jpg" border="0" alt="Clews - Eboracum I cover"></a>'
slideimages[25]='<a href="http://www.graham-clews.com/books/books.htm" target="_blank"><img src="images/Clews-cover3.gif" border="0" alt="Clews - Eboracum II cover"></a>'
slideimages[26]='<a href="http://www.leannmarshall.com/thestarfishpeople.html" target="_blank"><img src="images/Marshall-cover.gif" border="0" alt="Marshall cover"></a>'
slideimages[27]='<a href="http://www.swahiliforbeginners.com" target="_blank"><img src="images/Joyal-cover.jpg" border="0" alt="Joyal cover"></a>'
slideimages[28]='<a href="http://www.iuniverse.com/bookstore/book_detail.asp?isbn=0595451136" target="_blank"><img src="images/Atkinson-cover.gif" border="0" alt="Atkinson cover"></a>'
slideimages[29]='<a href="http://www.vinlandthebeginning.com/" target="_blank"><img src="images/Johnston-cover.jpg" border="0" alt="Johnston cover"></a>'
slideimages[30]='<a href="http://www.orchardhousepress.com/stephenvangaasbeck/geblicon.htm" target="_blank"><img src="images/vanGaasbeck-cover.jpg" border="0" alt="vanGaasbeck cover"></a>'
slideimages[31]='<a href="http://www2.xlibris.com/BOOKSTORE/bookdisplay.aspx?bookid=57140" target="_blank"><img src="images/Braddy-cover.jpg" border="0" alt="Braddy cover"></a>'
//extend this list

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (slideimages.length>2)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.top=parseInt(scrollerheight)
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.top=parseInt(scrollerheight)
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(second2_obj)",pausebetweenimages)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.top=scrollerheight
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(first2_obj)",pausebetweenimages)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move4(second2_obj)",50)
}
else{
tdiv2.style.top=scrollerheight
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move3(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=parseInt(scrollerheight)+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll

