// JavaScript Document
/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]='<p>Pete, I want to thank you for a great hunt and a great  time.&nbsp; I appreciate your effort in  getting us all a bear.&nbsp; I also want to  thank the guides and Betty for their awesome efforts to accommodate all of our  needs.&nbsp; The accommodations were good and  Betty&rsquo;s cooking was fantastic.&nbsp; My bear  was great and for Dustin to get his bear on the same stand 10 minutes later was  unreal.&nbsp;&nbsp; What a call to check that  stand!!&nbsp; We saw lots of bears on our hunt  and everybody had numerous opportunities to double out, thank you.&nbsp; We will definitely recommend you to anyone  who wants a black bear hunt to remember.&nbsp;  Hopefully we can come out again.</p><p>P.S.&nbsp; Thank you and  your staff very very much.</p><p>Bob Paillet<br />Kansas</p>'
pausecontent[1]='<p>Never been on a guided hunt before and never hunted black  bear before, I did not really know what to expect.&nbsp; After this hunt, I could not ask for a  better-run operation.&nbsp;&nbsp;&nbsp; Pete and his  staff made sure we had everything we needed in camp and on the stands.&nbsp; The accommodations were great.&nbsp; Betty, our wonderful camp chef, made sure we  were well fed every day with great meals and fresh baking.&nbsp; By far more fun than I expected and to top it  all off I got a bear with my bow.&nbsp;  Recommend it to everyone, already booked for 2011.</p><p>Darren Peterson<br />Utah</p>'
pausecontent[2]='<p>My priority was a color phase bear, as I have been looking  for a color phase bear now for quite a few years.&nbsp; When I talked to Pete, he said he would try  his best, but could not promise one.&nbsp; His  honest and sincere answer was all I needed to hear.&nbsp; Pete put me on a great color that will make  Pope and Young and squared at just under 7&rdquo;.&nbsp;  I saw numerous bears (7 on one stand) and had an opportunity to take  another huge (black) bear, a couple of nights later.&nbsp;&nbsp; I have been in numerous bear camps across  North America and would not go to another camp other than Ells River.&nbsp; Pete&rsquo;s camp is top shelf, great cooking and  accommodations and lots of bears.&nbsp; I  cannot thank Pete enough and god willing I hope to make it back in the future.</p><p>Dave Field <br />Brockton Massachusetts</p>'
pausecontent[3]='<p>My experience with Ells River Black Bear Outfitting was an  adventure of a lifetime.&nbsp; Not knowing  what to expect when hunting bears, I was very apprehensive.&nbsp; Pete and his very professional staff quickly  put those fears to bed.&nbsp; My hunt was very  successful with my first bow killed black bear.&nbsp;  Anything and everything I wanted and asked for was accommodated.&nbsp;&nbsp; The food in camp was better than a five star  hotel.&nbsp; I cannot wait to do this  again.&nbsp; I would recommend this hunt to  anyone.&nbsp; The bears were plentiful and  beautiful.&nbsp; Thanks again Pete, for an  excellent opportunity to hunt.</p><p>Jarrod Chamberlain<br />Utah</p>'
pausecontent[4]='<p>Pete, I want to thank you for a great hunt and a great  time.&nbsp; I appreciate your effort in  getting us all a bear (5 between my two sons and me and 10 between our party of  six).&nbsp; I also want to thank the guides  and Betty for their awesome efforts to accommodate all of our needs.&nbsp; The accommodations were good and Betty&rsquo;s  cooking was fantastic.&nbsp; My bear was great  and for Dustin and Scott to get two bears each was all a father could ask  for.&nbsp;&nbsp; What a hunt!!&nbsp; We saw lots of bears on our hunt, thank  you.&nbsp; We will definitely recommend you to  anyone who wants a black bear hunt to remember.&nbsp;  Hopefully we can come out again.</p><p>Jay, Dustin and Scott Mall<br />Kansas</p>'
pausecontent[5]='<p>My second year in a row hunting with Ells River Black Bear  Hunting and this year was even better than last year.&nbsp; A real nice black boar the first night and a  nice chocolate the second night of my hunt, what a hunt!!!&nbsp; Pete, I want to thank you for a great hunt  and a great time.&nbsp; I will definitely  recommend you to anyone who wants a black bear hunt to remember.&nbsp; </p><p>Jerry Bruce<br />South Dakota</p>'
pausecontent[6]='<p>If you look up black bear hunting in the dictionary, you  will see a picture of Pete&rsquo;s outfit &ldquo;Ells River Black Bear Outfitting.&nbsp; This was my first experience with bears and I  could not imagine it any better.&nbsp; I took  an absolutely awesome bear and had an opportunity on another big boy within &frac12;  an hour.&nbsp; No shortage of bears with  something new and exciting every night.&nbsp;  Pete and his staff take care of all your needs and expectations.&nbsp; The food is great, if you go hungry its your  own fault.&nbsp; Trip of a lifetime, recommend  it to everyone, already booked for 2011.</p><p>Kent Beckstead<br />Draper Utah</p>'
pausecontent[7]='<p>I would like to take this opportunity to express my thanks  to Ells River Black Bear Outfitting.&nbsp; The  hunt was outstanding from the amount of bears we had to choose from to the food  and accommodations.&nbsp; Our Outfitter and  his staff went out of their way to make sure we were taken care of.&nbsp; I would recommend this hunt to anyone, if you  want to go black bear hunting; this is the place to go.&nbsp; Oh by the way, got a great bear, and had the  opportunity to tag out on the same night within an hour.&nbsp; Trip of a lifetime, recommend it to everyone,  already booked for 2011.</p><p>Mark Freemyer<br />Idaho</p>'
pausecontent[8]='<p>Pete, I just wanted to thank you for a great bear hunting  experience.&nbsp; The two I shot with my bow  from my Double Bull ground blind within an hour of each other were  awesome.&nbsp; But when my daughter Shyanne  shot the 7&rsquo; 2&rdquo;, 20&rdquo; skull I was shocked by the size and mass of her bear.&nbsp; The guides were great, and we really enjoyed  Betty&rsquo;s awesome cooking (especially the fresh bread, buns and pies daily).&nbsp; I would recommend your bear camp to anyone  looking for big bears, great food, a great time and wild ATV rides!!!</p><p>Rick (The Verminator ) and Shyanne<br />Verminator Predator Calls</p>'
pausecontent[9]='<p>Hunting with Guide/Owner Pete Wuenschel of Ells River Black  Bear Hunting was my most amazing experience in 20 years of hunting.&nbsp; </p><p>I am an avid outdoorsman and have hunted and fished all over  North America including several trips to Canada and Alaska, but black bear  hunting with Ells River ranks second to none.&nbsp;  Hunting GIANT black bears in the wildest, most untouched wilderness that  I have ever been in, what else could an avid black bear hunter possibly ask  for.</p>'
pausecontent[10]= '<p>Having been on several guided hunting and fishing trips I  can assure you that there is no one in North America that is going to work as  hard or be as concerned for your overall well-being and satisfaction of the  hunt as Pete Wuenschel.&nbsp; Pete consumes  himself with assuring that his clients get the absolute best care from the time  you book your hunt until your giant black bear is in your trophy room back  home.&nbsp; Now how many other outfitters are  going to do that for you? </p><p>I did not only come home with a potential record book bear,  but also a lifelong friendship.&nbsp; Pete, I  can&rsquo;t thank you enough and I am looking forward to our next hunting camp  together.</p><p>Roderick H. Polston<br />Norman, OK</p>'

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
